Ask Your Question
1

DeviceIsBusy: The supplied device (vdX) is busy.

asked 2013-11-14 23:38:35 -0600

bman gravatar image

Configuration: 1 Cinder node 1 Nova node

What Works: New Instances with a Volume at creation time.

What Doesn't Work: Assigning a new volume to an existing instance.

Details: The volume is created on Cinder node. The LUN is created on the Nova node but is torn down after the error.

==> nova/nova-compute.log <==
2013-11-14 21:35:55.616 1373 AUDIT nova.compute.manager [req-00ca8c59-aa6c-44e9-babd-e1131be07714 577f4d3bf2624f5cacfa5c668b6242e6 9b9ea8f523f0420cb6de4f6fd2a8782e] [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682] Attaching volume 8013d883-4553-445a-882c-52efe1f92f12 to /dev/vdc
2013-11-14 21:35:55.809 1373 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2013-11-14 21:35:57.266 1373 WARNING nova.virt.libvirt.volume [req-00ca8c59-aa6c-44e9-babd-e1131be07714 577f4d3bf2624f5cacfa5c668b6242e6 9b9ea8f523f0420cb6de4f6fd2a8782e] ISCSI volume not yet found at: vdc. Will rescan & retry.  Try number: 0

==> libvirt/libvirtd.log <==
2013-11-15 05:35:57.687+0000: 1757: info : virSecurityDACSetOwnership:255 : Setting DAC user and group on '/dev/disk/by-path/ip-192.168.152.138:3260-iscsi-iqn.2010-10.org.openstack:volume-8013d883-4553-445a-882c-52efe1f92f12-lun-1' to '107:111'
2013-11-15 05:35:57.690+0000: 1757: error : qemuMonitorTextAddDrive:2604 : operation failed: open disk image file failed
2013-11-15 05:35:57.690+0000: 1757: warning : virAuditSend:135 : Failed to send audit message virt=kvm resrc=disk reason=attach vm="instance-00000040" uuid=e50e8de7-c6da-4aa1-82a7-5f65958a0682 old-disk="?" new-disk="/dev/disk/by-path/ip-192.168.152.138:3260-iscsi-iqn.2010-10.org.openstack:volume-8013d883-4553-445a-882c-52efe1f92f12-lun-1": Operation not permitted
2013-11-15 05:35:58.095+0000: 1757: info : virSecurityDACRestoreSecurityFileLabel:299 : Restoring DAC user and group on '/dev/disk/by-path/ip-192.168.152.138:3260-iscsi-iqn.2010-10.org.openstack:volume-8013d883-4553-445a-882c-52efe1f92f12-lun-1'
2013-11-15 05:35:58.095+0000: 1757: info : virSecurityDACSetOwnership:255 : Setting DAC user and group on '/dev/sdb' to '0:0'

==> nova/nova-compute.log <==
2013-11-14 21:35:58.760 1373 ERROR nova.compute.manager [req-00ca8c59-aa6c-44e9-babd-e1131be07714 577f4d3bf2624f5cacfa5c668b6242e6 9b9ea8f523f0420cb6de4f6fd2a8782e] [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682] Failed to attach volume 8013d883-4553-445a-882c-52efe1f92f12 at /dev/vdc
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682] Traceback (most recent call last):
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 3669, in _attach_volume
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682]     encryption=encryption)
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1100, in attach_volume
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682]     raise exception.DeviceIsBusy(device=disk_dev)
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682] DeviceIsBusy: The supplied device (vdc) is busy.
2013-11-14 21:35:58.760 1373 TRACE nova.compute.manager [instance: e50e8de7-c6da-4aa1-82a7-5f65958a0682] 
2013-11-14 21:35:58.764 1373 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2013-11-14 21:35:59.034 1373 ERROR nova.openstack.common.rpc.amqp [req-00ca8c59-aa6c-44e9-babd-e1131be07714 577f4d3bf2624f5cacfa5c668b6242e6 9b9ea8f523f0420cb6de4f6fd2a8782e] Exception during message handling
2013-11-14 21:35:59.034 1373 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2013-11-14 21:35:59.034 1373 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
2013-11-14 21:35 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-15 18:27:13 -0600

bman gravatar image

Figured it out. libvirtd was having an issue with apparmor on Ubuntu 13.10. Uninstalled apparmor, rebooted and then I could get the volume mapped through.

edit flag offensive delete link more

Comments

Thanks! I'm trying it. Was facing the same issue. Will update here if it works

Rushi Agrawal gravatar imageRushi Agrawal ( 2013-12-09 03:37:02 -0600 )edit

Works! Thanks a TON! :)

Rushi Agrawal gravatar imageRushi Agrawal ( 2013-12-09 04:26:27 -0600 )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

1 follower

Stats

Asked: 2013-11-14 23:38:35 -0600

Seen: 1,536 times

Last updated: Nov 15 '13