[IBM Storwize] Retype failure for replication volume-type

Bug #1968159 reported by Harsh Ailani
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Harsh Ailani

Bug Description

While retyping a replication volume, chfcmap() call is being called which is resulting in retype operation failure.
Error: CMMVC7154E The task cannot be completed because the specified FlashCopy mapping is controlled by a Metro Mirror or Global Mirror relationship.

This error is occurring because as per the code chfcmap is called under update_clean_rate() def.

Whereas, chfcmap should not be called for any fc map which is rc_controlled.

Hence while retyping global mirror to global mirror, metro mirror to metro mirror and GMCV to GMCV volume, this error comes up as the fc map of the volume is rc_controlled for these replication volume types.

Revision history for this message
Harsh Ailani (haailani) wrote :

Working on the fix for this bug.

Changed in cinder:
assignee: nobody → Harsh Ailani (haailani)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/836944

Changed in cinder:
status: New → In Progress
Revision history for this message
Harsh Ailani (haailani) wrote :
Changed in cinder:
importance: Undecided → Low
tags: added: gmcv retype storwize
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit b99e73e96cb6448f81a2f4b2e8e624bf36bbff0e
Author: haailani <email address hidden>
Date: Thu Apr 7 11:37:14 2022 +0000

    [SVf]:Fix retype failure for replication volume-type

    [Spectrum Virtualize family] While retyping GM to GM or MM to MM or
    GMCV to GMCV, chfcmap() call is being made which is resulting in retype
    operation failure.
    Error: CMMVC7154E The task cannot be completed because the specified
    FlashCopy mapping is controlled by a Metro Mirror or Global Mirror
    relationship.

    chfcmap() should not be called for any FC map which is rc_controlled.
    Hence while retyping global mirror to global mirror or
    metro mirror to metro mirror or GMCV to GMCV volume, this error comes
    up as the FC map of the volume is rc_controlled for these replication
    volume-types.

    Closes-Bug: #1968159
    Change-Id: Ic97a2501b4c895b2b655284bcc320036c2d4e217

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

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

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

Reviewed: https://review.opendev.org/c/openstack/cinder/+/838880
Committed: https://opendev.org/openstack/cinder/commit/22e6d53082ad03bdf7c750461c0dc743d10e9704
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 22e6d53082ad03bdf7c750461c0dc743d10e9704
Author: haailani <email address hidden>
Date: Thu Apr 7 11:37:14 2022 +0000

    [SVf]:Fix retype failure for replication volume-type

    [Spectrum Virtualize family] While retyping GM to GM or MM to MM or
    GMCV to GMCV, chfcmap() call is being made which is resulting in retype
    operation failure.
    Error: CMMVC7154E The task cannot be completed because the specified
    FlashCopy mapping is controlled by a Metro Mirror or Global Mirror
    relationship.

    chfcmap() should not be called for any FC map which is rc_controlled.
    Hence while retyping global mirror to global mirror or
    metro mirror to metro mirror or GMCV to GMCV volume, this error comes
    up as the FC map of the volume is rc_controlled for these replication
    volume-types.

    Closes-Bug: #1968159
    Change-Id: Ic97a2501b4c895b2b655284bcc320036c2d4e217
    (cherry picked from commit b99e73e96cb6448f81a2f4b2e8e624bf36bbff0e)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 20.0.1

This issue was fixed in the openstack/cinder 20.0.1 release.

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

This issue was fixed in the openstack/cinder 21.0.0.0rc1 release candidate.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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