[plugin][systemd] prefer resolvectl over systemd-resolve
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sosreport (Debian) |
Fix Released
|
Unknown
|
|||
sosreport (Ubuntu) |
Fix Released
|
Medium
|
Eric Desrochers | ||
Bionic |
Fix Released
|
Medium
|
Eric Desrochers | ||
Focal |
Fix Released
|
Medium
|
Eric Desrochers | ||
Groovy |
Fix Released
|
Medium
|
Eric Desrochers | ||
Hirsute |
Fix Released
|
Medium
|
Eric Desrochers |
Bug Description
[Impact]
'resolvectl' has been introduced in systemd v239. Hence 'systemd-resolve' is now considered deprecated.
In Ubuntu (Focal and onward), to accommodate the transition, a symlink has been created as follows:
$ ls -altr /usr/bin/
lrwxrwxrwx 1 root root 10 Jul 6 2020 /usr/bin/
In stable releases we have systemd version lt and gt v239:
#systemd-resolve (wo/ resolvectl cmd):
systemd | 229-4ubuntu21.27 | xenial-security
systemd | 229-4ubuntu21.29 | xenial-updates
systemd | 237-3ubuntu10 | bionic
systemd | 237-3ubuntu10.38 | bionic-security
systemd | 237-3ubuntu10.44 | bionic-updates
#resolvectl (w/ resolvectl and the symlink for 'systemd-resolve'):
systemd | 245.4-4ubuntu3 | focal
systemd | 245.4-4ubuntu3.4 | focal-updates
systemd | 246.6-1ubuntu1 | groovy
systemd | 246.6-1ubuntu1.1 | groovy-updates
systemd | 247.1-4ubuntu1 | hirsute
[Test case]
* Deploy Ubuntu (A container will do)
* Run sosreport and make sure the systemd plugin is executed
** sosreport -a
** sosreport -o systemd
* Look the content of the generated tarball under 'path_to_
And you'll find the output of 'systemd'resolve' for statistics and status.
What we want is to sosreport to prefer 'resolvectl' iff it exists/executable.
[Where problem could occur]
This 'sos' change enable 'resolvectl' as the preference but remains backward compatible with 'systemd-resolve' for system with systemd version lt v239.
If a problem have to occur, it will only be impacting the systemd plugin itself, not the core functionalities of 'sos' nor its other plugins.
[Other information]
Upstream:
https:/
https:/
Debian:
https:/
Changed in sosreport (Ubuntu Hirsute): | |
assignee: | nobody → Eric Desrochers (slashd) |
status: | New → In Progress |
Changed in sosreport (Ubuntu Groovy): | |
status: | New → In Progress |
Changed in sosreport (Ubuntu Focal): | |
status: | New → In Progress |
Changed in sosreport (Ubuntu Bionic): | |
status: | New → Incomplete |
Changed in sosreport (Ubuntu Groovy): | |
assignee: | nobody → Eric Desrochers (slashd) |
Changed in sosreport (Ubuntu Focal): | |
assignee: | nobody → Eric Desrochers (slashd) |
Changed in sosreport (Ubuntu Bionic): | |
assignee: | nobody → Eric Desrochers (slashd) |
status: | Incomplete → In Progress |
status: | In Progress → Won't Fix |
status: | Won't Fix → In Progress |
tags: | added: seg sts |
summary: |
- [plugin]systemd] prefer resolvectl over systemd-resolve + [plugin][systemd] prefer resolvectl over systemd-resolve |
description: | updated |
Changed in sosreport (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
Changed in sosreport (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Changed in sosreport (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in sosreport (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in sosreport (Debian): | |
status: | Unknown → Fix Released |
Changed in sosreport (Ubuntu Groovy): | |
status: | Fix Committed → In Progress |
This bug was fixed in the package sosreport - 4.0-1ubuntu6
---------------
sosreport (4.0-1ubuntu6) hirsute; urgency=medium
[Eric Desrochers] apt-move- unattended- upgrades- log-collection. patch
* d/p/0012-
(LP: #1906302)
[Ponnuvel Palaniyappan] bcache- add-a-new- plugin- for-bcache. patch
* d/p/0013-
(LP: #1913284)
[Felipe Reyes] k8s-add- cdk-master- auth-webhook- to-journal. patch k8s-fix- cdk-related- file-paths. patch
* d/p/0014-
* d/p/0015-
(LP: #1913583)
[Michael Biebl] systemd- prefer- resolvectl- over-systemd- resolve. patch
* d/p/0016-
(LP: #1913581)
-- Eric Desrochers <email address hidden> Fri, 29 Jan 2021 12:20:50 -0500