Skip to content

Commit 1299073

Browse files
elfiesmelfieayefimov-1
authored andcommitted
Rename tasks for XML reporting (#181)
* [ansible-lint] Update the config to ignore templates in task names * [telemetry_logging] Update task names for XML reporting * [common] Update task names for XML reporting * [common] Update the name for the pod tests to include the status_string and namespace that the pod is running in Add ceilometer_power_state to Metrics_verification test (#221) * Add test Ceilometer_power_state * Add the master_image to the zuul file * Add the master_image to the zuul file Add pod tests for Completed pods in the OpenStack namespace (#214) * [ci] Add logging tests: completed pods in openstack namespace * [ci] logging tests: update names for completed pods in openstack namespace * [ci] logging: update typo on pod name * [ci] Update pod list for completed status in openstack namespace This repo-setup-edpm-deployment-openstack-edpm-ipam doesn't need to be checked. --------- Co-authored-by: Alex Yefimov <[email protected]> [ci][logging] Add tests for services in the openstack namespace (#225) Co-authored-by: Alex Yefimov <[email protected]> [ci] Add endpoint tests to the logging job (#220) * [ci] Add endpoint tests to the logging job The test checks for the various openstack endpoints that we expect to exist Co-authored-by: "Alex Yefimov <[email protected]>" * [ci] Add vars/osp18_env to the logging playbook It contains the "openstack_cmd" var required for the endpoint tests * [common] Add documentation and default for openstack_cmd Fix kepler metrics tests (#224) Kepler metrics tests were added in [1] though the merged commit was not the correct one. This PR aplies changes from [2] that had more correct code of the tests. Fixes OSPRH-14029 [1] #193 [2] 0b5d856 Co-authored-by: Jaromír Wysoglad <[email protected]> Change required projects The projects should contain "github.com/" prefix. Fix rabbitmq test [zuul][graphing] Add the new dashboards to the test (#222) * Add the new dashboards to zuul job [ci] Add manifest tests to logging job (#228) Co-authored-by: Alex Yefimov <[email protected]> [telemetry_verify_metrics]: add openstack-network-exporter feature tests (#231) * feature_tests: add openstack-network-exporter feature tests Add tests for operator of openstack-network-exporter Signed-off-by: Aaron T. Smith <[email protected]> Co-authored-by: Aaron T. Smith <[email protected]> Co-authored-by: Jaromír Wysoglad <[email protected]> Add to irrelevant_files list for graphing, logging and autoscaling jobs Add to irrelevant_files list for graphing, logging and autoscaling jobs Add metrics verification tasks for power monitoring components (#193) Move container image patch to post_ctlplane hook Make autoscaling job voting Add tasks to show queried metrics [ci][logging] Move file tests to the compute nodes (#206) [ci] logging test: fix typo 0->O (#205) [ci][autoscaling] Add a note to the vars file for autoscaling (#215) The note explains why os-net-config is skipped Rename tasks for XML reporting (#181) * [ansible-lint] Update the config to ignore templates in task names * [telemetry_logging] Update task names for XML reporting * [common] Update task names for XML reporting * [common] Update the name for the pod tests to include the status_string and namespace that the pod is running in Add files to the zuul jobs Add files to the zuul jobs uncomment zuul.yaml Add ceilometer_power_state to Metrics_verification test (#221) * Add test Ceilometer_power_state * Add the master_image to the zuul file * Add the master_image to the zuul file Add pod tests for Completed pods in the OpenStack namespace (#214) * [ci] Add logging tests: completed pods in openstack namespace * [ci] logging tests: update names for completed pods in openstack namespace * [ci] logging: update typo on pod name * [ci] Update pod list for completed status in openstack namespace This repo-setup-edpm-deployment-openstack-edpm-ipam doesn't need to be checked. --------- Co-authored-by: Alex Yefimov <[email protected]> [ci][logging] Add tests for services in the openstack namespace (#225) Co-authored-by: Alex Yefimov <[email protected]> [ci] Add endpoint tests to the logging job (#220) * [ci] Add endpoint tests to the logging job The test checks for the various openstack endpoints that we expect to exist Co-authored-by: "Alex Yefimov <[email protected]>" * [ci] Add vars/osp18_env to the logging playbook It contains the "openstack_cmd" var required for the endpoint tests * [common] Add documentation and default for openstack_cmd Fix kepler metrics tests (#224) Kepler metrics tests were added in [1] though the merged commit was not the correct one. This PR aplies changes from [2] that had more correct code of the tests. Fixes OSPRH-14029 [1] #193 [2] 0b5d856 Co-authored-by: Jaromír Wysoglad <[email protected]> Change required projects The projects should contain "github.com/" prefix. Fix rabbitmq test [zuul][graphing] Add the new dashboards to the test (#222) * Add the new dashboards to zuul job Update .zuul.yaml [ci] Add manifest tests to logging job (#228) Co-authored-by: Alex Yefimov <[email protected]> [telemetry_verify_metrics]: add openstack-network-exporter feature tests (#231) * feature_tests: add openstack-network-exporter feature tests Add tests for operator of openstack-network-exporter Signed-off-by: Aaron T. Smith <[email protected]> Co-authored-by: Aaron T. Smith <[email protected]> Co-authored-by: Jaromír Wysoglad <[email protected]> Add to irrelevant_files list for graphing, logging and autoscaling jobs
1 parent c46a955 commit 1299073

24 files changed

+190
-35
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ skip_list:
66
- command-instead-of-module # Using command rather than module
77
- galaxy
88
- meta-no-info # meta/main.yml should contain relevant info
9+
- name[template] # Jinja templates should only be at the end of 'name'
910
- risky-shell-pipe # Shells that use pipes should set the pipefail option
1011
- unnamed-task # All tasks should be named
1112
- var-naming[no-role-prefix] # Variables names from within roles should use role_name_ as a prefix

.zuul.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
- zuul: github.com/openstack-k8s-operators/ci-framework
1616
required-projects: &required_projects
1717
- name: github.com/infrawatch/service-telemetry-operator
18-
- name: openstack-k8s-operators/ci-framework
18+
- name: github.com/openstack-k8s-operators/ci-framework
1919
override-checkout: main
20-
- name: openstack-k8s-operators/install_yamls
20+
- name: github.com/openstack-k8s-operators/install_yamls
2121
override-checkout: main
2222
- name: github.com/openstack-k8s-operators/dataplane-operator
2323
override-checkout: main
@@ -44,6 +44,15 @@
4444
- roles/test_sensubility/.*
4545
- roles/test_snmp_traps/.*
4646
- roles/test_verify_email/.*
47+
files:
48+
- roles/telemetry_autoscaling/.*
49+
- .zuul.yaml
50+
- ci/vars-functional-test.yml
51+
- ci/run_autoscaling_osp18.yml
52+
- ci/vars-use-master-containers.yml
53+
- ci/use-master-containers.yml
54+
- ci/patch-openstack-version.yaml
55+
- scenarios/centos-9/multinode-ci.yml
4756

4857
- job:
4958
name: functional-logging-tests-osp18
@@ -58,7 +67,15 @@
5867
roles:
5968
- zuul: github.com/openstack-k8s-operators/ci-framework
6069
required-projects: *required_projects
70+
<<<<<<< HEAD
6171
irrelevant-files: *irrelevant_files
72+
files:
73+
- roles/telemetry_logging/.*
74+
- .zuul.yaml
75+
- ci/vars-logging-test.yml
76+
- ci/logging_tests_all.yml
77+
- ci/logging_tests_computes.yml
78+
- ci/logging_tests_controller.yml
6279

6380
- job:
6481
name: functional-metric-verification-tests-osp18
@@ -72,10 +89,16 @@
7289
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
7390
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-metric-verification-test.yml"
7491
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-power-monitoring.yml"
92+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
7593
roles:
7694
- zuul: github.com/openstack-k8s-operators/ci-framework
7795
required-projects: *required_projects
78-
irrelevant-files: *irrelevant_files
96+
irrelevant-files: *irrelevant_files
97+
files:
98+
- roles/telemetry_verify_metrics/.*
99+
- .zuul.yaml
100+
- ci/vars-metric-verification-test.yml
101+
- ci/run_verify_metrics_osp18.yml
79102

80103
- job:
81104
name: feature-verification-tests-noop
@@ -97,12 +120,17 @@
97120
cifmw_extras:
98121
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
99122
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
123+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-power-monitoring.yml"
100124
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-graphing-test.yml"
101125
roles:
102126
- zuul: github.com/openstack-k8s-operators/ci-framework
103127
required-projects: *required_projects
104128
irrelevant-files: *irrelevant_files
105-
129+
files:
130+
- roles/telemetry_graphing/.*
131+
- .zuul.yaml
132+
- ci/vars-graphing-test.yml
133+
- ci/run_graphing_test.yml
106134

107135
- project:
108136
name: infrawatch/feature-verification-tests

ci/logging_tests_controller.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
environment:
77
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
88
PATH: "{{ cifmw_path }}"
9+
vars_files:
10+
- vars/osp18_env.yml
911
vars:
1012
common_pod_test_id: "RHOSO-12672"
1113
common_pod_status_str: "Running"
@@ -23,6 +25,30 @@
2325
- openshift
2426
- openstack-operators
2527
- openshift-logging
28+
common_endpoint_test_id: "RHOSO-12682"
29+
common_endpoint_list:
30+
- [nova,compute,public]
31+
- [nova,compute,internal]
32+
- [placement,placement,public]
33+
- [placement,placement,internal]
34+
- [swift,object-store,public]
35+
- [swift,object-store,internal]
36+
- [cinderv3,volumev3,public]
37+
- [cinderv3,volumev3,internal]
38+
- [barbican,key-manager,public]
39+
- [barbican,key-manager,internal]
40+
- [keystone,identity,public]
41+
- [keystone,identity,internal]
42+
- [glance,image,public]
43+
- [glance,image,internal]
44+
- [neutron,network,public]
45+
- [neutron,network,internal]
46+
47+
common_manifest_test_id: "RHOSO-12677"
48+
common_manifest_list:
49+
- "loki-operator 2"
50+
- "loki-helm-operator 1"
51+
2652
common_service_test_id: "RHOSO-12675"
2753
common_service_nspace: openshift-logging
2854
common_service_list:
@@ -143,7 +169,22 @@
143169
common_pod_nspace: openstack
144170
common_pod_status_str: "Completed"
145171
common_pod_list:
172+
- bootstrap-edpm-deployment-openstack-edpm-ipam
173+
- configure-network-edpm-deployment-openstack-edpm-ipam
174+
- configure-os-edpm-deployment-openstack-edpm-ipam
175+
- download-cache-edpm-deployment-openstack-edpm-ipam
176+
- install-certs-edpm-deployment-openstack-edpm-ipam
177+
- install-os-edpm-deployment-openstack-edpm-ipam
178+
- libvirt-edpm-deployment-openstack-edpm-ipam
146179
- logging-edpm-deployment-openstack-edpm-ipam
180+
- neutron-metadata-edpm-deployment-openstack-edpm-ipam
181+
- nova-edpm-deployment-openstack-edpm-ipam
182+
- ovn-edpm-deployment-openstack-edpm-ipam
183+
- reboot-os-edpm-deployment-openstack-edpm-ipam
184+
- run-os-edpm-deployment-openstack-edpm-ipam
185+
- ssh-known-hosts-edpm-deployment
186+
- telemetry-edpm-deployment-openstack-edpm-ipam
187+
- validate-network-edpm-deployment-openstack-edpm-ipam
147188
tasks:
148189
- name: "Run pods completed tests"
149190
ansible.builtin.import_role:
@@ -157,13 +198,20 @@
157198
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
158199
PATH: "{{ cifmw_path }}"
159200
vars:
201+
common_service_test_id: "RHOSO-12749"
202+
common_service_nspace: openstack
203+
common_service_list:
204+
- nova-internal
205+
- nova-metadata-internal
206+
- nova-novncproxy-cell1-public
207+
- nova-public
160208
common_crd_test_id: "RHOSO-12670"
161209
common_crd_list:
162210
- alertingrules.loki.grafana.com
163211
- lokistacks.loki.grafana.com
164212
- recordingrules.loki.grafana.com
165213
- rulerconfigs.loki.grafana.com
166214
tasks:
167-
- name: "Run the crds tests"
215+
- name: "Run Services and CRD tests"
168216
ansible.builtin.import_role:
169217
name: common

roles/common/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ For endpoint_tests.yml tasks:
5858
- polarion ID number for each test.
5959
common_endpoint_list
6060
- list of endpoints to validate
61-
61+
openstack_cmd
62+
- The command used to run openstack
6263

6364
For project_tests.yml tasks:
6465

@@ -156,6 +157,7 @@ can be set at the play level.
156157
- ceilometer_agent_ipmi
157158
- node_exporter
158159
- kepler
160+
- openstack_network_exporter
159161

160162
- name: "Verify Endpoint"
161163
ansible.builtin.import_role:
@@ -175,7 +177,7 @@ can be set at the play level.
175177
common_project_list:
176178
- openshift-openstack-infra
177179
- openshift
178-
180+
179181
- name: "Verify services"
180182
ansible.builtin.import_role:
181183
name: common

roles/common/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
openstack_cmd: "openstack"

roles/common/tasks/container_test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
changed_when: false
77
register: container_status
88

9-
- name: Verify container status {{ common_container_test_id }}
9+
- name: |
10+
TEST Verify {{ container_name }} container status
11+
{{ common_container_test_id }}
1012
ansible.builtin.assert:
1113
that:
1214
- "'unhealthy' not in container_status.stdout"

roles/common/tasks/cr_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
- name: Verify that a CR exists {{ common_cr_test_id }}
1+
---
2+
- name: |
3+
TEST Verify that the {{ item.kind }} {{ item.name }} CR exists
4+
{{ common_cr_test_id }}
25
ansible.builtin.command:
36
cmd: |
47
oc get {{ item.kind }} {{ item.name }}

roles/common/tasks/crd_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
changed_when: false
77
register: output
88

9-
- name: Verify CRD is found "{{ common_crd_test_id }}"
9+
- name: |
10+
TEST Verify CRD {{ item }} is found
11+
{{ common_crd_test_id }}
1012
ansible.builtin.assert:
1113
that:
1214
- "'NotFound' not in output.stderr"

roles/common/tasks/endpoint_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
changed_when: false
77
register: output
88

9-
- name: Check that endpoint exist {{ common_endpoint_test_id }}
9+
- name: |
10+
TEST Check that {{ item[0] }} {{ item[2] }} endpoint exists
11+
{{ common_endpoint_test_id }}
1012
ansible.builtin.assert:
1113
that:
1214
- output.stdout != ""
1315
success_msg: "The endpoint {{ item[0] }} is found."
14-
fail_msg: "The endpoint for service {{ item[0] }} "
16+
fail_msg: "The endpoint for service {{ item[0] }} on the {{ item[2] }} interface was not found"

roles/common/tasks/file_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
register: fstats
66

77
- name: |
8-
Verify the file {{ item }} exists
8+
TEST Verify the file {{ item }} exists
99
{{ common_file_test_id }}
1010
ansible.builtin.assert:
1111
that:

0 commit comments

Comments
 (0)