Skip to content

Commit

Permalink
Partial revert[1] to re-enable Focal support
Browse files Browse the repository at this point in the history
1: 51f5987
Change-Id: I565e36b94d249d2cf0beccf1480189a19da008d9
  • Loading branch information
ChrisMacNaughton committed Oct 31, 2022
1 parent db79f28 commit 4275138
Show file tree
Hide file tree
Showing 8 changed files with 391 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ options:
description: RadosGW debug level. Max is 20.
source:
type: string
default: zed
default: yoga
description: |
Optional repository from which to install. May be one of the following:
distro (default), ppa:somecustom/ppa, a deb url sources entry,
Expand Down
1 change: 1 addition & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- file-servers
- misc
series:
- focal
- jammy
extra-bindings:
public:
Expand Down
31 changes: 31 additions & 0 deletions osci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
- project:
templates:
- charm-unit-jobs-py38
- charm-unit-jobs-py39
- charm-unit-jobs-py310
check:
jobs:
- vault-focal-yoga_rgw
- vault-focal-yoga-namespaced
- focal-yoga-multisite
- jammy-yoga-multisite
- jammy-zed-multisite:
voting: false
Expand All @@ -23,6 +28,18 @@
charm_build_name: ceph-radosgw
build_type: charmcraft
charmcraft_channel: 2.0/stable
- job:
name: focal-yoga-multisite
parent: func-target
dependencies:
- osci-lint
- charm-build
- tox-py38
- tox-py39
- name: tox-py310
soft: true
vars:
tox_extra_args: focal-yoga-multisite
- job:
name: jammy-yoga-multisite
parent: func-target
Expand All @@ -47,13 +64,27 @@
- jammy-yoga-multisite
vars:
tox_extra_args: kinetic-zed-multisite
- job:
name: vault-focal-yoga_rgw
parent: func-target
dependencies:
- focal-yoga-multisite
vars:
tox_extra_args: vault:focal-yoga
- job:
name: vault-jammy-yoga_rgw
parent: func-target
dependencies:
- jammy-yoga-multisite
vars:
tox_extra_args: vault:jammy-yoga
- job:
name: vault-focal-yoga-namespaced
parent: func-target
dependencies:
- focal-yoga-multisite
vars:
tox_extra_args: vault:focal-yoga-namespaced
- job:
name: vault-jammy-yoga-namespaced
parent: func-target
Expand Down
99 changes: 99 additions & 0 deletions tests/bundles/focal-yoga-multisite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
options:
source: &source cloud:focal-yoga

series: focal

comment:
- 'machines section to decide order of deployment. database sooner = faster'
machines:
'0':
'1':
'2':
'3':
'4':
'5':
'6':
'7':
'8':
'9':

applications:
ceph-radosgw:
charm: ../../ceph-radosgw.charm
num_units: 1
options:
source: *source
to:
- '0'

secondary-ceph-radosgw:
charm: ../../ceph-radosgw.charm
num_units: 1
options:
source: *source
to:
- '1'

ceph-osd:
charm: ch:ceph-osd
num_units: 3
constraints: "mem=2048"
storage:
osd-devices: 'cinder,10G'
options:
source: *source
osd-devices: '/srv/ceph /dev/test-non-existent'
to:
- '2'
- '6'
- '7'
channel: latest/edge

secondary-ceph-osd:
charm: ch:ceph-osd
num_units: 3
constraints: "mem=2048"
storage:
osd-devices: 'cinder,10G'
options:
source: *source
osd-devices: '/srv/ceph /dev/test-non-existent'
to:
- '3'
- '8'
- '9'
channel: latest/edge

ceph-mon:
charm: ch:ceph-mon
num_units: 1
options:
monitor-count: 1
source: *source
to:
- '4'
channel: latest/edge

secondary-ceph-mon:
charm: ch:ceph-mon
num_units: 1
options:
monitor-count: 1
source: *source
to:
- '5'
channel: latest/edge

relations:
- - 'ceph-osd:mon'
- 'ceph-mon:osd'

- - 'ceph-radosgw:mon'
- 'ceph-mon:radosgw'

- - 'secondary-ceph-osd:mon'
- 'secondary-ceph-mon:osd'

- - 'secondary-ceph-radosgw:mon'
- 'secondary-ceph-mon:radosgw'

124 changes: 124 additions & 0 deletions tests/bundles/focal-yoga-namespaced.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
options:
source: &source cloud:focal-yoga

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':
'4':
'5':
'6':
'7':
'8':
'9':
'10':
'11':

applications:

keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge

mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
options:
source: *source
to:
- '0'
- '1'
- '2'
channel: latest/edge

ceph-radosgw:
charm: ../../ceph-radosgw.charm
num_units: 1
options:
source: *source
namespace-tenants: True
to:
- '3'

ceph-osd:
charm: ch:ceph-osd
num_units: 3
constraints: "mem=2048"
storage:
osd-devices: 'cinder,10G'
options:
source: *source
osd-devices: '/srv/ceph /dev/test-non-existent'
to:
- '4'
- '5'
- '6'
channel: latest/edge

ceph-mon:
charm: ch:ceph-mon
num_units: 3
options:
source: *source
to:
- '7'
- '8'
- '9'
channel: latest/edge

keystone:
expose: True
charm: ch:keystone
num_units: 1
options:
openstack-origin: *source
to:
- '10'
channel: latest/edge

vault-mysql-router:
charm: ch:mysql-router
channel: latest/edge

vault:
charm: ch:vault
num_units: 1
to:
- '11'
channel: latest/edge

relations:

- - 'keystone:shared-db'
- 'keystone-mysql-router:shared-db'
- - 'keystone-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'

- - 'ceph-osd:mon'
- 'ceph-mon:osd'

- - 'ceph-radosgw:mon'
- 'ceph-mon:radosgw'

- - 'ceph-radosgw:identity-service'
- 'keystone:identity-service'

- - 'vault-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'

- - 'vault:shared-db'
- 'vault-mysql-router:shared-db'

- - 'keystone:certificates'
- 'vault:certificates'

- - 'ceph-radosgw:certificates'
- 'vault:certificates'
Loading

0 comments on commit 4275138

Please sign in to comment.