juju agent fails to start on focal

Bug #1860432 reported by Richard Harding
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Joseph Phillips
systemd (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Invalid
Undecided
Unassigned

Bug Description

during bootstrap, add-machine, deploy Juju fails on Focal due to systemd not finding the service.

ll /etc/systemd/system
jujud-machine-1.service -> /lib/systemd/system/jujud-machine-1/jujud-machine-1.service

which is linked and calls

ExecStart=/lib/systemd/system/jujud-machine-1/exec-start.sh

The fact that it's in a jujud-machine-1 folder vs /system itself appears to be causing systemd to not be able to run it.

Revision history for this message
Richard Harding (rharding) wrote :

$ systemctl --version
systemd 244 (244-3ubuntu1)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
ubuntu@juju-e7323e-1:/etc/systemd/system$ systemctl status jujud-machine-1
Unit jujud-machine-1.service could not be found.

ubuntu@juju-e7323e-1:/etc/systemd/system$ ls -latr /etc/systemd/system/jujud-machine-1.service
lrwxrwxrwx 1 root root 59 Jan 21 12:21 /etc/systemd/system/jujud-machine-1.service -> /lib/systemd/system/jujud-machine-1/jujud-machine-1.service

tags: added: regression-release
tags: added: rls-ff-incoming
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Joseph Phillips (manadart)
Revision history for this message
Richard Harding (rharding) wrote :

After discussing with the team and getting guidance from folks that know systemd better we're going to write out files just to /etc/systemd/system for our agents and mongodb services. We'll need to also make sure that we have a series-upgrade step for OS's that get dist-upgraded to focal and have existing agent files on disk.

Revision history for this message
Joseph Phillips (manadart) wrote :

Can we get some reproduction detail?

I can't specify focal as bootstrap-series on LXD (no image found) or MAAS (doesn't start an instance, though I did add 20.04 to the image list.

Revision history for this message
Joseph Phillips (manadart) wrote :

Nevermind need to use the daily image stream.

Revision history for this message
Joseph Phillips (manadart) wrote :

Initial patch for support in 2.7 is here:
https://github.com/juju/juju/pull/11147

Other patches for upgrade paths will follow.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Phillips (manadart) wrote :
Changed in juju:
status: In Progress → Fix Committed
tags: removed: rls-ff-incoming
tags: added: id-5e33211d5d925144089cd85f
Steve Langasek (vorlon)
tags: added: rls-ff-notfixing
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Balint Reczey (rbalint) wrote :

There seems to be nothing related to fix in systemd.

Changed in systemd (Ubuntu Focal):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.