octavia-driver-agent[91903]: ERROR futurist.periodics [-] Failed to call periodic 'ovn_octavia_provider.maintenance.DBInconsistenciesPeriodics.change_device_owner_lb_hm_ports' (it runs every 600.00 seconds): AttributeError: 'Client' object has no attribute 'ports'
octavia-driver-agent[91903]: ERROR futurist.periodics Traceback (most recent call last):
octavia-driver-agent[91903]: ERROR futurist.periodics File "/usr/local/lib/python3.10/dist-packages/futurist/periodics.py", line 290, in run
octavia-driver-agent[91903]: ERROR futurist.periodics work()
octavia-driver-agent[91903]: ERROR futurist.periodics File "/usr/local/lib/python3.10/dist-packages/futurist/periodics.py", line 64, in __call__
octavia-driver-agent[91903]: ERROR futurist.periodics return self.callback(*self.args, **self.kwargs)
octavia-driver-agent[91903]: ERROR futurist.periodics File "/usr/local/lib/python3.10/dist-packages/futurist/periodics.py", line 178, in decorator
octavia-driver-agent[91903]: ERROR futurist.periodics return f(*args, **kwargs)
octavia-driver-agent[91903]: ERROR futurist.periodics File "/opt/stack/ovn-octavia-provider/ovn_octavia_provider/maintenance.py", line 79, in change_device_owner_lb_hm_ports
octavia-driver-agent[91903]: ERROR futurist.periodics ovn_lb_hm_ports = neutron_client.ports(
octavia-driver-agent[91903]: ERROR futurist.periodics AttributeError: 'Client' object has no attribute 'ports'
see also k8s e2e test results:
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/cloud-provider-openstack/2504/openstack-cloud-controller-manager-e2e-test/1735270733262622720
Thanks @kay for the bug report, from logs i see it's seen antelope release:- aaa3e20fe75b160 062ef339d4 Make multiple attempts to download image 2023-12-12 08:08:04 +0000
=============
DevStack Version: 2023.1
Change: c32b528f8ddb2b9
OS Version: Ubuntu 22.04 jammy
=============
The Tracebacks is part of a new maintenance task added as part of [1], available in antelope+. But the code itself relies on openstacksdk switch from neutronclient[2], which was only available since bobcat.
So in order to fix it either [1] needs to be reverted or the maintenance code needs to be adopted to work with neutronclient.
Backporting [1] itself looks doubtful in stable/antelope and have dependency on another octavia patch.
Same trace can be see in ovn octavia CI [3]
[1] https:/ /review. opendev. org/q/I0d4feb1e 5c128d5a768d1b8 7deb2dcb3ab6d1e a1 /review. opendev. org/c/openstack /ovn-octavia- provider/ +/870514 /zuul.opendev. org/t/openstack /build/ 8ef68ec671854ad c9dac39395e87a8 4a/log/ controller/ logs/screen- o-da.txt# 391-404
[2] https:/
[3] https:/