Hide Forgot
Description of problem: As ironic is installed on the undercloud alongside with tempest, it provides the entry-point for its tests to be discovered. Ironic tempest plugin, though, lacks the ability to be properly skipped from tempest.conf file, which makes the tests to be ran against the overcloud (who lacks ironic support) and then it fails. Version-Release number of selected component (if applicable): python-ironic-tests-5.1.2-3.el7ost.noarch How reproducible: [stack@undercloud-0 tempest]$ python -m testtools.run ironic_tempest_plugin.tests.api.admin.test_api_discovery.TestApiDiscovery.test_api_versions Tests running... ====================================================================== ERROR: ironic_tempest_plugin.tests.api.admin.test_api_discovery.TestApiDiscovery.test_api_versions[id-a3c27e94-f56c-42c4-8600-d6790650b9c5] ---------------------------------------------------------------------- Empty attachments: pythonlogging:'' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py", line 23, in test_api_versions _, descr = self.client.get_api_description() File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/services/baremetal/base.py", line 33, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/services/baremetal/base.py", line 185, in get_api_description return self._list_request('', permanent=True) File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/services/baremetal/base.py", line 112, in _list_request resp, body = self.get(uri) File "tempest/lib/common/rest_client.py", line 274, in get return self.request('GET', url, extra_headers, headers) File "tempest/lib/common/rest_client.py", line 629, in request headers=headers, body=body) File "tempest/lib/common/rest_client.py", line 522, in _request method, url, headers, body, self.filters) File "tempest/lib/auth.py", line 140, in auth_request filters, method, url, headers, body) File "tempest/lib/auth.py", line 213, in _decorate_request base_url = self.base_url(filters=filters, auth_data=auth_data) File "tempest/lib/auth.py", line 324, in base_url (service, region, endpoint_type)) tempest.lib.exceptions.EndpointNotFound: Endpoint not found Details: service: baremetal, region: RegionOne, endpoint_type: publicURL Actual results: The test fails with EndpointNotFound error Expected results: The tests to be skipped Additional info:
Related patch was merged (external tracker ID: 412622). Until new rpm of ironic tests is released, as workaround can be used this: https://review.openstack.org/#/c/412622/2/ironic_tempest_plugin/tests/api/admin/base.py
I think this was included in openstack-ironic-6.2.2-2.el7ost at GA? unless I'm missing something.
In openstack-ironic-6.2.2-2.el7ost it's failing as well. From version openstack-ironic-6.2.2-3.el7ost it's working as expected.
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. https://access.redhat.com/errata/RHBA-2017:1592