Skip to content

Commit

Permalink
Add kuttle test for cell deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkisaolamb committed Sep 20, 2024
1 parent 3963e05 commit f94d80a
Show file tree
Hide file tree
Showing 16 changed files with 956 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,54 @@
ip: 172.18.0.5
tenant:
ip: 172.19.0.5
- job:
name: nova-operator-kuttl-cell-delete
parent: nova-operator-base
dependencies: ["openstack-meta-content-provider"]
roles:
- zuul: github.com/openstack-k8s-operators/ci-framework
description: |
This job deploy a basic "Compute Starter Kit" topology
https://www.openstack.org/software/sample-configs#compute-starter-kit
that is the minium set of openstack services required to boot a vm.
pre-run:
- ci/nova-operator-kuttl-cell-delete/playbooks/deploy-deps.yaml
run:
- ci/nova-operator-kuttl-cell-delete/playbooks/run-kuttl.yaml
nodeset: centos-9-medium-crc-extracted-2-39-0-3xl
vars:
collection_namespace_override: "nova-kuttl-cell-delete-tests"
zuul_log_collection: true
extra-vars:
crc_ci_bootstrap_networking:
networks:
default:
range: 192.168.122.0/24
mtu: 1500
internal-api:
vlan: 20
range: 172.17.0.0/24
storage:
vlan: 21
range: 172.18.0.0/24
tenant:
vlan: 22
range: 172.19.0.0/24
instances:
controller:
networks:
default:
ip: 192.168.122.11
crc:
networks:
default:
ip: 192.168.122.10
internal-api:
ip: 172.17.0.5
storage:
ip: 172.18.0.5
tenant:
ip: 172.19.0.5
- job:
name: nova-operator-tempest-multinode
parent: podified-multinode-edpm-deployment-crc-3comp
Expand Down Expand Up @@ -211,6 +259,7 @@
- nova-operator-kuttl
- nova-operator-tempest-multinode
- nova-operator-tempest-multinode-ceph
- nova-operator-kuttl-cell-delete

- pragma:
implied-branch-matchers: True
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
delete:
- apiVersion: nova.openstack.org/v1beta1
kind: Nova
name: nova-kuttl-cell
namespace: nova-kuttl-cell-delete-tests
14 changes: 14 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
reportFormat: JSON
reportName: kuttl-default-results
namespace: nova-kuttl-cell-delete-tests
# we could set this lower, but the initial image pull can take a while
timeout: 300
parallel: 1
skipDelete: true
testDirs:
- test/kuttl/test-suites/cell-delete-tests/
suppress:
- events
artifactsDir: test/kuttl/test-suites/cell-delete-tests/output
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
storageClass: "crc-csi-hostpath-provisioner"
tls:
ingress:
enabled: true
podLevel:
enabled: false
ironic:
enabled: false
template:
ironicConductors: []
manila:
enabled: false
template:
manilaShares: {}
horizon:
enabled: false
32 changes: 32 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/deps/infra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
mariadb:
enabled: false
galera:
enabled: true
templates:
openstack:
storageRequest: 500M
openstack-cell1:
storageRequest: 500M
rabbitmq:
templates:
rabbitmq:
replicas: 1
rabbitmq-cell1:
replicas: 1
memcached:
templates:
memcached:
replicas: 1
ovn:
enabled: false
template:
ovnController:
external-ids:
ovn-encap-type: geneve
ovs:
enabled: false
9 changes: 9 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/deps/keystone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
keystone:
template:
databaseInstance: openstack
secret: osp-secret
43 changes: 43 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/deps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: nova-kuttl-cell-delete-tests

secretGenerator:
- literals:
- AdminPassword=password
- DbRootPassword=password
- DatabasePassword=password
- KeystoneDatabasePassword=password
- PlacementPassword=password
- PlacementDatabasePassword=password
- GlancePassword=password
- GlanceDatabasePassword=password
- NeutronPassword=password
- NeutronDatabasePassword=password
- NovaPassword=password
- NovaAPIDatabasePassword=password
- NovaCell0DatabasePassword=password
- NovaCell1DatabasePassword=password
- MetadataSecret=42
name: osp-secret
generatorOptions:
disableNameSuffixHash: true
labels:
type: osp-secret

resources:
- namespace.yaml
- OpenStackControlPlane.yaml

patches:
- patch: |-
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
secret: osp-secret
- path: infra.yaml
- path: keystone.yaml
- path: placement.yaml
- path: nova.yaml
4 changes: 4 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/deps/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: nova-kuttl-cell-delete-tests
7 changes: 7 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/deps/nova.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
nova:
enabled: false
9 changes: 9 additions & 0 deletions test/kuttl/test-suites/cell-delete-tests/deps/placement.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
placement:
template:
databaseInstance: openstack
secret: osp-secret
Loading

0 comments on commit f94d80a

Please sign in to comment.