Description of problem:
Tempest run on upgraded system, RHOS-8 to RHOS-9 on RHEL-7.5, failed:
Traceback (most recent call last):
File "/home/stack/tempest_9/tempest/api/network/admin/test_routers_dvr.py", line 105, in test_centralized_router_update_to_dvr
File "/home/stack/tempest_9/tempest/services/network/json/routers_client.py", line 55, in update_router
return self._update_router(router_id, set_enable_snat=False, **kwargs)
File "/home/stack/tempest_9/tempest/services/network/json/routers_client.py", line 46, in _update_router
return self.update_resource(uri, update_body)
File "/home/stack/tempest_9/tempest/lib/services/network/base.py", line 68, in update_resource
resp, body = self.put(req_uri, req_post_data)
File "/home/stack/tempest_9/tempest/lib/common/rest_client.py", line 322, in put
return self.request('PUT', url, extra_headers, headers, body)
File "/home/stack/tempest_9/tempest/lib/common/rest_client.py", line 642, in request
File "/home/stack/tempest_9/tempest/lib/common/rest_client.py", line 758, in _error_checker
tempest.lib.exceptions.NotImplemented: Got NotImplemented error
Steps to Reproduce:
1. Run tempest against upgraded system
infrared tempest -v \
-o test2.yml \
--setup rpm \
--openstack-installer tripleo \
--openstack-version 9 \
--dir tempest_9 \
--tests full \
Virtual setup: 3controllers + 2computes + 3ceph
Assigning to Slawek for investigation.
This issue is caused because of configuration of neutron server. Option "l3_ha" is set in test job to True. This is default value for "ha" attribute of each new router if "ha" is not passed in POST request. So in test which is failing here, it is not passed: https://github.com/openstack/tempest/blob/11.0.0/tempest/api/network/test_routers.py#L400 - default value is taken and router is set as HA router.
In Mitaka, Neutron doesn't support migration from HA to distributed: https://github.com/openstack/neutron/blob/mitaka-eol/neutron/db/l3_hamode_db.py#L490 and because of that this issue is raised.
This is fixed in U/S tempest and we need to backport few patches to our D/S repository:
Scratch build of tempest for OSP-9 with additional patches done: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=17908587
openstack-tempest-10.0.0-9.b4a056dgit.el7ost.noarch is available in the latest repo for RHOS-9.
When I downgraded to openstack-tempest-10.0.0-8 I was able to reproduce the issue, however with openstack-tempest-10.0.0-9.b4a056dgit.el7ost.noarch package the test passed -> the new package contains the fix for the reported issue and therefore I'm moving the bug to VERIFIED.
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.