← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1348640] [NEW] can't launch instance using ceph without authentication

 

Public bug reported:

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

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1348640

Title:
  can't launch instance using ceph without authentication

Status in OpenStack Compute (Nova):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1348640/+subscriptions


Follow ups

References