-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI]Scale openstack services to speed up tempest
Depends-On: openstack-k8s-operators/ci-framework#1896
- Loading branch information
1 parent
86fadba
commit 1784b40
Showing
5 changed files
with
129 additions
and
1 deletion.
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
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
51 changes: 51 additions & 0 deletions
51
ci/nova-operator-tempest-multinode-ceph/control_plane_hook.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,51 @@ | ||
--- | ||
- name: Kustomize ControlPlane | ||
hosts: "{{ cifmw_target_hook_host | default('localhost') }}" | ||
gather_facts: false | ||
tasks: | ||
- name: Ensure the kustomizations dir exists | ||
ansible.builtin.file: | ||
path: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane" | ||
state: directory | ||
|
||
- name: Create kustomization | ||
ansible.builtin.copy: | ||
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/71-controlplane-kustomization.yaml" | ||
content: |- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
namespace: {{ cifmw_install_yamls_defaults['NAMESPACE'] }} | ||
patches: | ||
- target: | ||
kind: OpenStackControlPlane | ||
patch: |- | ||
- op: replace | ||
path: /spec/nova/template/apiServiceTemplate/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/neutron/template/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/neutron/template/customServiceConfig | ||
value: | | ||
[DEFAULT] | ||
debug = True | ||
- op: replace | ||
path: /spec/ovn/template/ovnDBCluster/ovndbcluster-nb/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/glance/template/glanceAPIs/default/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/cinder/template/cinderAPI/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/keystone/template/replicas | ||
value: 2 |
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,30 @@ | ||
--- | ||
cifmw_install_yamls_vars: | ||
BMO_SETUP: false | ||
INSTALL_CERT_MANAGER: false | ||
|
||
cifmw_edpm_prepare_skip_crc_storage_creation: true | ||
# as we scale the openstack services to 3 replicas we need more PVs | ||
cifmw_cls_pv_count: 20 | ||
|
||
cifmw_services_swift_enabled: false | ||
|
||
# note by default the source for the playbook specified | ||
# in the hooks is relative to | ||
# https://github.com/openstack-k8s-operators/ci-framework/tree/main/hooks/playbooks | ||
# if you want to use a different source you can use the full path on the ansible controller | ||
post_deploy: | ||
- name: 71 Kustomize control plane to scale openstack services | ||
type: playbook | ||
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/nova-operator'].src_dir }}/ci/nova-operator-tempest-multinode/control_plane_hook.yaml" | ||
- name: 82 Kustomize and update Control Plane | ||
type: playbook | ||
source: control_plane_kustomize_deploy.yml | ||
|
||
|
||
cifmw_run_tests: true | ||
cifmw_tempest_container: openstack-tempest-extras | ||
# we do not want the ci framework trying to enable any | ||
# tempest groups by default we will manage all tempest execution | ||
# via the job definition. | ||
cifmw_tempest_default_groups: [] |
39 changes: 39 additions & 0 deletions
39
ci/nova-operator-tempest-multinode/control_plane_hook.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,39 @@ | ||
--- | ||
- name: Kustomize ControlPlane | ||
hosts: "{{ cifmw_target_hook_host | default('localhost') }}" | ||
gather_facts: false | ||
tasks: | ||
- name: Ensure the kustomizations dir exists | ||
ansible.builtin.file: | ||
path: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane" | ||
state: directory | ||
|
||
- name: Create kustomization | ||
ansible.builtin.copy: | ||
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/71-controlplane-kustomization.yaml" | ||
content: |- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
namespace: {{ cifmw_install_yamls_defaults['NAMESPACE'] }} | ||
patches: | ||
- target: | ||
kind: OpenStackControlPlane | ||
patch: |- | ||
- op: replace | ||
path: /spec/nova/template/apiServiceTemplate/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/neutron/template/replicas | ||
value: 2 | ||
- op: replace | ||
path: /spec/neutron/template/customServiceConfig | ||
value: | | ||
[DEFAULT] | ||
debug = True | ||
- op: replace | ||
path: /spec/keystone/template/replicas | ||
value: 2 |