"openstack router create" for non-admin user failing in mitaka Edit

Bug #1659020 reported by venkata anil
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Undecided
venkata anil

Bug Description

router create using OpenStackClient in newton(may be in mitaka and old branches also) is failing for non-admin user.

In newton(and old branches), when non-admin user calls, "openstack router create test", {"distributed": false} attribute is sent as part of POST request

REQ: curl -g -i -X POST http://192.168.1.4:9696/v2.0/routers -H "User-Agent: openstacksdk/0.8.3 keystoneauth1/2.4.1 python-requests/2.10.0 CPython/2.7.5" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}6c0fb8f5c2131c920844444ad803595a08cf81e3" -d '{"router": {"distributed": false, "name": "test-router-3", "admin_state_up": true}}'

and then neutron is raising "HttpException: Forbidden 403" exception http://paste.openstack.org/show/596239/

In master branch, for the same command, distributed flag is not sent(because of [1]) i.e

REQ: curl -g -i -X POST http://192.168.121.33:9696/v2.0/routers -H "User-Agent: openstacksdk/0.9.10 keystoneauth1/2.16.0 python-requests/2.12.4 CPython/2.7.6" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}df87846ed616e8d5b0454caa3af88aecf54d011d" -d '{"router": {"name": "test2", "admin_state_up": true}}'

and command is able to successfully create the router

[1] https://review.openstack.org/#/c/397085/

Changed in python-openstackclient:
assignee: nobody → venkata anil (anil-venkata)
Revision history for this message
Dean Troyer (dtroyer) wrote :

Please confirm this is still a problem with the current releases, and be specific about what versions are used in testing.

Changed in python-openstackclient:
status: New → Incomplete
Revision history for this message
venkata anil (anil-venkata) wrote :

Issue is seen in mitaka openstack client 2.3.0 version.

summary: - "openstack router create" for non-admin user failing in newton Edit
+ "openstack router create" for non-admin user failing in mitaka Edit
Changed in python-openstackclient:
status: Incomplete → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/433457

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (stable/mitaka)

Change abandoned by Ihar Hrachyshka (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/433457

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.