cmd/juju: juju bootstrap --upload-tools on a fresh environment triggers upgrade mode

Bug #1358078 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Menno Finlay-Smits
1.20
Fix Released
High
Menno Finlay-Smits

Bug Description

This expected use case now fails because juju enters upgrade mode when bootstrapping with locally generated tools

lucky(~/src/github.com/juju/juju) % juju bootstrap -v --upload-tools
uploading tools for series [precise trusty]
Launching instance
 - i-6a591254
Waiting for address
Attempting to connect to ec2-54-206-184-73.ap-southeast-2.compute.amazonaws.com:22
Attempting to connect to ip-10-251-31-237.ap-southeast-2.compute.internal:22
Attempting to connect to 54.206.184.73:22
Attempting to connect to 10.251.31.237:22
Logging to /var/log/cloud-init-output.log on remote host
Installing add-apt-repository
Adding apt repository: deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/cloud-tools main
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 ' --retry 10 -o $bin/tools.tar.gz 'https://s3-ap-southeast-2.amazonaws.com/juju-syd-en-ee-ii/tools/releases/juju-1.21-alpha1.1-precise-amd64.tgz?AWSAccessKeyId=AKIAJ4SOKUWG25EDMAOA&Expires=1723949529&Signature=H2LAwDAU2OhuZY91hZr3d4mDU4A%3D'
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
lucky(~/src/github.com/juju/juju) % juju deploy cs:mysql
juju deploy cs:wordpress
juju add-relation wordpress mysql
ERROR upgrade in progress - Juju functionality is limited
lucky(~/src/github.com/juju/juju) % juju deploy cs:wordpress
ERROR upgrade in progress - Juju functionality is limited
lucky(~/src/github.com/juju/juju) % juju add-relation wordpress mysql
ERROR upgrade in progress - Juju functionality is limited

http://paste.ubuntu.com/8076553/

Shows that there was a 45 second delay after bootstrap returned with a successful return code where the environment would not accept commands.

This is going to break people who have scripted their juju bootstraps and deployments.

Changed in juju-core:
importance: Undecided → High
status: New → In Progress
milestone: none → 1.20.6
assignee: nobody → Menno Smits (menno.smits)
Ian Booth (wallyworld)
Changed in juju-core:
milestone: 1.20.6 → 1.21-alpha1
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.