group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #30163
[Bug 1828892] [NEW] systemctl - alias service reports inactive while aliased is active
Public bug reported:
[Impact]
'systemctl is-active' command reports an alias service as inactive even though the aliased service
is active.
Currently the 'systemctl is-active' command does not load units to minimise its effect on the system (i.e. that a monitoring command does not itself alter the state of the system).
However, this behaviour leads to inconsistencies when services are aliased.
[Test case]
- Test case 1 - libvirtd
alias service : libvirtd
aliased service : libvirt-bin
/etc/systemd/system$ ls -la libvirtd.service
lrwxrwxrwx 1 root root 39 May 13 20:49 libvirtd.service -> /lib/systemd/system/libvirt-bin.service
$ systemctl is-active libvirtd
inactive
$ systemctl is-active libvirt-bin
active
- Test case 2 - sshd
alias service : sshd
aliased service : ssh
/ect/systemd/system$ ls -la sshd.service
lrwxrwxrwx 1 root root 31 Mar 19 19:44 sshd.service -> /lib/systemd/system/ssh.service
$ systemctl is-active sshd
inactive
$ systemctl is-active ssh
active
[Regression Potential]
This fix may result into systemctl reporting inconsistent information
concerning the status of a service.
[Other]
Upstream issue : https://github.com/systemd/systemd/issues/7875
Upstream fix : https://github.com/systemd/systemd/pull/7997
Xenial is affected, fix exists on Bionic onward.
$ lsb_release -rd
Description: Ubuntu 16.04.6 LTS
Release: 16.04
$ apt-cache policy systemd
systemd:
Installed: 229-4ubuntu21.21
Candidate: 229-4ubuntu21.21
** Affects: systemd (Ubuntu)
Importance: Medium
Assignee: Ioanna Alifieraki (joalif)
Status: Confirmed
** Affects: systemd (Ubuntu Xenial)
Importance: Medium
Assignee: Ioanna Alifieraki (joalif)
Status: Confirmed
** Tags: sts
** Changed in: systemd (Ubuntu)
Status: New => Confirmed
** Changed in: systemd (Ubuntu)
Importance: Undecided => Medium
** Changed in: systemd (Ubuntu)
Assignee: (unassigned) => Ioanna Alifieraki (joalif)
** Also affects: systemd (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: systemd (Ubuntu Xenial)
Status: New => Confirmed
** Changed in: systemd (Ubuntu Xenial)
Importance: Undecided => Medium
** Changed in: systemd (Ubuntu Xenial)
Assignee: (unassigned) => Ioanna Alifieraki (joalif)
** Tags added: sts
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1828892
Title:
systemctl - alias service reports inactive while aliased is active
Status in systemd package in Ubuntu:
Confirmed
Status in systemd source package in Xenial:
Confirmed
Bug description:
[Impact]
'systemctl is-active' command reports an alias service as inactive even though the aliased service
is active.
Currently the 'systemctl is-active' command does not load units to minimise its effect on the system (i.e. that a monitoring command does not itself alter the state of the system).
However, this behaviour leads to inconsistencies when services are aliased.
[Test case]
- Test case 1 - libvirtd
alias service : libvirtd
aliased service : libvirt-bin
/etc/systemd/system$ ls -la libvirtd.service
lrwxrwxrwx 1 root root 39 May 13 20:49 libvirtd.service -> /lib/systemd/system/libvirt-bin.service
$ systemctl is-active libvirtd
inactive
$ systemctl is-active libvirt-bin
active
- Test case 2 - sshd
alias service : sshd
aliased service : ssh
/ect/systemd/system$ ls -la sshd.service
lrwxrwxrwx 1 root root 31 Mar 19 19:44 sshd.service -> /lib/systemd/system/ssh.service
$ systemctl is-active sshd
inactive
$ systemctl is-active ssh
active
[Regression Potential]
This fix may result into systemctl reporting inconsistent information
concerning the status of a service.
[Other]
Upstream issue : https://github.com/systemd/systemd/issues/7875
Upstream fix : https://github.com/systemd/systemd/pull/7997
Xenial is affected, fix exists on Bionic onward.
$ lsb_release -rd
Description: Ubuntu 16.04.6 LTS
Release: 16.04
$ apt-cache policy systemd
systemd:
Installed: 229-4ubuntu21.21
Candidate: 229-4ubuntu21.21
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1828892/+subscriptions
Follow ups