RFE: unable to deploy machine charm with a base other than ubuntu when using metadata v2

Bug #1927218 reported by Jon Seager
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Won't Fix
High
Unassigned

Bug Description

It seems that machine charms using metadata v2 can only deploy where some variant of Ubuntu is specified as a base.

There is a simple charm for demonstration here: https://gist.github.com/jnsgruk/322c0058e361255fd7a529dc8fd6d196

If you follow the README and deploy the charm as is, it will deploy a LXC container running on Ubuntu 20.04.

If you edit the generated "machine-charm.charm` package, and update `manifest.yaml` to specify CentOS, or similar:

```
bases:
  - architectures:
      - amd64
    channel: "7"
    name: centos
charmcraft-started-at: "2021-05-05T11:46:37.835347Z"
charmcraft-version: 1.0.0
```

The charm will then fail to deploy with the error:

```
ERROR series not specified and charm does not define any
```

Tags: feature
John A Meinel (jameinel)
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.9.2
Changed in juju:
milestone: 2.9.2 → 2.9.3
Changed in juju:
milestone: 2.9.3 → 2.9.4
Changed in juju:
milestone: 2.9.4 → 2.9.5
Changed in juju:
milestone: 2.9.5 → 2.9.6
Revision history for this message
Simon Richardson (simonrichardson) wrote :

The current workaround for this is that `channel: "centos7"`.

Changed in juju:
milestone: 2.9.6 → 2.9.7
Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
Revision history for this message
Pen Gale (pengale) wrote :

Moved to 2.9.8, as there is extensive work and coordination needed in order to fix this. (Work is ongoing.)

Changed in juju:
status: Triaged → In Progress
milestone: 2.9.7 → 2.9.8
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Today, charmcraft only supports ubuntu in a base. Adding new operating systems will be a roadmap item in the (near) future. This work will have a juju component as well to be done.

Changed in juju:
assignee: Heather Lanigan (hmlanigan) → nobody
milestone: 2.9.8 → none
status: In Progress → Triaged
tags: added: feature
summary: - unable to deploy machine charm with a base other than ubuntu when using
- metadata v2
+ RFE: unable to deploy machine charm with a base other than ubuntu when
+ using metadata v2
Revision history for this message
Heitor (heitorpbittencourt) wrote :

We are hitting something similar, see https://bugs.launchpad.net/juju/+bug/1949622

Revision history for this message
Jon Seager (jnsgruk) wrote :

I'm going to close this, it's no longer relevant given that we will discontinue RHEL/CentOS support in Juju for Juju 4.0

Changed in juju:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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