Merge "[Pure Storage] Fix CG cloning crash when very long volume names"

This commit is contained in:
Zuul 2021-07-19 19:40:44 +00:00 committed by Gerrit Code Review
commit 81f2aaeea9
2 changed files with 9 additions and 2 deletions

View File

@ -1804,9 +1804,9 @@ class PureBaseVolumeDriver(san.SanDriver):
elif snapshot.cgsnapshot:
group_snap = snapshot.cgsnapshot
pg_vol_snap_name = "%(group_snap)s.%(volume_name)s-cinder" % {
pg_vol_snap_name = "%(group_snap)s.%(volume_name)s" % {
'group_snap': self._get_pgroup_snap_name(group_snap),
'volume_name': snapshot.volume_name
'volume_name': self._get_vol_name(snapshot.volume)
}
return pg_vol_snap_name

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Pure Storage FlashArray driver `bug #1936663
<https://bugs.launchpad.net/cinder/+bug/1936663>`_: Fixes issue where
cloning a consistency group containing volumes with very long names
causes a crash - Required for PowerVC support