[library] Instance creation fails with NovaException: nbd unavailable: module not loaded

Bug #1337314 reported by Yuriy Yekovenko on 2014-07-03
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Medium
Fuel Library (Deprecated)

Bug Description

This bug was discovered in 4.1.1 version of Fuel.

1. Create text.txt file with some content encoded in Base64 and save it in user's directory on Controller node.
2. cd ~
3. run: nova boot --image ${IMAGE_ID} --flavor 1 --nic net-id=${NETWORK_ID} my_instance --file /text.txt=text.txt
4. Wait for instance to go to ERROR state
4. cd /var/log/nova-all.log. Here, the similar info will be displayed:

<182>Jul 3 12:13:46 node-3 nova-nova.scheduler.filter_scheduler INFO: Attempting to build 1 instance(s) uuids: [u'9b30207e-a609-41ef-b3c0-f9c843f703dd']
<179>Jul 3 12:13:46 node-3 nova-nova.scheduler.filter_scheduler ERROR: Error from last host: node-4.domain.tld (node node-4.domain.tld): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1044, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1427, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1424, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2084, in spawn\n admin_pass=admin_password)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2516, in _create_image\n instance=instance)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2510, in _create_image\n mandatory=(\'files\',))\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/disk/api.py", line 329, in inject_data\n fs.setup()\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/disk/vfs/localfs.py", line 84, in setup\n self.teardown()\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/disk/vfs/localfs.py", line 79, in setup\n raise exception.NovaException(mount.error)\n', u'NovaException: nbd unavailable: module not loaded\n']
<180>Jul 3 12:13:46 node-3 nova-nova.scheduler.driver WARNING: Setting instance to ERROR state.

Changed in fuel:
importance: Undecided → Medium
assignee: nobody → Fuel Library Team (fuel-library)
milestone: none → 4.1.2
Sergii Golovatiuk (sgolovatiuk) wrote :

This issue is specific to images you use.

Please specify

libvirt_inject_partition = -1 in /etc/nova/nova.conf

In this case libguestfs will be used.

Alternatively, you can specify the partition where you want to inject your data

libvirt_inject_partition = 1
or
libvirt_inject_partition = 2

Dmitry Ilyin (idv1985) on 2014-07-17
summary: - Instance creation fails with NovaException: nbd unavailable: module not
- loaded
+ [library] Instance creation fails with NovaException: nbd unavailable:
+ module not loaded
Anna Babich (ababich) wrote :

with libvirt_inject_partition = -1 (as well as with = 1 or = 2) in /etc/nova/nova.conf it has the same result:

... raise exception.NovaException(mount.error)\n', u'NovaException: nbd unavailable: module not loaded\n']
Jul 18 13:10:18 node-3 <180>nova-nova.scheduler.driver WARNING: Setting instance to ERROR state.

Changed in fuel:
status: New → Confirmed
Matthew Mosesohn (raytrac3r) wrote :

Unable to reproduce in 6.0, and 4.x series is no longer being actively developed.

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

Other bug subscribers