NEC Storage does not support storage assisted migration and retype
against in-use volumes. In that cases, migrate_volume() and
retype() in NEC driver should return False to try host-assisted
migration or retype. However, the driver currently raises an
exception and the operation fails.
This patch fixes migrate_volume() and retype() to return False without
raising an exception.
Change-Id: I9ceadc200e40126cf121d74d3996e511ba3f66df
Closes-Bug: #1848689
(cherry picked from commit 8cc095d1d059fbb4db35c4ef7b2fac82260dd930)
Reviewed: https:/ /review. opendev. org/708540 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=d08d32914d8 a2cfa3cf1d941ec f547ef1ace9875
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit d08d32914d8a2cf a3cf1d941ecf547 ef1ace9875
Author: Naoki Saito <email address hidden>
Date: Fri Oct 18 18:42:34 2019 +0900
NEC driver: fix migrate/retype an in-use volume
NEC Storage does not support storage assisted migration and retype
against in-use volumes. In that cases, migrate_volume() and
retype() in NEC driver should return False to try host-assisted
migration or retype. However, the driver currently raises an
exception and the operation fails.
This patch fixes migrate_volume() and retype() to return False without
raising an exception.
Change-Id: I9ceadc200e4012 6cf121d74d3996e 511ba3f66df 4db35c4ef7b2fac 82260dd930)
Closes-Bug: #1848689
(cherry picked from commit 8cc095d1d059fbb