"juju remove-unit ${k8s_app}" default and error disagree
Bug #1882149 reported by
Paul Collins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Yang Kelvin Liu |
Bug Description
[agnew(
2.8.0-focal-amd64
[agnew(
ERROR k8s models do not support removing named units.
Instead specify an application with --num-units (defaults to 1).
[agnew(
ERROR removing 0 units not valid
[agnew(
scaling down to 1 units
[agnew(
Changed in juju: | |
status: | Triaged → In Progress |
assignee: | nobody → Yang Kelvin Liu (kelvin.liu) |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We recommend using juju scale-application
The remove-unit CLI is a shim to scale-application and was retained in k8s models for familiarity.
The error messages above do reflect the correct status of things. Maybe they are confusing and need rewording?
-- charm-k8s- mattermost) ] juju remove-unit mattermost/6
[agnew(
ERROR k8s models do not support removing named units.
Instead specify an application with --num-units (defaults to 1).
This is saying that you cannot remove a specific unit by name - you can only ask for the number of units to juju will ask k8s to set the replicaset scale and k8s will decide which pods get removed.
-- charm-k8s- mattermost) ] juju remove-unit mattermost
[agnew(
ERROR removing 0 units not valid
You need to tell juju how many units to remove from the specified application