consisgroup-update reports HTTP 400 when no request is sent

Bug #1549026 reported by Eric Harney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
Eric Harney

Bug Description

$ cinder --debug consisgroup-update asdf
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.122.211:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneclient.session:RESP: [200] Content-Length: 341 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 23 Feb 2016 22:52:47 GMT Content-Type: application/json x-openstack-request-id: req-709fcaf9-a299-4cbe-a086-e4f0d4998412
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.122.211:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://192.168.122.211:5000/v2.0/tokens
ERROR: At least one of the following args must be supplied: name, description, add-volumes, remove-volumes. (HTTP 400)

This will be quite confusing to anyone debugging things looking for an HTTP call resulting in 400.

Fix is probably related to the fix for 1549020.

Eric Harney (eharney)
Changed in python-cinderclient:
assignee: nobody → Eric Harney (eharney)
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/283850
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=c4c2c56042e7829aa9ee0c4b7fad93d039fb4841
Submitter: Jenkins
Branch: master

commit c4c2c56042e7829aa9ee0c4b7fad93d039fb4841
Author: Eric Harney <email address hidden>
Date: Tue Feb 23 17:55:08 2016 -0500

    Don't print HTTP codes for non-HTTP errors

    This changes:
     $ cinder rename asdf
     ERROR: Must supply either name or description. (HTTP 1)

    To:
     $ cinder rename asdf
     ERROR: Must supply either name or description.

    Affects rename, snapshot-rename, consisgroup-update,
    and consisgroup-create-from-src.
    (consisgroup-* previously printed HTTP 400.)

    Closes-Bug: #1549020
    Closes-Bug: #1549026
    Change-Id: Ia920b3b75b53170789b694cbdd49100bd6a72d21

Changed in python-cinderclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-cinderclient 1.6.0

This issue was fixed in the openstack/python-cinderclient 1.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/python-cinderclient 1.6.0 release.

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.