Skip to content

Commit

Permalink
Include tempest-multinode-ceph job
Browse files Browse the repository at this point in the history
Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>
  • Loading branch information
fao89 committed Oct 2, 2024
1 parent 3dda9a4 commit 259189b
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 2 deletions.
24 changes: 24 additions & 0 deletions ci/tempest-multinode-ceph/ci_fw_vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# 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 enable heat service
type: playbook
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/heat-operator'].src_dir }}/ci/tempest-multinode/control_plane_hook.yaml"
- name: 81 Kustomize OpenStack CR with Ceph
type: playbook
source: control_plane_ceph_backends.yml
- name: 82 Kustomize and update Control Plane
type: playbook
source: control_plane_kustomize_deploy.yml

# we can use this hook to create flavors, images, etc
# before we execute tempest simiilar to how we would use
# local.sh in devstack based jobs
pre_tests:
- name: 01 Create cinder multiattach volume type
type: playbook
source: cinder_multiattach_volume_type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
post_ctlplane_deploy:
- name: 71 Kustomize control plane to enable heat service
type: playbook
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/heat-operator'].src_dir }}/ci/tempest/control_plane_hook.yaml"
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/heat-operator'].src_dir }}/ci/tempest-multinode/control_plane_hook.yaml"
- name: 82 Kustomize and update Control Plane
type: playbook
source: control_plane_kustomize_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
- op: replace
path: /spec/heat/enabled
value: true
- op: add
path: /spec/heat/customServiceConfig
value:
[clients_heat]
endpoint_type: public
40 changes: 39 additions & 1 deletion zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
vars:
cifmw_extras:
- "@scenarios/centos-9/multinode-ci.yml"
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/heat-operator'].src_dir }}/ci/tempest/ci_fw_vars.yaml"
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/heat-operator'].src_dir }}/ci/tempest-multinode/ci_fw_vars.yaml"
cifmw_run_test_role: test_operator
cifmw_test_operator_concurrency: 4
cifmw_test_operator_timeout: 7200
Expand Down Expand Up @@ -39,3 +39,41 @@
external_plugin: "opendev.org/openstack/heat-tempest-plugin"
change_item: "{{ zuul['items'] | selectattr('project.canonical_name', 'equalto', external_plugin) }}"
cifmw_test_operator_tempest_external_plugin: "{{ [] if change_item | length < 1 else [ { 'repository': 'https://' + external_plugin + '.git', 'changeRepository': 'https://review' + external_plugin, 'changeRefspec': [ 'refs/changes', change_item[0].change[-2:], change_item[0].change, change_item[0].patchset ] | join('/') } ] }}"

- job:
name: heat-operator-tempest-multinode-ceph
parent: podified-multinode-hci-deployment-crc-1comp-backends
dependencies: ["openstack-k8s-operators-content-provider"]
vars:
cifmw_extras:
- "@scenarios/centos-9/multinode-ci.yml"
- "@scenarios/centos-9/hci_ceph_backends.yml"
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/heat-operator'].src_dir }}/ci/tempest-multinode-ceph/ci_fw_vars.yaml"
cifmw_run_test_role: test_operator
cifmw_test_operator_concurrency: 4
cifmw_test_operator_timeout: 7200
cifmw_test_operator_tempest_network_attachments:
- ctlplane
# This value is used to populate the `tempestconfRun` parameter of the Tempest CR: https://openstack-k8s-operators.github.io/test-operator/crds.html#tempest-custom-resource
# https://github.com/openstack-k8s-operators/ci-framework/blob/main/roles/test_operator/defaults/main.yml
# NOTE(gibi): identity.v3_endpoint_type override is a WA to force the
# publicURL as otherwise tempest gets configured with adminURL and that
# causes test instability.
cifmw_tempest_tempestconf_config:
overrides: |
compute-feature-enabled.vnc_console true
validation.run_validation true
identity.v3_endpoint_type public
identity.v2_admin_endpoint_type public
volume.volume_type_multiattach multiattach
volume.storage_protocol ceph
service_available.swift false
service_available.cinder true
share.run_share_group_tests false
share.capability_storage_protocol cephfs
share.suppress_errors_in_cleanup true
cifmw_test_operator_tempest_include_list: |
heat_tempest_plugin.*
external_plugin: "opendev.org/openstack/heat-tempest-plugin"
change_item: "{{ zuul['items'] | selectattr('project.canonical_name', 'equalto', external_plugin) }}"
cifmw_test_operator_tempest_external_plugin: "{{ [] if change_item | length < 1 else [ { 'repository': 'https://' + external_plugin + '.git', 'changeRepository': 'https://review' + external_plugin, 'changeRefspec': [ 'refs/changes', change_item[0].change[-2:], change_item[0].change, change_item[0].patchset ] | join('/') } ] }}"
1 change: 1 addition & 0 deletions zuul.d/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
jobs:
- openstack-k8s-operators-content-provider
- heat-operator-tempest-multinode
- heat-operator-tempest-multinode-ceph

0 comments on commit 259189b

Please sign in to comment.