Comment 4 for bug 2021941

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/913816
Committed: https://opendev.org/openstack/cinder/commit/2360e80cd9a75da1eec91b9ee557451a4a7bb324
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 2360e80cd9a75da1eec91b9ee557451a4a7bb324
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
    Change-Id: I1f025542a2509e36919ece01b29064377dbbe189
    (cherry picked from commit 577e2ee108a5e3ec2b727928ee4e9c8b35331339)