[rocky][19.04] Upgrading a deployment from Queens to Rocky resulted in purging of neutron-l3-agent package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Open vSwitch Charm |
Opinion
|
Undecided
|
Unassigned | ||
OpenStack Nova Compute Charm |
Fix Released
|
High
|
Corey Bryant | ||
neutron (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Upgrading OpenStack from Queens to Rocky results in removal of neutron-l3-agent package which leads to a networking outage.
The issue with the fact that first python3 packages are installed and then python2 packages are purged. The neutron-l3-agent package depends on both.
At the same time neutron-dhcp-agent survives the upgrade while both packages seem to have identical "Depends" directives for python[3]-neutron:
https:/
Package: neutron-l3-agent
Architecture: all
Depends:
conntrack,
iputils-arping,
keepalived,
neutron-
python-neutron (= ${source:Version}) | python3-neutron (= ${source:Version}),
python-
https:/
Package: neutron-dhcp-agent
Architecture: all
Depends:
dnsmasq-base (>= 2.76),
dnsmasq-utils (>= 2.76),
neutron-
python-neutron (= ${source:Version}) | python3-neutron (= ${source:Version}),
When I try to install neutron-l3-agent it tries to pull python2 dependencies again (even though the python3 ones are already there):
https:/
More info below:
------
2019-05-07 16:42:41 DEBUG neutron-
2019-05-07 16:42:41 DEBUG neutron-
2019-05-07 16:42:41 DEBUG neutron-
2019-05-07 16:42:47 DEBUG neutron-
2019-05-07 16:42:47 DEBUG neutron-
em/neutron-
/var/log/
update-
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 113229 files and directories currently installed.)
Purging configuration files for python-neutron (2:13.0.
Purging configuration files for neutron-l3-agent (2:13.0.
Purging configuration files for python-
Purging configuration files for python-nova (2:18.1.
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.21) ...
Log ended: 2019-05-08 13:46:55
/var/log/
# install python3 packages
Start-Date: 2019-05-08 13:45:18
Commandline: apt-get --assume-yes --option=
ova-api-metadata python3-nova python3-memcache python3-rados python3-rbd python3-neutron
# purge python2 packages
Start-Date: 2019-05-08 13:46:40
Commandline: apt-get --assume-yes purge python-neutron python-nova
Purge: neutron-
End-Date: 2019-05-08 13:46:55
apt policy python3-neutron
https:/
apt-rdepends:
neutron-l3-agent
Depends: conntrack
Depends: iputils-arping
Depends: keepalived
Depends: neutron-
Depends: python-neutron (= 2:13.0.
Depends: python-
Depends: python3-neutron (= 2:13.0.
Depends: python3-
# ...
neutron-dhcp-agent
Depends: dnsmasq-base (>= 2.76)
Depends: dnsmasq-utils (>= 2.76)
Depends: neutron-
Depends: python-neutron (= 2:13.0.
Depends: python3-neutron (= 2:13.0.
# ...
if cmp_release >= 'rocky':
return PURGE_PACKAGES
return []
https:/
PURGE_PACKAGES = [
'python-
'python-
]
install_
install_
# NOTE(jamespage): purge any packages as a result of py3 switch
# at rocky.
packages_
request_
if packages_to_purge:
Changed in charm-nova-compute: | |
status: | New → Triaged |
Changed in neutron (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in charm-neutron-openvswitch: | |
importance: | Undecided → High |
Changed in charm-nova-compute: | |
importance: | Undecided → High |
Changed in charm-neutron-openvswitch: | |
status: | New → Triaged |
Changed in charm-nova-compute: | |
status: | Triaged → In Progress |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-nova-compute: | |
milestone: | none → 19.04 |
status: | Fix Committed → Fix Released |
Subscribed ~field-critical.