[Touch-packages] [Bug 1563590] Re: 1.25.4, xenial, init script install error race

2016-04-12 Thread Launchpad Bug Tracker
This bug was fixed in the package systemd - 229-4ubuntu4

---
systemd (229-4ubuntu4) xenial; urgency=medium

  * 73-special-net-names.rules: Further refine ibmveth naming.

 -- Martin Pitt   Tue, 12 Apr 2016 12:06:30
+0200

** Changed in: systemd (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
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/1563590

Title:
  1.25.4, xenial, init script install error race

Status in juju-core:
  Invalid
Status in systemd package in Ubuntu:
  Fix Released

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/system/multi-user.target.wants/jujud-machine-1.service

  http://paste.ubuntu.com/1673/

  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/juju/tools/1.25.4-xenial-amd64
  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://10.1.101.81:17070/tools/1.25.4-xenial-amd64
  Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64...
  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/juju/tools/1.25.4-xenial-amd64/tools
  Mar 29 21:47:39 pascal cloud-init[4957]: tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64 downloaded: HTTP 200; time 
2.408s; size 16602428 bytes; speed 6893479.000 bytes/s + echo Tools downloaded 
successfully.
  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/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + grep 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b 
/var/lib/juju/tools/1.25.4-xenial-amd64/juju1.25.4-xenial-amd64.sha256
  Mar 29 21:47:40 pascal cloud-init[4957]: 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b  
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf 
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz -C 
/var/lib/juju/tools/1.25.4-xenial-amd64
  Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s 
{"version":"1.25.4-xenial-amd64","url":"https://10.1.101.81:17070/environment/94a7eb52-f85f-4280-8b51-0f9c8cc07748/tools/1.25.4-xenial-amd64","sha256":"416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d2
  Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p 
/var/lib/juju/agents/machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 
/var/lib/juju/agents/machine-1/agent.conf
  Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 
/var/lib/juju/tools/machine-1
  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/juju/init/jujud-machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 
/var/lib/juju/init/jujud-machine-1/exec-start.sh
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from 
/etc/systemd/system/jujud-machine-1.service to 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service.
  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 

[Touch-packages] [Bug 1563590] Re: 1.25.4, xenial, init script install error race

2016-04-12 Thread Martin Pitt
** Changed in: systemd (Ubuntu)
   Status: In Progress => Fix Committed

-- 
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/1563590

Title:
  1.25.4, xenial, init script install error race

Status in juju-core:
  Invalid
Status in systemd package in Ubuntu:
  Fix Committed

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/system/multi-user.target.wants/jujud-machine-1.service

  http://paste.ubuntu.com/1673/

  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/juju/tools/1.25.4-xenial-amd64
  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://10.1.101.81:17070/tools/1.25.4-xenial-amd64
  Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64...
  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/juju/tools/1.25.4-xenial-amd64/tools
  Mar 29 21:47:39 pascal cloud-init[4957]: tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64 downloaded: HTTP 200; time 
2.408s; size 16602428 bytes; speed 6893479.000 bytes/s + echo Tools downloaded 
successfully.
  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/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + grep 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b 
/var/lib/juju/tools/1.25.4-xenial-amd64/juju1.25.4-xenial-amd64.sha256
  Mar 29 21:47:40 pascal cloud-init[4957]: 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b  
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf 
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz -C 
/var/lib/juju/tools/1.25.4-xenial-amd64
  Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s 
{"version":"1.25.4-xenial-amd64","url":"https://10.1.101.81:17070/environment/94a7eb52-f85f-4280-8b51-0f9c8cc07748/tools/1.25.4-xenial-amd64","sha256":"416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d2
  Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p 
/var/lib/juju/agents/machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 
/var/lib/juju/agents/machine-1/agent.conf
  Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 
/var/lib/juju/tools/machine-1
  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/juju/init/jujud-machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 
/var/lib/juju/init/jujud-machine-1/exec-start.sh
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from 
/etc/systemd/system/jujud-machine-1.service to 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service.
  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/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 

[Touch-packages] [Bug 1563590] Re: 1.25.4, xenial, init script install error race

2016-04-11 Thread Martin Pitt
Fix sent upstream in https://github.com/systemd/systemd/pull/3016 . This
is only cosmetical, thus setting importance to "Low".

** Changed in: systemd (Ubuntu)
   Importance: Undecided => Low

** Changed in: juju-core
   Status: New => Invalid

-- 
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/1563590

Title:
  1.25.4, xenial, init script install error race

Status in juju-core:
  Invalid
Status in systemd package in Ubuntu:
  In Progress

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/system/multi-user.target.wants/jujud-machine-1.service

  http://paste.ubuntu.com/1673/

  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/juju/tools/1.25.4-xenial-amd64
  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://10.1.101.81:17070/tools/1.25.4-xenial-amd64
  Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64...
  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/juju/tools/1.25.4-xenial-amd64/tools
  Mar 29 21:47:39 pascal cloud-init[4957]: tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64 downloaded: HTTP 200; time 
2.408s; size 16602428 bytes; speed 6893479.000 bytes/s + echo Tools downloaded 
successfully.
  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/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + grep 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b 
/var/lib/juju/tools/1.25.4-xenial-amd64/juju1.25.4-xenial-amd64.sha256
  Mar 29 21:47:40 pascal cloud-init[4957]: 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b  
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf 
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz -C 
/var/lib/juju/tools/1.25.4-xenial-amd64
  Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s 
{"version":"1.25.4-xenial-amd64","url":"https://10.1.101.81:17070/environment/94a7eb52-f85f-4280-8b51-0f9c8cc07748/tools/1.25.4-xenial-amd64","sha256":"416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d2
  Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p 
/var/lib/juju/agents/machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 
/var/lib/juju/agents/machine-1/agent.conf
  Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 
/var/lib/juju/tools/machine-1
  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/juju/init/jujud-machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 
/var/lib/juju/init/jujud-machine-1/exec-start.sh
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from 
/etc/systemd/system/jujud-machine-1.service to 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service.
  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 

[Touch-packages] [Bug 1563590] Re: 1.25.4, xenial, init script install error race

2016-04-11 Thread Martin Pitt
However, at least for me the enablement actually works, I do get both
symlinks created. Just after that I get that (wrong) error message.

-- 
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/1563590

Title:
  1.25.4, xenial, init script install error race

Status in juju-core:
  New
Status in systemd package in Ubuntu:
  In Progress

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/system/multi-user.target.wants/jujud-machine-1.service

  http://paste.ubuntu.com/1673/

  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/juju/tools/1.25.4-xenial-amd64
  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://10.1.101.81:17070/tools/1.25.4-xenial-amd64
  Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64...
  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/juju/tools/1.25.4-xenial-amd64/tools
  Mar 29 21:47:39 pascal cloud-init[4957]: tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64 downloaded: HTTP 200; time 
2.408s; size 16602428 bytes; speed 6893479.000 bytes/s + echo Tools downloaded 
successfully.
  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/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + grep 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b 
/var/lib/juju/tools/1.25.4-xenial-amd64/juju1.25.4-xenial-amd64.sha256
  Mar 29 21:47:40 pascal cloud-init[4957]: 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b  
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf 
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz -C 
/var/lib/juju/tools/1.25.4-xenial-amd64
  Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s 
{"version":"1.25.4-xenial-amd64","url":"https://10.1.101.81:17070/environment/94a7eb52-f85f-4280-8b51-0f9c8cc07748/tools/1.25.4-xenial-amd64","sha256":"416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d2
  Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p 
/var/lib/juju/agents/machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 
/var/lib/juju/agents/machine-1/agent.conf
  Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 
/var/lib/juju/tools/machine-1
  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/juju/init/jujud-machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 
/var/lib/juju/init/jujud-machine-1/exec-start.sh
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from 
/etc/systemd/system/jujud-machine-1.service to 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service.
  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 

[Touch-packages] [Bug 1563590] Re: 1.25.4, xenial, init script install error race

2016-04-11 Thread Martin Pitt
> /bin/systemctl link 
> '/var/lib/juju/init/jujud-machine-0/jujud-machine-0.service' 
> /bin/systemctl enable 
> '/var/lib/juju/init/jujud-machine-0/jujud-machine-0.service' 

This is redundant. Either use link like that and enable with just
"jujud-machine-0.service" (link already created the symlink in the
standard paths), or just directly enable the unit with full path and
skip the link. However, this currently fails due to
https://github.com/systemd/systemd/issues/3010, which is an actual
regression.

** Changed in: systemd (Ubuntu)
   Status: New => In Progress

** Changed in: systemd (Ubuntu)
 Assignee: (unassigned) => Martin Pitt (pitti)

-- 
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/1563590

Title:
  1.25.4, xenial, init script install error race

Status in juju-core:
  New
Status in systemd package in Ubuntu:
  In Progress

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/system/multi-user.target.wants/jujud-machine-1.service

  http://paste.ubuntu.com/1673/

  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/juju/tools/1.25.4-xenial-amd64
  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://10.1.101.81:17070/tools/1.25.4-xenial-amd64
  Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64...
  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/juju/tools/1.25.4-xenial-amd64/tools
  Mar 29 21:47:39 pascal cloud-init[4957]: tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64 downloaded: HTTP 200; time 
2.408s; size 16602428 bytes; speed 6893479.000 bytes/s + echo Tools downloaded 
successfully.
  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/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + grep 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b 
/var/lib/juju/tools/1.25.4-xenial-amd64/juju1.25.4-xenial-amd64.sha256
  Mar 29 21:47:40 pascal cloud-init[4957]: 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b  
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf 
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz -C 
/var/lib/juju/tools/1.25.4-xenial-amd64
  Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s 
{"version":"1.25.4-xenial-amd64","url":"https://10.1.101.81:17070/environment/94a7eb52-f85f-4280-8b51-0f9c8cc07748/tools/1.25.4-xenial-amd64","sha256":"416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d2
  Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p 
/var/lib/juju/agents/machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 
/var/lib/juju/agents/machine-1/agent.conf
  Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 
/var/lib/juju/tools/machine-1
  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/juju/init/jujud-machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 
/var/lib/juju/init/jujud-machine-1/exec-start.sh
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40 pascal 

[Touch-packages] [Bug 1563590] Re: 1.25.4, xenial, init script install error race

2016-04-11 Thread Martin Pitt
** Also 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/1563590

Title:
  1.25.4, xenial, init script install error race

Status in juju-core:
  New
Status in systemd package in Ubuntu:
  In Progress

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/system/multi-user.target.wants/jujud-machine-1.service

  http://paste.ubuntu.com/1673/

  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/juju/tools/1.25.4-xenial-amd64
  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://10.1.101.81:17070/tools/1.25.4-xenial-amd64
  Mar 29 21:47:37 pascal cloud-init[4957]: Attempt 1 to download tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64...
  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/juju/tools/1.25.4-xenial-amd64/tools
  Mar 29 21:47:39 pascal cloud-init[4957]: tools from 
https://10.1.101.81:17070/tools/1.25.4-xenial-amd64 downloaded: HTTP 200; time 
2.408s; size 16602428 bytes; speed 6893479.000 bytes/s + echo Tools downloaded 
successfully.
  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/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + grep 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b 
/var/lib/juju/tools/1.25.4-xenial-amd64/juju1.25.4-xenial-amd64.sha256
  Mar 29 21:47:40 pascal cloud-init[4957]: 
416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d27b  
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz
  Mar 29 21:47:40 pascal cloud-init[4957]: + tar zxf 
/var/lib/juju/tools/1.25.4-xenial-amd64/tools.tar.gz -C 
/var/lib/juju/tools/1.25.4-xenial-amd64
  Mar 29 21:47:40 pascal cloud-init[4957]: + printf %s 
{"version":"1.25.4-xenial-amd64","url":"https://10.1.101.81:17070/environment/94a7eb52-f85f-4280-8b51-0f9c8cc07748/tools/1.25.4-xenial-amd64","sha256":"416c01467ac9ddd17907d3ab627631df10822c2a706631b86efead6f3f38d2
  Mar 29 21:47:40 pascal cloud-init[4957]: + mkdir -p 
/var/lib/juju/agents/machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0600 
/var/lib/juju/agents/machine-1/agent.conf
  Mar 29 21:47:40 pascal cloud-init[4957]: + ln -s 1.25.4-xenial-amd64 
/var/lib/juju/tools/machine-1
  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/juju/init/jujud-machine-1
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + chmod 0755 
/var/lib/juju/init/jujud-machine-1/exec-start.sh
  Mar 29 21:47:40 pascal cloud-init[4957]: + cat
  Mar 29 21:47:40 pascal cloud-init[4957]: + /bin/systemctl link 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40 pascal cloud-init[4957]: Created symlink from 
/etc/systemd/system/jujud-machine-1.service to 
/var/lib/juju/init/jujud-machine-1/jujud-machine-1.service.
  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/juju/init/jujud-machine-1/jujud-machine-1.service
  Mar 29 21:47:40