Currently the new Attachment calls in Cinder aren't checking the status
of the volume when create or update is called. This isn't good because
it can mask problems with attach processes on the volume.
This patch adds an explicit check of the volume status in both
attachment_create and attachment_update, and if the volume status is in
any error state, the call will result in an InvalidVolume exception.
This is an API change to fix a bug, and is not microversioned.
Closes-Bug: #1805762
Change-Id: I9b32c4db93879dda6490b244643de1a18bddbbf5
(cherry picked from commit 7d7dc2659d1ad07ef77892306827ca4a662e315d)
Reviewed: https:/ /review. openstack. org/646043 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=b9a9492baca 004494dd099e2e2 d0180cc8483b28
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit b9a9492baca0044 94dd099e2e2d018 0cc8483b28
Author: j-griffith <email address hidden>
Date: Thu Nov 29 18:07:58 2018 +0000
Check Volume Status on attahcment create/update
Currently the new Attachment calls in Cinder aren't checking the status
of the volume when create or update is called. This isn't good because
it can mask problems with attach processes on the volume.
This patch adds an explicit check of the volume status in both create and attachment_update, and if the volume status is in
attachment_
any error state, the call will result in an InvalidVolume exception.
This is an API change to fix a bug, and is not microversioned.
Closes-Bug: #1805762
Change-Id: I9b32c4db93879d da6490b244643de 1a18bddbbf5 ef77892306827ca 4a662e315d)
(cherry picked from commit 7d7dc2659d1ad07