lock contention running apt in bootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Andrew Wilkins | ||
1.22 |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
Juju bootstrap has a race condition where apt cannot acquire a lock:
Started by user admin
Building on master
[workspace] $ /bin/bash /tmp/hudson3325
++ rm /var/lib/
++ mkdir -p /var/lib/
++ touch /var/lib/
++ afact=lastSucce
+++ lsb_release -sr
++ RELEASE=12.04
+++ dpkg --print-
++ ARCH=amd64
++ [[ -n 1950 ]]
++ wget -q http://
++ source buildvars.bash
+++ export BRANCH=
+++ BRANCH=
+++ export REVISION_
+++ REVISION_
+++ export VERSION=1.21-alpha2
+++ VERSION=1.21-alpha2
++ PACKAGES_
++ JUJU_LOCAL_
++ JUJU_CORE_
+++ head -c8
+++ echo 53d191730604a46
++ rev=53d19173
++ echo 'Testing gitbranch:
Testing gitbranch:
+++ sed 's,[+],%2B,'
+++ echo juju-local_
++ ENCODED_
+++ sed 's,[+],%2B,'
+++ echo juju-core_
++ ENCODED_
++ wget -q http://
++ wget -q http://
++ dpkg-deb -x /var/lib/
+++++ find extracted-bin -name juju
++++ dirname extracted-
+++ readlink -f extracted-
++ export NEW_JUJU_
++ NEW_JUJU_
++ '[' test-function-hp-a == manual ']'
++ jenv=/var/
++ [[ -e /var/lib/
++ destroy-environment test-function-hp-a
juju --show-log destroy-environment test-function-hp-a --force -y
2014-10-22 11:56:32 INFO juju.cmd supercommand.go:37 running juju [1.20.10-
2014-10-22 11:56:32 INFO juju.provider.
2014-10-22 11:56:32 WARNING juju.environs.
2014-10-22 11:56:32 WARNING juju.environs.
2014-10-22 11:56:32 INFO juju.provider.
2014-10-22 11:56:53 INFO juju.cmd supercommand.go:329 command finished
++ [[ -e /var/lib/
++ jenv=/var/
++ [[ -e /var/lib/
+++ find /var/lib/
++ azure_jenvs=
+ assess_recovery.py --backup --charm-
juju --show-log bootstrap -e test-function-hp-a --constraints mem=2G
2014-10-22 11:56:54 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha2-
2014-10-22 11:56:55 INFO juju.provider.
2014-10-22 11:56:56 INFO juju.network network.go:102 setting prefer-ipv6 to false
2014-10-22 11:56:56 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:56:56 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:56:56 INFO juju.utils http.go:59 hostname SSL verification enabled
Bootstrapping environment "test-function-
2014-10-22 11:56:57 INFO juju.environs.tools tools.go:86 reading tools with major.minor version 1.21
2014-10-22 11:56:57 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:56:57 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:56:58 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:56:58 INFO juju.utils http.go:59 hostname SSL verification enabled
Starting new instance for initial state server
Launching instance
2014-10-22 11:57:02 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:57:02 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:57:02 INFO juju.utils http.go:59 hostname SSL verification enabled
2014-10-22 11:57:03 INFO juju.provider.
2014-10-22 11:57:10 INFO juju.provider.
2014-10-22 11:57:23 INFO juju.provider.
- ca167f9c-
2014-10-22 11:57:25 INFO juju.environs.
2014-10-22 11:57:25 INFO juju.environs.
Installing Juju agent on bootstrap instance
Waiting for address
2014-10-22 11:57:26 INFO juju.provider.
Attempting to connect to 15.125.100.3:22
Attempting to connect to 10.0.0.135:22
2014-10-22 11:57:36 INFO juju.provider.
2014-10-22 11:57:46 INFO juju.provider.
2014-10-22 11:57:56 INFO juju.provider.
2014-10-22 11:58:06 INFO juju.provider.
2014-10-22 11:58:16 INFO juju.provider.
2014-10-22 11:58:26 INFO juju.provider.
2014-10-22 11:58:36 INFO juju.provider.
2014-10-22 11:58:46 INFO juju.provider.
2014-10-22 11:58:56 INFO juju.provider.
Warning: Permanently added '15.125.100.3' (ECDSA) to the list of known hosts.
sudo: unable to resolve host juju-test-
Logging to /var/log/
Running apt-get update
Cloud-init v. 0.7.5 running 'init-local' at Wed, 22 Oct 2014 11:56:26 +0000. Up 9.57 seconds.
Cloud-init v. 0.7.5 running 'init' at Wed, 22 Oct 2014 11:56:30 +0000. Up 14.27 seconds.
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +------
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth0 | True | 10.0.0.136 | 255.255.255.0 | fa:16:3e:3b:6a:c7 |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +------
ci-info: | 0 | 0.0.0.0 | 10.0.0.1 | 0.0.0.0 | eth0 | UG |
ci-info: | 1 | 10.0.0.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U |
ci-info: +------
Oct 22 11:56:42 ubuntu pollinate[743]: ERROR: Network communication failed [60]\n11:
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 011:56:43.013939 * Trying 91.189.94.53...
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 011:56:43.148600 * Connected to entropy.ubuntu.com (91.189.94.53) port 443 (#0)
11:56:43.150648 * successfully set certificate verify locations:
11:56:43.150705 * CAfile: /etc/pollinate/
CApath: /dev/null
11:56:43.150881 * SSLv3, TLS handshake, Client hello (1):
11:56:43.150963 } [data not shown]
11:56:43.285614 * SSLv3, TLS handshake, Server hello (2):
11:56:43.285672 { [data not shown]
11:56:43.299533 * SSLv3, TLS handshake, CERT (11):
11:56:43.299590 { [data not shown]
11:56:43.300162 * SSLv3, TLS alert, Server hello (2):
11:56:43.300216 } [data not shown]
11:56:43.300350 * SSL certificate problem: self signed certificate in certificate chain
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
11:56:43.300581 * Closing connection 0
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: http://
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
2014-10-22 11:56:42,853 - util.py[WARNING]: Running seed_random (<module 'cloudinit.
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
bc:d6:71:
The key's randomart image is:
+--[ RSA 2048]----+
| .+o o. |
| Eo. o |
| . . + |
| o . o . |
| . S + + |
| o + X |
| = + . |
| + . |
| o. |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
98:c1:2b:
The key's randomart image is:
+--[ DSA 1024]----+
|@o*.. |
|OB.E o |
|+oo . o |
| . = = |
| . + + S |
| . |
| |
| |
| |
+-----------------+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
dc:2c:d4:
The key's randomart image is:
+--[ECDSA 256]---+
| ..o+o.. |
| . .o+o+ |
| o o.o |
| . +.oE |
| ..Soo |
| .+.. |
| o+ |
| .o. |
| o. |
+-----------------+
Cloud-init v. 0.7.5 running 'modules:config' at Wed, 22 Oct 2014 11:56:48 +0000. Up 30.67 seconds.
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
Cloud-init v. 0.7.5 running 'modules:final' at Wed, 22 Oct 2014 11:56:54 +0000. Up 36.57 seconds.
+ install -D -m 644 /dev/null /var/lib/
+ printf %s\n user-admin:
Cloud-init v. 0.7.5 finished at Wed, 22 Oct 2014 11:56:55 +0000. Datasource DataSourceOpenStack [net,ver=2]. Up 37.66 seconds
Ign http://
Get:1 http://
Get:2 http://
Ign http://
Get:3 http://
Ign http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
E: Could not get lock /var/lib/
E: Unable to lock directory /var/lib/apt/lists/
2014-10-22 11:59:06 ERROR juju.cmd supercommand.go:323 failed to bootstrap environment: subprocess encountered error code 1
EXCEPTION CAUGHT:
Command '('juju', '--show-log', 'bootstrap', '-e', 'test-function-
FAIL
Build step 'Execute shell' marked build as failure
Archiving artifacts
Description set: gitbranch:
[BFA] Scanning build for known causes...
[BFA] Done. 0s
Finished: FAILURE
Changed in juju-core: | |
milestone: | none → 1.22 |
tags: | added: oil |
Changed in juju-core: | |
milestone: | 1.22 → 1.23 |
Changed in juju-core: | |
milestone: | 1.23 → 1.22 |
Changed in juju-core: | |
milestone: | 1.22-alpha1 → 1.23 |
no longer affects: | juju-core/1.21 |
Changed in juju-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Andrew Wilkins (axwalk) |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
milestone: | 1.23 → 1.23-beta1 |
The version of Juju was 1.21 alpha2. Has this been seen again on a more recent beta?