Add xena bundles
- add non-voting focal-xena bundle - add non-voting impish-xena bundle - rebuild to pick up charm-helpers changes - update tox/pip.sh to ensure setuptools<50.0.0 Change-Id: I6e61d73f6abe75c670b782f7e6b443d8fb1f7aba Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
This commit is contained in:

committed by
Aurelien Lourot

parent
61cc55b849
commit
5ff3108f48
49
osci.yaml
49
osci.yaml
@@ -3,12 +3,17 @@
|
|||||||
- charm-unit-jobs
|
- charm-unit-jobs
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
- impish-xena-swift-v3:
|
||||||
|
voting: false
|
||||||
- hirsute-wallaby-swift-v3
|
- hirsute-wallaby-swift-v3
|
||||||
- groovy-victoria-swift-v3
|
- focal-xena-swift-v3:
|
||||||
|
voting: false
|
||||||
- focal-wallaby-swift-v3
|
- focal-wallaby-swift-v3
|
||||||
# Disabled due to Bug: #1890821
|
# Disabled due to Bug: #1890821
|
||||||
# - focal-victoria-swift-v3
|
- focal-victoria-swift-v3:
|
||||||
# - focal-ussuri-swift-v3
|
voting: false
|
||||||
|
- focal-ussuri-swift-v3:
|
||||||
|
voting: false
|
||||||
- bionic-queens-swift-v3
|
- bionic-queens-swift-v3
|
||||||
- bionic-queens-swift-v2
|
- bionic-queens-swift-v2
|
||||||
vars:
|
vars:
|
||||||
@@ -16,11 +21,17 @@
|
|||||||
charm_build_name: cinder-backup-swift-proxy
|
charm_build_name: cinder-backup-swift-proxy
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: hirsute-wallaby-swift-v3
|
name: impish-xena-swift-v3
|
||||||
parent: func-target
|
parent: func-target
|
||||||
dependencies: &smoke-jobs
|
dependencies: &smoke-jobs
|
||||||
- bionic-queens-swift-v3
|
- bionic-queens-swift-v3
|
||||||
- bionic-queens-swift-v2
|
- bionic-queens-swift-v2
|
||||||
|
vars:
|
||||||
|
tox_extra_args: impish-xena-swift-v3
|
||||||
|
- job:
|
||||||
|
name: hirsute-wallaby-swift-v3
|
||||||
|
parent: func-target
|
||||||
|
dependencies: *smoke-jobs
|
||||||
vars:
|
vars:
|
||||||
tox_extra_args: hirsute-wallaby-swift-v3
|
tox_extra_args: hirsute-wallaby-swift-v3
|
||||||
- job:
|
- job:
|
||||||
@@ -29,24 +40,30 @@
|
|||||||
dependencies: *smoke-jobs
|
dependencies: *smoke-jobs
|
||||||
vars:
|
vars:
|
||||||
tox_extra_args: groovy-victoria-swift-v3
|
tox_extra_args: groovy-victoria-swift-v3
|
||||||
|
- job:
|
||||||
|
name: focal-xena-swift-v3
|
||||||
|
parent: func-target
|
||||||
|
dependencies: *smoke-jobs
|
||||||
|
vars:
|
||||||
|
tox_extra_args: focal-xena-swift-v3
|
||||||
- job:
|
- job:
|
||||||
name: focal-wallaby-swift-v3
|
name: focal-wallaby-swift-v3
|
||||||
parent: func-target
|
parent: func-target
|
||||||
dependencies: *smoke-jobs
|
dependencies: *smoke-jobs
|
||||||
vars:
|
vars:
|
||||||
tox_extra_args: focal-wallaby-swift-v3
|
tox_extra_args: focal-wallaby-swift-v3
|
||||||
# - job:
|
- job:
|
||||||
# name: focal-victoria-swift-v3
|
name: focal-victoria-swift-v3
|
||||||
# parent: func-target
|
parent: func-target
|
||||||
# dependencies: *smoke-jobs
|
dependencies: *smoke-jobs
|
||||||
# vars:
|
vars:
|
||||||
# tox_extra_args: focal-victoria-swift-v3
|
tox_extra_args: focal-victoria-swift-v3
|
||||||
# - job:
|
- job:
|
||||||
# name: focal-ussuri-swift-v3
|
name: focal-ussuri-swift-v3
|
||||||
# parent: func-target
|
parent: func-target
|
||||||
# dependencies: *smoke-jobs
|
dependencies: *smoke-jobs
|
||||||
# vars:
|
vars:
|
||||||
# tox_extra_args: focal-ussuri-swift-v3
|
tox_extra_args: focal-ussuri-swift-v3
|
||||||
- job:
|
- job:
|
||||||
name: bionic-queens-swift-v3
|
name: bionic-queens-swift-v3
|
||||||
parent: func-target
|
parent: func-target
|
||||||
|
18
pip.sh
Executable file
18
pip.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# This file is managed centrally by release-tools and should not be modified
|
||||||
|
# within individual charm repos. See the 'global' dir contents for available
|
||||||
|
# choices of tox.ini for OpenStack Charms:
|
||||||
|
# https://github.com/openstack-charmers/release-tools
|
||||||
|
#
|
||||||
|
# setuptools 58.0 dropped the support for use_2to3=true which is needed to
|
||||||
|
# install blessings (an indirect dependency of charm-tools).
|
||||||
|
#
|
||||||
|
# More details on the beahvior of tox and virtualenv creation can be found at
|
||||||
|
# https://github.com/tox-dev/tox/issues/448
|
||||||
|
#
|
||||||
|
# This script is wrapper to force the use of the pinned versions early in the
|
||||||
|
# process when the virtualenv was created and upgraded before installing the
|
||||||
|
# depedencies declared in the target.
|
||||||
|
pip install 'pip<20.3' 'setuptools<50.0.0'
|
||||||
|
pip "$@"
|
2
rebuild
2
rebuild
@@ -2,4 +2,4 @@
|
|||||||
# when dependencies of the charm change,
|
# when dependencies of the charm change,
|
||||||
# but nothing in the charm needs to.
|
# but nothing in the charm needs to.
|
||||||
# simply change the uuid to something new
|
# simply change the uuid to something new
|
||||||
f9dc51dc-b3eb-11eb-94e9-77fc2fc16deb
|
53b59f6c-1178-11ec-942e-bbf578a1ce99
|
||||||
|
307
src/tests/bundles/focal-xena-swift-v3.yaml
Normal file
307
src/tests/bundles/focal-xena-swift-v3.yaml
Normal file
@@ -0,0 +1,307 @@
|
|||||||
|
variables:
|
||||||
|
openstack-origin: &openstack-origin cloud:focal-xena
|
||||||
|
|
||||||
|
series: focal
|
||||||
|
|
||||||
|
comment:
|
||||||
|
- 'machines section to decide order of deployment. database sooner = faster'
|
||||||
|
machines:
|
||||||
|
'0':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'1':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'2':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'3':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'4':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'5':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'6':
|
||||||
|
'7':
|
||||||
|
'8':
|
||||||
|
'9':
|
||||||
|
'10':
|
||||||
|
'11':
|
||||||
|
'12':
|
||||||
|
'13':
|
||||||
|
'14':
|
||||||
|
'15':
|
||||||
|
'16':
|
||||||
|
'17':
|
||||||
|
'18':
|
||||||
|
'19':
|
||||||
|
'20':
|
||||||
|
'21':
|
||||||
|
|
||||||
|
applications:
|
||||||
|
|
||||||
|
keystone-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
glance-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
nova-cloud-controller-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
cinder-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
placement-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
|
||||||
|
mysql-innodb-cluster:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-innodb-cluster
|
||||||
|
num_units: 3
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '0'
|
||||||
|
- '1'
|
||||||
|
- '2'
|
||||||
|
|
||||||
|
ceph-mon:
|
||||||
|
charm: cs:~openstack-charmers-next/ceph-mon
|
||||||
|
num_units: 3
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
monitor-count: '3'
|
||||||
|
to:
|
||||||
|
- '6'
|
||||||
|
- '7'
|
||||||
|
- '8'
|
||||||
|
|
||||||
|
ceph-osd:
|
||||||
|
charm: cs:~openstack-charmers-next/ceph-osd
|
||||||
|
num_units: 3
|
||||||
|
storage:
|
||||||
|
osd-devices: 'cinder,10G'
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
osd-devices: '/dev/test-non-existent'
|
||||||
|
to:
|
||||||
|
- '9'
|
||||||
|
- '10'
|
||||||
|
- '11'
|
||||||
|
|
||||||
|
cinder:
|
||||||
|
charm: cs:~openstack-charmers-next/cinder
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
block-device: None
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
glance-api-version: 2
|
||||||
|
to:
|
||||||
|
- '12'
|
||||||
|
|
||||||
|
cinder-ceph:
|
||||||
|
charm: cs:~openstack-charmers-next/cinder-ceph
|
||||||
|
num_units: 0
|
||||||
|
|
||||||
|
cinder-backup-swift-proxy:
|
||||||
|
charm: cinder-backup-swift-proxy
|
||||||
|
num_units: 0
|
||||||
|
options:
|
||||||
|
auth-version: 3
|
||||||
|
swift-user: admin
|
||||||
|
swift-key: openstack
|
||||||
|
user-domain: admin_domain
|
||||||
|
project-domain: admin_domain
|
||||||
|
project-name: admin
|
||||||
|
|
||||||
|
glance:
|
||||||
|
charm: cs:~openstack-charmers-next/glance
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '13'
|
||||||
|
|
||||||
|
keystone:
|
||||||
|
charm: cs:~openstack-charmers-next/keystone
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '14'
|
||||||
|
|
||||||
|
nova-cloud-controller:
|
||||||
|
charm: cs:~openstack-charmers-next/nova-cloud-controller
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '15'
|
||||||
|
|
||||||
|
rabbitmq-server:
|
||||||
|
charm: cs:~openstack-charmers-next/rabbitmq-server
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '16'
|
||||||
|
|
||||||
|
nova-compute:
|
||||||
|
charm: cs:~openstack-charmers-next/nova-compute
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '17'
|
||||||
|
|
||||||
|
placement:
|
||||||
|
charm: cs:~openstack-charmers-next/placement
|
||||||
|
num_units: 1
|
||||||
|
constraints: mem=1G
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '18'
|
||||||
|
|
||||||
|
# external swift
|
||||||
|
swift-keystone-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
|
||||||
|
swift-mysql-innodb-cluster:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-innodb-cluster
|
||||||
|
num_units: 3
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '3'
|
||||||
|
- '4'
|
||||||
|
- '5'
|
||||||
|
|
||||||
|
swift-keystone:
|
||||||
|
charm: cs:~openstack-charmers-next/keystone
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
admin-password: openstack
|
||||||
|
preferred-api-version: 3
|
||||||
|
to:
|
||||||
|
- '19'
|
||||||
|
|
||||||
|
|
||||||
|
swift-proxy:
|
||||||
|
charm: cs:~openstack-charmers-next/swift-proxy
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
zone-assignment: manual
|
||||||
|
replicas: 1
|
||||||
|
to:
|
||||||
|
- '20'
|
||||||
|
|
||||||
|
swift-storage:
|
||||||
|
charm: cs:~openstack-charmers-next/swift-storage
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
zone: 1
|
||||||
|
storage:
|
||||||
|
block-devices: 'cinder,10G'
|
||||||
|
to:
|
||||||
|
- '21'
|
||||||
|
|
||||||
|
|
||||||
|
relations:
|
||||||
|
|
||||||
|
- - 'nova-compute:amqp'
|
||||||
|
- 'rabbitmq-server:amqp'
|
||||||
|
|
||||||
|
- - 'keystone:shared-db'
|
||||||
|
- 'keystone-mysql-router:shared-db'
|
||||||
|
- - 'keystone-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:identity-service'
|
||||||
|
- 'keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'glance:identity-service'
|
||||||
|
- 'keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'glance:shared-db'
|
||||||
|
- 'glance-mysql-router:shared-db'
|
||||||
|
- - 'glance-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'glance:amqp'
|
||||||
|
- 'rabbitmq-server:amqp'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:image-service'
|
||||||
|
- 'glance:image-service'
|
||||||
|
|
||||||
|
- - 'nova-compute:image-service'
|
||||||
|
- 'glance:image-service'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:cloud-compute'
|
||||||
|
- 'nova-compute:cloud-compute'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:amqp'
|
||||||
|
- 'rabbitmq-server:amqp'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:shared-db'
|
||||||
|
- 'nova-cloud-controller-mysql-router:shared-db'
|
||||||
|
- - 'nova-cloud-controller-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'placement:shared-db'
|
||||||
|
- 'placement-mysql-router:shared-db'
|
||||||
|
- - 'placement-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'placement:identity-service'
|
||||||
|
- 'keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'placement:placement'
|
||||||
|
- 'nova-cloud-controller:placement'
|
||||||
|
|
||||||
|
- - '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-ceph:storage-backend'
|
||||||
|
- 'cinder:storage-backend'
|
||||||
|
|
||||||
|
- - 'cinder'
|
||||||
|
- 'cinder-backup-swift-proxy'
|
||||||
|
|
||||||
|
- - 'ceph-mon:client'
|
||||||
|
- 'nova-compute:ceph'
|
||||||
|
|
||||||
|
- - 'nova-compute:ceph-access'
|
||||||
|
- 'cinder-ceph:ceph-access'
|
||||||
|
|
||||||
|
- - 'cinder:shared-db'
|
||||||
|
- 'cinder-mysql-router:shared-db'
|
||||||
|
- - 'cinder-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'ceph-mon:client'
|
||||||
|
- 'cinder-ceph:ceph'
|
||||||
|
|
||||||
|
- - 'ceph-mon:client'
|
||||||
|
- 'glance:ceph'
|
||||||
|
|
||||||
|
- - 'ceph-osd:mon'
|
||||||
|
- 'ceph-mon:osd'
|
||||||
|
|
||||||
|
# external swift service
|
||||||
|
- - 'swift-keystone:shared-db'
|
||||||
|
- 'swift-keystone-mysql-router:shared-db'
|
||||||
|
- - 'swift-keystone-mysql-router:db-router'
|
||||||
|
- 'swift-mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'swift-proxy:identity-service'
|
||||||
|
- 'swift-keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'swift-proxy:swift-storage'
|
||||||
|
- 'swift-storage:swift-storage'
|
||||||
|
|
307
src/tests/bundles/impish-xena-swift-v3.yaml
Normal file
307
src/tests/bundles/impish-xena-swift-v3.yaml
Normal file
@@ -0,0 +1,307 @@
|
|||||||
|
variables:
|
||||||
|
openstack-origin: &openstack-origin distro
|
||||||
|
|
||||||
|
series: impish
|
||||||
|
|
||||||
|
comment:
|
||||||
|
- 'machines section to decide order of deployment. database sooner = faster'
|
||||||
|
machines:
|
||||||
|
'0':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'1':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'2':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'3':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'4':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'5':
|
||||||
|
constraints: mem=3072M
|
||||||
|
'6':
|
||||||
|
'7':
|
||||||
|
'8':
|
||||||
|
'9':
|
||||||
|
'10':
|
||||||
|
'11':
|
||||||
|
'12':
|
||||||
|
'13':
|
||||||
|
'14':
|
||||||
|
'15':
|
||||||
|
'16':
|
||||||
|
'17':
|
||||||
|
'18':
|
||||||
|
'19':
|
||||||
|
'20':
|
||||||
|
'21':
|
||||||
|
|
||||||
|
applications:
|
||||||
|
|
||||||
|
keystone-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
glance-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
nova-cloud-controller-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
cinder-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
placement-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
|
||||||
|
mysql-innodb-cluster:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-innodb-cluster
|
||||||
|
num_units: 3
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '0'
|
||||||
|
- '1'
|
||||||
|
- '2'
|
||||||
|
|
||||||
|
ceph-mon:
|
||||||
|
charm: cs:~openstack-charmers-next/ceph-mon
|
||||||
|
num_units: 3
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
monitor-count: '3'
|
||||||
|
to:
|
||||||
|
- '6'
|
||||||
|
- '7'
|
||||||
|
- '8'
|
||||||
|
|
||||||
|
ceph-osd:
|
||||||
|
charm: cs:~openstack-charmers-next/ceph-osd
|
||||||
|
num_units: 3
|
||||||
|
storage:
|
||||||
|
osd-devices: 'cinder,10G'
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
osd-devices: '/dev/test-non-existent'
|
||||||
|
to:
|
||||||
|
- '9'
|
||||||
|
- '10'
|
||||||
|
- '11'
|
||||||
|
|
||||||
|
cinder:
|
||||||
|
charm: cs:~openstack-charmers-next/cinder
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
block-device: None
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
glance-api-version: 2
|
||||||
|
to:
|
||||||
|
- '12'
|
||||||
|
|
||||||
|
cinder-ceph:
|
||||||
|
charm: cs:~openstack-charmers-next/cinder-ceph
|
||||||
|
num_units: 0
|
||||||
|
|
||||||
|
cinder-backup-swift-proxy:
|
||||||
|
charm: cinder-backup-swift-proxy
|
||||||
|
num_units: 0
|
||||||
|
options:
|
||||||
|
auth-version: 3
|
||||||
|
swift-user: admin
|
||||||
|
swift-key: openstack
|
||||||
|
user-domain: admin_domain
|
||||||
|
project-domain: admin_domain
|
||||||
|
project-name: admin
|
||||||
|
|
||||||
|
glance:
|
||||||
|
charm: cs:~openstack-charmers-next/glance
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '13'
|
||||||
|
|
||||||
|
keystone:
|
||||||
|
charm: cs:~openstack-charmers-next/keystone
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '14'
|
||||||
|
|
||||||
|
nova-cloud-controller:
|
||||||
|
charm: cs:~openstack-charmers-next/nova-cloud-controller
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '15'
|
||||||
|
|
||||||
|
rabbitmq-server:
|
||||||
|
charm: cs:~openstack-charmers-next/rabbitmq-server
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '16'
|
||||||
|
|
||||||
|
nova-compute:
|
||||||
|
charm: cs:~openstack-charmers-next/nova-compute
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '17'
|
||||||
|
|
||||||
|
placement:
|
||||||
|
charm: cs:~openstack-charmers-next/placement
|
||||||
|
num_units: 1
|
||||||
|
constraints: mem=1G
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '18'
|
||||||
|
|
||||||
|
# external swift
|
||||||
|
swift-keystone-mysql-router:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-router
|
||||||
|
|
||||||
|
swift-mysql-innodb-cluster:
|
||||||
|
charm: cs:~openstack-charmers-next/mysql-innodb-cluster
|
||||||
|
num_units: 3
|
||||||
|
options:
|
||||||
|
source: *openstack-origin
|
||||||
|
to:
|
||||||
|
- '3'
|
||||||
|
- '4'
|
||||||
|
- '5'
|
||||||
|
|
||||||
|
swift-keystone:
|
||||||
|
charm: cs:~openstack-charmers-next/keystone
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
admin-password: openstack
|
||||||
|
preferred-api-version: 3
|
||||||
|
to:
|
||||||
|
- '19'
|
||||||
|
|
||||||
|
|
||||||
|
swift-proxy:
|
||||||
|
charm: cs:~openstack-charmers-next/swift-proxy
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
zone-assignment: manual
|
||||||
|
replicas: 1
|
||||||
|
to:
|
||||||
|
- '20'
|
||||||
|
|
||||||
|
swift-storage:
|
||||||
|
charm: cs:~openstack-charmers-next/swift-storage
|
||||||
|
num_units: 1
|
||||||
|
options:
|
||||||
|
openstack-origin: *openstack-origin
|
||||||
|
zone: 1
|
||||||
|
storage:
|
||||||
|
block-devices: 'cinder,10G'
|
||||||
|
to:
|
||||||
|
- '21'
|
||||||
|
|
||||||
|
|
||||||
|
relations:
|
||||||
|
|
||||||
|
- - 'nova-compute:amqp'
|
||||||
|
- 'rabbitmq-server:amqp'
|
||||||
|
|
||||||
|
- - 'keystone:shared-db'
|
||||||
|
- 'keystone-mysql-router:shared-db'
|
||||||
|
- - 'keystone-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:identity-service'
|
||||||
|
- 'keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'glance:identity-service'
|
||||||
|
- 'keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'glance:shared-db'
|
||||||
|
- 'glance-mysql-router:shared-db'
|
||||||
|
- - 'glance-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'glance:amqp'
|
||||||
|
- 'rabbitmq-server:amqp'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:image-service'
|
||||||
|
- 'glance:image-service'
|
||||||
|
|
||||||
|
- - 'nova-compute:image-service'
|
||||||
|
- 'glance:image-service'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:cloud-compute'
|
||||||
|
- 'nova-compute:cloud-compute'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:amqp'
|
||||||
|
- 'rabbitmq-server:amqp'
|
||||||
|
|
||||||
|
- - 'nova-cloud-controller:shared-db'
|
||||||
|
- 'nova-cloud-controller-mysql-router:shared-db'
|
||||||
|
- - 'nova-cloud-controller-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'placement:shared-db'
|
||||||
|
- 'placement-mysql-router:shared-db'
|
||||||
|
- - 'placement-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'placement:identity-service'
|
||||||
|
- 'keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'placement:placement'
|
||||||
|
- 'nova-cloud-controller:placement'
|
||||||
|
|
||||||
|
- - '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-ceph:storage-backend'
|
||||||
|
- 'cinder:storage-backend'
|
||||||
|
|
||||||
|
- - 'cinder'
|
||||||
|
- 'cinder-backup-swift-proxy'
|
||||||
|
|
||||||
|
- - 'ceph-mon:client'
|
||||||
|
- 'nova-compute:ceph'
|
||||||
|
|
||||||
|
- - 'nova-compute:ceph-access'
|
||||||
|
- 'cinder-ceph:ceph-access'
|
||||||
|
|
||||||
|
- - 'cinder:shared-db'
|
||||||
|
- 'cinder-mysql-router:shared-db'
|
||||||
|
- - 'cinder-mysql-router:db-router'
|
||||||
|
- 'mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'ceph-mon:client'
|
||||||
|
- 'cinder-ceph:ceph'
|
||||||
|
|
||||||
|
- - 'ceph-mon:client'
|
||||||
|
- 'glance:ceph'
|
||||||
|
|
||||||
|
- - 'ceph-osd:mon'
|
||||||
|
- 'ceph-mon:osd'
|
||||||
|
|
||||||
|
# external swift service
|
||||||
|
- - 'swift-keystone:shared-db'
|
||||||
|
- 'swift-keystone-mysql-router:shared-db'
|
||||||
|
- - 'swift-keystone-mysql-router:db-router'
|
||||||
|
- 'swift-mysql-innodb-cluster:db-router'
|
||||||
|
|
||||||
|
- - 'swift-proxy:identity-service'
|
||||||
|
- 'swift-keystone:identity-service'
|
||||||
|
|
||||||
|
- - 'swift-proxy:swift-storage'
|
||||||
|
- 'swift-storage:swift-storage'
|
||||||
|
|
@@ -1,11 +1,13 @@
|
|||||||
charm_name: cinder-backup-swift-proxy
|
charm_name: cinder-backup-swift-proxy
|
||||||
gate_bundles:
|
gate_bundles:
|
||||||
- groovy-victoria-swift-v3
|
|
||||||
- bionic-queens-swift-v3
|
- bionic-queens-swift-v3
|
||||||
- bionic-queens-swift-v2
|
- bionic-queens-swift-v2
|
||||||
dev_bundles:
|
dev_bundles:
|
||||||
|
- impish-xena-swift-v3
|
||||||
- hirsute-wallaby-swift-v3
|
- hirsute-wallaby-swift-v3
|
||||||
|
- groovy-victoria-swift-v3
|
||||||
# Disabled due to Bug: #1890821
|
# Disabled due to Bug: #1890821
|
||||||
|
- focal-xena-swift-v3
|
||||||
- focal-wallaby-swift-v3
|
- focal-wallaby-swift-v3
|
||||||
- focal-victoria-swift-v3
|
- focal-victoria-swift-v3
|
||||||
- focal-ussuri-swift-v3
|
- focal-ussuri-swift-v3
|
||||||
@@ -18,4 +20,5 @@ tests:
|
|||||||
- zaza.openstack.charm_tests.cinder_backup_swift_proxy.tests.CinderBackupSwiftTest
|
- zaza.openstack.charm_tests.cinder_backup_swift_proxy.tests.CinderBackupSwiftTest
|
||||||
tests_options:
|
tests_options:
|
||||||
force_deploy:
|
force_deploy:
|
||||||
- hirsute-wallaby-swift-v3
|
- groovy-victoria-swift-v3
|
||||||
|
- impish-xena-swift-v3
|
||||||
|
@@ -22,12 +22,12 @@ skip_missing_interpreters = False
|
|||||||
requires = pip < 20.3
|
requires = pip < 20.3
|
||||||
virtualenv < 20.0
|
virtualenv < 20.0
|
||||||
# NOTE: https://wiki.canonical.com/engineering/OpenStack/InstallLatestToxOnOsci
|
# NOTE: https://wiki.canonical.com/engineering/OpenStack/InstallLatestToxOnOsci
|
||||||
minversion = 3.2.0
|
minversion = 3.18.0
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
PYTHONHASHSEED=0
|
PYTHONHASHSEED=0
|
||||||
whitelist_externals = juju
|
allowlist_externals = juju
|
||||||
passenv = HOME TERM CS_* OS_* TEST_*
|
passenv = HOME TERM CS_* OS_* TEST_*
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
install_command =
|
install_command =
|
||||||
|
20
tox.ini
20
tox.ini
@@ -11,6 +11,21 @@ envlist = pep8,py3
|
|||||||
sitepackages = False
|
sitepackages = False
|
||||||
# NOTE: Avoid false positives by not skipping missing interpreters.
|
# NOTE: Avoid false positives by not skipping missing interpreters.
|
||||||
skip_missing_interpreters = False
|
skip_missing_interpreters = False
|
||||||
|
# NOTES:
|
||||||
|
# * We avoid the new dependency resolver by pinning pip < 20.3, see
|
||||||
|
# https://github.com/pypa/pip/issues/9187
|
||||||
|
# * Pinning dependencies requires tox >= 3.2.0, see
|
||||||
|
# https://tox.readthedocs.io/en/latest/config.html#conf-requires
|
||||||
|
# * It is also necessary to pin virtualenv as a newer virtualenv would still
|
||||||
|
# lead to fetching the latest pip in the func* tox targets, see
|
||||||
|
# https://stackoverflow.com/a/38133283
|
||||||
|
requires =
|
||||||
|
pip < 20.3
|
||||||
|
virtualenv < 20.0
|
||||||
|
setuptools<50.0.0
|
||||||
|
|
||||||
|
# NOTE: https://wiki.canonical.com/engineering/OpenStack/InstallLatestToxOnOsci
|
||||||
|
minversion = 3.18.0
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
@@ -21,7 +36,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
JUJU_REPOSITORY={toxinidir}/build
|
JUJU_REPOSITORY={toxinidir}/build
|
||||||
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 =
|
||||||
pip install {opts} {packages}
|
{toxinidir}/pip.sh install {opts} {packages}
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
|
||||||
@@ -62,7 +77,8 @@ commands = stestr run --slowest {posargs}
|
|||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = flake8==3.9.2
|
||||||
|
charm-tools==2.8.3
|
||||||
commands = flake8 {posargs} src unit_tests
|
commands = flake8 {posargs} src unit_tests
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
Reference in New Issue
Block a user