[Bug 1257481] Re: juju destroy-environment destroys other environments

James Page james.page at ubuntu.com
Thu Apr 10 10:36:36 UTC 2014


** Description changed:

- I destroyed my "juju-ci" environment, and my "juju-ci-2" environment was
- also deleted.  The environments had unique control-buckets.
+ [Impact]
+ Users inadvertently destroy all environments that they own, not just the target one.
+ 
+ [Test Case]
+ juju bootstrap env1
+ juju bootstrap env2
+ juju destroy-environement env1
+ # both environments destroyed
+ 
+ [Regression Potential
+ Minimal, the fix tightens up the pattern match used to determine which machines to destroy.
+ 
+ [Original Bug Report]
+ I destroyed my "juju-ci" environment, and my "juju-ci-2" environment was also deleted.  The environments had unique control-buckets.
  
  $ juju destroy-environment -e juju-ci
  WARNING: this command will destroy the "juju-ci" environment (type: openstack)
  This includes all machines, services, data and other resources.
  
  Continue [y/N]? y
  $ 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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju-core in Ubuntu.
https://bugs.launchpad.net/bugs/1257481

Title:
  juju destroy-environment destroys other environments

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1257481/+subscriptions



More information about the Ubuntu-server-bugs mailing list