[one-users] VMs in PENDING [was: Fixing up USED / FREECPU ?]

Carlos Martín Sánchez cmartin at opennebula.org
Thu Jul 7 01:22:33 PDT 2011


Hi Steffen,

In your original scenario, you could replace the DB contents for your Host,
with OpenNebula stopped.
Since you have migrated your VMs, you can force the host deletion editing
the onehost command [1]:

Just change

        if host['HOST_SHARE/RUNNING_VMS'].to_i != 0
            puts "Host still has associated VMs, aborting delete."
        else
to

        if false
            puts "Host still has associated VMs, aborting delete."
        else



Maybe these kind of inconsistencies could be managed by the new onedb
command, we'll consider adding this feature for next releases.

Sorry for the late response; best regards,
Carlos.

[1]
http://lists.opennebula.org/pipermail/users-opennebula.org/2011-June/005636.html

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org


On Thu, Jul 7, 2011 at 7:46 AM, Steffen Neumann <sneumann at ipb-halle.de>wrote:

> Hi,
>
> On Wed, 2011-07-06 at 16:25 +0200, Steffen Neumann wrote:
> ...
> > That host surely was running with USEDCPU 1280 at some time,
> > but I had to restart oned because of an I/O error on one.db,
> > so I guess the book keeping is inconsistent because currently
> > there are only two VMs running.
> >
> > So I am back to my original question: how do I tell ONE
> > the *correct* USEDCPU / FREECPU ? Delete / Add the whole host again ?
> > Or is there anything less invasive I can do ?
>
> Since I *need* that host to accept VMs now, I migrated all VMs
> I could see away from it, and wanted to delete the whole host,
> but I got
>
>        oneadmin at cumulus:~/var$ onehost delete 12
>        Host still has associated VMs, aborting delete.
>
> So this again revolves around: how do I purge this
> non-existing cold dead VM out of ONE's memory ?
> Since the one* tools can't figure out what's running there,
> I will have to manually modify one.db ? Which tables in there ?
> Or did I miss the point ?
>
> Yours,
> Steffen
>
>
> oneadmin at cumulus:~/var$ onehost show 12 -x
> <HOST>
>  <ID>12</ID>
>  <NAME>node-blc02</NAME>
>  <STATE>0</STATE>
>  <IM_MAD>im_kvm</IM_MAD>
>  <VM_MAD>vmm_kvm</VM_MAD>
>  <TM_MAD>tm_nfs</TM_MAD>
>  <LAST_MON_TIME>1308659636</LAST_MON_TIME>
>  <CLUSTER>default</CLUSTER>
>  <HOST_SHARE>
>    <HID>12</HID>
>    <DISK_USAGE>0</DISK_USAGE>
>     <MEM_USAGE>8388608</MEM_USAGE>
>     <CPU_USAGE>100</CPU_USAGE>
>    <MAX_DISK>0</MAX_DISK>
>    <MAX_MEM>66108092</MAX_MEM>
>    <MAX_CPU>1600</MAX_CPU>
>    <FREE_DISK>0</FREE_DISK>
>    <FREE_MEM>34700700</FREE_MEM>
>    <FREE_CPU>320</FREE_CPU>
>    <USED_DISK>0</USED_DISK>
>    <USED_MEM>31407392</USED_MEM>
>    <USED_CPU>1280</USED_CPU>
>    <RUNNING_VMS>1</RUNNING_VMS>
>  </HOST_SHARE>
>  <TEMPLATE>
>    <ARCH><![CDATA[x86_64]]></ARCH>
>    <CPUSPEED><![CDATA[2400]]></CPUSPEED>
>    <FREECPU><![CDATA[320.0]]></FREECPU>
>    <FREEMEMORY><![CDATA[34700700]]></FREEMEMORY>
>    <HOSTNAME><![CDATA[node-blc02]]></HOSTNAME>
>    <HYPERVISOR><![CDATA[kvm]]></HYPERVISOR>
>    <MODELNAME><![CDATA[AMD Opteron(tm) Processor 6136]]></MODELNAME>
>    <NETRX><![CDATA[0]]></NETRX>
>    <NETTX><![CDATA[0]]></NETTX>
>    <TOTALCPU><![CDATA[1600]]></TOTALCPU>
>    <TOTALMEMORY><![CDATA[66108092]]></TOTALMEMORY>
>    <USEDCPU><![CDATA[1280.0]]></USEDCPU>
>    <USEDMEMORY><![CDATA[31407392]]></USEDMEMORY>
>  </TEMPLATE>
> </HOST>
>
>
> --
> IPB Halle                    AG Massenspektrometrie & Bioinformatik
> Dr. Steffen Neumann          http://www.IPB-Halle.DE
> Weinberg 3                   http://msbi.bic-gh.de
> 06120 Halle                  Tel. +49 (0) 345 5582 - 1470
>                                  +49 (0) 345 5582 - 0
> sneumann(at)IPB-Halle.DE     Fax. +49 (0) 345 5582 - 1409
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110707/ee2a7b21/attachment-0003.htm>


More information about the Users mailing list