Migrate charm charmhub for stable/wallaby
- start from stable/wallaby branch - Do charmcraft, osci, zuul changes - Modify libs to point to stable/wallaby for: - charmhelpers - charms.openstack (as needed) - zaza & zaza.openstack.tests - Remove unsupported test bundles - migration bundles to charmhub.io (ch: prefix + channels) - Build on 20.04 amd64 - Run on 20.04 amd64, s390x, ppc64el, arm64 Change-Id: Ib8d0ffa7df07a75c9258794c18e80c785912cae7
This commit is contained in:
parent
d679b0e814
commit
4e52f9f81d
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ trusty
|
|||||||
.testrepository
|
.testrepository
|
||||||
__pycache__
|
__pycache__
|
||||||
.stestr
|
.stestr
|
||||||
|
*.charm
|
||||||
|
@ -3,4 +3,4 @@ host=review.opendev.org
|
|||||||
port=29418
|
port=29418
|
||||||
project=openstack/charm-barbican.git
|
project=openstack/charm-barbican.git
|
||||||
|
|
||||||
defaultbranch=stable/21.10
|
defaultbranch=stable/wallaby
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- openstack-python3-charm-jobs
|
- openstack-python3-wallaby-jobs
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
|
7
build-requirements.txt
Normal file
7
build-requirements.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# NOTES(lourot):
|
||||||
|
# * We don't install charmcraft via pip anymore because it anyway spins up a
|
||||||
|
# container and scp the system's charmcraft snap inside it. So the charmcraft
|
||||||
|
# snap is necessary on the system anyway.
|
||||||
|
# * `tox -e build` successfully validated with charmcraft 1.2.1
|
||||||
|
|
||||||
|
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
|
30
charmcraft.yaml
Normal file
30
charmcraft.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
type: charm
|
||||||
|
|
||||||
|
parts:
|
||||||
|
charm:
|
||||||
|
build-packages:
|
||||||
|
- tox
|
||||||
|
- git
|
||||||
|
- python3-dev
|
||||||
|
override-build: |
|
||||||
|
apt-get install ca-certificates -y
|
||||||
|
tox -e build-reactive
|
||||||
|
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:
|
||||||
|
- build-on:
|
||||||
|
- name: ubuntu
|
||||||
|
channel: "20.04"
|
||||||
|
architectures:
|
||||||
|
- amd64
|
||||||
|
run-on:
|
||||||
|
- name: ubuntu
|
||||||
|
channel: "20.04"
|
||||||
|
architectures: [amd64, s390x, ppc64el, arm64]
|
1
metadata.yaml
Symbolic link
1
metadata.yaml
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
src/metadata.yaml
|
22
osci.yaml
22
osci.yaml
@ -1,23 +1,9 @@
|
|||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- charm-unit-jobs
|
- charm-unit-jobs-py38
|
||||||
# using overridden, shorter functional list because the charm does
|
- charm-victoria-functional-jobs
|
||||||
# already in the tests.yaml
|
- charm-wallaby-functional-jobs
|
||||||
# - charm-functional-jobs
|
|
||||||
check:
|
|
||||||
jobs:
|
|
||||||
- impish-xena:
|
|
||||||
voting: false
|
|
||||||
- hirsute-wallaby
|
|
||||||
- groovy-victoria
|
|
||||||
- focal-xena:
|
|
||||||
voting: false
|
|
||||||
- focal-wallaby
|
|
||||||
- focal-victoria
|
|
||||||
- focal-ussuri
|
|
||||||
- bionic-ussuri
|
|
||||||
- bionic-train
|
|
||||||
- bionic-stein
|
|
||||||
vars:
|
vars:
|
||||||
needs_charm_build: true
|
needs_charm_build: true
|
||||||
charm_build_name: barbican
|
charm_build_name: barbican
|
||||||
|
build_type: charmcraft
|
||||||
|
13
rename.sh
Executable file
13
rename.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
charm=$(grep "charm_build_name" osci.yaml | awk '{print $2}')
|
||||||
|
echo "renaming ${charm}_*.charm to ${charm}.charm"
|
||||||
|
echo -n "pwd: "
|
||||||
|
pwd
|
||||||
|
ls -al
|
||||||
|
echo "Removing bad downloaded charm maybe?"
|
||||||
|
if [[ -e "${charm}.charm" ]];
|
||||||
|
then
|
||||||
|
rm "${charm}.charm"
|
||||||
|
fi
|
||||||
|
echo "Renaming charm here."
|
||||||
|
mv ${charm}_*.charm ${charm}.charm
|
@ -9,6 +9,7 @@
|
|||||||
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
|
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
|
||||||
|
|
||||||
# Build requirements
|
# Build requirements
|
||||||
|
pyparsing<3.0.0 # cffi needs pyparsing < 3.0.0.
|
||||||
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
|
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
|
||||||
charm-tools==2.8.3
|
charm-tools==2.8.3
|
||||||
|
|
||||||
|
@ -180,17 +180,11 @@
|
|||||||
"vcs": null,
|
"vcs": null,
|
||||||
"version": "1.1.1"
|
"version": "1.1.1"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "python_module",
|
|
||||||
"package": "Tempita",
|
|
||||||
"vcs": null,
|
|
||||||
"version": "0.4"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "python_module",
|
"type": "python_module",
|
||||||
"package": "charms.openstack",
|
"package": "charms.openstack",
|
||||||
"url": "git+https://github.com/openstack/charms.openstack.git",
|
"url": "git+https://github.com/openstack/charms.openstack.git",
|
||||||
"branch": "refs/heads/stable/21.10",
|
"branch": "stable/wallaby",
|
||||||
"version": "10627ee5f991c268f174d6d100e218a0e1867af1",
|
"version": "10627ee5f991c268f174d6d100e218a0e1867af1",
|
||||||
"vcs": "git"
|
"vcs": "git"
|
||||||
},
|
},
|
||||||
@ -210,8 +204,8 @@
|
|||||||
"type": "python_module",
|
"type": "python_module",
|
||||||
"package": "charmhelpers",
|
"package": "charmhelpers",
|
||||||
"url": "git+https://github.com/juju/charm-helpers.git",
|
"url": "git+https://github.com/juju/charm-helpers.git",
|
||||||
"branch": "refs/heads/stable/21.10",
|
"branch": "stable/wallaby",
|
||||||
"version": "26efcd0da51d580f68ead2ca13c38f58766f8a14",
|
"version": "f8f822d5e908b1ac5694815c2d5522b6533e04f8",
|
||||||
"vcs": "git"
|
"vcs": "git"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8,11 +8,7 @@ description: |
|
|||||||
tags:
|
tags:
|
||||||
- openstack
|
- openstack
|
||||||
series:
|
series:
|
||||||
- bionic
|
|
||||||
- focal
|
- focal
|
||||||
- groovy
|
|
||||||
- hirsute
|
|
||||||
- impish
|
|
||||||
subordinate: false
|
subordinate: false
|
||||||
requires:
|
requires:
|
||||||
shared-db:
|
shared-db:
|
||||||
|
@ -5,5 +5,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Functional Test Requirements (let Zaza's dependencies solve all dependencies here!)
|
# Functional Test Requirements (let Zaza's dependencies solve all dependencies here!)
|
||||||
git+https://github.com/openstack-charmers/zaza.git@stable/21.10#egg=zaza
|
git+https://github.com/openstack-charmers/zaza.git@stable/wallaby#egg=zaza
|
||||||
git+https://github.com/openstack-charmers/zaza-openstack-tests.git@stable/21.10#egg=zaza.openstack
|
git+https://github.com/openstack-charmers/zaza-openstack-tests.git@stable/wallaby#egg=zaza.openstack
|
||||||
|
|
||||||
|
# Need tox to be available from tox... inception yes, but its a workaround for now
|
||||||
|
tox
|
||||||
|
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
series: bionic
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
'2':
|
|
||||||
'3':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
charm: cs:~openstack-charmers/percona-cluster
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-rocky
|
|
||||||
to:
|
|
||||||
- '1'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: bionic
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-rocky
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
- - mysql:shared-db
|
|
||||||
- keystone:shared-db
|
|
||||||
- - mysql:shared-db
|
|
||||||
- barbican:shared-db
|
|
||||||
- - keystone:identity-service
|
|
||||||
- barbican:identity-service
|
|
||||||
- - rabbitmq-server:amqp
|
|
||||||
- barbican:amqp
|
|
@ -1,50 +0,0 @@
|
|||||||
series: bionic
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
'2':
|
|
||||||
'3':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
charm: cs:~openstack-charmers/percona-cluster
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-stein
|
|
||||||
to:
|
|
||||||
- '1'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: bionic
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-stein
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
- - mysql:shared-db
|
|
||||||
- keystone:shared-db
|
|
||||||
- - mysql:shared-db
|
|
||||||
- barbican:shared-db
|
|
||||||
- - keystone:identity-service
|
|
||||||
- barbican:identity-service
|
|
||||||
- - rabbitmq-server:amqp
|
|
||||||
- barbican:amqp
|
|
@ -1,50 +0,0 @@
|
|||||||
series: bionic
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
'2':
|
|
||||||
'3':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
charm: cs:~openstack-charmers/percona-cluster
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-train
|
|
||||||
to:
|
|
||||||
- '1'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: bionic
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-train
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
- - mysql:shared-db
|
|
||||||
- keystone:shared-db
|
|
||||||
- - mysql:shared-db
|
|
||||||
- barbican:shared-db
|
|
||||||
- - keystone:identity-service
|
|
||||||
- barbican:identity-service
|
|
||||||
- - rabbitmq-server:amqp
|
|
||||||
- barbican:amqp
|
|
@ -1,50 +0,0 @@
|
|||||||
series: bionic
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
'2':
|
|
||||||
'3':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
charm: cs:~openstack-charmers/percona-cluster
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-ussuri
|
|
||||||
to:
|
|
||||||
- '1'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: bionic
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:bionic-ussuri
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
- - mysql:shared-db
|
|
||||||
- keystone:shared-db
|
|
||||||
- - mysql:shared-db
|
|
||||||
- barbican:shared-db
|
|
||||||
- - keystone:identity-service
|
|
||||||
- barbican:identity-service
|
|
||||||
- - rabbitmq-server:amqp
|
|
||||||
- barbican:amqp
|
|
@ -1,74 +0,0 @@
|
|||||||
variables:
|
|
||||||
openstack-origin: &openstack-origin distro
|
|
||||||
|
|
||||||
series: &series focal
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'2':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'3':
|
|
||||||
'4':
|
|
||||||
'5':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
keystone-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
barbican-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
|
||||||
num_units: 3
|
|
||||||
options:
|
|
||||||
source: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
- '1'
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: *series
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '4'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '5'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
|
|
||||||
- - 'keystone:shared-db'
|
|
||||||
- 'keystone-mysql-router:shared-db'
|
|
||||||
- - 'keystone-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'barbican:shared-db'
|
|
||||||
- 'barbican-mysql-router:shared-db'
|
|
||||||
- - 'barbican-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'keystone:identity-service'
|
|
||||||
- 'barbican:identity-service'
|
|
||||||
|
|
||||||
- - 'rabbitmq-server:amqp'
|
|
||||||
- 'barbican:amqp'
|
|
@ -1,3 +1,5 @@
|
|||||||
|
local_overlay_enabled: False
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
openstack-origin: &openstack-origin cloud:focal-victoria
|
openstack-origin: &openstack-origin cloud:focal-victoria
|
||||||
|
|
||||||
@ -17,12 +19,14 @@ machines:
|
|||||||
applications:
|
applications:
|
||||||
|
|
||||||
keystone-mysql-router:
|
keystone-mysql-router:
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
charm: ch:mysql-router
|
||||||
|
channel: 8.0/edge
|
||||||
barbican-mysql-router:
|
barbican-mysql-router:
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
charm: ch:mysql-router
|
||||||
|
channel: 8.0/edge
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
mysql-innodb-cluster:
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
charm: ch:mysql-innodb-cluster
|
||||||
num_units: 3
|
num_units: 3
|
||||||
options:
|
options:
|
||||||
source: *openstack-origin
|
source: *openstack-origin
|
||||||
@ -30,18 +34,20 @@ applications:
|
|||||||
- '0'
|
- '0'
|
||||||
- '1'
|
- '1'
|
||||||
- '2'
|
- '2'
|
||||||
|
channel: 8.0/edge
|
||||||
|
|
||||||
keystone:
|
keystone:
|
||||||
charm: cs:~openstack-charmers/keystone
|
charm: ch:keystone
|
||||||
num_units: 1
|
num_units: 1
|
||||||
options:
|
options:
|
||||||
openstack-origin: *openstack-origin
|
openstack-origin: *openstack-origin
|
||||||
to:
|
to:
|
||||||
- '3'
|
- '3'
|
||||||
|
channel: wallaby/edge
|
||||||
|
|
||||||
barbican:
|
barbican:
|
||||||
series: *series
|
series: *series
|
||||||
charm: ../../../barbican
|
charm: ../../../barbican.charm
|
||||||
num_units: 1
|
num_units: 1
|
||||||
options:
|
options:
|
||||||
openstack-origin: *openstack-origin
|
openstack-origin: *openstack-origin
|
||||||
@ -50,10 +56,11 @@ applications:
|
|||||||
- '4'
|
- '4'
|
||||||
|
|
||||||
rabbitmq-server:
|
rabbitmq-server:
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
charm: ch:rabbitmq-server
|
||||||
num_units: 1
|
num_units: 1
|
||||||
to:
|
to:
|
||||||
- '5'
|
- '5'
|
||||||
|
channel: 3.8/edge
|
||||||
|
|
||||||
relations:
|
relations:
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
local_overlay_enabled: False
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
openstack-origin: &openstack-origin cloud:focal-wallaby
|
openstack-origin: &openstack-origin cloud:focal-wallaby
|
||||||
|
|
||||||
@ -17,12 +19,14 @@ machines:
|
|||||||
applications:
|
applications:
|
||||||
|
|
||||||
keystone-mysql-router:
|
keystone-mysql-router:
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
charm: ch:mysql-router
|
||||||
|
channel: 8.0/edge
|
||||||
barbican-mysql-router:
|
barbican-mysql-router:
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
charm: ch:mysql-router
|
||||||
|
channel: 8.0/edge
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
mysql-innodb-cluster:
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
charm: ch:mysql-innodb-cluster
|
||||||
num_units: 3
|
num_units: 3
|
||||||
options:
|
options:
|
||||||
source: *openstack-origin
|
source: *openstack-origin
|
||||||
@ -30,18 +34,20 @@ applications:
|
|||||||
- '0'
|
- '0'
|
||||||
- '1'
|
- '1'
|
||||||
- '2'
|
- '2'
|
||||||
|
channel: 8.0/edge
|
||||||
|
|
||||||
keystone:
|
keystone:
|
||||||
charm: cs:~openstack-charmers/keystone
|
charm: ch:keystone
|
||||||
num_units: 1
|
num_units: 1
|
||||||
options:
|
options:
|
||||||
openstack-origin: *openstack-origin
|
openstack-origin: *openstack-origin
|
||||||
to:
|
to:
|
||||||
- '3'
|
- '3'
|
||||||
|
channel: wallaby/edge
|
||||||
|
|
||||||
barbican:
|
barbican:
|
||||||
series: *series
|
series: *series
|
||||||
charm: ../../../barbican
|
charm: ../../../barbican.charm
|
||||||
num_units: 1
|
num_units: 1
|
||||||
options:
|
options:
|
||||||
openstack-origin: *openstack-origin
|
openstack-origin: *openstack-origin
|
||||||
@ -50,10 +56,11 @@ applications:
|
|||||||
- '4'
|
- '4'
|
||||||
|
|
||||||
rabbitmq-server:
|
rabbitmq-server:
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
charm: ch:rabbitmq-server
|
||||||
num_units: 1
|
num_units: 1
|
||||||
to:
|
to:
|
||||||
- '5'
|
- '5'
|
||||||
|
channel: 3.8/edge
|
||||||
|
|
||||||
relations:
|
relations:
|
||||||
|
|
||||||
|
@ -1,74 +0,0 @@
|
|||||||
variables:
|
|
||||||
openstack-origin: &openstack-origin cloud:focal-xena
|
|
||||||
|
|
||||||
series: &series focal
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'2':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'3':
|
|
||||||
'4':
|
|
||||||
'5':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
keystone-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
barbican-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
|
||||||
num_units: 3
|
|
||||||
options:
|
|
||||||
source: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
- '1'
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: *series
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '4'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '5'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
|
|
||||||
- - 'keystone:shared-db'
|
|
||||||
- 'keystone-mysql-router:shared-db'
|
|
||||||
- - 'keystone-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'barbican:shared-db'
|
|
||||||
- 'barbican-mysql-router:shared-db'
|
|
||||||
- - 'barbican-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'keystone:identity-service'
|
|
||||||
- 'barbican:identity-service'
|
|
||||||
|
|
||||||
- - 'rabbitmq-server:amqp'
|
|
||||||
- 'barbican:amqp'
|
|
@ -1,74 +0,0 @@
|
|||||||
variables:
|
|
||||||
openstack-origin: &openstack-origin distro
|
|
||||||
|
|
||||||
series: &series groovy
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'2':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'3':
|
|
||||||
'4':
|
|
||||||
'5':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
keystone-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
barbican-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
|
||||||
num_units: 3
|
|
||||||
options:
|
|
||||||
source: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
- '1'
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: *series
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '4'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '5'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
|
|
||||||
- - 'keystone:shared-db'
|
|
||||||
- 'keystone-mysql-router:shared-db'
|
|
||||||
- - 'keystone-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'barbican:shared-db'
|
|
||||||
- 'barbican-mysql-router:shared-db'
|
|
||||||
- - 'barbican-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'keystone:identity-service'
|
|
||||||
- 'barbican:identity-service'
|
|
||||||
|
|
||||||
- - 'rabbitmq-server:amqp'
|
|
||||||
- 'barbican:amqp'
|
|
@ -1,74 +0,0 @@
|
|||||||
variables:
|
|
||||||
openstack-origin: &openstack-origin distro
|
|
||||||
|
|
||||||
series: &series hirsute
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'2':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'3':
|
|
||||||
'4':
|
|
||||||
'5':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
keystone-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
barbican-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
|
||||||
num_units: 3
|
|
||||||
options:
|
|
||||||
source: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
- '1'
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: *series
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '4'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '5'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
|
|
||||||
- - 'keystone:shared-db'
|
|
||||||
- 'keystone-mysql-router:shared-db'
|
|
||||||
- - 'keystone-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'barbican:shared-db'
|
|
||||||
- 'barbican-mysql-router:shared-db'
|
|
||||||
- - 'barbican-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'keystone:identity-service'
|
|
||||||
- 'barbican:identity-service'
|
|
||||||
|
|
||||||
- - 'rabbitmq-server:amqp'
|
|
||||||
- 'barbican:amqp'
|
|
@ -1,74 +0,0 @@
|
|||||||
variables:
|
|
||||||
openstack-origin: &openstack-origin distro
|
|
||||||
|
|
||||||
series: &series impish
|
|
||||||
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'1':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'2':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'3':
|
|
||||||
'4':
|
|
||||||
'5':
|
|
||||||
|
|
||||||
applications:
|
|
||||||
|
|
||||||
keystone-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
barbican-mysql-router:
|
|
||||||
charm: cs:~openstack-charmers/mysql-router
|
|
||||||
|
|
||||||
mysql-innodb-cluster:
|
|
||||||
charm: cs:~openstack-charmers/mysql-innodb-cluster
|
|
||||||
num_units: 3
|
|
||||||
options:
|
|
||||||
source: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
- '1'
|
|
||||||
- '2'
|
|
||||||
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
to:
|
|
||||||
- '3'
|
|
||||||
|
|
||||||
barbican:
|
|
||||||
series: *series
|
|
||||||
charm: ../../../barbican
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: *openstack-origin
|
|
||||||
debug: true
|
|
||||||
to:
|
|
||||||
- '4'
|
|
||||||
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '5'
|
|
||||||
|
|
||||||
relations:
|
|
||||||
|
|
||||||
- - 'keystone:shared-db'
|
|
||||||
- 'keystone-mysql-router:shared-db'
|
|
||||||
- - 'keystone-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'barbican:shared-db'
|
|
||||||
- 'barbican-mysql-router:shared-db'
|
|
||||||
- - 'barbican-mysql-router:db-router'
|
|
||||||
- 'mysql-innodb-cluster:db-router'
|
|
||||||
|
|
||||||
- - 'keystone:identity-service'
|
|
||||||
- 'barbican:identity-service'
|
|
||||||
|
|
||||||
- - 'rabbitmq-server:amqp'
|
|
||||||
- 'barbican:amqp'
|
|
@ -1,23 +1,10 @@
|
|||||||
charm_name: barbican
|
charm_name: barbican
|
||||||
smoke_bundles:
|
smoke_bundles: []
|
||||||
- focal-ussuri
|
|
||||||
gate_bundles:
|
gate_bundles:
|
||||||
- impish-xena
|
|
||||||
- groovy-victoria
|
|
||||||
- focal-xena
|
|
||||||
- focal-wallaby
|
|
||||||
- focal-victoria
|
- focal-victoria
|
||||||
- focal-ussuri
|
- focal-wallaby
|
||||||
- bionic-ussuri
|
dev_bundles: []
|
||||||
- bionic-train
|
|
||||||
- bionic-stein
|
|
||||||
dev_bundles:
|
|
||||||
- hirsute-wallaby
|
|
||||||
- bionic-rocky
|
|
||||||
tests:
|
tests:
|
||||||
- zaza.openstack.charm_tests.barbican.tests.BarbicanTest
|
- zaza.openstack.charm_tests.barbican.tests.BarbicanTest
|
||||||
tests_options:
|
tests_options:
|
||||||
force_deploy:
|
force_deploy: []
|
||||||
- hirsute-wallaby
|
|
||||||
- groovy-victoria
|
|
||||||
- impish-xena
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
psutil
|
psutil
|
||||||
|
|
||||||
git+https://github.com/openstack/charms.openstack.git@stable/21.10#egg=charms.openstack
|
git+https://github.com/openstack/charms.openstack.git@stable/wallaby#egg=charms.openstack
|
||||||
|
|
||||||
git+https://github.com/juju/charm-helpers.git@stable/21.10#egg=charmhelpers
|
git+https://github.com/juju/charm-helpers@stable/wallaby#egg=charmhelpers
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# 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
|
||||||
#
|
#
|
||||||
|
pyparsing<3.0.0 # cffi needs pyparsing < 3.0.0.
|
||||||
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
|
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
|
||||||
|
|
||||||
@ -34,7 +35,7 @@ mock>=1.2; python_version >= '3.6'
|
|||||||
|
|
||||||
nose>=1.3.7
|
nose>=1.3.7
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
git+https://github.com/openstack/charms.openstack.git@stable/21.10#egg=charms.openstack
|
git+https://github.com/openstack/charms.openstack.git@stable/wallaby#egg=charms.openstack
|
||||||
#
|
#
|
||||||
# Revisit for removal / mock improvement:
|
# Revisit for removal / mock improvement:
|
||||||
#
|
#
|
||||||
|
45
tox.ini
45
tox.ini
@ -37,11 +37,24 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
passenv = http_proxy https_proxy INTERFACE_PATH LAYER_PATH JUJU_REPOSITORY
|
passenv = http_proxy https_proxy INTERFACE_PATH LAYER_PATH JUJU_REPOSITORY
|
||||||
install_command =
|
install_command =
|
||||||
{toxinidir}/pip.sh install {opts} {packages}
|
{toxinidir}/pip.sh install {opts} {packages}
|
||||||
|
allowlist_externals =
|
||||||
|
charmcraft
|
||||||
|
bash
|
||||||
|
tox
|
||||||
|
rename.sh
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
|
||||||
[testenv:build]
|
[testenv:build]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
deps = -r{toxinidir}/build-requirements.txt
|
||||||
|
commands =
|
||||||
|
charmcraft clean
|
||||||
|
charmcraft -v build
|
||||||
|
{toxinidir}/rename.sh
|
||||||
|
|
||||||
|
[testenv:build-reactive]
|
||||||
|
basepython = python3
|
||||||
commands =
|
commands =
|
||||||
charm-build --log-level DEBUG --use-lock-file-branches -o {toxinidir}/build/builds src {posargs}
|
charm-build --log-level DEBUG --use-lock-file-branches -o {toxinidir}/build/builds src {posargs}
|
||||||
|
|
||||||
@ -55,32 +68,44 @@ 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:py35]
|
|
||||||
basepython = python3.5
|
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
|
||||||
commands = stestr run --slowest {posargs}
|
|
||||||
|
|
||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = stestr run --slowest {posargs}
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:py37]
|
|
||||||
basepython = python3.7
|
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
|
||||||
commands = stestr run --slowest {posargs}
|
|
||||||
|
|
||||||
[testenv:py38]
|
[testenv:py38]
|
||||||
basepython = python3.8
|
basepython = python3.8
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = stestr run --slowest {posargs}
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
|
[testenv:py39]
|
||||||
|
basepython = python3.9
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
|
[testenv:py310]
|
||||||
|
basepython = python3.10
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
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
|
charm-tools==2.8.3
|
||||||
commands = flake8 {posargs} src unit_tests
|
commands = flake8 {posargs} src unit_tests
|
||||||
|
|
||||||
|
[testenv:func-target]
|
||||||
|
# Hack to get functional tests working in the charmcraft
|
||||||
|
# world. We should fix this.
|
||||||
|
basepython = python3
|
||||||
|
passenv = HOME TERM CS_* OS_* TEST_*
|
||||||
|
deps = -r{toxinidir}/src/test-requirements.txt
|
||||||
|
changedir = {toxinidir}/src
|
||||||
|
commands =
|
||||||
|
bash -c "if [ ! -f ../*.charm ]; then echo 'Charm does not exist. Run tox -e build'; exit 1; fi"
|
||||||
|
tox --version
|
||||||
|
tox -e func-target {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
# Technique based heavily upon
|
# Technique based heavily upon
|
||||||
# https://github.com/openstack/nova/blob/master/tox.ini
|
# https://github.com/openstack/nova/blob/master/tox.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user