teminate-machine should provide an option to '--force'

Bug #1018062 reported by Mark Mims
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Invalid
Undecided
Unassigned

Bug Description

testing... chaosmonkey

Revision history for this message
Jim Baker (jimbaker) wrote :

This functionality would certainly be useful for testing, however, juju terminate-machine relies on MachineStateManager.remove_machine_state, which verifies the machine has no assigned service unit(s). For now, I would suggest this functionality go into jitsu, say jitsu force-terminate-machine (extra long to make it clear what is being done).

summary: - teminate-machine should provide and option to '--force'
+ teminate-machine should provide an option to '--force'
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

I understand the testing argument, but offering an API to knowingly corrupt the state of the environment feels beyond the use case of juju indeed, and I'd also recomment against adding it to any other tool that is wrapping juju.

It should be easy to create a test-specific tool that uses status to corrupt the state.

Changed in juju:
status: New → Invalid
Revision history for this message
Jim Baker (jimbaker) wrote :

Doing something like this should suffice, with the info derived from juju status as Gustavo suggests. Also this mechanism provides for a general purpose chaos monkey for testing scenarios:

$ juju ssh $MACHINE sudo shutdown now

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.