Migration of attached volumes fails [closed]

asked 2017-11-24 10:05:27 -0500

woltjert gravatar image

updated 2017-12-13 14:08:30 -0500

I have two storage pools on shared storage. When I try to migrate a volume with cinder from one pool to another, everything works as expected; unless the volume is attached. If I try to migrate an attached volume: It creates the new volume on the 2nd pool, spits out a large error in the logs, and then deletes the volume from the 2nd pool. This is the error I am seeing:

2017-12-13 09:44:29.526 2171 INFO cinder.volume.flows.manager.create_volume [req-e53bd700-d327-4787-a7af-cce4b8f955f4 0f2400d4b85341dea4481382e49eab41 0bc21ce6de3f4870b0f4f68148956053 - default default] Volume ed416399-f356-4d65-9b6b-c4bf2c4efe6d: being created as raw with specification: {'status': u'creating', 'volume_size': 10, 'volume_name': 'volume-ed416399-f356-4d65-9b6b-c4bf2c4efe6d'}
2017-12-13 09:44:29.917 2171 INFO cinder.volume.flows.manager.create_volume [req-e53bd700-d327-4787-a7af-cce4b8f955f4 0f2400d4b85341dea4481382e49eab41 0bc21ce6de3f4870b0f4f68148956053 - default default] Volume volume-ed416399-f356-4d65-9b6b-c4bf2c4efe6d (ed416399-f356-4d65-9b6b-c4bf2c4efe6d): created successfully
2017-12-13 09:44:29.925 2171 INFO cinder.volume.manager [req-e53bd700-d327-4787-a7af-cce4b8f955f4 0f2400d4b85341dea4481382e49eab41 0bc21ce6de3f4870b0f4f68148956053 - default default] Created volume successfully.
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager [req-e53bd700-d327-4787-a7af-cce4b8f955f4 0f2400d4b85341dea4481382e49eab41 0bc21ce6de3f4870b0f4f68148956053 - default default] Failed to copy volume dc06f100-af7f-4124-b4f6-8f1a7e6a95a4 to ed416399-f356-4d65-9b6b-c4bf2c4efe6d
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager Traceback (most recent call last):
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1788, in _migrate_volume_generic
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     new_volume.id)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/compute/nova.py", line 181, in update_server_volume
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     new_volume_id)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/novaclient/v2/volumes.py", line 68, in update_server_volume
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     body, "volumeAttachment")
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 370, in _update
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     resp, body = self.api.client.put(url, body=body)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 196, in put
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     return self.request(url, 'PUT', **kwargs)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     **kwargs)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 344, in request
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 112, in request
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager     return self.session.request(url, method, **kwargs)
2017-12-13 09:44:30.678 2256 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/positional ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by woltjert
close date 2018-03-08 07:23:45.840954