Comment 2 for bug 1336843

Revision history for this message
Francesco Banconi (frankban) wrote :

Using 1.21-alpha2 the environment is no longer destroyed, but a new one is still created and no "environment already exists" message is displayed. See below.

~ % juju version
1.21-alpha2-utopic-amd64
~ % juju bootstrap -e ec2 --upload-tools
Bootstrapping environment "ec2"
Starting new instance for initial state server
Launching instance
 - i-68b9b32a
Building tools to upload (1.21-alpha2.1-trusty-amd64)
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to ec2-54-73-27-206.eu-west-1.compute.amazonaws.com:22
Attempting to connect to ip-10-89-138-68.eu-west-1.compute.internal:22
Attempting to connect to 54.73.27.206:22
Attempting to connect to 10.89.138.68:22
Warning: Permanently added 'ec2-54-73-27-206.eu-west-1.compute.amazonaws.com,54.73.27.206' (ECDSA) to the list of known hosts.
Logging to /var/log/cloud-init-output.log on remote host
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap complete
~ % juju status -e ec2
environment: ec2
machines:
  "0":
    agent-state: started
    agent-version: 1.21-alpha2.1
    dns-name: ec2-54-73-27-206.eu-west-1.compute.amazonaws.com
    instance-id: i-68b9b32a
    instance-state: running
    series: trusty
    hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
    state-server-member-status: has-vote
services: {}
~ % rm ~/.juju/environments/ec2.jenv
~ % juju bootstrap -e ec2 --upload-tools
Bootstrapping environment "ec2"
Starting new instance for initial state server
Launching instance
 - i-601c3e85
Building tools to upload (1.21-alpha2.1-trusty-amd64)
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to ec2-54-170-170-10.eu-west-1.compute.amazonaws.com:22
Attempting to connect to ip-10-72-159-254.eu-west-1.compute.internal:22
Attempting to connect to 54.170.170.10:22
Attempting to connect to 10.72.159.254:22
Warning: Permanently added 'ec2-54-170-170-10.eu-west-1.compute.amazonaws.com,54.170.170.10' (ECDSA) to the list of known hosts.
Logging to /var/log/cloud-init-output.log on remote host
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap complete
WARNING expected one instance, got 2

At this point two EC2 instances are up and running.