nova volume-attach gives no error if attach fails

Bug #1006968 reported by Vasyl Khomenko
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Quality Assurance
New
Undecided
Unassigned

Bug Description

I try to attach volume. it fails but no error given. Yes, there is error in log.

$nova volume-list
+----+-----------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+-----------+--------------+------+-------------+-------------+
| 2 | available | None | 1 | None | |
+----+-----------+--------------+------+-------------+-------------+

$nova volume-attach f9ac80e3-8c44-4d06-8feb-78c5bea466f8 2 /dev/vdb

$nova volume-list
+----+-----------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+----+-----------+--------------+------+-------------+-------------+
| 2 | available | None | 1 | None | |
+----+-----------+--------------+------+-------------+-------------+

# tail -f /var/log/nova/nova-compute.log
2012-05-31 11:15:20 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-05-31 11:15:20 TRACE nova.rpc.amqp self.gen.next()
2012-05-31 11:15:20 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1721, in attach_volume
2012-05-31 11:15:20 TRACE nova.rpc.amqp mountpoint)
2012-05-31 11:15:20 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2012-05-31 11:15:20 TRACE nova.rpc.amqp return f(*args, **kw)
2012-05-31 11:15:20 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 542, in attach_volume
2012-05-31 11:15:20 TRACE nova.rpc.amqp raise exception.DeviceIsBusy(device=mount_device)
2012-05-31 11:15:20 TRACE nova.rpc.amqp DeviceIsBusy: The supplied device (vdb) is busy.
2012-05-31 11:15:20 TRACE nova.rpc.amqp

Revision history for this message
Koji (kj-tanaka) wrote :

What will happen when you try vdc instead of vdb? vdb can probably exist on your instance (maybe with 20GB).

Thanks.

Revision history for this message
Koaps (koaps) wrote :

I am getting the same thing except I'm using vdc.

2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] Traceback (most recent call last):
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] File "/usr/lib/python2.6/site-packages/nova-2013.1-py2.6.egg/nova/compute/manager.py", line 2017, in _attach_volume
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] mountpoint)
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] File "/usr/lib/python2.6/site-packages/nova-2013.1-py2.6.egg/nova/exception.py", line 117, in wrapped
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] temp_level, payload)
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] self.gen.next()
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] File "/usr/lib/python2.6/site-packages/nova-2013.1-py2.6.egg/nova/exception.py", line 92, in wrapped
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] return f(*args, **kw)
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] File "/usr/lib/python2.6/site-packages/nova-2013.1-py2.6.egg/nova/virt/libvirt/driver.py", line 660, in attach_volume
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] raise exception.DeviceIsBusy(device=mount_device)
2012-10-14 00:33:47 TRACE nova.compute.manager [instance: 678608e9-6e1f-4309-ac59-1c77a490fdd0] DeviceIsBusy: The supplied device (vdc) is busy.

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.