HPE 3par: Unable to create clone of replicated vol
Two possibilities of clone volume:
1] same size, online copy
Existing behaviour: start clone & return from function.
Error occur because clone is not yet complete and
code tries to create vol on secondary array.
2] size is different, offline copy
Existing behaviour: (i) create new replicated vol.
(ii) during clone operation below error occur:
Volume is involved in remote copy
(iii) Since clone operation fails, delete new replicated vol (as cleanup).
To overcome both possibilities, code changes are done.
For clone of replicated vol, create offline copy only.
Steps:
(i) Create new vol without replication.
(ii) Perform clone operation; wait till completion (offline copy).
(iii) Create vol on secondary array.
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/884594 /opendev. org/openstack/ cinder/ commit/ 577e2ee108a5e3e c2b727928ee4e9c 8b35331339
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 577e2ee108a5e3e c2b727928ee4e9c 8b35331339
Author: raghavendrat <email address hidden>
Date: Tue May 30 19:45:50 2023 +0000
HPE 3par: Unable to create clone of replicated vol
Two possibilities of clone volume:
1] same size, online copy
Existing behaviour: start clone & return from function.
Error occur because clone is not yet complete and
code tries to create vol on secondary array.
2] size is different, offline copy
Existing behaviour: (i) create new replicated vol.
(ii) during clone operation below error occur:
Volume is involved in remote copy
(iii) Since clone operation fails, delete new replicated vol (as cleanup).
To overcome both possibilities, code changes are done.
For clone of replicated vol, create offline copy only.
Steps:
(i) Create new vol without replication.
(ii) Perform clone operation; wait till completion (offline copy).
(iii) Create vol on secondary array.
Closes-Bug: #2021941 36919ece01b2906 4377dbbe189
Change-Id: I1f025542a2509e