cinder reset-state should return nonzero when it failed for any volumes

Bug #1339643 reported by ugvddm
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
ugvddm

Bug Description

if one volume is reset failed, the return code should be nonzero.

[ozg@ozg-GREATWALL-PC python-novaclient(keystone_admin)]$ cinder reset-state --state error 25d7a06c-14a3-4c52-92d7-c69ea9414a3e zfdgvdsafgasd
Reset state for volume zfdgvdsafgasd failed: No volume with a name or ID of 'zfdgvdsafgasd' exists.
[ozg@ozg-GREATWALL-PC python-novaclient(keystone_admin)]$ $?
0: command not found

Tags: code return
ugvddm (271025598-9)
Changed in python-cinderclient:
assignee: nobody → ugvddm (271025598-9)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/106248

Changed in python-cinderclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/106248
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=bf8fa0b606ca3c25808f526de0c06d1374dc7411
Submitter: Jenkins
Branch: master

commit bf8fa0b606ca3c25808f526de0c06d1374dc7411
Author: Zhengguang <email address hidden>
Date: Thu Jul 10 23:01:10 2014 -0400

    Fix the return code of the command reset-state

    Currently, the command reset-state return code is zero if it
    failed for any of volumes, it should be nonzero.

    Change-Id: Ic6da238861fd003375003399bc6def6bf860a015
    Closes-Bug: #1339643

Changed in python-cinderclient:
status: In Progress → Fix Committed
Changed in python-cinderclient:
milestone: none → 1.3.1
status: Fix Committed → Fix Released
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.