queens->rocky upgrade refuses to overwrite existing old binary with symlink

Bug #1845326 reported by Dr. Jens Harbott
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron-dynamic-routing (Ubuntu)
Triaged
High
Unassigned

Bug Description

On an upgrade from queens (where only the python2 pkg existed) to rocky fails to install the alternative. When installing the new package, it also refuses to overwrite the existing old binary with a symlink.

Note: bug description has been updated based on comment #2 so comment #1 is no longer applicable.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I believe this is working as designed. The packages set up alternatives in rocky where the python2 package alternative would take priority if both the py2 and py3 package are installed.

update-alternatives --install /usr/bin/neutron-bgp-dragent neutron-bgp-dragent /usr/bin/python3-neutron-bgp-dragent 200
update-alternatives --install /usr/bin/neutron-bgp-dragent neutron-bgp-dragent /usr/bin/python2-neutron-bgp-dragent 300

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Looking at the apt log, the trigger seems to have been that this was an upgrade from queens where only the python2 pkgs existed and didn't install the alternative. So when installing the new package, it also refused to overwrite the existing old binary with a symlink:

Preparing to unpack .../python3-neutron-dynamic-routing_2%3a13.0.0-0ubuntu1~cloud0_all.deb ...
Unpacking python3-neutron-dynamic-routing (2:13.0.0-0ubuntu1~cloud0) ...
Setting up python3-neutron-dynamic-routing (2:13.0.0-0ubuntu1~cloud0) ...
update-alternatives: using /usr/bin/python3-neutron-bgp-dragent to provide /usr/bin/neutron-bgp-dragent (neutron-bgp-dragent) in auto mode
update-alternatives: warning: not replacing /usr/bin/neutron-bgp-dragent with a link

IIUC the solution is to make python3-neutron-dynamic-routing conflict with older versions of python-neutron-dynamic-routing.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

That makes more sense. Let me update the bug description with these details.

summary: - neutron-bgp-dragent.service fails with python3-neutron-dynamic-routing
- installed
+ queens->rocky upgrade neutron-bgp-dragent.service queens refuses to
+ overwrite the existing old binary with symlink
summary: - queens->rocky upgrade neutron-bgp-dragent.service queens refuses to
- overwrite the existing old binary with symlink
+ queens->rocky upgrade queens refuses to overwrite existing old binary
+ with symlink
description: updated
Changed in neutron-dynamic-routing (Ubuntu):
status: New → Triaged
importance: Undecided → High
description: updated
summary: - queens->rocky upgrade queens refuses to overwrite existing old binary
- with symlink
+ queens->rocky upgrade refuses to overwrite existing old binary with
+ symlink
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.