Comment 2 for bug 1245458

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1245458] [NEW] Juju 'destroy-environment' destroying more than it should

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

On 2013-10-28 16:11, Helder Martins wrote:
> Public bug reported:
>
> Description:
>
> * I bootstraped a new environment in my home computer, and started
> several services * In my work computer, I tried to bootstrap to the
> same environment, but I noticed that a new instance was created *
> 'juju status' in my work computer would return none of the services
> created in my home computer, so I assumed it was safe to destroy
> the enviroment * But it was not, it destroyed all my instances and
> services, even those that wasn't listed in the first place.
>
> In the meantime, could someone explain to me how can I boostrap to
> an existing envirmonment? I can't find that info anywhere.
>

You can't "bootstrap" to an existing environment, as you only
bootstrap 1 time. However, you should be able to share the environment
between multiple machines by copying the
~/.juju/environments/$ENV_NAME.jenv file.

You'll need a reasonably new version of juju for it to create the
sharable .jenv file (I think it was introduced in juju 1.16).

John
=:->

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

iEYEARECAAYFAlJ7UaoACgkQJdeBCYSNAAN9RQCgov+qIuqh6ylCsO4WyLwyXQH+
GuoAn0IcK19Bep//ZFAl4ErAAhnyHd4A
=J2a8
-----END PGP SIGNATURE-----