charmcraft pack on Ubuntu 23.04 (Lunar) fails.
Metadata
Current evaluation
Lunar builds were fixed by merged PR #1130 (commit 5ecb6bfb), adding non-LTS Ubuntu build-base support and an interim-release warning.
Resolution: closed resolved
Reason: PR #1130 was merged as commit 5ecb6bfb, enabling Charmcraft to build Ubuntu 23.04 and other non-LTS bases while warning about interim-release support.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When trying to build a charm using ubuntu-23.04 as the base for the build-on and run-on stanzas, I get no charm when using charmcraft-2.2:
```
$ charmcraft pack
No suitable 'build-on' environment found in 'bases[1]' configuration.
No suitable 'build-on' environment found in 'bases[2]' configuration.
No suitable 'build-on' environment found in 'bases[3]' configuration.
No suitable 'build-on' environment found in 'bases[4]' configuration.
No suitable 'build-on' environment found in 'bases[5]' configuration.
No suitable 'build-on' environment found in 'bases[6]' configuration.
No suitable 'build-on' environment found in 'bases[7]' configuration.
Packing the charm
Building charm in '/root' | (3.0s) found charm-tools 3.0.6 (+git-0-1847cbe)
Created 'ovn-dedicated-chassis_ubuntu-22.04-amd64_ubuntu-22.10-amd64.charm'.
Charms packed:
ovn-dedicated-chassis_ubuntu-22.04-amd64_ubuntu-22.10-amd64.charm
```
Although if I switch to the `latest/edge` channel, I get the following error:
```
Created 'ovn-dedicated-chassis_ubuntu-22.04-amd64_ubuntu-22.10-amd64.charm'.
charmcraft internal error: LXDUnstableImageError(brief="Cannot launch an unstable image 'lunar' from remote 'ubuntu-daily'", details='Devel or daily images are not guaranteed and are intended for experimental use only.', resolution=None)
```
The charmcraft.yaml used is the one below. In general we need to be able to build and run charms on any ubuntu base, since Charmed OpenStack is capable of running on LTS releases and interim releases.
Test Case:
```
git clone https://opendev.org/x/charm-ovn-dedicated-chassis
cd charm-ovn-dedicated-chassis/
git fetch https://review.opendev.org/x/charm-ovn-dedicated-chassis refs/changes/38/883438/1 && git checkout FETCH_HEAD
tox -e build
```
Expected Result: charmcraft produces 2 charm files, one for 22.04 and 22.10, another one for 23.04.
Actual Result: only one charm file is built for 22.04 and 22.10
```yaml
type: charm
parts:
charm:
source: src/
plugin: reactive
reactive-charm-build-arguments:
- --binary-wheels-from-source
- -v
build-packages:
- git
- python3-dev
- libffi-dev
- libssl-dev
- rustc
- cargo
build-snaps:
- charm
build-environment:
- CHARM_INTERFACES_DIR: $CRAFT_PROJECT_DIR/interfaces/
- CHARM_LAYERS_DIR: $CRAFT_PROJECT_DIR/layers/
- MAKEFLAGS: -j$(nproc)
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
- name: ubuntu
channel: "22.10"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [arm64]
- name: ubuntu
channel: "22.10"
architectures: [arm64]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [ppc64el]
- name: ubuntu
channel: "22.10"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [s390x]
- name: ubuntu
channel: "22.10"
architectures: [s390x]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [arm64]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [s390x]
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Lunar builds were fixed by merged PR #1130 (commit 5ecb6bfb), adding non-LTS Ubuntu build-base support and an interim-release warning. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #1130 (5ecb6bfb), adding support for non-LTS Ubuntu build bases with an interim-release warning to address the Lunar build failure. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Charmcraft pack failed on Ubuntu 23.04 due to unavailable build environments. PR #1130 addressed the issue but was blocked by an external cloud-images bug. The issue was closed pending upstream resolution. | |
| qwen/qwen3.6-35b-a3b | — | — | charmcraft pack failed on Ubuntu 23.04 due to missing build environments. PR #1130 was prepared to use buildd images and warn about interim releases, but the issue was closed while blocked by an external cloud-images bug. | |
| qwen/qwen3.6-35b-a3b | — | — | Ubuntu 23.04 charm builds fail due to missing buildd image support. PR #1130 resolves this by switching to buildd images, but remains blocked by Launchpad bug #2007419. The issue is closed pending the upstream fix. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | PR #1130 proposes a fix to use buildd images for interim releases, but the issue remains closed and unresolved due to being blocked by external Launchpad bug #2007419 regarding cloud image availability. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#1130
(confidence 100%)
Merged commit 5ecb6bfb added support for builds on non-LTS Ubuntu bases.
Related issues
No related issues found above the similarity threshold.