Files
cinder/releasenotes/notes/vnx-update-sg-in-cache-3ecb673727bea79b.yaml
Ryan Liang 187016c285 VNX: update sg in cache
When `destroy_empty_storage_group` is enabled, the sg will be deleted
after the last lun is detached from it. The issue is that the sg cache
isn't updated, which caused the failure of subsequent attaching volumes
to the same host because the sg in the cache will be used directly which
doesn't exist any more.

The fix is updating the sg with poll after deleting it. This doesn't
delete the sg from cache explicitly but makes sure the sg in cache with
latest status `not-exist`. Subsequent attaching will create the sg if it
is `not-exist`.

Closes-bug: #1817385
Change-Id: Ibb39879a77c97c6a5d885461e93116810d16b265
(cherry picked from commit eefd8302b3)
(cherry picked from commit 1f57f502c8)
(cherry picked from commit 29d42fa734)
(cherry picked from commit dcfc2f3d5a)
2019-03-27 17:14:35 +08:00

8 lines
244 B
YAML

---
fixes:
- |
Dell EMC VNX Driver: Fixes `bug 1817385
<https://bugs.launchpad.net/cinder/+bug/1817385>`__ to make sure the sg can
be created again after it was destroyed under `destroy_empty_storage_group`
setting to `True`.