[one-users] VM creation stuck in "pending" state
Daniel Molina
dmolina at opennebula.org
Mon Apr 11 03:51:04 PDT 2011
Hi Upendra,
You should change the requirements section to:
REQUIREMENTS = "HOSTNAME=\"obelix20.local\""
or change the local hostname of your host, the name retrieved from it
($ uname -n) is:
> <HOSTNAME><![CDATA[obelix20.local]]></HOSTNAME>
Regards.
On 8 April 2011 21:19, Upendra Sharma <upendras at hotmail.com> wrote:
> Hi Daniel,
>
> sorry for late response ...
> here is the result
>
> <HOST>
> <ID>4</ID>
> <NAME>obelix20</NAME>
> <STATE>2</STATE>
> <IM_MAD>im_xen</IM_MAD>
> <VM_MAD>vmm_xen</VM_MAD>
> <TM_MAD>tm_ssh</TM_MAD>
> <LAST_MON_TIME>1302289702</LAST_MON_TIME>
> <CLUSTER>cluster1</CLUSTER>
> <HOST_SHARE>
> <HID>4</HID>
> <DISK_USAGE>0</DISK_USAGE>
> <MEM_USAGE>0</MEM_USAGE>
> <CPU_USAGE>0</CPU_USAGE>
> <MAX_DISK>0</MAX_DISK>
> <MAX_MEM>4193280</MAX_MEM>
> <MAX_CPU>400</MAX_CPU>
> <FREE_DISK>0</FREE_DISK>
> <FREE_MEM>3091456</FREE_MEM>
> <FREE_CPU>399</FREE_CPU>
> <USED_DISK>0</USED_DISK>
> <USED_MEM>1101824</USED_MEM>
> <USED_CPU>1</USED_CPU>
> <RUNNING_VMS>0</RUNNING_VMS>
> </HOST_SHARE>
> <TEMPLATE>
> <ARCH><![CDATA[x86_64]]></ARCH>
> <CPUSPEED><![CDATA[2133]]></CPUSPEED>
> <FREECPU><![CDATA[399]]></FREECPU>
> <FREEMEMORY><![CDATA[3091456]]></FREEMEMORY>
> <HOSTNAME><![CDATA[obelix20.local]]></HOSTNAME>
> <HYPERVISOR><![CDATA[xen]]></HYPERVISOR>
> <MODELNAME><![CDATA[Intel(R) Xeon(R) CPU X3210 @ 2.13GHz]]></MODELNAME>
> <NETRX><![CDATA[1784244]]></NETRX>
> <NETTX><![CDATA[215582]]></NETTX>
> <TOTALCPU><![CDATA[400]]></TOTALCPU>
> <TOTALMEMORY><![CDATA[4193280]]></TOTALMEMORY>
> <USEDCPU><![CDATA[1]]></USEDCPU>
> <USEDMEMORY><![CDATA[1101824]]></USEDMEMORY>
> </TEMPLATE>
> </HOST>
>
>
> thanks,
> -upendra
>
>> From: dmolina at opennebula.org
>> Date: Tue, 5 Apr 2011 11:44:42 +0200
>> Subject: Re: [one-users] VM creation stuck in "pending" state
>> To: upendras at hotmail.com
>> CC: users at lists.opennebula.org
>>
>> Hi Upendra,
>>
>> Would you mind to send us the output of:
>> onehost show 4 -x
>>
>> Regards
>>
>> On 4 April 2011 15:58, Daniel Molina <dmolina at opennebula.org> wrote:
>> > Hi,
>> >
>> > Would you mind to try changing the Requirements statement to:
>> > REQUIREMENTS = "HOSTNAME=obelix20"
>> >
>> > Regards
>> >
>> > On 2 April 2011 20:56, Upendra Sharma <upendras at hotmail.com> wrote:
>> >> Hi Tino,
>> >>
>> >> something similar is happening to me as well.
>> >>
>> >> the VM template looks is shown below.
>> >>
>> >> ==== vm template ==================
>> >> NAME = TPCW-L
>> >> CPU = 1
>> >> MEMORY = 2000
>> >> REQUIREMENTS = "HOSTNAME=\"obelix20\""
>> >> RANK = FREECPU
>> >> OS = [ bootloader=/usr/bin/pygrub ]
>> >> DISK = [
>> >> source = "disk-vm1.img",
>> >> target = "xvda",
>> >> readonly = "no" ]
>> >> DISK = [
>> >> source = "disk-tpcw-db.img",
>> >> target = "xvda5",
>> >> readonly = "no" ]
>> >> NIC = [ NETWORK = "Public VLAN" ]
>> >> RAW = [
>> >> type = "xen",
>> >> data = "vcpus=1"
>> >> ]
>> >> ==============================
>> >>
>> >>
>> >>
>> >>
>> >> The main problem is this: my vm-template has a specific REQUIREMENTS ..
>> >> i.e.
>> >> HOSTNAME. That particular host has a no VMs running on it and a 3 G of
>> >> RAM
>> >> free on it. The list of hosts on the cluster are:
>> >>
>> >>
>> >>
>> >>
>> >> $ onehost list
>> >> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM
>> >> FMEM
>> >> STAT
>> >> 4 obelix20 cluster1 0 400 399 400
>> >> 4G 2.9G on
>> >>
>> >> the machine simply sits on the pending state.
>> >>
>> >> When I comment out the REQUIREMENTS line, it works fine and schedules
>> >> it on
>> >> one of the machines.
>> >>
>> >> I could not find a reason in any of the logs to find the reason.
>> >>
>> >>
>> >>
>> >> thanks,
>> >> -upendra
>> >>
>> >>> From: tinova at opennebula.org
>> >>> Date: Fri, 1 Apr 2011 15:01:42 +0100
>> >>> To: zashah at pdc.kth.se
>> >>> CC: users at lists.opennebula.org
>> >>> Subject: Re: [one-users] VM creation stuck in "pending" state
>> >>>
>> >>> Hi,
>> >>>
>> >>> Any REQUIREMENT section in the VM templates?
>> >>>
>> >>> Regards,
>> >>>
>> >>> -Tino
>> >>>
>> >>> --
>> >>> Constantino Vázquez Blanco, MSc
>> >>> OpenNebula Major Contributor
>> >>> www.OpenNebula.org | @tinova79
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Apr 1, 2011 at 1:38 PM, Zeeshan Ali Shah <zashah at pdc.kth.se>
>> >>> wrote:
>> >>> > in Our case they are monitorized and are not in error state as shown
>> >>> > in
>> >>> > one
>> >>> > host list . neither the memory cpu requirement are exhausted ..
>> >>> > any other hint ?
>> >>> > it was working fine after that I launched 5vm and it stucked
>> >>> > (Although)
>> >>> > I
>> >>> > have 32 cores with 160GB RAM left. but later i deleted vms
>> >>> > restarted
>> >>> > ONEd
>> >>> > and SCHED:
>> >>> > even after that when no vms left the new vms in pending state. I
>> >>> > had
>> >>> > to
>> >>> > use manual one vm deploy everytime..
>> >>> > Zeeshan
>> >>> > On Fri, Apr 1, 2011 at 1:22 PM, Tino Vazquez <tinova79 at gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Hi,
>> >>> >>
>> >>> >> Please take a look at [1].
>> >>> >>
>> >>> >> Regards,
>> >>> >>
>> >>> >> -Tino
>> >>> >>
>> >>> >> [1]
>> >>> >>
>> >>> >>
>> >>> >> http://opennebula.org/documentation:community:faq#my_machine_stays_in_pending_state_what_can_i_do
>> >>> >>
>> >>> >> --
>> >>> >> Constantino Vázquez Blanco | dsa-research.org/tinova
>> >>> >> Virtualization Technology Engineer / Researcher
>> >>> >> OpenNebula Toolkit | opennebula.org
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Fri, Apr 1, 2011 at 11:59 AM, Zeeshan Ali Shah
>> >>> >> <zashah at pdc.kth.se>
>> >>> >> wrote:
>> >>> >> > Happen to me as well , I can manually deploy, but by default it
>> >>> >> > is
>> >>> >> > stuck
>> >>> >> > in
>> >>> >> > Pending state forever .. I restarted SCHED as well. but same ..
>> >>> >> > any hint ?
>> >>> >> >
>> >>> >> > Zeeshan
>> >>> >> >
>> >>> >> > On Sun, Mar 27, 2011 at 5:34 PM, Héctor Sanjuán
>> >>> >> > <hsanjuan at opennebula.org>
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> Hi,
>> >>> >> >>
>> >>> >> >> make sure there is a host available to receive the VM. Have you
>> >>> >> >> tried
>> >>> >> >> to
>> >>> >> >> manually deploy it by:
>> >>> >> >>
>> >>> >> >> $ onevm deploy vmid hostid
>> >>> >> >>
>> >>> >> >> Maybe the logs will offer more information then.
>> >>> >> >>
>> >>> >> >> Héctor
>> >>> >> >>
>> >>> >> >> El 27/03/11 17:24, Madhurranjan Mohaan escribió:
>> >>> >> >> > Hi All,
>> >>> >> >> >
>> >>> >> >> > I am unable to create VMs any further because they are stuck
>> >>> >> >> > in
>> >>> >> >> > pending
>> >>> >> >> > state.
>> >>> >> >> >
>> >>> >> >> > onevm list
>> >>> >> >> > 39 oneadmin vm-ex pend 0 0K 00
>> >>> >> >> > 00:07:44
>> >>> >> >> >
>> >>> >> >> > The logs don't seem to get anything about this. I restarted
>> >>> >> >> > after
>> >>> >> >> > backing up the logs , on all machines but the result is the
>> >>> >> >> > same .
>> >>> >> >> > I
>> >>> >> >> > keep getting this message but nothing more. Any suggestions ?
>> >>> >> >> >
>> >>> >> >> > Sun Mar 27 20:49:38 2011 [ReM][D]: VirtualMachinePoolInfo
>> >>> >> >> > method
>> >>> >> >> > invoked
>> >>> >> >> > Sun Mar 27 20:49:40 2011 [ReM][D]: VirtualMachinePoolInfo
>> >>> >> >> > method
>> >>> >> >> > invoked
>> >>> >> >> > Sun Mar 27 20:49:42 2011 [ReM][D]: HostPoolInfo method invoked
>> >>> >> >> > Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo
>> >>> >> >> > method
>> >>> >> >> > invoked
>> >>> >> >> > Sun Mar 27 20:49:42 2011 [ReM][D]: VirtualMachinePoolInfo
>> >>> >> >> > method
>> >>> >> >> > invoked
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > My vm-template is as follows:
>> >>> >> >> > NAME = vm-ex
>> >>> >> >> >
>> >>> >> >> > CPU = 1
>> >>> >> >> > MEMORY = 256
>> >>> >> >> >
>> >>> >> >> > DISK = [
>> >>> >> >> > image = "Frame OS installation" ]
>> >>> >> >> >
>> >>> >> >> > NIC = [ network = "Test-Fixed" ]
>> >>> >> >> >
>> >>> >> >> > GRAPHICS = [
>> >>> >> >> > type = "vnc",
>> >>> >> >> > listen = "localhost",
>> >>> >> >> > port = "5902" ]
>> >>> >> >> >
>> >>> >> >> > CONTEXT = [
>> >>> >> >> > HOSTNAME = "ABC
>> >>> >> >> > files = "/srv/cloud/one/vm-template-2/init.sh" ]
>> >>> >> >> >
>> >>> >> >> > thanks
>> >>> >> >> >
>> >>> >> >> > Ranjan
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > _______________________________________________
>> >>> >> >> > Users mailing list
>> >>> >> >> > Users at lists.opennebula.org
>> >>> >> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> --
>> >>> >> >> Héctor Sanjuan
>> >>> >> >> OpenNebula.org
>> >>> >> >> _______________________________________________
>> >>> >> >> Users mailing list
>> >>> >> >> Users at lists.opennebula.org
>> >>> >> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > --
>> >>> >> >
>> >>> >> > --
>> >>> >> > Regards
>> >>> >> >
>> >>> >> > Zeeshan Ali Shah
>> >>> >> > System Administrator
>> >>> >> > PDC-Center for High Performance Computing
>> >>> >> > KTH-Royal Institute of Technology , Sweden
>> >>> >> >
>> >>> >> > +46 8 790 9115
>> >>> >> >
>> >>> >> > _______________________________________________
>> >>> >> > Users mailing list
>> >>> >> > Users at lists.opennebula.org
>> >>> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>> >> >
>> >>> >> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> >
>> >>> > --
>> >>> > Regards
>> >>> >
>> >>> > Zeeshan Ali Shah
>> >>> > System Administrator
>> >>> > PDC-Center for High Performance Computing
>> >>> > KTH-Royal Institute of Technology , Sweden
>> >>> >
>> >>> > +46 8 790 9115
>> >>> >
>> >>> _______________________________________________
>> >>> Users mailing list
>> >>> Users at lists.opennebula.org
>> >>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>
>> >> _______________________________________________
>> >> Users mailing list
>> >> Users at lists.opennebula.org
>> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Daniel Molina, Cloud Technology Engineer/Researcher
>> > Major Contributor
>> > OpenNebula - The Open Source Toolkit for Cloud Computing
>> > www.OpenNebula.org | dmolina at opennebula.org
>> >
>>
>>
>>
>> --
>> Daniel Molina, Cloud Technology Engineer/Researcher
>> Major Contributor
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org | dmolina at opennebula.org
>
--
Daniel Molina, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | dmolina at opennebula.org
More information about the Users
mailing list