destroy-unit --force
Bug #1089289 reported by
William Reade
This bug affects 16 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
High
|
William Reade |
Bug Description
At some stage, we need to implement this flag, which forcibly sets the Unit to Dead; this will be used to work around the possibility of non-responsive (or just plain broken) unit agents (which can otherwise block the destruction of machines, services, and relations).
This is potentially tricky because it may necessitate the cleanup of large numbers of relations, subordinates, the subordinates' relations, and potentially some services.
Related branches
lp:~fwereade/juju-core/fix-1089289-for-1.16
- Juju Engineering: Pending requested
-
Diff: 2202 lines (+911/-483)21 files modifiedcmd/juju/destroymachine.go (+22/-4)
cmd/juju/destroymachine_test.go (+58/-14)
cmd/juju/destroyunit.go (+3/-8)
cmd/jujud/machine_test.go (+13/-1)
state/api/client.go (+13/-1)
state/api/params/params.go (+6/-0)
state/apiserver/client/client.go (+56/-1)
state/apiserver/client/client_test.go (+139/-0)
state/apiserver/client/perm_test.go (+1/-1)
state/cleanup.go (+208/-0)
state/cleanup_test.go (+229/-0)
state/life.go (+8/-1)
state/life_test.go (+5/-15)
state/machine.go (+20/-3)
state/machine_test.go (+13/-44)
state/relationunit_test.go (+88/-87)
state/service_test.go (+3/-3)
state/state.go (+0/-157)
state/state_test.go (+0/-33)
state/statecmd/destroyunit.go (+0/-16)
state/unit_test.go (+26/-94)
description: | updated |
Changed in juju-core: | |
status: | New → Confirmed |
tags: | added: doc |
summary: |
- remove-unit --force + destroy-unit --force |
tags: | added: destroy-unit |
tags: |
added: docs removed: doc |
tags: | added: cts-cloud-review |
Changed in juju-core: | |
assignee: | nobody → William Reade (fwereade) |
milestone: | none → 2.0 |
status: | Triaged → In Progress |
Changed in juju-core: | |
milestone: | 2.0 → none |
To post a comment you must log in.
This has bitten me a few times already, units getting wedged (more than one underlying cause) and there's no recourse except destroying the environment.