/v3/policies response attribute missing

Bug #1514030 reported by zouyee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Medium
zouyee
openstack-api-site
Fix Released
Medium
Diane Fleming

Bug Description

{
    "policy": {
        "blob": "{\"default\": false}",
        "id": "c41a4c",
        "links": {
            "self": "http://identity:35357/v3/policies/c41a4c"
        },
        "type": "application/json"
    }
}
need to update
{
    "policy": {
        "blob": "{'foobar_user': 'role:compute-user'}",

        "type": "application/json",
        "user_id": "0ffd248c55b443eaac5253b4e9cbf9b5"
    }
}
according to http://developer.openstack.org/api-ref-identity-v3.html
and my test

zouyee (zoues)
Changed in keystone:
assignee: nobody → zouyee (zoues)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone-specs (master)

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

Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone-specs (master)

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

Revision history for this message
Henry Nash (henry-nash) wrote :

Could you explain why you think there needs to be a policy as part of this entity?

Changed in keystone:
status: In Progress → Incomplete
Changed in keystone:
assignee: zouyee (zoues) → Diane Fleming (diane-fleming)
status: Incomplete → In Progress
Revision history for this message
Steve Martinelli (stevemar) wrote :

what are you adding this? it's not in the schema [0] or saved in the backend [1]

0 - https://github.com/openstack/keystone/blob/master/keystone/policy/schema.py
1 - https://github.com/openstack/keystone/blob/master/keystone/policy/backends/sql.py

i'm not understanding how a project is associated with a policy, at all.

Changed in keystone:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in keystone:
assignee: Diane Fleming (diane-fleming) → zouyee (zoues)
status: Invalid → In Progress
zouyee (zoues)
description: updated
description: updated
Revision history for this message
Steve Martinelli (stevemar) wrote :

Looks like the examples under /policies here: are incorrect http://developer.openstack.org/api-ref-identity-v3.html

I suggest looking at: http://specs.openstack.org/openstack/keystone-specs/api/v3/identity-api-v3.html

Feel free to fix the inconsistencies in the api-site, they are here: https://github.com/openstack/api-site/blob/master/api-ref/src/wadls/identity-api/src/v3/samples/PolicyCreateRequest.json

What test are you referring you?

Changed in keystone:
status: In Progress → Incomplete
Changed in keystone:
status: Incomplete → In Progress
Anne Gentle (annegentle)
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Medium
zouyee (zoues)
Changed in keystone:
importance: Undecided → Medium
Revision history for this message
Steve Martinelli (stevemar) wrote :

lots of back and forth on this one, i think we agreed that it's fine on specs.openstack.org/keystone

Changed in keystone:
status: In Progress → Invalid
Changed in openstack-api-site:
assignee: nobody → Diane Fleming (diane-fleming)
milestone: none → mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

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

Reviewed: https://review.openstack.org/262086
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=35584f1b0ffcf4900d14c7198cf09dcaa1d7a0e5
Submitter: Jenkins
Branch: master

commit 35584f1b0ffcf4900d14c7198cf09dcaa1d7a0e5
Author: Diane Fleming <email address hidden>
Date: Mon Dec 28 18:15:48 2015 -0600

    Update policy response

    Change-Id: I5823ce01b21ca5d56c685913331d5ced11dcfbc3
    Closes-Bug: #1514030

Changed in openstack-api-site:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone-specs (master)

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/242720
Reason: patch has negative reviews and inactive for >45 days, abandoning

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

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/242725
Reason: patch has negative reviews and inactive for >45 days, abandoning

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

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/242827
Reason: patch has negative reviews and inactive for >45 days, abandoning

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.