HPE 3par: Unable to create clone of replicated vol

Bug #2021941 reported by Raghavendra Tilay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Raghavendra Tilay

Bug Description

Issue:

Trying to create clone of replicated volume

1] If size of cloned volume is same as original volume,
below error is seen:
physical copy is not allowed to be added to remote copy group

2] If size of cloned volume is larger than original volume,
below error is seen:
Volume is involved in remote copy

Root cause/Analysis:

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).

Tags: drivers hpe
Changed in cinder:
assignee: nobody → Raghavendra Tilay (raghavendrat)
Changed in cinder:
status: New → In Progress
Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :
tags: added: drivers hpe
Changed in cinder:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/884594
Committed: https://opendev.org/openstack/cinder/commit/577e2ee108a5e3ec2b727928ee4e9c8b35331339
Submitter: "Zuul (22348)"
Branch: master

commit 577e2ee108a5e3ec2b727928ee4e9c8b35331339
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

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/cinder/+/913816

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)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 24.0.0.0rc2

This issue was fixed in the openstack/cinder 24.0.0.0rc2 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.