[Bug 1828293] Re: [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

James Page 1828293 at bugs.launchpad.net
Fri Oct 4 15:00:47 UTC 2024


This bug was fixed in the package neutron-fwaas-dashboard - 1:8.0.0-0ubuntu1~cloud0
---------------

 neutron-fwaas-dashboard (1:8.0.0-0ubuntu1~cloud0) noble-dalmatian; urgency=medium
 .
   * New package for the Ubuntu Cloud Archive.
 .
 neutron-fwaas-dashboard (1:8.0.0-0ubuntu1) oracular; urgency=medium
 .
   * New upstream release for OpenStack Dalmatian.
 .
 neutron-fwaas-dashboard (1:8.0.0~rc1-0ubuntu1) oracular; urgency=medium
 .
   [ Corey Bryant ]
   * d/gbp.conf, .launchpad.yaml: Sync from cloud-archive-tools for
     caracal.
 .
   [ James Page ]
   * d/watch: Fix URL generation.
   * d/gbp.conf: upstream-branch -> upstream-dalmatian.
   * New upstream release for OpenStack Dalmatian.
   * d/control: Align (Build)-Depends with release.
   * d/rules: Fix rule file to work with rc versions.
 .
 neutron-fwaas-dashboard (1:3.0.0-0ubuntu2) UNRELEASED; urgency=medium
 .
   * d/control: Update VCS paths for move to lp:~ubuntu-openstack-dev.
 .
 neutron-fwaas-dashboard (1:3.0.0-0ubuntu1) groovy; urgency=medium
 .
   * d/watch: Get tarballs from opendev.org.
   * New upstream release for OpenStack Ussuri (LP: #1877642).
 .
 neutron-fwaas-dashboard (1:2.1.1~git2020041315.d49e7ef-0ubuntu1) focal; urgency=medium
 .
   * New upstream snapshot for OpenStack Ussuri.
 .
 neutron-fwaas-dashboard (1:2.1.1~git2020032617.d57d35e-0ubuntu1) focal; urgency=medium
 .
   * New upstream snapshot for OpenStack Ussuri.
   * d/python3-neutron-fwaas-dashboard.postinst: Align chown command with horizon package.
 .
 neutron-fwaas-dashboard (1:2.1.1~git2020021315.d017b82-0ubuntu1) focal; urgency=medium
 .
   * New upstream snapshot for OpenStack Ussuri.
   * d/control: Align (Build-)Depends with upstream.
   * d/rules: Don't run integration tests.
 .
 neutron-fwaas-dashboard (1:2.1.0-0ubuntu1) eoan; urgency=medium
 .
   [ Corey Bryant ]
   * d/watch: Get release tarballs from tarballs.openstack.org.
 .
   [ James Page ]
   * d/watch: Misc fixes.
   * New upstream release for OpenStack Train.
   * Bump epoch due to mis-versioning of snapshots during development cycle.
 .
 neutron-fwaas-dashboard (3.0.0~b1~git2019061308.f722df5-0ubuntu3) eoan; urgency=medium
 .
   * d/control: Switch back to python3-django >= 1:1.11. See related bug to
     prevent python3-django 2:2.2.4 from migrating to eoan-release:
     https://bugs.launchpad.net/bugs/1842969.
 .
 neutron-fwaas-dashboard (3.0.0~b1~git2019061308.f722df5-0ubuntu2) eoan; urgency=medium
 .
   * d/control: Ensure python3-django is << 2:2.2.4.
 .
 neutron-fwaas-dashboard (3.0.0~b1~git2019061308.f722df5-0ubuntu1) eoan; urgency=medium
 .
   * New upstream snapshot for OpenStack Train.
 .
 neutron-fwaas-dashboard (2.0.1-0ubuntu2) eoan; urgency=medium
 .
   * d/control: Add Breaks/Replaces to python3-neutron-fwaas-dashboard to
     ensure python-neutron-fwaas-dashboard is removed on upgrade (LP: #1828293).
   * d/control: (Build-)Depends on latest python3-django-horizon and
     openstack-dashboard to ensure unit tests are successful (LP: #1806053).
 .
 neutron-fwaas-dashboard (2.0.1-0ubuntu1) disco; urgency=medium
 .
   * New upstream release for OpenStack Stein.
 .
 neutron-fwaas-dashboard (2.0.0-0ubuntu1) disco; urgency=medium
 .
   * New Upstream release for OpenStack Stein.
   * d/control: Bump minimum version of horizon.
 .
 neutron-fwaas-dashboard (1.5.0-0ubuntu3) cosmic; urgency=medium
 .
   * d/rules: Misc fixes to resolve FTBFS as this package only provides
     a Python 3 module.
 .
 neutron-fwaas-dashboard (1.5.0-0ubuntu2) cosmic; urgency=medium
 .
   * d/rules,python3-neutron-fwaas-dashboard.*: Refactor to work with
     Ubuntu layout for openstack-dashboard, resolving installation issues
     (LP: #1796357).
 .
 neutron-fwaas-dashboard (1.5.0-0ubuntu1) cosmic; urgency=medium
 .
   * d/gbp.conf: Update gbp configuration file.
   * d/control: Update Vcs-* links and maintainers.
   * New upstream release for OpenStack Rocky.
   * d/control: Align (Build-)Depends with upstream.
 .
 neutron-fwaas-dashboard (1.3.0-1ubuntu1) cosmic; urgency=medium
 .
   * Add missing build-dependency on python3-django-horizon, needed by
     neutron_fwaas_dashboard/test/settings.py.
 .
 neutron-fwaas-dashboard (1.3.0-1) unstable; urgency=medium
 .
   * Initial release (Closes: #898156).


** Changed in: cloud-archive
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1828293

Title:
  [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

Status in OpenStack Dashboard Charm:
  Invalid
Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive rocky series:
  Fix Released
Status in Ubuntu Cloud Archive stein series:
  Fix Released
Status in neutron-fwaas-dashboard package in Ubuntu:
  Fix Released
Status in neutron-fwaas-dashboard source package in Cosmic:
  Fix Released
Status in neutron-fwaas-dashboard source package in Disco:
  Fix Released
Status in neutron-fwaas-dashboard source package in Eoan:
  Fix Released

Bug description:
  [Impact]
  The upgrade process from Queens to Rocky fails due to a failure to override a policy file:
  https://paste.ubuntu.com/p/tH4qrvP7mS/

  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/share/openstack-dashboard/openstack_dashboard/conf/'
                       'keystonev3_policy.json')

  This is reproducible without charms by simply doing the following:

  lxc launch ubuntu:bionic neutrontest
  Creating neutrontest
  Starting neutrontest

  lxc exec neutrontest bash
  root at neutrontest:~# apt update
  root at neutrontest:~# apt install python-neutron-fwaas-dashboard
  # ... https://paste.ubuntu.com/p/RMKbNH5DbB/

  root at neutrontest:~# add-apt-repository cloud-archive:rocky
  root at neutrontest:~# python3-neutron-fwaas-dashboard
  https://paste.ubuntu.com/p/4Fq9MvpP9p/

  Unpacking python3-neutron-fwaas-dashboard (1.5.0-0ubuntu3~cloud0) ...
  dpkg: error processing archive /tmp/apt-dpkg-install-R0ZsZb/111-python3-neutron-fwaas-dashboard_1.5.0-0ubuntu3~cloud0_all.deb (--unpack):
   trying to overwrite '/etc/openstack-dashboard/neutron-fwaas-policy.json', which is also in package python-neutron-fwaas-dashboard 1.3.0-0ubuntu1.1

  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-dpkg-install-3M5oD6/099-python3-neutron-fwaas-dashboard_1.5.0-0ubuntu3~cloud0_all.deb
  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-mod-wsgi-py3 is already the newest version (4.5.17-1).
  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.18.04.1).
  2019-05-08 14:38:24 DEBUG openstack-upgrade openstack-dashboard is already the newest version (3:14.0.2-0ubuntu2~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade openstack-dashboard-ubuntu-theme is already the newest version (3:14.0.2-0ubuntu2~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade python3-designate-dashboard is already the newest version (7.0.0-0ubuntu1~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade python3-django-horizon is already the newest version (3:14.0.2-0ubuntu2~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade python3-heat-dashboard is already the newest version (1.4.0-0ubuntu1~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade python3-keystoneclient is already the newest version (1:3.17.0-0ubuntu1~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade python3-neutron-lbaas-dashboard is already the newest version (5.0.0-0ubuntu1~cloud0).
  2019-05-08 14:38:24 DEBUG openstack-upgrade python3-novaclient is already the newest version (2:11.0.0-0ubuntu1~cloud0).
  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-neutron-fwaas-dashboard
  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-neutron-fwaas-dashboard_1.5.0-0ubuntu3~cloud0_all.deb ...
  2019-05-08 14:38:25 DEBUG openstack-upgrade Unpacking python3-neutron-fwaas-dashboard (1.5.0-0ubuntu3~cloud0) ...
  2019-05-08 14:38:25 DEBUG openstack-upgrade dpkg: error processing archive /var/cache/apt/archives/python3-neutron-fwaas-dashboard_1.5.0-0ubuntu3~cloud0_all.deb (--unpack):
  2019-05-08 14:38:25 DEBUG openstack-upgrade  trying to overwrite '/etc/openstack-dashboard/neutron-fwaas-policy.json', which is also in package python-neutron-fwaas-dashboard 1.3.0-0ubuntu1.1
  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/apt/archives/python3-neutron-fwaas-dashboard_1.5.0-0ubuntu3~cloud0_all.deb
  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-neutron-fwaas-dashboard
  # add-apt-repository cloud-archive:rocky
  # apt dist-upgrade
  # apt install python3-neutron-fwaas-dashboard

  [Regression Potential]
  Regression potential is low. The fix is just adding a breaks/replaces to python3-neutron-fwaas-dashboard to ensure python-neutron-fwaas-dashboard is removed when python3-neutron-fwaas-dashboard is installed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1828293/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list