[one-users] VM creation stuck in "pending" state

Upendra Sharma upendras at hotmail.com
Sat Apr 2 11:56:11 PDT 2011


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

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110402/3d85ccd9/attachment-0002.htm>


More information about the Users mailing list