Skip to content

feat: tweak remove-controller logic#1893

Merged
kian99 merged 2 commits intocanonical:v3from
kian99:update-remove-controlller-logic
Mar 4, 2026
Merged

feat: tweak remove-controller logic#1893
kian99 merged 2 commits intocanonical:v3from
kian99:update-remove-controlller-logic

Conversation

@kian99
Copy link
Contributor

@kian99 kian99 commented Mar 4, 2026

Description

This PR updates the remove-controller logic in JIMM. Previously it required that a controller was "unavailable" i.e. that JIMM hadn't been able to connect to it recently, then a remove-controller request would delete from JIMM's database all the models on that controller and the controller itself. The force flag could be used to bypass the "unavailable" check.

Now, the controller must have no models before it can be deleted. The force flag can be used to skip this check and keep the pre-existing behaviour.

Fixes JUJU-9189

Engineering checklist

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

@kian99 kian99 requested a review from a team as a code owner March 4, 2026 10:47
@kian99 kian99 force-pushed the update-remove-controlller-logic branch from 6713b2c to c5d252e Compare March 4, 2026 10:48
Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kian99 kian99 merged commit 423cbf3 into canonical:v3 Mar 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants