Libvirt create image in 'lxc' container throws UnboundLocalError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I ran a unit test to test the private method _create_image() in virt.libvir.
Traceback (most recent call last):
File "/home/
network_
File "/home/
File "/home/
UnboundLocalError: local variable 'device' referenced before assignment
-------
2011-09-19 09:39:43,535 DEBUG nova.utils [-] backend <module 'nova.db.
2011-09-19 09:39:43,669 DEBUG nova.utils [-] Attempting to grab semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=21143) inner /home/rohit/
2011-09-19 09:39:43,669 DEBUG nova.utils [-] backend <module 'nova.ipv6.rfc2462' from '/home/
2011-09-19 09:39:43,672 INFO nova.virt.
2011-09-19 09:39:43,673 INFO nova.virt.
2011-09-19 09:39:43,673 WARNING nova.virt.
2011-09-19 09:39:53,686 ERROR nova.compute.disk [-] Failed to mount filesystem: nbd device /dev/nbd15 did not show up
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
-------
Could it be that you ran out of available NBDs ? Could you try again on a fresh system and see if you reproduce ?