Add Kinetic and Zed support

* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I3cc0af8443ecf62589c88d4e924cb633c419e87f
This commit is contained in:
Corey Bryant 2022-06-10 20:14:47 +00:00 committed by Alex Kavanagh
parent 9fb3530b0c
commit 0b34e1b882
13 changed files with 77 additions and 437 deletions

View File

@ -1,4 +1,4 @@
- project: - project:
templates: templates:
- openstack-python3-charm-jobs - openstack-python3-charm-zed-jobs
- openstack-cover-jobs - openstack-cover-jobs

4
bindep.txt Normal file
View File

@ -0,0 +1,4 @@
libffi-dev [platform:dpkg]
libpq-dev [platform:dpkg]
libxml2-dev [platform:dpkg]
libxslt1-dev [platform:dpkg]

View File

@ -2,32 +2,24 @@ type: charm
parts: parts:
charm: charm:
build-packages: source: src/
- tox plugin: reactive
- git build-snaps:
- python3-dev - charm
override-build: | build-environment:
apt-get install ca-certificates -y - CHARM_INTERFACES_DIR: /root/project/interfaces/
tox -e build-reactive - CHARM_LAYERS_DIR: /root/project/layers/
override-stage: |
echo "Copying charm to staging area: $CHARMCRAFT_STAGE"
NAME=$(ls $CHARMCRAFT_PART_BUILD/build/builds)
cp -r $CHARMCRAFT_PART_BUILD/build/builds/$NAME/* $CHARMCRAFT_STAGE/
override-prime: |
# For some reason, the normal priming chokes on the fact that there's a
# hooks directory.
cp -r $CHARMCRAFT_STAGE/* .
bases: bases:
- build-on: - build-on:
- name: ubuntu - name: ubuntu
channel: "20.04" channel: "22.04"
architectures: architectures:
- amd64 - amd64
run-on: run-on:
- name: ubuntu
channel: "20.04"
architectures: [amd64, s390x, ppc64el, arm64]
- name: ubuntu - name: ubuntu
channel: "22.04" channel: "22.04"
architectures: [amd64, s390x, ppc64el, arm64] architectures: [amd64, s390x, ppc64el, arm64]
- name: ubuntu
channel: "22.10"
architectures: [amd64, s390x, ppc64el, arm64]

View File

@ -1,10 +1,9 @@
- project: - project:
templates: templates:
- charm-unit-jobs-py38
- charm-unit-jobs-py310 - charm-unit-jobs-py310
- charm-xena-functional-jobs - charm-zed-functional-jobs
- charm-yoga-functional-jobs
vars: vars:
needs_charm_build: true needs_charm_build: true
charm_build_name: neutron-api-plugin-ironic charm_build_name: neutron-api-plugin-ironic
build_type: charmcraft build_type: charmcraft
charmcraft_channel: 2.0/stable

View File

@ -15,16 +15,6 @@ setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb
# #
cryptography<3.4 cryptography<3.4
# Build requirements git+https://github.com/juju/charm-tools.git
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
git+https://github.com/juju/charm-tools#egg=charm-tools
simplejson simplejson
# Newer versions use keywords that didn't exist in python 3.5 yet (e.g.
# "ModuleNotFoundError")
# 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
importlib-metadata<3.0.0; python_version < '3.6'
importlib-resources<3.0.0; python_version < '3.6'

View File

@ -6,10 +6,10 @@ description: |
tags: tags:
- misc - misc
- networking - networking
subordinate: true
series: series:
- focal
- jammy - jammy
- kinetic
subordinate: true
provides: provides:
neutron-plugin-api-subordinate: neutron-plugin-api-subordinate:
interface: neutron-plugin-api-subordinate interface: neutron-plugin-api-subordinate

View File

@ -1,311 +0,0 @@
options:
source: &source cloud:focal-yoga
series: focal
local_overlay_enabled: false
relations:
- - nova-ironic
- ironic-api
- - ironic-conductor
- ironic-api
- - neutron-ironic-agent:identity-credentials
- keystone
- - neutron-ironic-agent
- neutron-api
- - neutron-openvswitch
- neutron-api
- - ironic-api:amqp
- rabbitmq-server:amqp
- - ironic-api
- keystone
- - ironic-api:shared-db
- ironic-api-mysql-router:shared-db
- - ironic-conductor:amqp
- rabbitmq-server:amqp
- - ironic-conductor
- keystone
- - ironic-conductor:shared-db
- ironic-conductor-mysql-router:shared-db
- - nova-ironic:amqp
- rabbitmq-server:amqp
- - nova-ironic
- glance
- - nova-ironic
- keystone
- - nova-ironic
- nova-cloud-controller
- - neutron-gateway:amqp
- rabbitmq-server:amqp
- - keystone:shared-db
- keystone-mysql-router:shared-db
- - nova-cloud-controller:identity-service
- keystone:identity-service
- - glance:identity-service
- keystone:identity-service
- - neutron-api:identity-service
- keystone:identity-service
- - neutron-api:shared-db
- neutron-api-mysql-router:shared-db
- - neutron-api:amqp
- rabbitmq-server:amqp
- - neutron-gateway:neutron-plugin-api
- neutron-api:neutron-plugin-api
- - glance:shared-db
- glance-mysql-router:shared-db
- - glance:amqp
- rabbitmq-server:amqp
- - nova-cloud-controller:image-service
- glance:image-service
- - nova-cloud-controller:amqp
- rabbitmq-server:amqp
- - nova-cloud-controller:quantum-network-service
- neutron-gateway:quantum-network-service
- - nova-cloud-controller:shared-db
- nova-cloud-controller-mysql-router:shared-db
- - nova-cloud-controller:neutron-api
- neutron-api:neutron-api
- - cinder:image-service
- glance:image-service
- - cinder:amqp
- rabbitmq-server:amqp
- - cinder:identity-service
- keystone:identity-service
- - cinder:cinder-volume-service
- nova-cloud-controller:cinder-volume-service
- - cinder:shared-db
- cinder-mysql-router:shared-db
- - placement:shared-db
- placement-mysql-router:shared-db
- - placement
- keystone
- - placement
- nova-cloud-controller
- - ceph-mon:client
- nova-ironic:ceph
- - ceph-mon:client
- glance:ceph
- - ceph-radosgw:mon
- ceph-mon:radosgw
- - ceph-radosgw:identity-service
- keystone:identity-service
- - ceph-osd:mon
- ceph-mon:osd
- - ceph-radosgw:object-store
- glance
- - mysql-innodb-cluster:db-router
- nova-cloud-controller-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- keystone-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- glance-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- neutron-api-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- placement-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- cinder-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- ironic-api-mysql-router:db-router
- - mysql-innodb-cluster:db-router
- ironic-conductor-mysql-router:db-router
- - vault-mysql-router:db-router
- mysql-innodb-cluster:db-router
- - vault:shared-db
- vault-mysql-router:shared-db
- - vault:certificates
- ceph-radosgw
- - vault:certificates
- cinder
- - vault:certificates
- glance:certificates
- - vault:certificates
- keystone:certificates
- - vault:certificates
- neutron-api:certificates
- - vault:certificates
- nova-cloud-controller:certificates
- - vault:certificates
- placement:certificates
- - vault
- ironic-conductor
- - vault:certificates
- ironic-api:certificates
- - ironic-api
- hacluster-ironic
services:
nova-cloud-controller-mysql-router:
charm: ch:mysql-router
channel: latest/edge
keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge
glance-mysql-router:
charm: ch:mysql-router
channel: latest/edge
neutron-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
placement-mysql-router:
charm: ch:mysql-router
channel: latest/edge
vault-mysql-router:
charm: ch:mysql-router
channel: latest/edge
cinder-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-conductor-mysql-router:
charm: ch:mysql-router
channel: latest/edge
mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
constraints: mem=4G
options:
source: *source
channel: latest/edge
cinder:
charm: ch:cinder
num_units: 1
constraints: mem=2G
options:
block-device: vdb
glance-api-version: 2
openstack-origin: *source
worker-multiplier: 0.25
storage:
block-devices: cinder,50G
channel: yoga/edge
ceph-radosgw:
charm: ch:ceph-radosgw
num_units: 1
constraints: mem=2G
options:
source: *source
namespace-tenants: True
channel: quincy/edge
ceph-mon:
charm: ch:ceph-mon
num_units: 3
constraints: mem=2G
options:
expected-osd-count: 3
source: *source
channel: quincy/edge
ceph-osd:
charm: ch:ceph-osd
num_units: 3
constraints: mem=2G
options:
source: *source
storage:
osd-devices: 'cinder,30G'
channel: quincy/edge
glance:
charm: ch:glance
num_units: 1
constraints: mem=2G
options:
openstack-origin: *source
worker-multiplier: 0.25
channel: yoga/edge
keystone:
charm: ch:keystone
num_units: 1
constraints: mem=2G
options:
openstack-origin: *source
worker-multiplier: 0.25
channel: yoga/edge
neutron-api:
charm: ch:neutron-api
num_units: 1
constraints: mem=2G
options:
flat-network-providers: "physnet1"
neutron-security-groups: true
openstack-origin: *source
manage-neutron-plugin-legacy-mode: false
worker-multiplier: 0.25
channel: yoga/edge
neutron-gateway:
charm: ch:neutron-gateway
num_units: 1
constraints: mem=2G
options:
openstack-origin: *source
enable-isolated-metadata: true
enable-metadata-network: true
bridge-mappings: physnet1:br-ex
channel: yoga/edge
nova-cloud-controller:
charm: ch:nova-cloud-controller
num_units: 1
constraints: mem=2G
options:
network-manager: Neutron
openstack-origin: *source
worker-multiplier: 0.25
channel: yoga/edge
nova-ironic:
charm: ch:nova-compute
num_units: 1
constraints: mem=2G
options:
enable-live-migration: false
enable-resize: false
openstack-origin: *source
virt-type: ironic
channel: yoga/edge
placement:
charm: ch:placement
num_units: 1
constraints: mem=2G
options:
openstack-origin: *source
worker-multiplier: 0.25
channel: yoga/edge
rabbitmq-server:
charm: ch:rabbitmq-server
num_units: 1
constraints: mem=2G
channel: latest/edge
hacluster-ironic:
charm: ch:hacluster
num_units: 0
channel: latest/edge
ironic-api:
charm: ch:ironic-api
num_units: 3
constraints: mem=2G
options:
openstack-origin: *source
channel: yoga/edge
ironic-conductor:
charm: ch:ironic-conductor
num_units: 1
constraints: mem=2G
options:
openstack-origin: *source
max-tftp-block-size: 1418
disable-secure-erase: true
use-ipxe: true
enabled-network-interfaces: "flat, noop"
channel: yoga/edge
neutron-openvswitch:
charm: ch:neutron-openvswitch
num_units: 0
options:
bridge-mappings: physnet1:br-ex
channel: yoga/edge
neutron-ironic-agent:
charm: ../../../neutron-api-plugin-ironic.charm
num_units: 0
options:
openstack-origin: *source
vault:
charm: ch:vault
num_units: 1
channel: latest/edge

View File

@ -177,7 +177,7 @@ services:
worker-multiplier: 0.25 worker-multiplier: 0.25
storage: storage:
block-devices: cinder,50G block-devices: cinder,50G
channel: yoga/edge channel: latest/edge
ceph-radosgw: ceph-radosgw:
charm: ch:ceph-radosgw charm: ch:ceph-radosgw
num_units: 1 num_units: 1
@ -185,7 +185,7 @@ services:
options: options:
source: *source source: *source
namespace-tenants: True namespace-tenants: True
channel: quincy/edge channel: latest/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
num_units: 3 num_units: 3
@ -193,7 +193,7 @@ services:
options: options:
expected-osd-count: 3 expected-osd-count: 3
source: *source source: *source
channel: quincy/edge channel: latest/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
num_units: 3 num_units: 3
@ -202,7 +202,7 @@ services:
source: *source source: *source
storage: storage:
osd-devices: 'cinder,30G' osd-devices: 'cinder,30G'
channel: quincy/edge channel: latest/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
@ -210,7 +210,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
num_units: 1 num_units: 1
@ -218,7 +218,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
num_units: 1 num_units: 1
@ -229,7 +229,7 @@ services:
openstack-origin: *source openstack-origin: *source
manage-neutron-plugin-legacy-mode: false manage-neutron-plugin-legacy-mode: false
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
neutron-gateway: neutron-gateway:
charm: ch:neutron-gateway charm: ch:neutron-gateway
num_units: 1 num_units: 1
@ -239,7 +239,7 @@ services:
enable-isolated-metadata: true enable-isolated-metadata: true
enable-metadata-network: true enable-metadata-network: true
bridge-mappings: physnet1:br-ex bridge-mappings: physnet1:br-ex
channel: yoga/edge channel: latest/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
num_units: 1 num_units: 1
@ -248,7 +248,7 @@ services:
network-manager: Neutron network-manager: Neutron
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
nova-ironic: nova-ironic:
charm: ch:nova-compute charm: ch:nova-compute
num_units: 1 num_units: 1
@ -258,7 +258,7 @@ services:
enable-resize: false enable-resize: false
openstack-origin: *source openstack-origin: *source
virt-type: ironic virt-type: ironic
channel: yoga/edge channel: latest/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
@ -266,7 +266,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
num_units: 1 num_units: 1
@ -282,7 +282,7 @@ services:
constraints: mem=2G constraints: mem=2G
options: options:
openstack-origin: *source openstack-origin: *source
channel: yoga/edge channel: latest/edge
ironic-conductor: ironic-conductor:
charm: ch:ironic-conductor charm: ch:ironic-conductor
num_units: 1 num_units: 1
@ -293,13 +293,13 @@ services:
disable-secure-erase: true disable-secure-erase: true
use-ipxe: true use-ipxe: true
enabled-network-interfaces: "flat, noop" enabled-network-interfaces: "flat, noop"
channel: yoga/edge channel: latest/edge
neutron-openvswitch: neutron-openvswitch:
charm: ch:neutron-openvswitch charm: ch:neutron-openvswitch
num_units: 0 num_units: 0
options: options:
bridge-mappings: physnet1:br-ex bridge-mappings: physnet1:br-ex
channel: yoga/edge channel: latest/edge
neutron-ironic-agent: neutron-ironic-agent:
charm: ../../../neutron-api-plugin-ironic.charm charm: ../../../neutron-api-plugin-ironic.charm
num_units: 0 num_units: 0

View File

@ -1,6 +1,6 @@
options: options:
source: &source cloud:focal-xena source: &source cloud:jammy-zed
series: focal series: jammy
local_overlay_enabled: false local_overlay_enabled: false
relations: relations:
- - nova-ironic - - nova-ironic
@ -177,7 +177,7 @@ services:
worker-multiplier: 0.25 worker-multiplier: 0.25
storage: storage:
block-devices: cinder,50G block-devices: cinder,50G
channel: yoga/edge channel: latest/edge
ceph-radosgw: ceph-radosgw:
charm: ch:ceph-radosgw charm: ch:ceph-radosgw
num_units: 1 num_units: 1
@ -185,7 +185,7 @@ services:
options: options:
source: *source source: *source
namespace-tenants: True namespace-tenants: True
channel: quincy/edge channel: latest/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
num_units: 3 num_units: 3
@ -193,7 +193,7 @@ services:
options: options:
expected-osd-count: 3 expected-osd-count: 3
source: *source source: *source
channel: quincy/edge channel: latest/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
num_units: 3 num_units: 3
@ -202,7 +202,7 @@ services:
source: *source source: *source
storage: storage:
osd-devices: 'cinder,30G' osd-devices: 'cinder,30G'
channel: quincy/edge channel: latest/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
@ -210,7 +210,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
num_units: 1 num_units: 1
@ -218,7 +218,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
num_units: 1 num_units: 1
@ -229,7 +229,7 @@ services:
openstack-origin: *source openstack-origin: *source
manage-neutron-plugin-legacy-mode: false manage-neutron-plugin-legacy-mode: false
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
neutron-gateway: neutron-gateway:
charm: ch:neutron-gateway charm: ch:neutron-gateway
num_units: 1 num_units: 1
@ -239,7 +239,7 @@ services:
enable-isolated-metadata: true enable-isolated-metadata: true
enable-metadata-network: true enable-metadata-network: true
bridge-mappings: physnet1:br-ex bridge-mappings: physnet1:br-ex
channel: yoga/edge channel: latest/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
num_units: 1 num_units: 1
@ -248,7 +248,7 @@ services:
network-manager: Neutron network-manager: Neutron
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
nova-ironic: nova-ironic:
charm: ch:nova-compute charm: ch:nova-compute
num_units: 1 num_units: 1
@ -258,7 +258,7 @@ services:
enable-resize: false enable-resize: false
openstack-origin: *source openstack-origin: *source
virt-type: ironic virt-type: ironic
channel: yoga/edge channel: latest/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
@ -266,7 +266,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
num_units: 1 num_units: 1
@ -282,7 +282,7 @@ services:
constraints: mem=2G constraints: mem=2G
options: options:
openstack-origin: *source openstack-origin: *source
channel: yoga/edge channel: latest/edge
ironic-conductor: ironic-conductor:
charm: ch:ironic-conductor charm: ch:ironic-conductor
num_units: 1 num_units: 1
@ -293,13 +293,13 @@ services:
disable-secure-erase: true disable-secure-erase: true
use-ipxe: true use-ipxe: true
enabled-network-interfaces: "flat, noop" enabled-network-interfaces: "flat, noop"
channel: yoga/edge channel: latest/edge
neutron-openvswitch: neutron-openvswitch:
charm: ch:neutron-openvswitch charm: ch:neutron-openvswitch
num_units: 0 num_units: 0
options: options:
bridge-mappings: physnet1:br-ex bridge-mappings: physnet1:br-ex
channel: yoga/edge channel: latest/edge
neutron-ironic-agent: neutron-ironic-agent:
charm: ../../../neutron-api-plugin-ironic.charm charm: ../../../neutron-api-plugin-ironic.charm
num_units: 0 num_units: 0

View File

@ -1,6 +1,6 @@
options: options:
source: &source distro source: &source distro
series: impish series: kinetic
local_overlay_enabled: false local_overlay_enabled: false
relations: relations:
- - nova-ironic - - nova-ironic
@ -177,7 +177,7 @@ services:
worker-multiplier: 0.25 worker-multiplier: 0.25
storage: storage:
block-devices: cinder,50G block-devices: cinder,50G
channel: yoga/edge channel: latest/edge
ceph-radosgw: ceph-radosgw:
charm: ch:ceph-radosgw charm: ch:ceph-radosgw
num_units: 1 num_units: 1
@ -185,7 +185,7 @@ services:
options: options:
source: *source source: *source
namespace-tenants: True namespace-tenants: True
channel: quincy/edge channel: latest/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
num_units: 3 num_units: 3
@ -193,7 +193,7 @@ services:
options: options:
expected-osd-count: 3 expected-osd-count: 3
source: *source source: *source
channel: quincy/edge channel: latest/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
num_units: 3 num_units: 3
@ -202,7 +202,7 @@ services:
source: *source source: *source
storage: storage:
osd-devices: 'cinder,30G' osd-devices: 'cinder,30G'
channel: quincy/edge channel: latest/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
@ -210,7 +210,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
num_units: 1 num_units: 1
@ -218,7 +218,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
num_units: 1 num_units: 1
@ -229,7 +229,7 @@ services:
openstack-origin: *source openstack-origin: *source
manage-neutron-plugin-legacy-mode: false manage-neutron-plugin-legacy-mode: false
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
neutron-gateway: neutron-gateway:
charm: ch:neutron-gateway charm: ch:neutron-gateway
num_units: 1 num_units: 1
@ -239,7 +239,7 @@ services:
enable-isolated-metadata: true enable-isolated-metadata: true
enable-metadata-network: true enable-metadata-network: true
bridge-mappings: physnet1:br-ex bridge-mappings: physnet1:br-ex
channel: yoga/edge channel: latest/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
num_units: 1 num_units: 1
@ -248,7 +248,7 @@ services:
network-manager: Neutron network-manager: Neutron
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
nova-ironic: nova-ironic:
charm: ch:nova-compute charm: ch:nova-compute
num_units: 1 num_units: 1
@ -258,7 +258,7 @@ services:
enable-resize: false enable-resize: false
openstack-origin: *source openstack-origin: *source
virt-type: ironic virt-type: ironic
channel: yoga/edge channel: latest/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
@ -266,7 +266,7 @@ services:
options: options:
openstack-origin: *source openstack-origin: *source
worker-multiplier: 0.25 worker-multiplier: 0.25
channel: yoga/edge channel: latest/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
num_units: 1 num_units: 1
@ -282,7 +282,7 @@ services:
constraints: mem=2G constraints: mem=2G
options: options:
openstack-origin: *source openstack-origin: *source
channel: yoga/edge channel: latest/edge
ironic-conductor: ironic-conductor:
charm: ch:ironic-conductor charm: ch:ironic-conductor
num_units: 1 num_units: 1
@ -293,13 +293,13 @@ services:
disable-secure-erase: true disable-secure-erase: true
use-ipxe: true use-ipxe: true
enabled-network-interfaces: "flat, noop" enabled-network-interfaces: "flat, noop"
channel: yoga/edge channel: latest/edge
neutron-openvswitch: neutron-openvswitch:
charm: ch:neutron-openvswitch charm: ch:neutron-openvswitch
num_units: 0 num_units: 0
options: options:
bridge-mappings: physnet1:br-ex bridge-mappings: physnet1:br-ex
channel: yoga/edge channel: latest/edge
neutron-ironic-agent: neutron-ironic-agent:
charm: ../../../neutron-api-plugin-ironic.charm charm: ../../../neutron-api-plugin-ironic.charm
num_units: 0 num_units: 0

View File

@ -4,15 +4,15 @@
charm_name: ironic-api charm_name: ironic-api
gate_bundles: gate_bundles:
- focal-xena
- impish-xena
dev_bundles:
- focal-yoga
- jammy-yoga - jammy-yoga
dev_bundles:
- jammy-yoga
- jammy-zed
- kinetic-zed
smoke_bundles: smoke_bundles:
- focal-xena - jammy-yoga
target_deploy_status: target_deploy_status:
vault: vault:
@ -43,5 +43,4 @@ tests:
tests_options: tests_options:
force_deploy: force_deploy:
- impish-xena - kinetic-zed
- jammy-yoga

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.
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85 setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
stestr>=2.2.0 stestr>=2.2.0
@ -13,25 +12,10 @@ stestr>=2.2.0
# https://github.com/mtreinish/stestr/issues/145 # https://github.com/mtreinish/stestr/issues/145
cliff<3.0.0 cliff<3.0.0
# Dependencies of stestr. Newer versions use keywords that didn't exist in
# python 3.5 yet (e.g. "ModuleNotFoundError")
importlib-metadata<3.0.0; python_version < '3.6'
importlib-resources<3.0.0; python_version < '3.6'
# Some Zuul nodes sometimes pull newer versions of these dependencies which
# dropped support for python 3.5:
osprofiler<2.7.0;python_version<'3.6'
stevedore<1.31.0;python_version<'3.6'
debtcollector<1.22.0;python_version<'3.6'
oslo.utils<=3.41.0;python_version<'3.6'
requests>=2.18.4 requests>=2.18.4
charms.reactive charms.reactive
# Newer mock seems to have some syntax which is newer than python3.5 (e.g. mock>=1.2
# f'{something}'
mock>=1.2,<4.0.0; python_version < '3.6'
mock>=1.2; python_version >= '3.6'
nose>=1.3.7 nose>=1.3.7
coverage>=3.6 coverage>=3.6

23
tox.ini
View File

@ -31,10 +31,8 @@ minversion = 3.18.0
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0 PYTHONHASHSEED=0
TERM=linux TERM=linux
LAYER_PATH={toxinidir}/layers
INTERFACE_PATH={toxinidir}/interfaces
JUJU_REPOSITORY={toxinidir}/build JUJU_REPOSITORY={toxinidir}/build
passenv = http_proxy https_proxy INTERFACE_PATH LAYER_PATH JUJU_REPOSITORY passenv = no_proxy http_proxy https_proxy JUJU_REPOSITORY
install_command = install_command =
{toxinidir}/pip.sh install {opts} {packages} {toxinidir}/pip.sh install {opts} {packages}
allowlist_externals = allowlist_externals =
@ -50,7 +48,7 @@ basepython = python3
deps = -r{toxinidir}/build-requirements.txt deps = -r{toxinidir}/build-requirements.txt
commands = commands =
charmcraft clean charmcraft clean
charmcraft -v build charmcraft -v pack
{toxinidir}/rename.sh {toxinidir}/rename.sh
[testenv:build-reactive] [testenv:build-reactive]
@ -68,21 +66,6 @@ basepython = python3
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:py36]
basepython = python3.6
deps = -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:py38]
basepython = python3.8
deps = -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:py39]
basepython = python3.9
deps = -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:py310] [testenv:py310]
basepython = python3.10 basepython = python3.10
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
@ -91,7 +74,7 @@ commands = stestr run --slowest {posargs}
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3
deps = flake8==3.9.2 deps = flake8==3.9.2
charm-tools==2.8.3 git+https://github.com/juju/charm-tools.git
commands = flake8 {posargs} src unit_tests commands = flake8 {posargs} src unit_tests
[testenv:func-target] [testenv:func-target]