Comment 9 for bug 1996794

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: juju deploy machine charm with --force fails with "ERROR no releases found for channel"

Hi,

Unfortunately using edge isn't working with --force on kinetic.

I have a simple bundle that can be deployed against the local provider in 2 scenarios to recreate this:

1) deployed applications result in jammy instances being deployed for edge channels

$ cat kinetic-mysql.yaml
series: kinetic
applications:
  mysql-innodb-cluster:
    charm: ch:mysql-innodb-cluster
    num_units: 3
    channel: edge

$ juju deploy --force ./kinetic-mysql.yaml
Located charm "mysql-innodb-cluster" in charm-hub, channel 8.0/stable
Executing changes:
- upload charm mysql-innodb-cluster from charm-hub for series kinetic from channel edge with architecture=amd64
- deploy application mysql-innodb-cluster from charm-hub on kinetic with edge
  added resource mysql-shell
- add unit mysql-innodb-cluster/0 to new machine 0
- add unit mysql-innodb-cluster/1 to new machine 1
- add unit mysql-innodb-cluster/2 to new machine 2
Deploy of bundle completed.

$ juju status --format=yaml|grep jammy
    series: jammy
    series: jammy
    series: jammy
    series: jammy

2) deploy kinetic machines first, then deploy applications to the machines

$ cat bundle.yaml
series: kinetic
machines:
  '0':
    constraints: mem=3072M
  '1':
    constraints: mem=3072M
  '2':
    constraints: mem=3072M
applications:
  mysql-innodb-cluster:
    charm: ch:mysql-innodb-cluster
    num_units: 3
    to:
      - '0'
      - '1'
      - '2'
    channel: edge

$ juju deploy --force ./kinetic-mysql.yaml
Located charm "mysql-innodb-cluster" in charm-hub, channel 8.0/stable
Executing changes:
- upload charm mysql-innodb-cluster from charm-hub for series kinetic from channel edge with architecture=amd64
- deploy application mysql-innodb-cluster from charm-hub on kinetic with edge
  added resource mysql-shell
- add new machine 0
- add new machine 1
- add new machine 2
- add unit mysql-innodb-cluster/0 to new machine 0
ERROR cannot deploy bundle: cannot add unit for application "mysql-innodb-cluster": acquiring machine to host unit "mysql-innodb-cluster/0": canno
t assign unit "mysql-innodb-cluster/0" to machine 0: series does not match