storwize: create_consistency_group fails if the volume has mirror copy

Bug #1837524 reported by Chhavi Agarwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
katari manoj kumar

Bug Description

Steps to create:
- Create a volume with mirror copy.
- Attach the volume to virtual machine.
- Live capture VM: internally it will try to create the consistency group and add volume.
It fails with the below error

2019-07-23 02:04:02.158 48722 ERROR cinder.volume.drivers.ibm.storwize_svc.storwize_svc_common [req-310ad4ef-61a6-488d-9d86-9510871d42ee 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 1b5f23dd1e3844489b214325984c6ff0 - default default] Error has occurred: Unexpected error while running command.
Command: svcinfo lsmdiskgrp -bytes -delim ! "many"
Exit code: 1
Stdout: u''
Stderr: u'CMMVC5804E The action failed because an object that was specified in the command does not exist.\n': ProcessExecutionError: Unexpected error while running command.
2019-07-23 02:04:02.159 48722 ERROR cinder.volume.drivers.ibm.storwize_svc.storwize_svc_common [req-310ad4ef-61a6-488d-9d86-9510871d42ee 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 1b5f23dd1e3844489b214325984c6ff0 - default default] Error running SSH command: svcinfo lsmdiskgrp -bytes -delim ! "many": ProcessExecutionError: Unexpected error while running command.

2019-07-23 02:04:02.388 48722 ERROR cinder.volume.drivers.ibm.storwize_svc.storwize_svc_common [req-310ad4ef-61a6-488d-9d86-9510871d42ee 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 1b5f23dd1e3844489b214325984c6ff0 - default default] CLI Exception output:
 command: ['svctask', 'mkvdisk', '-name', '"snapshot-670e0e4d-b46a-41fa-b13a-9dd39e2a19ea"', '-mdiskgrp', '"many"', '-iogrp', u'0', '-size', '4294967296', '-unit', 'b', '-rsize', '2%', '-autoexpand', '-warning', '0%', '-grainsize', '256', '-easytier', 'on']
 stdout:
 stderr: CMMVC5754E The specified object does not exist, or the name supplied does not meet the naming rules.
.: ProcessExecutionError: Unexpected error while running command.
2019-07-23 02:04:02.388 48722 ERROR cinder.volume.drivers.ibm.storwize_svc.storwize_svc_common [req-310ad4ef-61a6-488d-9d86-9510871d42ee 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 1b5f23dd1e3844489b214325984c6ff0 - default default] Failed to create vdisk snapshot-670e0e4d-b46a-41fa-b13a-9dd39e2a19ea.: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: CLI Exception output:
 command: ['svctask', 'mkvdisk', '-name', '"snapshot-670e0e4d-b46a-41fa-b13a-9dd39e2a19ea"', '-mdiskgrp', '"many"', '-iogrp', u'0', '-size', '4294967296', '-unit', 'b', '-rsize', '2%', '-autoexpand', '-warning', '0%', '-grainsize', '256', '-easytier', 'on']
 stdout:
 stderr: CMMVC5754E The specified object does not exist, or the name supplied does not meet the naming rules.
.

Revision history for this message
Xuchu Jiang (xcnix) wrote :

From the error log, seems mdiskgrp "many" is not exist.

Changed in cinder:
assignee: nobody → katari manoj kumar (katarimanojkumar)
status: New → In Progress
tags: added: drivers storwize
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/745719
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=5032a6db0cd713f34e2f9067568f05b738f405c8
Submitter: Zuul
Branch: master

commit 5032a6db0cd713f34e2f9067568f05b738f405c8
Author: katarimanojkumar <email address hidden>
Date: Fri Sep 25 19:20:32 2020 +0000

    [SVF]:Fixed create_flashcopy_to_consistgrp

    [Spectrum Virtualize Family] Fixed create_consistency_group
    failures if the volume has mirror copy and mdisk_grp_name=many.

    Fixed issues in create_flashcopy_to_consistgrp, made use
    of iogrp, qos from opts for create_vdisk, mkfcmap:target
    if the data exists.

    closes bug: #1890589
    closes bug: #1837524

    Change-Id: Ica730eb7b38159e3fbf51bd7ed588c0e13a0eb46

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 18.0.0.0b1

This issue was fixed in the openstack/cinder 18.0.0.0b1 development milestone.

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.