infinitely scale up k8s managed units after upgraded controller

Bug #1769806 reported by Yang Kelvin Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Yang Kelvin Liu

Bug Description

## current resources of the caas model ->
kubectl get all -n testcaas1
NAME READY STATUS RESTARTS AGE
po/juju-operator-mysql 1/1 Running 0 12s
po/juju-unit-mysql-0 0/1 ContainerCreating 0 2s

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/juju-mysql ClusterIP 10.152.183.245 <none> 3306/TCP 2s

## ran `juju upgrade-model --build-agent -m controller`

## operator/agent lost, and juju ran into infinitely scale up new units
kubectl get all -n testcaas1
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deploy/juju-mysql 242 242 242 8 12m

NAME DESIRED CURRENT READY AGE
rs/juju-mysql-6fc5f55fbf 242 242 8 12m

NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deploy/juju-mysql 242 242 242 8 12m

NAME DESIRED CURRENT READY AGE
rs/juju-mysql-6fc5f55fbf 242 242 8 12m

Changed in juju:
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
importance: Undecided → Medium
Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

How to reproduce:

1. deploy charm with `juju-managed-units` enabled;
2. updated controller to `d516a4aa7ac454571e28a4d0eeb93e89c4915e13` build.

description: updated
Revision history for this message
Ian Booth (wallyworld) wrote :

juju-managed-units=true is deprecated and not supported at this stage.

It already defaults to false. The option to set it when deploying a charm should be removed - just retain the back end worker for now just in case.

Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

Hi Ian,
so the problem is any existing juju managed units will get this problem when they upgrade juju to later version that has my change. Do we need to consider an migration plan or not in this case?

thx

Changed in juju:
importance: Medium → Undecided
Revision history for this message
Ian Booth (wallyworld) wrote :

k8s is / was behind a feature flag. It's not yet been released. There's no upgrade concerns to worry about. The juju-managed-units bit was effectively deprecated before the first beta release.

Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

Understood, so we can probably consider to just close this bug.

Revision history for this message
John A Meinel (jameinel) wrote :

If the flag doesn't work, it presents a pitfall for users.
If we want to get rid of it, lets do so before we close this bug.

Changed in juju:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Ian Booth (wallyworld) wrote :

The flag works but a bug has been found. But it's not meant to be used as the idea behind it was not to proceed to release (the scope changed). As John says, the idea is to use this bug to ensure the flag gets removed before 2.4 is released.

description: updated
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.4-rc1
Ian Booth (wallyworld)
Changed in juju:
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.