Skip to content

Commit df471b4

Browse files
authored
[ci] Re-add logging vars (infrawatch#308)
The logging tests were updated to run unconditionally in PR#275. This is a problem when logging is not deployed as the tests fail (which is expected). This change re-adds the previous logging vars file, so that jobs can enable/disable logging tests as before.
1 parent f644ee9 commit df471b4

File tree

4 files changed

+65
-19
lines changed

4 files changed

+65
-19
lines changed

.zuul.yaml

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
2222
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-logging.yml"
2323
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-power-monitoring.yml"
24+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-logging-test.yml"
2425
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
2526
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-functional-test.yml"
2627
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
@@ -64,33 +65,45 @@
6465
parent: functional-tests-osp18
6566
extra-vars: *functional_autoscaling_extra_vars
6667
description: |
67-
functional-tests-on-osp18 is an alias of functional-tests-osp18,
68-
temporary added until openstack-k8s-operators/telemetry-operator updates
68+
functional-tests-on-osp18 is an alias of functional-tests-osp18,
69+
temporary added until openstack-k8s-operators/telemetry-operator updates
6970
references of functional-tests-on-osp18 jobs.
7071
7172
- job:
7273
name: functional-autoscaling-tests-osp18
7374
parent: functional-tests-osp18
7475
description: |
75-
functional-autoscaling-tests-osp18 is an alias of functional-tests-osp18,
76-
temporary added until openstack-k8s-operators/telemetry-operator updates
76+
functional-autoscaling-tests-osp18 is an alias of functional-tests-osp18,
77+
temporary added until openstack-k8s-operators/telemetry-operator updates
7778
references of functional-tests-osp18.
7879
7980
- job:
8081
name: functional-graphing-tests-osp18
8182
parent: functional-tests-osp18
8283
description: |
83-
functional-graphing-tests-osp18 is an alias of functional-tests-osp18,
84-
temporary added until openstack-k8s-operators/telemetry-operator updates
84+
functional-graphing-tests-osp18 is an alias of functional-tests-osp18,
85+
temporary added until openstack-k8s-operators/telemetry-operator updates
8586
references of functional-tests-osp18.
8687
8788
- job:
8889
name: functional-logging-tests-osp18
89-
parent: functional-tests-osp18
90+
dependencies: ["telemetry-openstack-meta-content-provider-master"]
91+
parent: telemetry-operator-multinode-logging
9092
description: |
91-
functional-logging-tests-osp18 is an alias of functional-tests-osp18,
92-
temporary added until openstack-k8s-operators/telemetry-operator updates
93-
references of functional-tests-osp18.
93+
Run the logging functional tests and tempest smoketests on osp18
94+
extra-vars: *functional_autoscaling_extra_vars
95+
vars:
96+
cifmw_update_containers: false
97+
cifmw_extras:
98+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
99+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-logging.yml"
100+
# Use the tempest config we have for autoscaling tests
101+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
102+
# There's an override in here to modify the enabled tests to include only the smoke tests
103+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-logging-test.yml"
104+
roles:
105+
- zuul: github.com/openstack-k8s-operators/ci-framework
106+
required-projects: *required_projects
94107

95108
- job:
96109
name: functional-metric-verification-tests-osp18
@@ -115,13 +128,9 @@
115128
dependencies: ["telemetry-openstack-meta-content-provider-master"]
116129
description: |
117130
Deploy OpenStack with Telemetry and Ceph. Run metric-verification with volume pool metric tests
118-
extra-vars:
119-
# Override zuul meta content provider provided content_provider_dlrn_md5_hash
120-
# var. As returned dlrn md5 hash comes from master release but job is using
121-
# antelope content.
122-
content_provider_dlrn_md5_hash: ''
123-
run_graphing_test: false
131+
extra-vars: *functional_autoscaling_extra_vars
124132
vars:
133+
run_graphing_test: false
125134
patch_observabilityclient: true
126135
cifmw_update_containers: false
127136
telemetry_verify_metrics_metric_sources_to_test:
@@ -139,6 +148,7 @@
139148
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
140149
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/hci_ceph_backends.yml"
141150
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-telemetry-with-ceph.yml"
151+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-logging-test.yml"
142152
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling-tempest.yml"
143153
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-functional-test.yml"
144154
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
@@ -165,6 +175,17 @@
165175
- roles/telemetry_logging/.*
166176
- roles/common/*
167177
- roles/telemetry_verify_metrics/.*
178+
- functional-logging-tests-osp18:
179+
irrelevant-files: *irrelevant_files
180+
files:
181+
- roles/telemetry_logging/.*
182+
- roles/common/*
183+
- .zuul.yaml
184+
- ci/vars-logging-test.yml
185+
- ci/logging_tests_all.yml
186+
- ci/logging_tests_computes.yml
187+
- ci/logging_tests_controller.yml
188+
- ci/report_result.yml
168189
- .zuul.yaml
169190
- functional-periodic-telemetry-with-ceph:
170191
files:

ci/run_functional_tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
- name: Run Logging test
2-
ansible.builtin.import_playbook: logging_tests_all.yml
3-
41
- name: Run Autoscaling test
52
ansible.builtin.import_playbook: run_autoscaling_tests.yml
63

ci/vars-graphing-test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
pre_tests_00_run_graphing_test:
3+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_graphing_test.yml"
4+
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
5+
type: playbook
6+
7+
cifmw_run_tests: true
8+
# run only smoke tests
9+
cifmw_test_operator_tempest_include_list: |
10+
^tempest.*\[.*\bsmoke\b.*\]
11+
post_tests_99_collect_results:
12+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/report_result.yml"
13+
type: playbook

ci/vars-logging-test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# pre_tests or post_tests are also options for when the FVT roles are run
3+
pre_tests_00_fvt_logging:
4+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/logging_tests_all.yml"
5+
config_file: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/ansible.cfg"
6+
type: playbook
7+
8+
cifmw_run_tests: true
9+
# enable only the smoketests
10+
cifmw_test_operator_tempest_include_list: |
11+
^tempest.*\[.*\bsmoke\b.*\]
12+
13+
post_tests_99_collect_results:
14+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/report_result.yml"
15+
type: playbook

0 commit comments

Comments
 (0)