nova delete should return nonzero when it failed for any sever

Bug #1339647 reported by ugvddm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
High
ugvddm

Bug Description

If one server is deleted failed, the return code should be nozero.

[ozg@ozg-GREATWALL-PC python-novaclient(keystone_admin)]$ nova delete 49f1f516-ab5c-4625-aab6-67d9cb33cc77 123456
Request to delete server 49f1f516-ab5c-4625-aab6-67d9cb33cc77 has been accepted.
No server with a name or ID of '123456' exists.
[ozg@ozg-GREATWALL-PC python-novaclient(keystone_admin)]$ $?
0: command not found

ugvddm (271025598-9)
Changed in python-novaclient:
assignee: nobody → ugvddm (271025598-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

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

Reviewed: https://review.openstack.org/106307
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=3955440ef2f57caf853a40e1cf28abe0a1d371ff
Submitter: Jenkins
Branch: master

commit 3955440ef2f57caf853a40e1cf28abe0a1d371ff
Author: Zhengguang <email address hidden>
Date: Fri Jul 11 04:32:37 2014 -0400

    Fix the return code of the command "delete"

    Currently, the command delete return a zero if it failed for any
    of servers, the return code should be a nonzero.

    Change-Id: If7009fdeb5a60fe2e357bcc447313cbdb7b2ff39
    Closes-Bug: #1339647

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
importance: Undecided → High
milestone: none → 2.19.0
Michael Still (mikal)
Changed in python-novaclient:
status: Fix Committed → Fix Released
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.