+++ This bug was initially created as a clone of Bug #1508835 +++
+++ This bug was initially created as a clone of Bug #1507014 +++
Description of problem:
neutron tempest test: test_associate_floating_ip_with_port_from_another_tenant fails as this tests is skipped - as it checks if identity_feature_enabled.api_v2_admin is set in tempest.conf.
The Redhat Certification test suite configures the tempest.conf.
By default "api_v2_admin" parameter is not populated in tempest.conf.
As Tripleo (Newton) uses identity APi v2, even tried with work around in
even after setting identity_feature_enabled.api_v2_admin = True ,
this test still fails with skip exception.
I believe this bug is because of bug in config.py generating tempest.conf.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. TripleO setup with OSP10 (Newton)
2. Install Redhat Certification test Suite 5.2 (latest at this time of filing this bug)
3. Run the Certification test.
below is the stack trace :
_StringException: Empty attachments:
Traceback (most recent call last):
File "/tmp/tmp29u2X1_tempest/neutron/neutron/tests/tempest/api/admin/test_floating_ips_admin_actions.py", line 47, in test_associate_floating_ip_with_port_from_another_tenant
if not CONF.identity_feature_enabled.api_v2_admin:
File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 3061, in __getattr__
return self._conf._get(name, self._group)
File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2672, in _get
value = self._do_get(name, group, namespace)
File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2689, in _do_get
info = self._get_opt_info(name, group)
File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2828, in _get_opt_info
raise NoSuchOptError(opt_name, group)
oslo_config.cfg.NoSuchOptError: no such option api_v2_admin in group [identity-feature-enabled]
Even tests related to quotas fail with same error,
[though quotas is not supported in our environment, was expecting Skipped status instead]
--- Additional comment from Ihar Hrachyshka on 2017-10-30 15:00:23 EDT ---
[ihrachys@laptop tempest]$ git show 1413ba9c0686956463d0f4e61c44927fba45541f
Author: Andrea Frittoli <firstname.lastname@example.org>
Date: Fri Apr 21 14:33:23 2017 +0100
Add api_v2_admin flag
Only run Identity V2 admin tests if the identity v2 admin API is
available. The new config flag is set to True by default.
[ihrachys@laptop tempest]$ git tag --contains 1413ba9c0686956463d0f4e61c44927fba45541f
We need to backport this commit to tempest to support the option that the test relies on.
--- Additional comment from Ihar Hrachyshka on 2017-10-30 15:01:13 EDT ---
I believe we need to clone the bug to tempest component, since I imagine this bug should stay specific to certification program. Correct?
--- Additional comment from Ihar Hrachyshka on 2017-11-08 12:54:12 EST ---
I believe the fix belongs to tempest repo not puppet. Changing component.
We are waiting for new ocata release from RDO that will include the fix.
tempest-16.1.0 is the desired package version.
RDO bumps are merged, we are waiting for next sync to OSP11.
*** Bug 1526750 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.