Juju 'destroy-environment' destroying more than it should

Bug #1245458 reported by Helder Martins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

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.

Thanks!

Tags: bootstrap juju
Revision history for this message
Helder Martins (heldergaray) wrote :

Delving through the bug list, this is probably a duplicate of #1229275. But I would be glad if someone could answer my question.

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-----

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.