Juju restore fails Could not get lock /var/lib/dpkg/lock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Horacio Durán |
Bug Description
All 3 runs of the backup restore test failed because of a race condition in commit 2357de0d
http://
The issue was not present or rarely happened in the last week. commit abf3de87 passed. several commit merged after this:
7083058 Merge pull request #317 from jameinel/
dfbe505 Merge pull request #121 from klyachin/
ea144d9 Merge pull request #316 from davecheney/
2357de0 Merge pull request #226 from gabriel-
From http://
Starting restore.
juju --show-log destroy-environment test-function-aws-1 --force -y
2014-07-16 19:50:42 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha1-
2014-07-16 19:50:42 INFO juju.provider.ec2 ec2.go:204 opening environment "test-function-
2014-07-16 19:50:42 INFO juju.provider.
2014-07-16 19:50:44 INFO juju.cmd supercommand.go:329 command finished
Restore failed:
2014-07-16 19:46:26 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha1-
Launching instance
- i-57b79b7d
Waiting for address
Attempting to connect to ip-172-
Attempting to connect to 172.31.9.36:22
Attempting to connect to ec2-54-
Attempting to connect to 54.210.77.42:22
Warning: Permanently added 'ec2-54-
Logging to /var/log/
Installing add-apt-repository
Adding apt repository: deb http://
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
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 ' -o $bin/tools.tar.gz 'http://
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
error: cannot restore bootstrap machine: update script failed: ssh command failed: subprocess encountered error code 100 ("Warning: Permanently added 'ec2-54-
2014-07-16 19:50:42 ERROR juju.cmd supercommand.go:323 subprocess encountered error code 1
I will escalate this to critical if the next revision cannot pass this test.
Changed in juju-core: | |
importance: | High → Critical |
Changed in juju-core: | |
assignee: | nobody → Horacio Durán (hduran-8) |
Changed in juju-core: | |
status: | Triaged → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Restore rarely passes now, but when 1.20.2 was tested a few hours ago, both tests that use restore worked fine and passed on the first try.
Also, there may be more than one issue, or that the issue is mutating because we also see an equal number of errors that look like this:
Starting restore. precise- amd64 gc] aws-1" common destroy.go:15 destroying environment "test-function- aws-1" precise- amd64 gc]
juju --show-log destroy-environment test-function-aws-1 --force -y
2014-07-17 09:36:01 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha1-
2014-07-17 09:36:01 INFO juju.provider.ec2 ec2.go:204 opening environment "test-function-
2014-07-17 09:36:01 INFO juju.provider.
2014-07-17 09:36:02 INFO juju.cmd supercommand.go:329 command finished
Restore failed:
2014-07-17 09:35:48 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha1-
Launching instance
- i-d5042aff
Waiting for address
ERROR bootstrap failed: refreshing addresses: The service is unavailable. Please try again shortly. (Unavailable)
Stopping instance...
error: cannot re-bootstrap environment: cannot bootstrap new instance: refreshing addresses: The service is unavailable. Please try again shortly. (Unavailable)
2014-07-17 09:36:01 ERROR juju.cmd supercommand.go:323 subprocess encountered error code 1