Comment 3 for bug 1805322

Revision history for this message
Alvaro Uria (aluria) wrote :

In BootStack, we also run the upgrade procedure via actions.

In my specific case,
1) deployed openstack-on-lxd's bundle-bionic-queens.yaml,
2) enabled action-managed-upgrade (True)
3) updated neutron-api's openstack-origin value from default (distro) to "cloud:bionic-stein"

Per code shared by jamespage, apt_install is run but add_source is not, so packages such as python3-neutron-fwaas can't be located.
"""
2019-08-02 08:41:22 DEBUG config-changed E: Unable to locate package python3-neutron-lbaas
2019-08-02 08:41:22 DEBUG config-changed E: Unable to locate package python3-neutron-fwaas
2019-08-02 08:41:22 DEBUG config-changed E: Unable to locate package python3-neutron-dynamic-routing
2019-08-02 08:41:22 DEBUG config-changed E: Unable to locate package python3-neutron
2019-08-02 08:41:22 DEBUG config-changed E: Unable to locate package python3-networking-hyperv
"""

Workaround is to:
2b) leave action-managed-upgrade disabled (False)
Note: rest of steps are the same

However, I now see a different error (jumping directly from Queens to Stein, as suggested in the official documentation [1]):
"""
root@juju-047355-17:~# apt-get install python3-neutron
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python-ceilometerclient python-pika-pool python-positional python-retrying
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  python3-neutron
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
206 not fully installed or removed.
Need to get 0 B/1,606 kB of archives.
After this operation, 14.3 MB of additional disk space will be used.
(Reading database ... 54718 files and directories currently installed.)
Preparing to unpack .../python3-neutron_2%3a14.0.2-0ubuntu1~cloud0_all.deb ...
Unpacking python3-neutron (2:14.0.2-0ubuntu1~cloud0) ...
dpkg: error processing archive /var/cache/apt/archives/python3-neutron_2%3a14.0.2-0ubuntu1~cloud0_all.deb (--unpack):
 trying to overwrite '/usr/bin/neutron-api', which is also in package python-neutron 2:12.0.6-0ubuntu3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python3-neutron_2%3a14.0.2-0ubuntu1~cloud0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
"""

1. https://docs.openstack.org/charm-guide/latest/1904.html#upgrading-openstack