Skip to content

Commit 98df69f

Browse files
authored
Merge branch 'master' into efoley/cr_tests_mark_one_optional
2 parents cb1d8e5 + 4229659 commit 98df69f

27 files changed

+207
-90
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
1111
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
1212
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-functional-test.yml"
13+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-use-master-containers.yml"
1314
roles:
1415
- zuul: github.com/openstack-k8s-operators/ci-framework
1516
required-projects: &required_projects
@@ -70,6 +71,7 @@
7071
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/scenarios/centos-9/multinode-ci.yml"
7172
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-autoscaling.yml"
7273
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/vars-metric-verification-test.yml"
74+
- "@{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/vars-power-monitoring.yml"
7375
roles:
7476
- zuul: github.com/openstack-k8s-operators/ci-framework
7577
required-projects: *required_projects
@@ -111,7 +113,7 @@
111113
override-checkout: main
112114
irrelevant-files: *irrelevant_files
113115
- functional-tests-on-osp18:
114-
voting: false
116+
voting: true
115117
- functional-logging-tests-osp18
116118
- functional-graphing-tests-osp18
117119
- functional-metric-verification-tests-osp18

ci/logging_tests_computes.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
journal_list:
1212
- ceilometer_agent_compute
1313
- nova_compute
14+
common_file_test_id: "RHOSO-12754"
15+
common_file_list:
16+
- /etc/rsyslog.d/10-telemetry.conf
1417
tasks:
1518
- name: "Run Telemetry Logging tests"
1619
ansible.builtin.import_role:
1720
name: telemetry_logging
21+
22+
- name: "Run the tests from the common role"
23+
ansible.builtin.import_role:
24+
name: common

ci/logging_tests_controller.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
88
PATH: "{{ cifmw_path }}"
99
vars:
10-
common_pod_test_id: "RHOS0-12672"
10+
common_pod_test_id: "RHOSO-12672"
1111
common_pod_status_str: "Running"
1212
common_pod_nspace: openstack-operators
1313
common_pod_list:
@@ -42,9 +42,6 @@
4242
- logging-loki-query-frontend-grpc
4343
- logging-loki-query-frontend-http
4444
- openstack-logging
45-
common_file_test_id: "RHOSO-12754"
46-
common_file_list:
47-
- /etc/rsyslog.d/10-telemetry.conf
4845
tasks:
4946
- name: "Verify logging infrastructure components"
5047
ansible.builtin.import_role:

ci/run_autoscaling_osp18.yml

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,6 @@
2020
tags:
2121
- setup
2222

23-
- name: Patch the openstackversions to use the master containers for aodh and heat
24-
ansible.builtin.shell:
25-
cmd: |
26-
oc patch openstackversions controlplane --type merge --patch-file ci/patch-openstack-versions.yaml
27-
chdir: "{{ fvt_dir }}"
28-
when: "{{ patch_openstackversions | bool }}"
29-
tags:
30-
- setup
31-
32-
- name: Redeploy the dataplane
33-
ansible.builtin.shell:
34-
cmd: |
35-
oc get osdpd edpm-deployment -oyaml > /tmp/osdpd.yaml
36-
oc delete osdpd edpm-deployment
37-
sleep 10
38-
oc apply -f /tmp/osdpd.yaml
39-
when: "{{ patch_openstackversions | bool }}"
40-
tags:
41-
- setup
42-
4323
- name: Patch observabilityclient into openstackclient
4424
ansible.builtin.shell:
4525
cmd: |
@@ -50,50 +30,7 @@
5030
tags:
5131
- setup
5232

53-
- name: Wait until the oscp is resolved the changes to continue
54-
ansible.builtin.shell:
55-
cmd: |
56-
oc get oscp | grep "Setup complete"
57-
retries: 24
58-
timeout: 5
59-
until: output.stdout_lines | length == 1
60-
register: output
61-
when: "{{ patch_openstackversions | bool }}"
62-
tags:
63-
- setup
64-
65-
- name: Wait until the osdpd is redeployed to continue
66-
ansible.builtin.shell:
67-
cmd: |
68-
oc get osdpd | grep "Setup complete"
69-
retries: 60
70-
delay: 45
71-
until: output.stdout_lines | length == 1
72-
register: output
73-
when: "{{ patch_openstackversions | bool }}"
74-
tags:
75-
- setup
76-
7733
- name: "Run Telemetry Autoscaling tests"
7834
ansible.builtin.import_role:
7935
name: telemetry_autoscaling
8036
ignore_errors: true
81-
82-
always:
83-
- name: Revert the version update
84-
ansible.builtin.shell:
85-
cmd: |
86-
oc patch openstackversions controlplane --type json -p='[{"op": "replace", "path": "/spec/customContainerImages", "value": {} }]'
87-
when: "{{ patch_openstackversions | bool }}"
88-
89-
- name: Redeploy the dataplane
90-
ansible.builtin.shell:
91-
cmd: |
92-
oc get osdpd edpm-deployment -oyaml > /tmp/osdpd.yaml
93-
oc delete osdpd edpm-deployment
94-
sleep 10
95-
oc apply -f /tmp/osdpd.yaml
96-
when: "{{ patch_openstackversions | bool }}"
97-
tags:
98-
- setup
99-

ci/use-master-containers.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- name: Run telemetry autoscaling tests on osp18
2+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
3+
gather_facts: true
4+
environment:
5+
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
6+
PATH: "{{ cifmw_path }}"
7+
vars_files:
8+
- vars/common.yml
9+
- vars/osp18_env.yml
10+
tasks:
11+
- name: Patch the openstackversions to use the master containers for aodh, heat and ceilometer
12+
ansible.builtin.shell:
13+
cmd: |
14+
oc patch openstackversions controlplane --type merge --patch-file ci/patch-openstack-versions.yaml
15+
chdir: "{{ fvt_dir }}"
16+
tags:
17+
- setup
18+

ci/vars-functional-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
2-
# temp: skip os-net-setup
2+
# This is added so we skip the os_net_setup role, which would normally be used
3+
# to create a network.
4+
# A network gets created by `make edpm_deploy_instance` during the autoscaling
5+
# tests.
6+
# skip os-net-setup
37
cifmw_os_net_setup_config: []
48
post_deploy_00_run_functional_test:
59
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/run_autoscaling_osp18.yml"

ci/vars-use-master-containers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
post_ctlplane_deploy_99_modify_openstackversions:
3+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}/ci/use-master-containers.yml"
4+
type: playbook

roles/common/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ can be set at the play level.
155155
- ceilometer_agent_compute
156156
- ceilometer_agent_ipmi
157157
- node_exporter
158+
- kepler
158159

159160
- name: "Verify Endpoint"
160161
ansible.builtin.import_role:

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"

0 commit comments

Comments
 (0)