← Back to team overview

touch-packages team mailing list archive

[Bug 1474426] [NEW] systemctl status globbing does not work on version 222

 

Public bug reported:

I am writing a test that executes systemctl status docker_docker-
daemon_*.service to get if the docker service is running.

This works in systemd 219, the version we have in vivid:

(amd64)ubuntu@test:~$ systemd --version
systemd 219
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN
(amd64)ubuntu@test:~$ systemctl status docker_docker-daemon_*.service
● docker_docker-daemon_1.6.1.002.service - The docker app deployment mechanism
   Loaded: loaded (/etc/systemd/system/docker_docker-daemon_1.6.1.002.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2015-07-14 14:41:10 UTC; 15min ago
 Main PID: 11860 (docker.start)
   CGroup: /system.slice/docker_docker-daemon_1.6.1.002.service
           ├─11860 /bin/bash /apps/docker/1.6.1.002/bin/docker.start
           ├─11868 docker.x86_64 -d -G docker -g /var/lib/apps/docker/1.6.1.0...
           └─12664 sleep 2

On version 222, the version we have in wily it doesn't work:

(amd64)ubuntu@localhost:~$ systemctl status docker_docker-
daemon_*.service

(nothing is returned)
Changing the * by the version, it works:

(amd64)ubuntu@localhost:~$ systemctl status docker_docker-daemon_1.6.1.002.service
● docker_docker-daemon_1.6.1.002.service - The docker app deployment mechanism
   Loaded: loaded (/etc/systemd/system/docker_docker-daemon_1.6.1.002.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2015-07-14 14:45:31 UTC; 12min ago
 Main PID: 789 (docker.start)
   CGroup: /system.slice/docker_docker-daemon_1.6.1.002.service
           ├─ 789 /bin/bash /apps/docker/1.6.1.002/bin/docker.start
           ├─ 800 docker.x86_64 -d -G docker -g /var/lib/apps/docker/1.6.1.00...
           └─1372 sleep 2

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1474426

Title:
  systemctl status globbing does not work on version 222

Status in systemd package in Ubuntu:
  New

Bug description:
  I am writing a test that executes systemctl status docker_docker-
  daemon_*.service to get if the docker service is running.

  This works in systemd 219, the version we have in vivid:

  (amd64)ubuntu@test:~$ systemd --version
  systemd 219
  +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN
  (amd64)ubuntu@test:~$ systemctl status docker_docker-daemon_*.service
  ● docker_docker-daemon_1.6.1.002.service - The docker app deployment mechanism
     Loaded: loaded (/etc/systemd/system/docker_docker-daemon_1.6.1.002.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2015-07-14 14:41:10 UTC; 15min ago
   Main PID: 11860 (docker.start)
     CGroup: /system.slice/docker_docker-daemon_1.6.1.002.service
             ├─11860 /bin/bash /apps/docker/1.6.1.002/bin/docker.start
             ├─11868 docker.x86_64 -d -G docker -g /var/lib/apps/docker/1.6.1.0...
             └─12664 sleep 2

  On version 222, the version we have in wily it doesn't work:

  (amd64)ubuntu@localhost:~$ systemctl status docker_docker-
  daemon_*.service

  (nothing is returned)
  Changing the * by the version, it works:

  (amd64)ubuntu@localhost:~$ systemctl status docker_docker-daemon_1.6.1.002.service
  ● docker_docker-daemon_1.6.1.002.service - The docker app deployment mechanism
     Loaded: loaded (/etc/systemd/system/docker_docker-daemon_1.6.1.002.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2015-07-14 14:45:31 UTC; 12min ago
   Main PID: 789 (docker.start)
     CGroup: /system.slice/docker_docker-daemon_1.6.1.002.service
             ├─ 789 /bin/bash /apps/docker/1.6.1.002/bin/docker.start
             ├─ 800 docker.x86_64 -d -G docker -g /var/lib/apps/docker/1.6.1.00...
             └─1372 sleep 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1474426/+subscriptions


Follow ups