Error upgrading mode: operator k8s charms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
Summary: Cannot upgrade an operator charm in k8s without getting an error.
This is the metadata.yaml of the charm I am trying to deploy:
```yaml
name: kdu-proxy
description: |
TEMPLATE-TODO: fill out the charm's description
summary: |
TEMPLATE-TODO: fill out the charm's summary
series: [kubernetes]
deployment:
mode: operator
```
The deployment:mode: operator means that there is not workload associated to the charm. When I upgrade the charm, I get the following error in the debug log:
```
ERROR juju.worker.
```
I think the problem is that in Juju 2.8.10 we are setting the pod spec on every upgrade-charm hook (something I don-t like either because we get pod rollback on every upgrade of the charms), and its failing because there is no pod spec associated to the operator charms.
Changed in juju: | |
milestone: | none → 2.9.2 |
assignee: | nobody → Ian Booth (wallyworld) |
importance: | Undecided → High |
status: | New → Incomplete |
status: | Incomplete → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Correct, pod-spec-set is not (currently) supported on operator charms. Juju does not attempt to track any workload pods for these charms. Does you charm have a pod spec that it wants to use? What resources are in that pod spec?