Updates for volume attachments were handled in UpdateReplace manner,
which fails when in need to attach new volume to the same mount
(or attach the same volume to different mount on the same server,
or attaching the same volume to different server).
This patch makes all properties of VolumeAttachment
to be update_allowed, adds necessary handle_update logic
and fixes VolumeDetachTask to reliably detach old volume
so that new one can be immediately attached.
Reviewed: https:/ /review. openstack. org/72681 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=d2b9b90777a be073b59cd8a4a7 279f7dc3e18d00
Committed: https:/
Submitter: Jenkins
Branch: master
commit d2b9b90777abe07 3b59cd8a4a7279f 7dc3e18d00
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Mon Feb 3 16:04:06 2014 +0200
Add handle_update to VolumeAttachment
Updates for volume attachments were handled in UpdateReplace manner,
which fails when in need to attach new volume to the same mount
(or attach the same volume to different mount on the same server,
or attaching the same volume to different server).
This patch makes all properties of VolumeAttachment
to be update_allowed, adds necessary handle_update logic
and fixes VolumeDetachTask to reliably detach old volume
so that new one can be immediately attached.
Closes-Bug: #1269686 5f76e7f42771641 2a326ff5eef
Closes-Bug: #1251439
Change-Id: I0aee64036bf812