forked from openstack-k8s-operators/cinder-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openstack-k8s-operators#368 from vhariria/cinder-s…
…cale-vh Add Cinder Backup & Scheduler scaled KUTTL tests
Showing
10 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: cinder.openstack.org/v1beta1 | ||
kind: Cinder | ||
metadata: | ||
name: cinder | ||
spec: | ||
serviceUser: cinder | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = true | ||
databaseInstance: openstack | ||
databaseAccount: cinder | ||
rabbitMqClusterName: rabbitmq | ||
cinderAPI: | ||
replicas: 1 | ||
cinderScheduler: | ||
replicas: 3 | ||
cinderBackup: | ||
replicas: 1 | ||
cinderVolumes: | ||
volume1: | ||
replicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: cinder-scheduler | ||
ownerReferences: | ||
- apiVersion: cinder.openstack.org/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: CinderScheduler | ||
name: cinder-scheduler | ||
status: | ||
availableReplicas: 3 | ||
replicas: 3 |
5 changes: 5 additions & 0 deletions
5
test/kuttl/tests/cinder_scale/04-scale-up-cinder-scheduler.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
oc patch cinder -n $NAMESPACE cinder --type='json' -p='[{"op": "replace", "path": "/spec/cinderScheduler/replicas", "value":3}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: cinder.openstack.org/v1beta1 | ||
kind: Cinder | ||
metadata: | ||
name: cinder | ||
spec: | ||
serviceUser: cinder | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = true | ||
databaseInstance: openstack | ||
databaseAccount: cinder | ||
rabbitMqClusterName: rabbitmq | ||
cinderAPI: | ||
replicas: 1 | ||
cinderScheduler: | ||
replicas: 1 | ||
cinderBackup: | ||
replicas: 1 | ||
cinderVolumes: | ||
volume1: | ||
replicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: cinder-scheduler | ||
ownerReferences: | ||
- apiVersion: cinder.openstack.org/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: CinderScheduler | ||
name: cinder-scheduler | ||
status: | ||
availableReplicas: 1 | ||
replicas: 1 |
5 changes: 5 additions & 0 deletions
5
test/kuttl/tests/cinder_scale/05-scale-down-cinder-scheduler.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
oc patch cinder -n $NAMESPACE cinder --type='json' -p='[{"op": "replace", "path": "/spec/cinderScheduler/replicas", "value":1}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: cinder.openstack.org/v1beta1 | ||
kind: Cinder | ||
metadata: | ||
name: cinder | ||
spec: | ||
serviceUser: cinder | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = true | ||
databaseInstance: openstack | ||
databaseAccount: cinder | ||
rabbitMqClusterName: rabbitmq | ||
cinderAPI: | ||
replicas: 1 | ||
cinderScheduler: | ||
replicas: 1 | ||
cinderBackup: | ||
replicas: 3 | ||
cinderVolumes: | ||
volume1: | ||
replicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: cinder-backup | ||
ownerReferences: | ||
- apiVersion: cinder.openstack.org/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: CinderBackup | ||
name: cinder-backup | ||
status: | ||
availableReplicas: 3 | ||
replicas: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
oc patch cinder -n $NAMESPACE cinder --type='json' -p='[{"op": "replace", "path": "/spec/cinderBackup/replicas", "value":3}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: cinder.openstack.org/v1beta1 | ||
kind: Cinder | ||
metadata: | ||
name: cinder | ||
spec: | ||
serviceUser: cinder | ||
customServiceConfig: | | ||
[DEFAULT] | ||
debug = true | ||
databaseInstance: openstack | ||
databaseAccount: cinder | ||
rabbitMqClusterName: rabbitmq | ||
cinderAPI: | ||
replicas: 1 | ||
cinderScheduler: | ||
replicas: 1 | ||
cinderBackup: | ||
replicas: 1 | ||
cinderVolumes: | ||
volume1: | ||
replicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: cinder-backup | ||
ownerReferences: | ||
- apiVersion: cinder.openstack.org/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: CinderBackup | ||
name: cinder-backup | ||
status: | ||
availableReplicas: 1 | ||
replicas: 1 |
5 changes: 5 additions & 0 deletions
5
test/kuttl/tests/cinder_scale/07-scale-down-cinder-backup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
oc patch cinder -n $NAMESPACE cinder --type='json' -p='[{"op": "replace", "path": "/spec/cinderBackup/replicas", "value":1}]' |
File renamed without changes.
File renamed without changes.