CLI throws "admin privileges" error when update router in tenant project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-cisco |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Sridar's Kilo based private branch for ASR1K plugin, asr1k_kilo_
Within the "tenant" project, when perform a "router-update" operation, CLI throws an error.
Despite the error, the operation is successfully.
[root@G10-QA4 neutron(
User does not have admin privileges: Cannot create resource for another tenant <<<<< ERROR
[root@G10-QA4 neutron(
[root@G10-QA4 neutron(
[root@G10-QA4 neutron(
+------
| Field | Value |
+------
| admin_state_up | True |
| cisco_ha:details | {"redundancy_
| cisco_ha:enabled | True <<<<< OPERATION IS SUCCESSFUL |
| external_
| id | b35e68c2-
| name | tenant1-router1 |
| routerhost:
| routerrole:role | |
| routertype-
| routertype-
| routertype:id | 00000000-
| routes | |
| status | ACTIVE |
| tenant_id | 5c38527531e3475
+------
=======
Snippet with debug enabled:
[root@G10-QA4 neutron(
DEBUG: keystoneclient.
DEBUG: keystoneclient.
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
DEBUG: neutronclient.
DEBUG: keystoneclient.
DEBUG: keystoneclient.
DEBUG: keystoneclient.
RESP BODY: {"routers": [{"id": "b35e68c2-
DEBUG: keystoneclient.
DEBUG: keystoneclient.
DEBUG: neutronclient.
ERROR: neutronclient.shell User does not have admin privileges: Cannot create resource for another tenant
Traceback (most recent call last):
File "/usr/lib/
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/
return cmd.run(known_args)
File "/usr/lib/
obj_
File "/usr/lib/
ret = self.function(
File "/usr/lib/
return self.put(
File "/usr/lib/
headers=
File "/usr/lib/
headers=
File "/usr/lib/
self.
File "/usr/lib/
exception_
File "/usr/lib/
status_
Forbidden: User does not have admin privileges: Cannot create resource for another tenant <<<<<< ERROR
*******
This seems to related to the ASR1K plugin because the error is NOT seen when the plugin is not installed:
[root@G10-QA4 ~(keystone_admin)]# export OS_USERNAME=
[root@G10-QA4 ~(keystone_admin)]# export OS_TENANT_
[root@G10-QA4 ~(keystone_admin)]# export OS_PASSWORD=
[root@G10-QA4 ~(keystone_admin)]# neutron router-create tenant1-router1
Created a new router:
+------
| Field | Value |
+------
| admin_state_up | True |
| external_
| id | d2cbe379-
| name | tenant1-router1 |
| routes | |
| status | ACTIVE |
| tenant_id | 4d04968def6d4a3
+------
[root@G10-QA4 ~(keystone_admin)]# neutron router-list
+------
| id | name | external_
+------
| d2cbe379-
+------
[root@G10-QA4 ~(keystone_admin)]# neutron router-gateway-set tenant1-router1 ext-net
Set gateway for router tenant1-router1
[root@G10-QA4 ~(keystone_admin)]# neutron router-list
+------
| id | name | external_
+------
| d2cbe379-
+------
[root@G10-QA4 ~(keystone_admin)]#
[root@G10-QA4 ~(keystone_admin)]#
[root@G10-QA4 ~(keystone_admin)]#
[root@G10-QA4 ~(keystone_admin)]#
[root@G10-QA4 ~(keystone_admin)]# nova-manage version
2015.1.0-18.el7ost
[root@G10-QA4 ~(keystone_admin)]#