[Queens -> Rocky][19.04] neutron-l3-agent is not restarted automatically which can result in impl_idl import errors during l3 agent operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Gateway Charm |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Neutron Open vSwitch Charm |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Nova Compute Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
[Problem Description]
Upgraded a deployment from Queens to Rocky (via charm actions) and tried to create a router after that - all of its ports were down https:/
This looks like py2 -> py3 conversion related error - the necessary python2 packages were removed, however, the agent still runs with python2.7 (see below).
As soon as I restart the l3 agents on all nodes, ports are "up" as shown in `openstack port list --router <routername>`
juju run --application neutron-openvswitch 'sudo systemctl restart neutron-l3-agent'
I would expect neutron-
[Analysis]
Based on the l3-agent log I can see that this was due to import errors:
https:/
2019-07-05 14:53:26.544 1146080 ERROR neutron.
2019-07-05 14:53:26.544 1146080 ERROR neutron.
# ...
2019-07-05 14:53:26.544 1146080 ERROR neutron.
2019-07-05 14:53:26.544 1146080 ERROR neutron.
2019-07-05 14:53:26.544 1146080 ERROR neutron.
There are no python2.7 packages left with that module:
find /usr/lib/python* -name 'impl_idl.py'
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
root@adze:~# dpkg -l | grep ovsdb
ii python3-ovsdbapp 0.12.0-
python-ovsdbapp was removed during the upgrade:
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
/var/log/
State before a manual neutron-l3-agent restart (python2.7):
systemctl status neutron-l3-agent
● neutron-
Loaded: loaded (/lib/systemd/
Active: active (running) since Wed 2019-07-03 21:48:25 UTC; 1 day 18h ago
Main PID: 1411876 (neutron-l3-agen)
Tasks: 2 (limit: 4915)
CGroup: /system.
After (python3.6):
systemctl status neutron-l3-agent
● neutron-
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2019-07-05 16:02:18 UTC; 1s ago
Main PID: 2085206 (neutron-l3-agen)
Tasks: 1 (limit: 4915)
CGroup: /system.
Jul 05 16:02:18 adze systemd[1]: Started OpenStack Neutron L3 agent.
description: | updated |
tags: | added: py3 upgrade |
tags: | added: openstack-upgrade |
Changed in charm-nova-compute: | |
status: | Triaged → In Progress |
assignee: | nobody → Alex Kavanagh (ajkavanagh) |
Changed in charm-nova-compute: | |
assignee: | Alex Kavanagh (ajkavanagh) → nobody |
Changed in charm-nova-compute: | |
milestone: | none → 20.02 |
Changed in charm-nova-compute: | |
status: | Fix Committed → Fix Released |
Subscribed ~field-high as it affects cloud upgrade operations.