← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1659012] [NEW] "openstack router create" for non-admin user failing in newton

 

Public bug reported:

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/

** Affects: neutron
     Importance: Undecided
     Assignee: venkata anil (anil-venkata)
         Status: New


** Tags: newton-backport-potential

** Changed in: neutron
     Assignee: (unassigned) => venkata anil (anil-venkata)

** Tags added: newton-backport-potential

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

Title:
  "openstack router create" for non-admin user failing in newton

Status in neutron:
  New

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/

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