v2 Image Member Create Does Not Accept member_id

Bug #1526991 reported by Ian Cordasco
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Unassigned

Bug Description

Glance v2 Image Member Creation's schema file says that it requires a member_id attribute as part of the JSON POST body. The controller, however, only looks for member and the API is documented that way here: http://developer.openstack.org/api-ref-image-v2.html#createImageMember-v2

As a matter of backwards compatibility, Glance should accept both member and member_id in the POST body but prefer member_id.

Ian Cordasco (icordasc)
Changed in glance:
assignee: nobody → Ian Cordasco (icordasc)
Changed in glance:
importance: Undecided → High
milestone: none → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Glance Bot (<email address hidden>) on branch: master
Review: https://review.openstack.org/259160

Revision history for this message
Castulo J. Martinez (castulo-martinez) wrote :

I just came across this problem when trying to create an image member, I was trying to use the member_id as the documentation suggests only to find out the only way to make it work is through using member instead of member_id (opposite of what documentation says). I was going to open a documentation bug to ask for the documentation to be updated, but then I found this bug. What is the status of this bug? Is this still targeted to be fixed? If not then the documentation needs to be fixed.

Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

Not taking a position on correctness here, but I don't think there is a schema for the member-create request. There's one for the response, but not the request.

Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

Note: At some point the API Reference was updated as if this bug had been fixed in the way Ian proposes above. The patch I currently have up for the WADL -> RST conversion of the API Ref changes the text to describe the current (unfixed) behavior.

This is just a note that whoever picks up this bug should put both "DocImpact" and "APIImpact" flags on the commit message

Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

This has been discussed in the past few glance meetings, and we've decided that the fix for this is to adjust the schema to reflect the actual coded behavior. That way there will be no question about backward compatibility. The proposed schema was discussed at the API WG meeting last week, and they are OK with this way of fixing the problem.

See https://bugs.launchpad.net/glance/+bug/1585917/comments/3 for the proposed schema and https://bugs.launchpad.net/glance/+bug/1585917/comments/5 for a link to the API WG conversation.

Changed in glance:
milestone: mitaka-2 → none
assignee: Ian Cordasco (icordasc) → nobody
Changed in glance:
assignee: nobody → Ravi Shekhar Jethani (ravishekar-jethani)
assignee: Ravi Shekhar Jethani (ravishekar-jethani) → nobody
Changed in glance:
assignee: nobody → Dharini Chandrasekar (dharini-chandrasekar)
Changed in glance:
assignee: Dharini Chandrasekar (dharini-chandrasekar) → nobody
status: In Progress → Fix Released
tags: added: image-sharing
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.