File "/home/vladikr/devel/openstack/nova/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
**args)
File "/home/vladikr/devel/openstack/nova/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
result = getattr(proxyobj, method)(ctxt, **kwargs)
File "/home/vladikr/devel/openstack/nova/nova/exception.py", line 90, in wrapped
payload)
File "/home/vladikr/devel/openstack/nova/nova/exception.py", line 73, in wrapped
return f(self, context, *args, **kw)
File "/home/vladikr/devel/openstack/nova/nova/compute/manager.py", line 244, in decorated_function
pass
File "/home/vladikr/devel/openstack/nova/nova/compute/manager.py", line 230, in decorated_function
return function(self, context, *args, **kwargs)
File "/home/vladikr/devel/openstack/nova/nova/compute/manager.py", line 272, in decorated_function
e, sys.exc_info())
File "/home/vladikr/devel/openstack/nova/nova/compute/manager.py", line 259, in decorated_function
return function(self, context, *args, **kwargs)
File "/home/vladikr/devel/openstack/nova/nova/compute/manager.py", line 3835, in swap_volume
error=True)
File "/home/vladikr/devel/openstack/nova/nova/compute/manager.py", line 3820, in swap_volume
self.driver.swap_volume(old_cinfo, new_cinfo, instance, mountpoint)
File "/home/vladikr/devel/openstack/nova/nova/virt/libvirt/driver.py", line 1174, in swap_volume
self._swap_volume(virt_dom, disk_dev, conf.source_path)
File "/home/vladikr/devel/openstack/nova/nova/virt/libvirt/driver.py", line 1149, in _swap_volume
raise exception.NovaException(msg)
NovaException: Volumes swap failed
[vladikr@localhost devstack]$ nova volume-update test_swap 21f0808c-53f0-4eaf-805f-1fef5d4d3f89 b30af6f7-d957-437e-be9d-e7e70e9426d1
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-86547e4f-789d-47d7-b22e-84a10c8f55d9)
[vladikr@localhost devstack]$ cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
| 21f0808c-53f0-4eaf-805f-1fef5d4d3f89 | in-use | | 2 | None | True | bd3912c8-6c7f-4297-84b3-3fde73a51297 |
| b30af6f7-d957-437e-be9d-e7e70e9426d1 | available | | 2 | None | True | |
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
[vladikr@localhost devstack]$ nova list ------- ------- ------- ------- ----+-- ------- --+---- ----+-- ------- ---+--- ------- ---+--- ------- ------- --+ ------- ------- ------- ------- ----+-- ------- --+---- ----+-- ------- ---+--- ------- ---+--- ------- ------- --+ c6d8-4992- a6c6-bbf2da3aef a9 | nhljkdsf | ACTIVE | deleting | Running | private=10.0.0.31 | 6c7f-4297- 84b3-3fde73a512 97 | test_swap | ACTIVE | None | Running | private=10.0.0.45 | ------- ------- ------- ------- ----+-- ------- --+---- ----+-- ------- ---+--- ------- ---+--- ------- ------- --+ ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- +------ ------- ------- ------- ------- ----+ 53f0-4eaf- 805f-1fef5d4d3f 89 | in-use | | 2 | None | True | bd3912c8- 6c7f-4297- 84b3-3fde73a512 97 | d957-437e- be9d-e7e70e9426 d1 | available | | 2 | None | True | | ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- +------ ------- ------- ------- ------- ----+
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 5da0f8be-
| bd3912c8-
+------
[vladikr@localhost devstack]$ cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 21f0808c-
| b30af6f7-
+------
From the log:
2013-10-16 11:13:16.409 ERROR nova.api.openstack [req-86547e4f- 789d-47d7- b22e-84a10c8f55 d9 admin admin] Caught error: Volumes swap failed
Traceback (most recent call last):
File "/home/ vladikr/ devel/openstack /nova/nova/ openstack/ common/ rpc/amqp. py", line 461, in _process_data
**args)
File "/home/ vladikr/ devel/openstack /nova/nova/ openstack/ common/ rpc/dispatcher. py", line 172, in dispatch
result = getattr(proxyobj, method)(ctxt, **kwargs)
File "/home/ vladikr/ devel/openstack /nova/nova/ exception. py", line 90, in wrapped
payload)
File "/home/ vladikr/ devel/openstack /nova/nova/ exception. py", line 73, in wrapped
return f(self, context, *args, **kw)
File "/home/ vladikr/ devel/openstack /nova/nova/ compute/ manager. py", line 244, in decorated_function
pass
File "/home/ vladikr/ devel/openstack /nova/nova/ compute/ manager. py", line 230, in decorated_function
return function(self, context, *args, **kwargs)
File "/home/ vladikr/ devel/openstack /nova/nova/ compute/ manager. py", line 272, in decorated_function
e, sys.exc_info())
File "/home/ vladikr/ devel/openstack /nova/nova/ compute/ manager. py", line 259, in decorated_function
return function(self, context, *args, **kwargs)
File "/home/ vladikr/ devel/openstack /nova/nova/ compute/ manager. py", line 3835, in swap_volume
error=True)
File "/home/ vladikr/ devel/openstack /nova/nova/ compute/ manager. py", line 3820, in swap_volume driver. swap_volume( old_cinfo, new_cinfo, instance, mountpoint)
self.
File "/home/ vladikr/ devel/openstack /nova/nova/ virt/libvirt/ driver. py", line 1174, in swap_volume _swap_volume( virt_dom, disk_dev, conf.source_path)
self.
File "/home/ vladikr/ devel/openstack /nova/nova/ virt/libvirt/ driver. py", line 1149, in _swap_volume NovaException( msg)
raise exception.
NovaException: Volumes swap failed
[vladikr@localhost devstack]$ nova volume-update test_swap 21f0808c- 53f0-4eaf- 805f-1fef5d4d3f 89 b30af6f7- d957-437e- be9d-e7e70e9426 d1 789d-47d7- b22e-84a10c8f55 d9) ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- +------ ------- ------- ------- ------- ----+ 53f0-4eaf- 805f-1fef5d4d3f 89 | in-use | | 2 | None | True | bd3912c8- 6c7f-4297- 84b3-3fde73a512 97 | d957-437e- be9d-e7e70e9426 d1 | available | | 2 | None | True | | ------- ------- ------- ------- ----+-- ------- --+---- ------- ---+--- ---+--- ------- ---+--- ------- +------ ------- ------- ------- ------- ----+
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-86547e4f-
[vladikr@localhost devstack]$ cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 21f0808c-
| b30af6f7-
+------