Can't deploy multiseries charms in bundles

Bug #1571254 reported by Casey Marshall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

I can't seem to be able to deploy a bundle that has a multiseries charm in it. For example, trying to deploy this bundle:

series: trusty
services:
  test-gogs:
    charm: cs:~cmars/gogs
    expose: True
    num_units: 1
  test-gogs-db:
    charm: cs:trusty/postgresql
    num_units: 1
relations:
  - - test-gogs:db
    - test-gogs-db:db

Gives me an error:

added charm cs:~cmars/gogs-3
ERROR cannot deploy bundle: cannot deploy service "test-gogs": cannot add service "test-gogs": series is empty

I would expect the series specified in the bundle to select the series for the service.

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Was this on master with the latest deps? I know there was an update to bundlechanges to better infer the series not too long ago.

Casey Marshall (cmars)
Changed in juju-core:
status: New → Invalid
Revision history for this message
Casey Marshall (cmars) wrote :

With a recent Juju 2.0-rc1 (master at ac1434) I'm still unable to deploy this bundle, which I'm using in my charm test. It references the published multi-series charm, which supports trusty and xenial:

$ juju version
2.0-rc1-xenial-amd64
$ cat test.yaml
series: trusty
services:
  test-gogs:
    charm: cs:~cmars/gogs
    series: trusty
    expose: True
    num_units: 1
  test-gogs-db:
    charm: cs:trusty/postgresql
    num_units: 1
relations:
  - - test-gogs:db
    - test-gogs-db:db
$ juju deploy test.yaml
added charm cs:~cmars/gogs-4
ERROR cannot deploy bundle: cannot deploy service "test-gogs": cannot add service "test-gogs": series is empty
$ juju deploy --series trusty test.yaml
ERROR Flags provided but not supported when deploying a bundle: --series.
$ juju deploy test.yaml
added charm cs:~cmars/gogs-4
ERROR cannot deploy bundle: cannot deploy service "test-gogs": cannot add service "test-gogs": series is empty
$

Changed in juju-core:
status: Invalid → New
Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
milestone: none → 2.0-rc1
importance: Undecided → High
status: New → In Progress
Revision history for this message
Ian Booth (wallyworld) wrote :

The bundle processing had been updated to correctly pass the required series when adding a charm to Juju state. But deploying a service off that charm failed when the charm url did not specify a series.

https://github.com/juju/juju/pull/5196

Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta5 → none
milestone: none → 2.0-beta5
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.