Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1507014

Summary: neutron API test "test_associate_floating_ip_with_port_from_another_tenant" skips and fails with bug in tempest.conf
Product: [Retired] Red Hat OpenStack Certification Program Reporter: Abhilash <abhilash.s>
Component: relengAssignee: Neeti Dahiya <rhoscert-dev>
Status: CLOSED EOL QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: hrivero, ihrachys, martinez
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1508835 (view as bug list) Environment:
Last Closed: 2020-03-27 15:47:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1508835, 1511169    

Description Abhilash 2017-10-27 12:11:31 UTC
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 
https://bugzilla.redhat.com/show_bug.cgi?id=1480269 ,
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):
redhat-certification-openstack-5.2
python-tempest-13.0.0-14
openstack-tempest-all-13.0.0-14
python-neutron-tests-9.4.1


How reproducible:


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.

Actual results:


Expected results:


Additional info:

below is the stack trace :
Test: neutron.tests.tempest.api.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_associate_floating_ip_with_port_from_another_tenant[id-11116ee9-4e99-5b15-b8e1-aa7df92ca589,negative]
Status: FAIL
Error:
_StringException: Empty attachments:
  pythonlogging:''

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]

Comment 1 Ihar Hrachyshka 2017-10-30 19:00:23 UTC
[ihrachys@laptop tempest]$ git show 1413ba9c0686956463d0f4e61c44927fba45541f
commit 1413ba9c0686956463d0f4e61c44927fba45541f
Author: Andrea Frittoli <andrea.frittoli>
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.
    
    Change-Id: I43459cb1a96e725dde41e23962e367dbdc345686

...

[ihrachys@laptop tempest]$ git tag --contains 1413ba9c0686956463d0f4e61c44927fba45541f
16.1.0
17.0.0

We need to backport this commit to tempest to support the option that the test relies on.

Comment 2 Ihar Hrachyshka 2017-10-30 19:01:13 UTC
I believe we need to clone the bug to tempest component, since I imagine this bug should stay specific to certification program. Correct?