Ask Your Question
0

Instance fails to launch when image is boot source

asked 2017-05-10 07:07:30 -0500

brotherchris gravatar image

updated 2017-05-10 11:52:28 -0500

Bernd Bausch gravatar image

Hello,

When I try to create an instance and "select boot source" is set to "image". The instance create will fail. I turned on debug and have included the /var/log/nova/nova-compute.log from the nova-compute-kvm node below. In the gui the red box that comes states "after 3 retries" it failed with this error "TypeError: Argument must be bytes or unicode, got 'NoneType'".

I am running Ubuntu 16.04 and using the landscape installer version of openstack. This is the Ocata release with juju AND maas 2.0. I am able to create instances if I select "image" as my boot source and do not create a new volume, then everything works fine. So I am guess it's a time out with creating the volume from the image. I tried adding block_device_allocate_retries=600 and block_device_allocate_retries_interval=1 to my nova.conf file via JUJU, but it doesn't seem to correct or change the error. Any help is greatly appreciated.

2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [req-2060beed-8443-43d8-b831-13b7e952006e 8ff12d8b313b47af9c7236302e780a56 9f9cda6de6f0495dbc25637e724fc696 - - -] [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3] Instance failed to spawn
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3] Traceback (most recent call last):
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2125, in _build_resources
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     yield resources
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1930, in _build_and_run_instance
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     block_device_info=block_device_info)
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2693, in spawn
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     block_device_info=block_device_info)
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4884, in _get_guest_xml
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     xml = conf.to_xml()
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/config.py", line 77, in to_xml
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     root = self.format_dom()
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/config.py", line 2161, in format_dom
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     self._format_devices(root)
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/config.py", line 2119, in _format_devices
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3]     devices.append(dev.format_dom())
2017-05-09 00:37:38.315 188928 ERROR nova.compute.manager [instance: c6546c92-7d38-489e-b78a-f89dc1e155a3 ...
(more)
edit retag flag offensive close merge delete

Comments

I am having the same problem and I don't know where have to find out. May I know how did you get nova.conf via Juju?

Ekalaya gravatar imageEkalaya ( 2017-05-10 09:40:27 -0500 )edit

I think that this code builds an XML file that describes the volume that will be attached to the instance. Libvirt uses XML to describe VMs. This XML build fails for some reason. Could be a bug?

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-10 11:59:00 -0500 )edit

I see a very similar, or identical, stack trace in a Red Hat case, https://access.redhat.com/solutions/2.... Here is the resolution:

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-10 12:22:27 -0500 )edit

"Misspelling of the rbd_secret_uuid parameter in cinder.conf. When this parameter is missing on cinder.conf (or misspelled), the nova service tries to read it from its nova.conf and if it doesn't exist a stacktrace is returned"

Bernd Bausch gravatar imageBernd Bausch ( 2017-05-10 12:23:04 -0500 )edit
1

@Ekalaya Have a look at https://www.youtube.com/watch?v=WjEVsum0Qcc (https://www.youtube.com/watch?v=WjEVs...) on how to get into JUJU.

brotherchris gravatar imagebrotherchris ( 2017-05-11 16:52:59 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-12 10:19:57 -0500

Ekalaya gravatar image

updated 2017-05-12 10:21:45 -0500

@brotherchris regarding to https://help.landscape.canonical.com/LDS/ReleaseNotes17.03 (https://help.landscape.canonical.com/...) your problem is one of the known-issues. I solved this issue by creating new image and launching instance with that new image. You have to uncheck 'create new volume' when launching the instance (ref: https://bugs.launchpad.net/landscape/+bug/1644923 (https://bugs.launchpad.net/landscape/...))

edit flag offensive delete link more

Comments

Thanks, I will take this as a work around for now.

brotherchris gravatar imagebrotherchris ( 2017-05-12 14:38:48 -0500 )edit

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

3 followers

Stats

Asked: 2017-05-10 07:07:30 -0500

Seen: 259 times

Last updated: May 12