New command to block/unblock operations
Bug #1394069 reported by
Anastasia
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
juju-core | ||||||
Docs |
Fix Released
|
Medium
|
Nick Veitch |
Bug Description
New juju commands were added to allow users to block/unblock destroy-environment operations.
When desired, the users can run
juju block destroy-environment
This will prevent "juju destroy-
When users intend to destroy environment, they will have to explicitly unblock the operation by first running
juju unblock destroy-environment
Note that forcing destroy will by-pass block.
no longer affects: | juju-core |
To post a comment you must log in.
There is also new option added to block/unblock command to prevent accidental termination of objects such as machines, services, units and relations.
When this block is desired, the users can run
juju block remove-object
This will block all termination commands from running successfully. Current juju termination commands could be any of these forms - "juju remove-machine... ", "juju remove-service... ", "juju remove-unit... ", "juju remove-relation... ", "juju destroy-machine... ", "juju destroy-service... ", "juju destroy-unit... ", "juju destroy-relation... " and "juju terminate- machine. .."
When users intend to remove machine, service, unit or relation from the environment where there is this block, they will have to explicitly unblock remove-object operation by first running
juju unblock remove-object
Note that forcing machine removal will also by-pass this block. However, this is one of the assumption that I have made.
There is no "force" to by-pass when removing service, unit or relation.