Comment 2 for bug 1480310

Revision history for this message
Cheryl Jennings (cherylj) wrote : Re: dbus link request failed for service FOO: Unit name FOO is not valid.

This appears to be a regression in systemd. I extracted the unit file we're trying to link and manually linked it through systemctl and it succeeded with 222-2ubuntu1, but failed with 223-1ubuntu1:

ubuntu@cherylj-wily4:~$ apt-cache policy systemd
systemd:
  Installed: 222-2ubuntu1
  Candidate: 223-1ubuntu1
  Version table:
     223-1ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
 *** 222-2ubuntu1 0
        100 /var/lib/dpkg/status

root@cherylj-wily4:~$ sudo systemctl link /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service
Created symlink from /etc/systemd/system/juju-db-ubuntu-local.service to /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service.

ubuntu@cherylj-wily4:~$ sudo systemctl disable /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service
Removed symlink /etc/systemd/system/juju-db-ubuntu-local.service.

ubuntu@cherylj-wily4:~$ sudo apt-get upgrade
...

ubuntu@cherylj-wily4:~$ apt-cache policy systemd
systemd:
  Installed: 223-1ubuntu1
  Candidate: 223-1ubuntu1
  Version table:
 *** 223-1ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

ubuntu@cherylj-wily4:~$ sudo systemctl link /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service
Failed to execute operation: Unit name /var/lib/juju/init/juju-db-ubuntu-local/juju-db-ubuntu-local.service is not valid.