Upgrade to Focal now removes chrony
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Invalid
|
Undecided
|
Unassigned | ||
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
chrony (Ubuntu) |
Invalid
|
Critical
|
Unassigned | ||
Focal |
Invalid
|
Critical
|
Unassigned | ||
germinate (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned | ||
ntp (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Critical
|
Brian Murray | ||
Focal |
Fix Released
|
Critical
|
Brian Murray |
Bug Description
Due to changes in systemd for bug 1849156 this issue now happens.
On an upgrade for people that had chrony installed on a do-release upgrade it now will:
Calculating the changes
MarkInstall systemd-
Removing: chrony
MarkDelete chrony:amd64 < 3.2-4ubuntu4.2 -> 3.5-6ubuntu3 @ii umU Ib > FU=0
That isn't what users want, those who had chrony installed would want to get chrony upgraded and systemd-timesyncd (which now is a separate pacakge) not installed.
Test Case
---------
1) On a system running Ubuntu 19.10 or Ubuntu 18.04 LTS install the package chrony
2) Run do-release-upgrade with the appropriate switches
3) Observe that chrony is marked for deletion
With the version of dist-upgrader from -proposed (accessed with the -p switch) chrony is no longer marked for deletion.
Regression Potential
-------
Given that Dimitri's change is now ignoring the tasks minimal and standard (which are handled by _keepBaseMetaPk
Regression Test
---------------
1) Run do-release-upgrade on an Ubuntu 19.10 or Ubuntu 18.04 LTS system
2) Record the list of packages marked for removal
Compare the list of packages marked for removal with the release-upgrader from -proposed from Focal.
Original Description
-------
I'd ask you to revise the dependencies that got changes in systemd 245.4-2ubuntu1 so that on an upgrade from e.g. Bionic chrony stays installed as that was an opt-in chances are quite high people would want to keep it that way.
Related branches
- Brian Murray: Needs Fixing
- Balint Reczey: Abstain
- Christian Ehrhardt : Pending requested
- Michael Vogt: Pending requested
- Steve Langasek: Pending requested
- Julian Andres Klode: Pending requested
- Ubuntu Core Development Team: Pending requested
-
Diff: 43 lines (+13/-0)3 files modifiedDistUpgrade/DistUpgradeCache.py (+3/-0)
data/DistUpgrade.cfg (+3/-0)
debian/changelog (+7/-0)
- Dimitri John Ledkov (community): Needs Fixing (can-of-warms)
- Julian Andres Klode: Abstain
- Brian Murray: Pending requested
-
Diff: 18 lines (+7/-0)1 file modifiedDistUpgrade/DistUpgradeCache.py (+7/-0)
Changed in systemd (Ubuntu): | |
importance: | Undecided → Critical |
affects: | systemd (Ubuntu) → chrony (Ubuntu) |
Changed in systemd (Ubuntu): | |
status: | New → Invalid |
Changed in ntp (Ubuntu): | |
status: | New → Invalid |
Changed in chrony (Ubuntu): | |
status: | New → Invalid |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
status: | Confirmed → Triaged |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
milestone: | none → ubuntu-20.04 |
tags: | removed: rls-ff-incoming |
tags: | added: id-5e988a9a09d61740cd5889de |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
milestone: | ubuntu-20.04 → ubuntu-20.05 |
status: | Triaged → In Progress |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
assignee: | nobody → Brian Murray (brian-murray) |
milestone: | ubuntu-20.04 → ubuntu-20.04.1 |
status: | Triaged → In Progress |
description: | updated |
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
Changed in ubuntu-release-notes: | |
status: | New → Invalid |
If I add the following pinning chrony is kept:
# cat /etc/apt/ preferences. d/chrony- pin
Package: systemd-timesyncd
Pin: release n=focal*
Pin-Priority: -1
Ntp packages is affected the same way.
Systemd's dependencies (systemd-timesyncd | time-daemon) allows keeping chrony, ntp, etc., but APT chooses systemd-timesyncd. Maybe we need a quirk or an adjustment of a quirk in u-r-u.