Top level `series` not respected in bundle with local charms

Bug #1812237 reported by Joseph Borg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Incomplete
Low
Achilleas Anagnostopoulos

Bug Description

Example bundle is attached.

When deploying a bundle with `series` set at the top level, the series is not respected by locally sourced charms. This means that, if you've set multiple series in the charm's `metadata.yaml`, you're likely to get a failure such as

`ERROR cannot deploy bundle: cannot add relation between "flannel:cni" and "kubernetes-master:cni": cannot add relation "flannel:cni kubernetes-master:cni": principal and subordinate applications' series must match`

The only ways I can get around this is by either only setting 1 series in the `metadata.yaml` or by setting the series of local applications (at the application level) explicitly in the bundle yaml.

Revision history for this message
Joseph Borg (joeborg) wrote :
Changed in juju:
status: New → Triaged
importance: Undecided → High
Changed in juju:
assignee: nobody → Achilleas Anagnostopoulos (achilleasa)
status: Triaged → In Progress
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

Is this still an issue? I haven't been able to reproduce it.
Here is what I have tried so far:

pulled kubernetes-master locally and set series to:
```
 - xenial
 - bionic
 - qantal
```

I then tried deploying the following bundle (based off the attached cdk.yaml file):

```
description: A test bundle
series: bionic
services:
  flannel:
    charm: cs:~containers/flannel-351
  kubernetes-master:
    charm: /home/achilleas/charms/kubernetes-master
    num_units: 1
relations:
- - flannel:cni
  - kubernetes-master:cni
```

and I get the following output:

```
Resolving charm: cs:~containers/flannel-351
Executing changes:
- upload charm cs:~containers/flannel-351 for series bionic
- deploy application flannel on bionic using cs:~containers/flannel-351
  added resource flannel-amd64
  added resource flannel-arm64
  added resource flannel-s390x
- upload charm /home/achilleas/charms/kubernetes-master for series bionic
- deploy application kubernetes-master on bionic using /home/achilleas/charms/kubernetes-master
  added resource cdk-addons
  added resource kube-apiserver
  added resource kube-controller-manager
  added resource kube-proxy
  added resource kube-scheduler
  added resource kubectl
- add relation flannel:cni - kubernetes-master:cni
- add unit kubernetes-master/0 to new machine 7
Deploy of bundle completed.
```

Changed in juju:
status: In Progress → Incomplete
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.