false "environment is already bootstrapped" message

Bug #1257758 reported by Aaron Bentley
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Low
Unassigned
1.25
Won't Fix
Undecided
Unassigned

Bug Description

Today I tried to bootstrap the environment that was torn down in bug #1257481. But juju falsely claims it has already been bootstrapped. Even removing the .jenv file doesn't fix it.

$ juju bootstrap
ERROR environment is already bootstrapped
$ juju status
ERROR Unable to connect to environment "juju-ci-2".
Please check your credentials or use 'juju bootstrap' to create a new environment.

Error details:
no instances found

$ jnova list
$ rm ~/.juju/environments/juju-ci-2.jenv
$ juju bootstrap
ERROR environment is already bootstrapped

Tags: bootstrap jenv
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1257758] [NEW] false "environment is already bootstrapped" message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-12-04 18:29, Aaron Bentley wrote:
> Public bug reported:
>
> Today I tried to bootstrap the environment that was torn down in
> bug #1257481. But juju falsely claims it has already been
> bootstrapped. Even removing the .jenv file doesn't fix it.
>
> $ juju bootstrap ERROR environment is already bootstrapped $ juju
> status ERROR Unable to connect to environment "juju-ci-2". Please
> check your credentials or use 'juju bootstrap' to create a new
> environment.
>
> Error details: no instances found
>
> $ jnova list $ rm ~/.juju/environments/juju-ci-2.jenv $ juju
> bootstrap ERROR environment is already bootstrapped
>
> ** Affects: juju-core Importance: High Status: Triaged
>

The actual item is that there is a "provider-state" file in the
provider storage (which is what we use to track what instance should
be machine-0).
Running 'juju destroy-environment juju-ci-2' cleans out that
information and gets you cleaned up.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKfZiIACgkQJdeBCYSNAANIBwCdGe9yocvrGo/DRmG+PBLZXpD1
QwAAmwQiJCuKdPJvh7v0x1hgKmsOhbtS
=1atD
-----END PGP SIGNATURE-----

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-12-04 18:29, Aaron Bentley wrote:
> Public bug reported:
>
> Today I tried to bootstrap the environment that was torn down in
> bug #1257481. But juju falsely claims it has already been
> bootstrapped. Even removing the .jenv file doesn't fix it.
>
> $ juju bootstrap ERROR environment is already bootstrapped $ juju
> status ERROR Unable to connect to environment "juju-ci-2". Please
> check your credentials or use 'juju bootstrap' to create a new
> environment.
>
> Error details: no instances found
>
> $ jnova list $ rm ~/.juju/environments/juju-ci-2.jenv $ juju
> bootstrap ERROR environment is already bootstrapped
>
> ** Affects: juju-core Importance: High Status: Triaged
>

There is likely to be a 'provider-state' file still stored in the
control bucket listed for your 'juju-ci-2' environment. You can either
delete that file using swift tools, or use 'juju destroy-environment'.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKkT0sACgkQJdeBCYSNAAP0qACg2YAQXXypAslWfHI3n0J/+e3A
I/UAoLl1IVsuIO96iWi70uXfoagxnhIA
=ZGj6
-----END PGP SIGNATURE-----

Ian Booth (wallyworld)
Changed in juju-core:
milestone: none → 1.18.0
tags: added: bootstrap jenv
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

The environment wasn't destroyed properly, due to the previous bug mentioned, it was trashed. Running destroy-environment juju-ci-2 actually fixed the problem, so I'm marking this as Invalid, as agreed in a team discussion.

Changed in juju-core:
status: Triaged → Won't Fix
status: Won't Fix → Triaged
status: Triaged → Won't Fix
status: Won't Fix → Invalid
Revision history for this message
Aaron Bentley (abentley) wrote :

I have discussed it with Curtis, and we agree that it is a bug. Yes, destroy-environment may fix the situation, but that is a workaround. Having a workaround does not make a bug invalid.

The bug is that "bootstrap" claims it's already bootstrapped and "status" claims that it is not bootstrapped. They cannot both be right. There should be a single definition of "bootstrapped" that is used by both commands, so that they do not contradict each other.

Changed in juju-core:
status: Invalid → Triaged
importance: High → Low
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.20.0 → none
Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.