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

@ -15,73 +15,23 @@ parts:
- rustc - rustc
- cargo - cargo
build-snaps: build-snaps:
- charm - charm/latest/edge
build-environment: build-environment:
- CHARM_INTERFACES_DIR: /root/project/interfaces/ - CHARM_INTERFACES_DIR: /root/project/interfaces/
- CHARM_LAYERS_DIR: /root/project/layers/ - CHARM_LAYERS_DIR: /root/project/layers/
- MAKEFLAGS: -j$(nproc) - MAKEFLAGS: -j$(nproc)
bases:
- build-on: base: ubuntu@24.04
- name: ubuntu platforms:
channel: "22.04" amd64:
architectures: [amd64] build-on: amd64
run-on: build-for: amd64
- name: ubuntu arm64:
channel: "22.04" build-on: arm64
architectures: [amd64] build-for: arm64
- build-on: ppc64el:
- name: ubuntu build-on: ppc64el
channel: "22.04" build-for: ppc64el
architectures: [s390x] s390x:
run-on: build-on: s390x
- name: ubuntu build-for: s390x
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]

View File

@ -6,4 +6,4 @@
needs_charm_build: true needs_charm_build: true
charm_build_name: ovn-central charm_build_name: ovn-central
build_type: charmcraft 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 # 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 # some tox targets use only test-requirements.txt whereas charm-build uses only
# requirements.txt # requirements.txt
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
# NOTE: newer versions of cryptography require a Rust compiler to build, # NOTE: newer versions of cryptography require a Rust compiler to build,
# see # see

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,6 @@
# https://github.com/openstack-charmers/release-tools # 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. 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 stestr>=2.2.0