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
Change-Id: I1f025542a2509e36919ece01b29064377dbbe189
(cherry picked from commit 577e2ee108a5e3ec2b727928ee4e9c8b35331339)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/913816 /opendev. org/openstack/ cinder/ commit/ 2360e80cd9a75da 1eec91b9ee55745 1a4a7bb324
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2024.1
commit 2360e80cd9a75da 1eec91b9ee55745 1a4a7bb324
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 c2b727928ee4e9c 8b35331339)
Change-Id: I1f025542a2509e
(cherry picked from commit 577e2ee108a5e3e