Merge "Hitachi: Fix to use correct pool on secondary storage"

This commit is contained in:
Zuul 2023-11-08 16:04:41 +00:00 committed by Gerrit Code Review
commit dc726266d0
2 changed files with 15 additions and 1 deletions

View File

@ -237,7 +237,15 @@ class HBSDREPLICATION(rest.HBSDREST):
for opt in opts:
name = opt.name.replace('hitachi_mirror_', 'hitachi_')
try:
setattr(conf, name, getattr(conf, opt.name))
if opt.name == 'hitachi_mirror_pool':
if conf.safe_get('hitachi_mirror_pool'):
name = 'hitachi_pools'
value = [getattr(conf, opt.name)]
else:
raise ValueError()
else:
value = getattr(conf, opt.name)
setattr(conf, name, value)
except Exception:
with excutils.save_and_reraise_exception():
self.rep_secondary.output_log(

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Hitachi driver `bug #2011810
<https://bugs.launchpad.net/cinder/+bug/2011810>`_: Fixed to use
correct pool number for secondary storage on GAD environment.