[Queens -> Rocky Upgrade] python3-neutron-fwaas-dashboard installation: trying to overwrite '/etc/openstack-dashboard/neutron-fwaas-policy.json', which is also in package python-neutron-fwaas-dashboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Invalid
|
High
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Rocky |
Fix Released
|
High
|
Unassigned | ||
Stein |
Fix Released
|
High
|
Unassigned | ||
neutron-fwaas-dashboard (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Fix Released
|
High
|
Unassigned | ||
Disco |
Fix Released
|
High
|
Unassigned | ||
Eoan |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
The upgrade process from Queens to Rocky fails due to a failure to override a policy file:
https:/
The issue causes an upgrade action to exit prematurely which leaves the dashboard in a broken state as the keystone v3 policy json file is not rendered.
KEYSTONEV3_POLICY = ('/usr/
This is reproducible without charms by simply doing the following:
lxc launch ubuntu:bionic neutrontest
Creating neutrontest
Starting neutrontest
lxc exec neutrontest bash
root@neutrontest:~# apt update
root@neutrontest:~# apt install python-
# ... https:/
root@neutrontest:~# add-apt-repository cloud-archive:rocky
root@neutrontest:~# python3-
https:/
Unpacking python3-
dpkg: error processing archive /tmp/apt-
trying to overwrite '/etc/openstack
The same issue in an output of execution of a charm action (19.04):
2019-05-08 14:38:12 DEBUG openstack-upgrade /tmp/apt-
2019-05-08 14:38:14 DEBUG openstack-upgrade E: Sub-process /usr/bin/dpkg returned an error code (1)
2019-05-08 14:38:14 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
2019-05-08 14:38:24 DEBUG openstack-upgrade Reading package lists...
2019-05-08 14:38:24 DEBUG openstack-upgrade Building dependency tree...
2019-05-08 14:38:24 DEBUG openstack-upgrade Reading state information...
2019-05-08 14:38:24 DEBUG openstack-upgrade libapache2-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-pymysql is already the newest version (0.8.0-1).
2019-05-08 14:38:24 DEBUG openstack-upgrade haproxy is already the newest version (1.8.8-1ubuntu0.4).
2019-05-08 14:38:24 DEBUG openstack-upgrade memcached is already the newest version (1.5.6-0ubuntu1.1).
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-memcache is already the newest version (1.57-2ubuntu0.
2019-05-08 14:38:24 DEBUG openstack-upgrade openstack-dashboard is already the newest version (3:14.0.
2019-05-08 14:38:24 DEBUG openstack-upgrade openstack-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-novaclient is already the newest version (2:11.0.
2019-05-08 14:38:24 DEBUG openstack-upgrade The following packages were automatically installed and are no longer required:
2019-05-08 14:38:24 DEBUG openstack-upgrade python-pika-pool python-positional python-retrying
2019-05-08 14:38:24 DEBUG openstack-upgrade Use 'apt autoremove' to remove them.
2019-05-08 14:38:24 DEBUG openstack-upgrade The following NEW packages will be installed:
2019-05-08 14:38:24 DEBUG openstack-upgrade python3-
2019-05-08 14:38:25 DEBUG openstack-upgrade 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2019-05-08 14:38:25 DEBUG openstack-upgrade 109 not fully installed or removed.
2019-05-08 14:38:25 DEBUG openstack-upgrade Need to get 0 B/55.6 kB of archives.
2019-05-08 14:38:25 DEBUG openstack-upgrade After this operation, 630 kB of additional disk space will be used.
(Reading database ... 81446 files and directories currently installed.)
2019-05-08 14:38:25 DEBUG openstack-upgrade Preparing to unpack .../python3-
2019-05-08 14:38:25 DEBUG openstack-upgrade Unpacking python3-
2019-05-08 14:38:25 DEBUG openstack-upgrade dpkg: error processing archive /var/cache/
2019-05-08 14:38:25 DEBUG openstack-upgrade trying to overwrite '/etc/openstack
2019-05-08 14:38:25 DEBUG openstack-upgrade Errors were encountered while processing:
2019-05-08 14:38:25 DEBUG openstack-upgrade /var/cache/
2019-05-08 14:38:27 DEBUG openstack-upgrade E: Sub-process /usr/bin/dpkg returned an error code (1)
2019-05-08 14:38:27 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
[Test Case]
# apt update
# apt install python-
# add-apt-repository cloud-archive:rocky
# apt dist-upgrade
# apt install python3-
[Regression Potential]
Regression potential is low. The fix is just adding a breaks/replaces to python3-
Changed in neutron-fwaas-dashboard (Ubuntu Cosmic): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in neutron-fwaas-dashboard (Ubuntu): | |
status: | Triaged → In Progress |
status: | In Progress → Triaged |
Changed in neutron-fwaas-dashboard (Ubuntu Disco): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
tags: | added: py3 |
Changed in charm-openstack-dashboard: | |
milestone: | 19.07 → 19.10 |
Changed in charm-openstack-dashboard: | |
milestone: | 19.10 → 20.01 |
tags: | added: series-upgrade |
The charm bug is about not reporting a failed upgrade in its status.
openstack- dashboard/ 0 active idle 3/lxd/6 10.232.46.158 80/tcp,443/tcp Unit is ready horizon/ 1 active idle 10.232.46.158 Unit is ready and clustered dashboard/ 1 active idle 10.232.46.158 Unit is ready dashboard/ 1* active idle 4/lxd/3 10.232.46.146 80/tcp,443/tcp Unit is ready horizon/ 0* active idle 10.232.46.146 Unit is ready and clustered dashboard/ 0* active idle 10.232.46.146 Unit is ready
hacluster-
octavia-
openstack-
hacluster-
octavia-