juju destroy-environment is terrifying; please provide an option to neuter it

Bug #1057665 reported by James Troup
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Unassigned
pyjuju
Fix Committed
High
Unassigned

Bug Description

'juju destroy-environment' is a terrifying command. I appreciate both
that there's an obvious need for such a command (esp. with test/dev
environment) and there's a prompt, but I still feel it's far too easy
for someone to not notice which window/tab they're on and accidentally
destroy a production environment instead of a local test/dev one.

Could we please have a flag in the juju environment
(e.g. 'unbreakable' or 'indestructible') which if set, causes
destroy-environment to refuse to run?

Related branches

Revision history for this message
Jorge Castro (jorge) wrote :

Recommend something like apt does when we do something scary where you have to type in "I know what I am doing do as I say!" or something.

Changed in juju:
status: New → Confirmed
Changed in juju:
assignee: nobody → Kapil Thangavelu (hazmat)
milestone: none → 0.7
status: Confirmed → In Progress
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

The attached branch implements a config file setting for an environment, 'prevent-destroy': boolean, a true value of which prevents accidental cli destruction.

Changed in juju:
milestone: 0.7 → 0.6
Changed in juju:
importance: Undecided → High
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Kapil, can you go ahead and merge this? Leaving it in 0.6 for now...

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Rafael Pivato (rpivato) wrote :

I could not find this fix neither at 0.6 nor latest releases. Can you confirm that this prevent-destroy option was really merged?

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1057665] Re: juju destroy-environment is terrifying; please provide an option to neuter it

It looks like the branch didn't get enough reviews to get merged at the
time, i'm adding this as a bug for juju-core.

On Wed, Oct 9, 2013 at 10:12 AM, Rafael Pivato
<email address hidden>wrote:

> I could not find this fix neither at 0.6 nor latest releases. Can you
> confirm that this prevent-destroy option was really merged?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1057665
>
> Title:
> juju destroy-environment is terrifying; please provide an option to
> neuter it
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1057665/+subscriptions
>

Changed in juju:
status: Fix Released → Fix Committed
milestone: 0.6 → 0.7.1
Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
tags: added: canonical-webops
Changed in juju-core:
importance: Undecided → High
Curtis Hovey (sinzui)
tags: added: destroy-environment
Nate Finch (natefinch)
Changed in juju-core:
assignee: nobody → Nate Finch (natefinch)
milestone: none → 2.0
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0 → 1.17.0
John A Meinel (jameinel)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Changed in juju:
assignee: Kapil Thangavelu (hazmat) → nobody
Changed in juju-core:
assignee: Nate Finch (natefinch) → nobody
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.