If Cinder crashes during a migration or retype (where data is moved and
the operation can take a long time), the storage ends up with multiple
copies of the same volume which requires storage admin intervention.
This patch maintain a list of pending operations which is backed up in
admin metadata, and a periodic task reviews the list and removes volume
copies whose copy operation completed. When Cinder comes up, check the
admin metadata and rebuild the list.
Reviewed: https:/ /review. openstack. org/73523 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=4cac1bd3227 fd8b65744e75f0d f018fb34bcb1c1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4cac1bd3227fd8b 65744e75f0df018 fb34bcb1c1
Author: LarryLiu <email address hidden>
Date: Fri Feb 14 15:46:07 2014 +0800
Storwize/SVC: Change volume copy task to async
If Cinder crashes during a migration or retype (where data is moved and
the operation can take a long time), the storage ends up with multiple
copies of the same volume which requires storage admin intervention.
This patch maintain a list of pending operations which is backed up in
admin metadata, and a periodic task reviews the list and removes volume
copies whose copy operation completed. When Cinder comes up, check the
admin metadata and rebuild the list.
Change-Id: I6549712bb00839 96faced89c2207a 4c438ae953d
Closes-Bug: #1278035