Hide Forgot
Description of problem: The following test fails when running tests on OSP 12 HA deployment neutron.tests.tempest.api.admin.test_floating_ips_admin_actions.FloatingIPAdminTestJSON.test_associate_floating_ip_with_port_from_another_tenant Version-Release number of selected component (if applicable): openstack-neutron-11.0.0-0.20170804190460.el7ost.noarch How reproducible: 100% Steps to Reproduce: 1. Deploy OSP 12 HA 2. Run neutron API tests Actual results: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/neutron/tests/tempest/api/admin/test_floating_ips_admin_actions.py", line 65, in test_associate_floating_ip_with_port_from_another_tenant floating_ip['id'], port_id=port['port']['id']) File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises self.assertThat(our_callable, matcher) File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: <function _update at 0x6607de8> returned {u'floatingip': {u'router_id': u'e255dca3-5dfe-452d-bbbc-d73af9bd43f8', u'status': u'DOWN', u'description': u'', u'tags': [], u'tenant_id': u'd0232ced5d4d4238876a748fc06b3fcc', u'created_at': u'2017-08-10T10:56:49Z', u'updated_at': u'2017-08-10T10:56:55Z', u'floating_network_id': u'9f499f7b-6147-4e68-a05a-f621ce725223', u'fixed_ip_address': u'10.100.0.7', u'floating_ip_address': u'10.0.0.211', u'revision_number': 1, u'project_id': u'd0232ced5d4d4238876a748fc06b3fcc', u'port_id': u'fdec4851-c670-4132-ac38-78a03d986ed0', u'id': u'2c621ccf-418b-49cf-bb45-46c7e3e6d0f0'}} Expected results: All tests passed successfully Additional info:
I looked at upstream jobs and we skip it as we don't run Identity service with admin v2 API anymore and this test doesn't support v3 yet. Please check tempest.conf for [identity-feature-enabled] api_v2_admin = True and if keystone is really configured that way.
(In reply to Jakub Libosvar from comment #2) > I looked at upstream jobs and we skip it as we don't run Identity service > with admin v2 API anymore and this test doesn't support v3 yet. Please check > tempest.conf for > > [identity-feature-enabled] > api_v2_admin = True > > and if keystone is really configured that way. If not, just set it to False and it should be skipped just like in upstream :)
I checked the tempest.conf and all services are set with api_v2_admin = True. Note that v2 has been deprecated since Mitaka (OSP9) - https://blueprints.launchpad.net/keystone/+spec/deprecated-as-of-mitaka
Hello Jakub, Currently as a workaround in the ci jobs, We can pass identity-featured-enabled.api_v2_admin False as an argument with discover-tempest-config, can override the value till we fix it in python-tempestconf in a better way for identity v2 and v3 api. Thanks, Chandan Kumar
Does TripleO configure keystone for v2? If so, the test should still pass. The fact that it's not executed in upstream gate is probably tangential to the issue. Otherwise, it's a bug in python-tempestconf and we should change the bug component to match that fact.
Hello Ihar, (In reply to Ihar Hrachyshka from comment #6) > Does TripleO configure keystone for v2? Yup, Tripleo stills configures Keystone V2 api. The tripleo does not switched to v3 as mistral does not work with v3 api. Thanks, Chandan Kumar
*** Bug 1474806 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. https://access.redhat.com/errata/RHEA-2017:3462