Export bundle returns a broken bundle in Kubernetes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
When using the `juju export-bundle` command on kubernetes, the bundle that is returned is not deployable. When trying to deploy it the following error is returned:
ERROR cannot deploy bundle: cannot add unit for application "minio": adding units to a container-based model not supported (not supported)
Steps to reproduce:
# Juju 2.9.25 controller on microk8s
juju add-model minio
juju deploy minio
juju export-bundle --filename mybundle.yaml
juju destroy-model minio --destroy-storage
juju add-model minio
juju deploy ./mybundle.yaml
The workaround for this is simply adding `series: kubernetes` in the charm section. Therefore while export-bundle returns:
bundle: kubernetes
applications:
minio:
charm: minio
channel: stable
revision: 57
resources:
oci-image: 338
scale: 1
It should be:
bundle: kubernetes
applications:
minio:
charm: minio
channel: stable
revision: 57
series: kubernetes # <- this is missing.
resources:
oci-image: 338
scale: 1
tags: | added: bundles k8s |
This looks like a bug in the deploy code, not the export-bundle code.