deploying workload-less k8s charm in a bundle not possible

Bug #2003071 reported by Tom Haddon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Invalid
High
Unassigned

Bug Description

This is on juju 3.0.2 and 2.9.38.

I'm unable to deploy a bundle that includes a workload-less k8s charm (in this case, nginx-ingress-integrator. I've tried with `scale` and `num_units`. Both produce the same error, and in the model we end up with the application deployed, but at a `scale` of 0.

mthaddon@finistere:~/Documents/tmp/nginx-test$ cat bundle.yaml
applications:
  nginx-ingress-integrator:
    charm: ch:nginx-ingress-integrator
    scale: 1
    trust: true
mthaddon@finistere:~/Documents/tmp/nginx-test$ juju deploy --trust ./bundle.yaml
Located charm "nginx-ingress-integrator" in charm-hub, channel stable
Executing changes:
- upload charm nginx-ingress-integrator from charm-hub with architecture=amd64
- deploy application nginx-ingress-integrator from charm-hub
- add unit nginx-ingress-integrator/0 to new machine 0
ERROR cannot deploy bundle: cannot add unit for application "nginx-ingress-integrator": adding units to a container-based model not supported (not supported)

Tags: canonical-is
Tom Haddon (mthaddon)
tags: added: canonical-is
Revision history for this message
John A Meinel (jameinel) wrote :

Actually, the issue is that for K8s provider, you have to have the line:

bundle: kubernetes

This is because on K8s we do "Scale(app)" rather than "AddUnit(app)", and to know which one to do we look at whether the bundle has that configuration or not.
(This is not the ideal case, it is just how it works today.)

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

I believe this just needs a tweak to your bundle.yaml, if that isn't the case, please reopen.

Changed in juju:
importance: Undecided → High
status: New → Invalid
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.