Migrate volume raises ObjectActionError if volume is created using image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Michal Dulko |
Bug Description
Steps to reproduce:
1. Create volume using image.
$ cinder create 1 --name <vol_name> --image <image_name or id>
2. Check "os-vol-
$ cinder show <volume_id>
3. Try to migrate on different host. If volume is created on host-1, try to migrate it on host-2.
$ cinder migrate <volume_id> <host-2>
4. Return following response to the user.
Request to migrate volume <Volume: b5e28051-
But raises following error in c-vol logs at source node. In this case the volume's "Migration Status" remains "starting" and we are not able to delete that volume any more.
2016-01-27 22:55:12.640 ERROR oslo_messaging.
sage handling: Object action save failed because: glance_metadata changed
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
2016-01-27 22:55:12.640 TRACE oslo_messaging.
Affects: lvm and nfs drivers.
summary: |
- Migrate volume raise ObjectActionError if volume is created using image + Migrate volume raises ObjectActionError if volume is created using image |
Changed in cinder: | |
assignee: | nobody → Ankit Agrawal (ankitagrawal) |
Changed in cinder: | |
status: | In Progress → Invalid |
Changed in cinder: | |
status: | Invalid → In Progress |
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
milestone: | none → mitaka-rc1 |
Changed in cinder: | |
assignee: | Szymon Borkowski (szymon-borkowski) → Michal Dulko (michal-dulko-f) |
>>In this case the volume's "Migration Status" remains "starting" and we are not able to delete that volume any more.
Just a question. Can you change the status of volume which was failed to migrate volume using "cinder reset-state --reset- migration- status" ?