← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1592715] [NEW] image member create fails when "member_id" is passed instead of "member" attribute in the request body

 

Public bug reported:

As mentioned in OpenStack API Complete Reference document [1] that the
image member create accepts either the "member_id" or "member" attribute
in the request body.

When user creates the image member by using the "member_id" instead of
"member" as attribute in request body then it fails with 400 bad request

Steps to reproduce:

$ curl -g -i -X POST http://172.26.88.24:9292/v2/images/e17dfe53-d492-47fb-b15b-409552199f7a/members -H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H 
  "X-Auth-Token: 9e2e32056c7c4e6a9628d3dcc5b74ead" -d '{"member_id": "xfgdf"}'

Output:

HTTP/1.1 400 Bad Request
Content-Length: 54
Content-Type: text/plain; charset=UTF-8
X-Openstack-Request-Id: req-009f4b1f-7985-48d5-a627-18dc7f049cf8
Date: Tue, 14 Jun 2016 13:00:28 GMT

400 Bad Request

Member to be added not specified

[1] http://developer.openstack.org/api-ref-image-v2.html

** Affects: glance
     Importance: Undecided
     Assignee: Bhagyashri Shewale (bhagyashri-shewale)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Bhagyashri Shewale (bhagyashri-shewale)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1592715

Title:
  image member create fails when "member_id" is passed instead of
  "member" attribute in the request body

Status in Glance:
  New

Bug description:
  As mentioned in OpenStack API Complete Reference document [1] that the
  image member create accepts either the "member_id" or "member"
  attribute in the request body.

  When user creates the image member by using the "member_id" instead of
  "member" as attribute in request body then it fails with 400 bad
  request

  Steps to reproduce:

  $ curl -g -i -X POST http://172.26.88.24:9292/v2/images/e17dfe53-d492-47fb-b15b-409552199f7a/members -H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H 
    "X-Auth-Token: 9e2e32056c7c4e6a9628d3dcc5b74ead" -d '{"member_id": "xfgdf"}'

  Output:

  HTTP/1.1 400 Bad Request
  Content-Length: 54
  Content-Type: text/plain; charset=UTF-8
  X-Openstack-Request-Id: req-009f4b1f-7985-48d5-a627-18dc7f049cf8
  Date: Tue, 14 Jun 2016 13:00:28 GMT

  400 Bad Request

  Member to be added not specified

  [1] http://developer.openstack.org/api-ref-image-v2.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1592715/+subscriptions


Follow ups