1.25.4, xenial, init script install error race
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Notice the error: "The unit files have no [Install] section. They are not meant to be enabled using systemctl." And the long error message after it saying this could be for a number of reasons. My only clue is perhaps some kind of race, since I get this only occasionally.
Here is the contents of the systemd file:
/etc/systemd/
http://
Note, it does have an [Install] section, so I think the error from systemd link is at best misleading.
Mar 29 21:47:37 pascal cloud-init[4957]: + mkdir -p /var/lib/
Mar 29 21:47:37 pascal cloud-init[4957]: + echo Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --noproxy "*" --insecure -o $bin/tools.tar.gz <[
Mar 29 21:47:37 pascal cloud-init[4957]: Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --noproxy "*" --insecure -o $bin/tools.tar.gz <[https:/
Mar 29 21:47:37 pascal cloud-init[4957]: + seq 5
Mar 29 21:47:37 pascal cloud-init[4957]: + printf Attempt 1 to download tools from %s...\n https:/
Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from https:/
Mar 29 21:47:37 pascal cloud-init[4957]: + curl -sSfw tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --noproxy * --insecure -o /var/lib/
Mar 29 21:47:39 pascal cloud-init[4957]: tools from https:/
Mar 29 21:47:39 pascal cloud-init[4957]: Tools downloaded successfully.
Mar 29 21:47:39 pascal cloud-init[4957]: + break
Mar 29 21:47:39 pascal cloud-init[4957]: + sha256sum /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + grep 416c01467ac9ddd
Mar 29 21:47:40 pascal cloud-init[4957]: 416c01467ac9ddd
Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s {"version"
Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + cat
Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + echo Starting Juju machine agent (jujud-machine-1)
Mar 29 21:47:40 pascal cloud-init[4957]: Starting Juju machine agent (jujud-machine-1)
Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + cat
Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + cat
Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from /etc/systemd/
Mar 29 21:47:40 pascal systemd[1]: Reloading.
Mar 29 21:47:40 pascal systemd[1]: Started ACPI event daemon.
Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl daemon-reload
Mar 29 21:47:40 pascal systemd[1]: Reloading.
Mar 29 21:47:40 pascal systemd[1]: Started ACPI event daemon.
Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl enable /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from /etc/systemd/
Mar 29 21:47:40 pascal kernel: ax88179_178a 2-1.6:1.0 eth1: ax88179 - Link status is: 1
Mar 29 21:47:40 pascal systemd[1]: Reloading.
Mar 29 21:47:40 pascal kernel: IPv6: ADDRCONF(
Mar 29 21:47:40 pascal cloud-init[4957]: The unit files have no [Install] section. They are not meant to be enabled
Mar 29 21:47:40 pascal cloud-init[4957]: using systemctl.
Mar 29 21:47:40 pascal cloud-init[4957]: Possible reasons for having this kind of units are:
Mar 29 21:47:40 pascal cloud-init[4957]: 1) A unit may be statically enabled by being symlinked from another unit's
Mar 29 21:47:40 pascal cloud-init[4957]: .wants/ or .requires/ directory.
Mar 29 21:47:40 pascal cloud-init[4957]: 2) A unit's purpose may be to act as a helper for some other unit which has
Mar 29 21:47:40 pascal cloud-init[4957]: a requirement dependency on it.
Mar 29 21:47:40 pascal cloud-init[4957]: 3) A unit may be started when needed via activation (socket, path, timer,
Mar 29 21:47:40 pascal cloud-init[4957]: D-Bus, udev, scripted systemctl call, ...).
Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl start jujud-machine-
Mar 29 21:47:40 pascal systemd[1]: Started ACPI event daemon.
Mar 29 21:47:40 pascal systemd[1]: Started juju agent for machine-1.
Mar 29 21:47:40 pascal cloud-init[4957]: + rm /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + rm /var/lib/
Mar 29 21:47:40 pascal cloud-init[4957]: + rm -f /tmp/add-
Mar 29 21:47:40 pascal cloud-init[4957]: [CLOUDINIT] handlers.py[DEBUG]: finish: modules-
Mar 29 21:47:40 pascal cloud-init[4957]: [CLOUDINIT] url_helper.
Mar 29 21:47:40 pascal cloud-init[4957]: [CLOUDINIT] url_helper.
Mar 29 21:47:40 pascal cloud-init[4957]: [CLOUDINIT] stages.py[DEBUG]: Running module ssh-authkey-
Mar 29 21:47:40 pascal cloud-init[4957]: [CLOUDINIT] handlers.py[DEBUG]: start: modules-
Mar 29 21:47:40 pascal cloud-init[4957]: [CLOUDINIT] url_helper.
Mar 29 21:47:41 pascal cloud-init[4957]: [CLOUDINIT] url_helper.
Mar 29 21:47:41 pascal cloud-init[4957]: [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/
Mar 29 21:47:41 pascal cloud-init[4957]: [CLOUDINIT] helpers.py[DEBUG]: Running config-
tags: | added: kanban-cross-team |
tags: | removed: kanban-cross-team |
Changed in systemd (Ubuntu): | |
status: | In Progress → Fix Committed |
Ha, in trying to get a clean run on juju 2.0 with lxd provider for comparison, I just hit this issue as well. I'll need to collect a pass / fail clout-init- output. log for comparison and tap pitti for some guidance on where to start.
David - are you using "released" or "daily" images for xenial? In my case, I hit this using a "released" image.