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 Depends-On: https://review.opendev.org/c/openstack/charm-manila/+/858765 Change-Id: I4cae0a313230a8617beac36a2dbfe0c019c5e0de
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- openstack-python3-charm-yoga-jobs
|
- openstack-python3-charm-zed-jobs
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
|
@@ -31,27 +31,47 @@ parts:
|
|||||||
chmod +x src/charm.py
|
chmod +x src/charm.py
|
||||||
|
|
||||||
bases:
|
bases:
|
||||||
- name: ubuntu
|
- build-on:
|
||||||
channel: "20.04"
|
- name: ubuntu
|
||||||
architectures: [amd64]
|
channel: "22.04"
|
||||||
- name: ubuntu
|
architectures: [amd64]
|
||||||
channel: "20.04"
|
run-on:
|
||||||
architectures: [arm64]
|
- name: ubuntu
|
||||||
- name: ubuntu
|
channel: "22.04"
|
||||||
channel: "20.04"
|
architectures: [amd64]
|
||||||
architectures: [ppc64el]
|
- name: ubuntu
|
||||||
- name: ubuntu
|
channel: "22.10"
|
||||||
channel: "20.04"
|
architectures: [amd64]
|
||||||
architectures: [s390x]
|
- build-on:
|
||||||
- name: ubuntu
|
- name: ubuntu
|
||||||
channel: "22.04"
|
channel: "22.04"
|
||||||
architectures: [amd64]
|
architectures: [arm64]
|
||||||
- name: ubuntu
|
run-on:
|
||||||
channel: "22.04"
|
- name: ubuntu
|
||||||
architectures: [arm64]
|
channel: "22.04"
|
||||||
- name: ubuntu
|
architectures: [arm64]
|
||||||
channel: "22.04"
|
- name: ubuntu
|
||||||
architectures: [ppc64el]
|
channel: "22.10"
|
||||||
- name: ubuntu
|
architectures: [arm64]
|
||||||
channel: "22.04"
|
- build-on:
|
||||||
architectures: [s390x]
|
- 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]
|
||||||
|
38
osci.yaml
38
osci.yaml
@@ -1,45 +1,9 @@
|
|||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- charm-unit-jobs-py38
|
|
||||||
- charm-unit-jobs-py39
|
|
||||||
- charm-unit-jobs-py310
|
- charm-unit-jobs-py310
|
||||||
check:
|
- charm-zed-functional-jobs
|
||||||
jobs:
|
|
||||||
# Wallaby is currently broken because of a change in the default token
|
|
||||||
# type requirements in manila's policy.json that the charm / tests need
|
|
||||||
# to learn to handle
|
|
||||||
- ganesha-focal-xena
|
|
||||||
- ganesha-focal-yoga:
|
|
||||||
voting: false
|
|
||||||
- ganesha-jammy-yoga:
|
|
||||||
voting: false
|
|
||||||
vars:
|
vars:
|
||||||
needs_charm_build: true
|
needs_charm_build: true
|
||||||
charm_build_name: manila
|
charm_build_name: manila
|
||||||
build_type: charmcraft
|
build_type: charmcraft
|
||||||
charmcraft_channel: 2.0/stable
|
charmcraft_channel: 2.0/stable
|
||||||
|
|
||||||
- job:
|
|
||||||
name: ganesha-focal-xena
|
|
||||||
parent: func-target
|
|
||||||
dependencies:
|
|
||||||
- osci-lint
|
|
||||||
- tox-py38
|
|
||||||
- tox-py39
|
|
||||||
- charm-build
|
|
||||||
vars:
|
|
||||||
tox_extra_args: ganesha:focal-xena
|
|
||||||
- job:
|
|
||||||
name: ganesha-focal-yoga
|
|
||||||
parent: func-target
|
|
||||||
dependencies:
|
|
||||||
- ganesha-focal-xena
|
|
||||||
vars:
|
|
||||||
tox_extra_args: ganesha:focal-yoga
|
|
||||||
- job:
|
|
||||||
name: ganesha-jammy-yoga
|
|
||||||
parent: func-target
|
|
||||||
dependencies:
|
|
||||||
- ganesha-focal-xena
|
|
||||||
vars:
|
|
||||||
tox_extra_args: ganesha:jammy-yoga
|
|
||||||
|
@@ -3,28 +3,6 @@
|
|||||||
# choices of *requirements.txt files for OpenStack Charms:
|
# choices of *requirements.txt files for OpenStack Charms:
|
||||||
# https://github.com/openstack-charmers/release-tools
|
# https://github.com/openstack-charmers/release-tools
|
||||||
#
|
#
|
||||||
# NOTE(lourot): This might look like a duplication of test-requirements.txt but
|
git+https://github.com/juju/charm-tools.git
|
||||||
# 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
|
|
||||||
# * https://github.com/openstack-charmers/zaza/issues/421
|
|
||||||
# * https://mail.python.org/pipermail/cryptography-dev/2021-January/001003.html
|
|
||||||
#
|
|
||||||
cryptography<3.4
|
|
||||||
|
|
||||||
# Build requirements
|
|
||||||
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'
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
options:
|
options:
|
||||||
openstack-origin:
|
openstack-origin:
|
||||||
default: yoga
|
default: zed
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
Repository from which to install. May be one of the following:
|
Repository from which to install. May be one of the following:
|
||||||
|
@@ -11,8 +11,8 @@ description: |
|
|||||||
tags:
|
tags:
|
||||||
- openstack
|
- openstack
|
||||||
series:
|
series:
|
||||||
- focal
|
|
||||||
- jammy
|
- jammy
|
||||||
|
- kinetic
|
||||||
subordinate: false
|
subordinate: false
|
||||||
requires:
|
requires:
|
||||||
shared-db:
|
shared-db:
|
||||||
|
@@ -118,7 +118,7 @@ services:
|
|||||||
channel: latest/edge
|
channel: latest/edge
|
||||||
|
|
||||||
manila:
|
manila:
|
||||||
charm: ../../../manila_ubuntu-22.04-amd64.charm
|
charm: ../../../manila_ubuntu-22.04-amd64_ubuntu-22.10-amd64.charm
|
||||||
num_units: 3
|
num_units: 3
|
||||||
options:
|
options:
|
||||||
default-share-backend: cephfsnfs1
|
default-share-backend: cephfsnfs1
|
||||||
@@ -219,7 +219,8 @@ services:
|
|||||||
channel: latest/edge
|
channel: latest/edge
|
||||||
|
|
||||||
nrpe:
|
nrpe:
|
||||||
charm: cs:nrpe
|
charm: ch:nrpe
|
||||||
|
channel: latest/edge
|
||||||
|
|
||||||
relations:
|
relations:
|
||||||
- - 'ceph-mon'
|
- - 'ceph-mon'
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
variables:
|
variables:
|
||||||
openstack-origin: &openstack-origin cloud:focal-yoga
|
openstack-origin: &openstack-origin cloud:jammy-zed
|
||||||
|
|
||||||
local_overlay_enabled: False
|
local_overlay_enabled: False
|
||||||
|
|
||||||
series: focal
|
series: jammy
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
- 'machines section to decide order of deployment. database sooner = faster'
|
- 'machines section to decide order of deployment. database sooner = faster'
|
||||||
@@ -118,7 +118,7 @@ services:
|
|||||||
channel: latest/edge
|
channel: latest/edge
|
||||||
|
|
||||||
manila:
|
manila:
|
||||||
charm: ../../../manila_ubuntu-20.04-amd64.charm
|
charm: ../../../manila_ubuntu-22.04-amd64_ubuntu-22.10-amd64.charm
|
||||||
num_units: 3
|
num_units: 3
|
||||||
options:
|
options:
|
||||||
default-share-backend: cephfsnfs1
|
default-share-backend: cephfsnfs1
|
||||||
@@ -219,7 +219,8 @@ services:
|
|||||||
channel: latest/edge
|
channel: latest/edge
|
||||||
|
|
||||||
nrpe:
|
nrpe:
|
||||||
charm: cs:nrpe
|
charm: ch:nrpe
|
||||||
|
channel: latest/edge
|
||||||
|
|
||||||
relations:
|
relations:
|
||||||
- - 'ceph-mon'
|
- - 'ceph-mon'
|
@@ -1,9 +1,9 @@
|
|||||||
variables:
|
variables:
|
||||||
openstack-origin: &openstack-origin cloud:focal-xena
|
openstack-origin: &openstack-origin distro
|
||||||
|
|
||||||
local_overlay_enabled: False
|
local_overlay_enabled: False
|
||||||
|
|
||||||
series: focal
|
series: kinetic
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
- 'machines section to decide order of deployment. database sooner = faster'
|
- 'machines section to decide order of deployment. database sooner = faster'
|
||||||
@@ -118,7 +118,7 @@ services:
|
|||||||
channel: latest/edge
|
channel: latest/edge
|
||||||
|
|
||||||
manila:
|
manila:
|
||||||
charm: ../../../manila_ubuntu-20.04-amd64.charm
|
charm: ../../../manila_ubuntu-22.04-amd64_ubuntu-22.10-amd64.charm
|
||||||
num_units: 3
|
num_units: 3
|
||||||
options:
|
options:
|
||||||
default-share-backend: cephfsnfs1
|
default-share-backend: cephfsnfs1
|
||||||
@@ -219,7 +219,8 @@ services:
|
|||||||
channel: latest/edge
|
channel: latest/edge
|
||||||
|
|
||||||
nrpe:
|
nrpe:
|
||||||
charm: cs:nrpe
|
charm: ch:nrpe
|
||||||
|
channel: latest/edge
|
||||||
|
|
||||||
relations:
|
relations:
|
||||||
- - 'ceph-mon'
|
- - 'ceph-mon'
|
@@ -1,18 +1,15 @@
|
|||||||
charm_name: manila
|
charm_name: manila
|
||||||
|
|
||||||
gate_bundles:
|
gate_bundles:
|
||||||
- ganesha: focal-xena
|
- jammy-yoga
|
||||||
|
|
||||||
dev_bundles:
|
dev_bundles:
|
||||||
# Wallaby is currently broken because of a change in the default token-type
|
- jammy-yoga
|
||||||
# requirements in manila's policy.json that the charm / tests need to learn to
|
- jammy-zed
|
||||||
# handle
|
- kinetic-zed
|
||||||
- ganesha: focal-xena
|
|
||||||
- ganesha: focal-yoga
|
|
||||||
- ganesha: jammy-yoga
|
|
||||||
|
|
||||||
smoke_bundles:
|
smoke_bundles:
|
||||||
- ganesha: focal-xena
|
- jammy-yoga
|
||||||
|
|
||||||
target_deploy_status:
|
target_deploy_status:
|
||||||
nrpe:
|
nrpe:
|
||||||
@@ -21,23 +18,23 @@ target_deploy_status:
|
|||||||
|
|
||||||
tests:
|
tests:
|
||||||
- zaza.openstack.charm_tests.manila.tests.ManilaTests
|
- zaza.openstack.charm_tests.manila.tests.ManilaTests
|
||||||
- ganesha:
|
- zaza.openstack.charm_tests.manila_ganesha.tests.ManilaGaneshaTests
|
||||||
- zaza.openstack.charm_tests.manila.tests.ManilaTests
|
|
||||||
- zaza.openstack.charm_tests.manila_ganesha.tests.ManilaGaneshaTests
|
|
||||||
|
|
||||||
configure:
|
configure:
|
||||||
- zaza.openstack.charm_tests.keystone.setup.add_demo_user
|
- zaza.openstack.charm_tests.keystone.setup.add_demo_user
|
||||||
- ganesha:
|
- zaza.openstack.charm_tests.glance.setup.add_lts_image
|
||||||
- zaza.openstack.charm_tests.glance.setup.add_lts_image
|
- zaza.openstack.charm_tests.neutron.setup.basic_overcloud_network
|
||||||
- zaza.openstack.charm_tests.neutron.setup.basic_overcloud_network
|
- zaza.openstack.charm_tests.nova.setup.create_flavors
|
||||||
- zaza.openstack.charm_tests.nova.setup.create_flavors
|
- zaza.openstack.charm_tests.nova.setup.manage_ssh_key
|
||||||
- zaza.openstack.charm_tests.nova.setup.manage_ssh_key
|
- zaza.openstack.charm_tests.manila_ganesha.setup.setup_ganesha_share_type
|
||||||
- zaza.openstack.charm_tests.keystone.setup.add_demo_user
|
|
||||||
- zaza.openstack.charm_tests.manila_ganesha.setup.setup_ganesha_share_type
|
|
||||||
|
|
||||||
configure_options:
|
configure_options:
|
||||||
configure_gateway_ext_port_use_juju_wait: False
|
configure_gateway_ext_port_use_juju_wait: False
|
||||||
|
|
||||||
tests_options:
|
tests_options:
|
||||||
force_deploy:
|
force_deploy:
|
||||||
|
# nrpe charm doesn't support jammy+ and needs to be force installed
|
||||||
|
# https://bugs.launchpad.net/charm-nrpe/+bug/1968008
|
||||||
- jammy-yoga
|
- jammy-yoga
|
||||||
|
- jammy-zed
|
||||||
|
- kinetic-zed
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
git+https://github.com/openstack/charms.openstack.git#egg=charms.openstack
|
git+https://github.com/openstack/charms.openstack.git#egg=charms.openstack
|
||||||
|
|
||||||
git+https://github.com/juju/charm-helpers.git#egg=charmhelpers
|
git+https://github.com/juju/charm-helpers.git#egg=charmhelpers
|
||||||
|
@@ -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
|
||||||
|
19
tox.ini
19
tox.ini
@@ -19,10 +19,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 =
|
||||||
@@ -54,21 +52,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
|
||||||
|
Reference in New Issue
Block a user