[Bug 1960319] Re: Missing dependency for neutron-server: openvswitch-common
Corey Bryant
1960319 at bugs.launchpad.net
Thu Apr 7 16:17:38 UTC 2022
I think I've hit this in a different code-path (see traceback below),
but the same solution is required (neutron-common needs openvswitch-
common).
This change introduced the new call to ovsdb-client:
https://review.opendev.org/c/openstack/neutron/+/822299
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource Traceback (most recent call last):
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 426, in __call__
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource result = fn(*args, **kwargs)
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py", line 1644, in delete_mac_binding_entries_by_mac
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource return processutils.execute(*cmd,
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource File "/usr/lib/python3/dist-packages/oslo_concurrency/processutils.py", line 395, in execute
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource obj = subprocess.Popen(cmd,
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource File "/usr/lib/python3/dist-packages/eventlet/green/subprocess.py", line 58, in __init__
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource self._execute_child(args, executable, preexec_fn, close_fds,
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource raise child_exception_type(errno_num, err_msg, err_filename)
2022-04-07 15:52:11.730 69218 ERROR neutron.api.v2.resource FileNotFoundError: [Errno 2] No such file or directory: 'ovsdb-client'
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to neutron in Ubuntu.
https://bugs.launchpad.net/bugs/1960319
Title:
Missing dependency for neutron-server: openvswitch-common
Status in neutron package in Ubuntu:
Triaged
Bug description:
The Neutron Server code will in some circumstances call out to the
`ovsdb-client` binary for OVN database maintenance. [0]
This change appeared recently but has been backported all the way to
OpenStack Train [1].
The neutron-server does currently not depend on openvswitch-common and
as such the call will fail with log entries like:
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event [req-46b888be-d233-4aec-a4d4-3ba04d220f64 - - - - -] Unexpected exception in notify_loop: FileNotFoundError: [Errno 2] No such file or directory: 'ovsdb-client'
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event Traceback (most recent call last):
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3/dist-packages/ovsdbapp/event.py", line 143, in notify_loop
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event match.run(event, row, updates)
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py", line 347, in run
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event self.driver.delete_mac_binding_entries(row.external_ip)
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py", line 1068, in delete_mac_binding_entries
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event return processutils.execute(*cmd,
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3/dist-packages/oslo_concurrency/processutils.py", line 383, in execute
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event obj = subprocess.Popen(cmd,
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3/dist-packages/eventlet/green/subprocess.py", line 58, in __init__
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event self._execute_child(args, executable, preexec_fn, close_fds,
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event raise child_exception_type(errno_num, err_msg, err_filename)
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event FileNotFoundError: [Errno 2] No such file or directory: 'ovsdb-client'
2022-02-08 13:38:23.053 386820 ERROR ovsdbapp.event
0: https://github.com/openstack/neutron/blob/2999b8e579dd9d5ac6ee5f0ec77ff5607b6a1143/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L1113
1: https://review.opendev.org/q/Id84bf17953527c415d611bfc198038fb6f811de3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/1960319/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list