[Bug 1960065] Re: cloud archive: apt upgrade from rocky to stein keeps back some ceph packages
James Page
1960065 at bugs.launchpad.net
Mon Feb 14 16:40:31 UTC 2022
Stepping between UCA pockets is really akin to a distribution upgrade so
I think its appropriate that only a dist-upgrade action would complete
the transition correctly (or an install as detailed in #8).
We could provide transitional packages but this would need to be done as
patches ontop of the ceph packages from the associated source Ubuntu
repository and as there is a clear path to complete an upgrade
successfully I'm reticent to follow this path.
** Changed in: ceph (Ubuntu)
Status: Triaged => Invalid
** Changed in: ceph (Ubuntu)
Status: Invalid => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1960065
Title:
cloud archive: apt upgrade from rocky to stein keeps back some ceph
packages
Status in ceph package in Ubuntu:
Won't Fix
Bug description:
The ceph python2 packages have been dropped between rocky and stein.
(in Disco, from 13.2.1+dfsg1-0ubuntu3 to 13.2.2+dfsg1-0ubuntu1 [1]).
The packages python-{cephfs,rados,rbd} have no upgrades, but have
exact versioned dependencies on packages that have upgrades.
So, during `apt upgrade` the former block the latter from being
upgraded, which in turn block other ceph packages from being upgraded
(e.g., ceph-{common,mon,osd,mgr}).
Note this isn't a problem on `apt full-upgrade` or `apt dist-upgrade`
as these allow package removals (`apt upgrade` does not), then `apt`
just decides to remove those 3 packages.
It's possible to fix this with dummy transitional packages that remove
the exact versioned dependency (patch provided/tested in comment #5).
[1] https://launchpad.net/ubuntu/+source/ceph/13.2.2+dfsg1-0ubuntu1
Steps to Reproduce:
---
Setup Bionic container:
$ lxc launch ubuntu:bionic bionic-uca
$ lxc exec bionic-uca -- su - ubuntu
$ sudo apt --yes purge unattended-upgrades
$ sudo apt update
Install ceph from Bionic (Queens):
$ sudo apt --yes install ceph
$ dpkg -s ceph | grep Version
Version: 12.2.13-0ubuntu0.18.04.10
Upgrade to UCA Rocky:
$ sudo add-apt-repository --yes cloud-archive:rocky
$ sudo apt --dry-run upgrade
...
The following packages will be upgraded:
ceph ceph-base ceph-common ceph-mgr ceph-mon ceph-osd libcephfs2 librados2 libradosstriper1 librbd1 python-cephfs python-pecan python-rados python-rbd
python-webob python3-jsonpatch
...
$ sudo apt --yes upgrade
$ dpkg -s ceph | grep Version
Version: 13.2.8-0ubuntu0.18.10.1~cloud0
Upgrade to UCA Stein:
$ sudo add-apt-repository --yes cloud-archive:stein
$ sudo apt --dry-run upgrade
...
The following packages have been kept back:
ceph ceph-base ceph-common ceph-mgr ceph-mon ceph-osd libcephfs2 librados2 libradosstriper1 librbd1
...
Issue above.
Check:
---
$ sudo apt -o Debug::pkgProblemResolver=1 --dry-run upgrade
...
Entering ResolveByKeep 10%
Dependencies are not satisfied for python-cephfs:amd64 < 13.2.8-0ubuntu0.18.10.1~cloud0 @ii mK Ib >
Keeping package python-cephfs:amd64
Dependencies are not satisfied for python-cephfs:amd64 < 13.2.8-0ubuntu0.18.10.1~cloud0 @ii mK Ib >
Package python-cephfs:amd64 python-cephfs:amd64 Depends on libcephfs2:amd64 < 13.2.8-0ubuntu0.18.10.1~cloud0 -> 13.2.9-0ubuntu0.19.04.1~cloud3 @ii umU > (= 13.2
.8-0ubuntu0.18.10.1~cloud0)
Keeping Package libcephfs2:amd64 due to Depends
...
Details:
-------
python-cephfs at version 13.2.__8__ has exact version dep on
libcephfs2, which is being upgraded to 13.2.__9__.
Why isn't python-cephfs being upgraded to 13.2.__9__ too?
AH, there's no 13.2.__9__ version for python-cephfs, only for libcephfs2.
So, it stopped on 13.2.__8__ in UCA Rocky, there's no 13.2.__9__ in UCA Stein, as there's for libcephfs2.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1960065/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list