can't launch instance using ceph without authentication

Bug #1348640 reported by cristi1979
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Unassigned

Bug Description

Instance fails when using ceph as a storage backend.

The main complain comes from "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 527.

Putting a print bedore "if self.auth_secret_type is not None:" shows that the code is hit twice, first with auth_secret_type=cepg, second time with auth_secret_type=None.

We fixed it in our side by commenting the entire if statement.

Stack trace:

2014-07-25 08:44:17.042 13642 ERROR nova.compute.manager [req-1c542f62-1f54-4515-8290-425a62354d95 43d9d5b6c6794f52ab17a90855200436 034f45eb9e24410db64f7c0c53110f02] [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] Instance failed to spawn
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] Traceback (most recent call last):
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1715, in _spawn
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] block_device_info)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2262, in spawn
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] write_to_disk=True)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3444, in to_xml
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] xml = conf.to_xml()
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 69, in to_xml
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] root = self.format_dom()
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1240, in format_dom
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] self._format_devices(root)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1217, in _format_devices
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] devices.append(dev.format_dom())
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 527, in format_dom
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] auth.set("username", self.auth_username)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "lxml.etree.pyx", line 713, in lxml.etree._Element.set (src/lxml/lxml.etree.c:39438)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "apihelpers.pxi", line 520, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:17627)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] File "apihelpers.pxi", line 1333, in lxml.etree._utf8 (src/lxml/lxml.etree.c:24601)
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] TypeError: Argument must be bytes or unicode, got 'NoneType'
2014-07-25 08:44:17.042 13642 TRACE nova.compute.manager [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40]
2014-07-25 08:44:17.097 13642 AUDIT nova.compute.manager [req-1c542f62-1f54-4515-8290-425a62354d95 43d9d5b6c6794f52ab17a90855200436 034f45eb9e24410db64f7c0c53110f02] [instance: b3e9b0ee-50d9-4579-9cc7-de36762b2e40] Terminating instance

Tags: libvirt
Tracy Jones (tjones-i)
tags: added: libvirt
Revision history for this message
Sean Dague (sdague) wrote :

Looks like a roadmap of synchronizing the code as listed in the bug is given

Changed in nova:
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → Low
Sean Dague (sdague)
Changed in nova:
status: Triaged → Confirmed
Sujitha (sujitha-neti)
Changed in nova:
assignee: nobody → Sujitha (sujitha-neti)
Revision history for this message
Sujitha (sujitha-neti) wrote :

I'm not able to reproduce the bug. I installed devstack with ceph as storage backend. Tried to create instance using nova boot. Its working as expected.

Sujitha (sujitha-neti)
Changed in nova:
assignee: Sujitha (sujitha-neti) → nobody
Revision history for this message
melanie witt (melwitt) wrote :

This bug is nearly 2 years old and in the latest comment #2 it was not able to be reproduced. Marking as Invalid

Changed in nova:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.