Tempest-RHOSP10:RBAC-Tempest-test case failing due to contrailNeutron Rbac is different from Openstack Rbac calls

Bug #1686176 reported by shajuvk on 2017-04-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Won't Fix
Medium
Nagendra Prasath
R4.0
Won't Fix
Medium
Nagendra Prasath
R5.0
Won't Fix
Medium
Nagendra Prasath
Trunk
Invalid
Medium
Nagendra Prasath

Bug Description

This bug is just a tracking bug, RBAC neutron calls are different in Openstack RBAC and contrail Neutron Plugin RBAC

2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource [req-d2cfa9ad-e456-49de-b776-d7259784104c 15c66b593d764a0886f683f55bede99d 7ecfa8acb8a24425a1d21dd
63ce2a561 - - -] create failed: No details.
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource Traceback (most recent call last):
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 79, in resource
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource result = method(request=request, **args)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 430, in create
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 88, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self.force_reraise()
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 84, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self.force_reraise()
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 124, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource traceback.format_exc())
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self.force_reraise()
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 119, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 474, in _create
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self._plugin)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/quota/__init__.py", line 234, in make_reservation
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource plugin)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 159, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return method(*args, **kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 88, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self.force_reraise()
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 84, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self.force_reraise()
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 124, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource traceback.format_exc())
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource self.force_reraise()
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 119, in wrapped
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/quota/driver.py", line 203, in make_reservation
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource resource in requested_resources)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/db/quota/driver.py", line 203, in <genexpr>
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource resource in requested_resources)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/quota/resource.py", line 133, in count
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource return self._count_func(context, plugin, self.plural_name, tenant_id)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/quota/resource.py", line 39, in _count_resource
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource obj_getter = getattr(plugin, "get_%s" % collection_name)
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource AttributeError: 'NeutronPluginContrailCoreV2' object has no attribute 'get_rbac_policies' ============> no function in contrail neutron equivalent of openstack RBAC
2017-04-25 18:31:06.708 135207 ERROR neutron.api.v2.resource
2017-04-25 18:31:06.712 135207 INFO neutron.wsgi [req-d2cfa9ad-e456-49de-b776-d7259784104c 15c66b593d764a0886f683f55bede99d 7ecfa8acb8a24425a1d21dd63ce2a561 - - -] 10.0.0.22 - - [25/Apr/2017 18:31:06] "POST /v2.0/rbac-policies HTTP/1.1" 500 363 0.222056

shajuvk (shajuvk) on 2017-04-25
summary: Tempest-RHOSP10:RBAC-Tempest-test case failing due to contrailNeutron
- Rbac is different from stock neutron calls
+ Rbac is different from Openstack Rbac calls
shajuvk (shajuvk) on 2017-04-25
information type: Proprietary → Public
Deepinder Setia (dsetia) wrote :

Shaju, can you elaborate?

Sajeesh Mathew (smathew) wrote :

Shaju,
  Which is the test case here ?

Sajeesh Mathew (smathew) wrote :

Neutron RBAC is not supported by Contrail, so it's a feature request not a bug

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

Other bug subscribers