Ask Your Question
0

Openstack VM Created with Error Status

asked 2015-03-16 04:35:24 -0500

RkReddy gravatar image

updated 2015-03-16 07:29:30 -0500

Hi,

Using JCloud API I have written the code to create the VM. Th steps as follows. 1. I created custom Flavor 2. By passing the ID of the flavour I created VM Server. But VM was created with the Error status.

Please find below the complete Error stack from nova logs:

2015-03-16 04:05:32.632 1897 ERROR nova.compute.manager [req-eb14e9f3-3ce1-4907-8b0a-b94e48e466db d5b5edb66d44434096e29c64ffed2dbf 15b801a553c947108b2c043880004465] [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb] Instance failed to spawn
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb] Traceback (most recent call last):
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1407, in _spawn
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     block_device_info)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2070, in spawn
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     block_device_info, context=context)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3205, in _create_domain_and_network
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     domain = self._create_domain(xml, instance=instance, power_on=power_on)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3148, in _create_domain
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     domain.XMLDesc(0))
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3143, in _create_domain
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     domain.createWithFlags(launch_flags)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     rv = execute(f,*args,**kwargs)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     rv = meth(*args,**kwargs)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 728, in createWithFlags
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2015-03-16 04:05:32.632 1897 TRACE nova.compute.manager [instance: 5250f2a8-4746-495c-aa2c-1dfc354147fb] libvirtError: Unable to read from monitor: Connection reset by peer
2015-03-16 04:05:32.632 1897 ...
(more)
edit retag flag offensive close merge delete

Comments

Ensure nova services are active and running.

Praveen N gravatar imagePraveen N ( 2015-03-16 08:54:35 -0500 )edit

Where is you Nova VNC running? it's known issue of kvm related to the vnc.

bishoy gravatar imagebishoy ( 2015-03-16 12:55:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-16 07:43:46 -0500

As a first note

  1. Check you nova services (All should be up and running)
  2. Your image should be compatible with the hypervisor type

check /etc/nova/nova.conf and see the value of libvirt_type try setting it to qemu. Then try spinning VM.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-16 04:35:24 -0500

Seen: 858 times

Last updated: Mar 16 '15