Add charmcraft 3 support

Update the charmcraft.yaml file to use base and platforms, only
allowing noble support.

- Update osci.yaml to use the charmcraft 3.x/beta
- Add noble/oracular to charmhelpers
- Drop non-noble tests

Change-Id: I20fae8598cb4ec4b6464131024b1c27a8ca24e65
This commit is contained in:
Billy Olsen 2024-06-21 19:20:26 -07:00 committed by Billy Olsen
parent 1b00966719
commit 74f2aa702c
No known key found for this signature in database
GPG Key ID: 6A8CA9BDB5995260
8 changed files with 36 additions and 94 deletions

View File

@ -5,83 +5,33 @@ parts:
source: src/
plugin: reactive
reactive-charm-build-arguments:
- --binary-wheels-from-source
- -v
- --binary-wheels-from-source
- -v
build-packages:
- git
- python3-dev
- libffi-dev
- libssl-dev
- rustc
- cargo
- git
- python3-dev
- libffi-dev
- libssl-dev
- rustc
- cargo
build-snaps:
- charm
- charm/latest/edge
build-environment:
- CHARM_INTERFACES_DIR: /root/project/interfaces/
- CHARM_LAYERS_DIR: /root/project/layers/
- MAKEFLAGS: -j$(nproc)
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [s390x]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "22.04"
architectures: [arm64]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [s390x]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [arm64]
- CHARM_INTERFACES_DIR: /root/project/interfaces/
- CHARM_LAYERS_DIR: /root/project/layers/
- MAKEFLAGS: -j$(nproc)
base: ubuntu@24.04
platforms:
amd64:
build-on: amd64
build-for: amd64
arm64:
build-on: arm64
build-for: arm64
ppc64el:
build-on: ppc64el
build-for: ppc64el
s390x:
build-on: s390x
build-for: s390x

View File

@ -6,4 +6,4 @@
needs_charm_build: true
charm_build_name: ovn-central
build_type: charmcraft
charmcraft_channel: 2.2/stable
charmcraft_channel: 3.x/beta

View File

@ -6,7 +6,6 @@
# NOTE(lourot): This might look like a duplication of test-requirements.txt but
# some tox targets use only test-requirements.txt whereas charm-build uses only
# requirements.txt
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
# NOTE: newer versions of cryptography require a Rust compiler to build,
# see

View File

@ -1,6 +1,6 @@
options:
source:
default: zed
default: caracal
type: string
description: |
Repository from which to install packages.

View File

@ -1,9 +1,9 @@
variables:
openstack-origin: &openstack-origin cloud:jammy-caracal
openstack-origin: &openstack-origin caracal
local_overlay_enabled: False
series: jammy
series: noble
applications:
@ -13,7 +13,7 @@ applications:
channel: latest/edge
ovn-central:
charm: ../../../ovn-central_ubuntu-22.04-amd64.charm
charm: ../../../ovn-central_amd64.charm
num_units: 3
options:
source: *openstack-origin

View File

@ -1,15 +1,13 @@
charm_name: ovn-central
gate_bundles:
- jammy-caracal
- noble-caracal
smoke_bundles:
- jammy-caracal
- noble-caracal
dev_bundles:
- jammy-bobcat
- jammy-caracal
- mantic-bobcat
- noble-caracal
target_deploy_status:
ovn-central:
@ -32,6 +30,3 @@ tests:
- zaza.openstack.charm_tests.ovn.tests.CentralCharmOperationTest
- zaza.openstack.charm_tests.ovn.tests.OVNCentralDownscaleTests
tests_options:
force_deploy:
- mantic-bobcat

View File

@ -3,8 +3,7 @@ psutil
poetry-core
six
# pin zipp to a version that does not require setuptools>=42
zipp<=1.2.0
git+https://github.com/wolsen/charms.reactive.git@fix-entry-points#egg=charms.reactive
git+https://github.com/openstack/charms.openstack.git#egg=charms.openstack

View File

@ -4,7 +4,6 @@
# https://github.com/openstack-charmers/release-tools
#
pyparsing<3.0.0 # aodhclient is pinned in zaza and needs pyparsing < 3.0.0, but cffi also needs it, so pin here.
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
stestr>=2.2.0