|
| 1 | +- name: Prepare Logging Tests |
| 2 | + hosts: controller |
| 3 | + gather_facts: false |
| 4 | + vars: |
| 5 | + id_rsa_path: "{{ playbook_dir }}/id_rsa.ctlplane" |
| 6 | + environment: |
| 7 | + KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}" |
| 8 | + PATH: "{{ cifmw_path }}" |
| 9 | + |
| 10 | + tasks: |
| 11 | + - name: "Log into OCP" |
| 12 | + ansible.builtin.shell: |
| 13 | + cmd: | |
| 14 | + oc login -u kubeadmin -p "12345678" https://api.crc.testing:6443 |
| 15 | + failed_when: false |
| 16 | + changed_when: false |
| 17 | + |
| 18 | + - name: "Create id rsa file for ctlplane access" |
| 19 | + ansible.builtin.shell: |
| 20 | + cmd: | |
| 21 | + oc extract -n openstack secrets/dataplane-ansible-ssh-private-key-secret --to=- | grep -v "ssh\-rsa" > "{{ id_rsa_path }}" |
| 22 | + register: rsa_results |
| 23 | + failed_when: rsa_results.rc != 0 |
| 24 | + changed_when: false |
| 25 | + |
| 26 | + - name: "Change files permissions" |
| 27 | + ansible.builtin.shell: |
| 28 | + cmd: | |
| 29 | + chmod 600 "{{ id_rsa_path }}" |
| 30 | + changed_when: false |
| 31 | + |
| 32 | +- name: "Verify logging projects, endpoints, credentials, nodes, pods, services, manifests and subscriptions" |
| 33 | + hosts: controller |
| 34 | + gather_facts: no |
| 35 | + vars: |
| 36 | + proj_test_id: "RHOSO-12668" |
| 37 | + proj_list: |
| 38 | + - openshift-openstack-infra |
| 39 | + - openshift |
| 40 | + - openstack-operators |
| 41 | + - openshift-logging |
| 42 | + |
| 43 | + |
| 44 | + endpoint_test_id: "RHOSO-12682" |
| 45 | + endpoint_list: |
| 46 | + - [nova,compute,public] |
| 47 | + - [nova,compute,internal] |
| 48 | + - [placement,placement,public] |
| 49 | + - [placement,placement,internal] |
| 50 | + - [swift,object-store,public] |
| 51 | + - [swift,object-store,internal] |
| 52 | + - [cinderv3,volumev3,public] |
| 53 | + - [cinderv3,volumev3,internal] |
| 54 | + - [barbican,key-manager,public] |
| 55 | + - [barbican,key-manager,internal] |
| 56 | + - [keystone,identity,public] |
| 57 | + - [keystone,identity,internal] |
| 58 | + - [glance,image,public] |
| 59 | + - [glance,image,internal] |
| 60 | + - [neutron,network,public] |
| 61 | + - [neutron,network,internal] |
| 62 | + |
| 63 | + |
| 64 | + cred_test_id: "RHOSO-12670" |
| 65 | + cred_list: |
| 66 | + - alertingrules.loki.grafana.com |
| 67 | + - lokistacks.loki.grafana.com |
| 68 | + - recordingrules.loki.grafana.com |
| 69 | + - rulerconfigs.loki.grafana.com |
| 70 | + |
| 71 | + |
| 72 | + node_test_id: "RHOSO-12671" |
| 73 | + node_list: |
| 74 | + - edpm-compute-0 |
| 75 | + - edpm-compute-1 |
| 76 | + - crc |
| 77 | + |
| 78 | + |
| 79 | + pod_test_id: "RHOS0-12672" |
| 80 | + pod_status_str: "Running" |
| 81 | + pod_nspace: openstack-operators |
| 82 | + pod_list: |
| 83 | + - telemetry-operator-controller-manager |
| 84 | + - dataplane-operator-controller-manager |
| 85 | + |
| 86 | + |
| 87 | + service_test_id: "RHOSO-12675" |
| 88 | + service_nspace: openshift-logging |
| 89 | + service_list: |
| 90 | + - cluster-logging-operator-metrics |
| 91 | + - logging-loki-compactor-grpc |
| 92 | + - logging-loki-compactor-http |
| 93 | + - logging-loki-distributor-grpc |
| 94 | + - logging-loki-distributor-http |
| 95 | + - logging-loki-gateway-http |
| 96 | + - logging-loki-gossip-ring |
| 97 | + - logging-loki-index-gateway-grpc |
| 98 | + - logging-loki-index-gateway-http |
| 99 | + - logging-loki-ingester-grpc |
| 100 | + - logging-loki-ingester-http |
| 101 | + - logging-loki-querier-grpc |
| 102 | + - logging-loki-querier-http |
| 103 | + - logging-loki-query-frontend-grpc |
| 104 | + - logging-loki-query-frontend-http |
| 105 | + - logging-view-plugin |
| 106 | + - openstack-logging |
| 107 | + |
| 108 | + |
| 109 | + manifest_test_id: "RHOSO-12677" |
| 110 | + manifest_list: |
| 111 | + - "loki-operator 2" |
| 112 | + - "loki-helm-operator 1" |
| 113 | + |
| 114 | + |
| 115 | + subscription_test_id: "RHOSO-12678" |
| 116 | + subscription_nspace: openshift-operators-redhat |
| 117 | + subscription_list: |
| 118 | + - loki-operator |
| 119 | + |
| 120 | + tasks: |
| 121 | + - name: "Run logging project, endpoint, credential, node, pod, service, manifest and subscription tests" |
| 122 | + ansible.builtin.import_role: |
| 123 | + name: common |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | +- name: "Verify logging pods are running in openstack" |
| 128 | + hosts: controller |
| 129 | + gather_facts: no |
| 130 | + vars: |
| 131 | + pod_test_id: "RHOSO-12752" |
| 132 | + pod_status_str: "Running" |
| 133 | + pod_nspace: openstack |
| 134 | + pod_list: |
| 135 | + - openstackclient |
| 136 | + |
| 137 | + tasks: |
| 138 | + - name: "Verify Running Pods" |
| 139 | + ansible.builtin.import_role: |
| 140 | + name: common |
| 141 | + |
| 142 | + |
| 143 | +- name: "Verify logging pods are running in openshift-operators-redhat" |
| 144 | + hosts: controller |
| 145 | + gather_facts: no |
| 146 | + vars: |
| 147 | + pod_test_id: "RHOSO-12673" |
| 148 | + pod_status_str: "Running" |
| 149 | + pod_nspace: openshift-operators-redhat |
| 150 | + pod_list: |
| 151 | + - loki-operator-controller-manager |
| 152 | + |
| 153 | + tasks: |
| 154 | + - name: "Verify Pods running" |
| 155 | + ansible.builtin.import_role: |
| 156 | + name: common |
| 157 | + |
| 158 | + |
| 159 | +- name: "Verify logging pods are running in openshift-logging" |
| 160 | + hosts: controller |
| 161 | + gather_facts: no |
| 162 | + vars: |
| 163 | + pod_test_id: "RHOSO-12676" |
| 164 | + pod_status_str: "Running" |
| 165 | + pod_nspace: openshift-logging |
| 166 | + pod_list: |
| 167 | + - cluster-logging-operator |
| 168 | + - collector |
| 169 | + - logging-loki-compactor |
| 170 | + - logging-loki-distributor |
| 171 | + - logging-loki-gateway |
| 172 | + - logging-loki-index-gateway |
| 173 | + - logging-loki-ingester |
| 174 | + - logging-loki-querier |
| 175 | + - logging-loki-query-frontend |
| 176 | + - logging-view-plugin |
| 177 | + |
| 178 | + ### see JIRA LOG-5431 if pods not running |
| 179 | + tasks: |
| 180 | + - name: "Verify Pods running" |
| 181 | + ansible.builtin.import_role: |
| 182 | + name: common |
| 183 | + |
| 184 | + |
| 185 | +- name: "Verify logging pods are running in minio-dev" |
| 186 | + hosts: controller |
| 187 | + gather_facts: no |
| 188 | + vars: |
| 189 | + pod_test_id: "RHOSO-12674" |
| 190 | + pod_status_str: "Running" |
| 191 | + pod_nspace: minio-dev |
| 192 | + pod_list: |
| 193 | + - minio |
| 194 | + |
| 195 | + tasks: |
| 196 | + - name: "Run pod running tests" |
| 197 | + ansible.builtin.import_role: |
| 198 | + name: common |
| 199 | + |
| 200 | + |
| 201 | +- name: "Verify logging pods have complete status in openstack" |
| 202 | + hosts: controller |
| 203 | + gather_facts: no |
| 204 | + vars: |
| 205 | + pod_test_id: "RHOSO-12679" |
| 206 | + pod_nspace: openstack |
| 207 | + pod_status_str: "Completed" |
| 208 | + pod_list: |
| 209 | + - bootstrap-edpm-deployment-logging |
| 210 | + - configure-network-edpm-deployment-logging |
| 211 | + - configure-os-edpm-deployment-logging |
| 212 | + - download-cache-edpm-deployment-logging |
| 213 | + - install-certs-edpm-deployment-logging |
| 214 | + - install-os-edpm-deployment-logging |
| 215 | + - libvirt-edpm-deployment-logging |
| 216 | + - logging-edpm-deployment-logging-openstack-edpm |
| 217 | + - neutron-metadata-edpm-deployment-logging |
| 218 | + - nova-custom-edpm-deployment |
| 219 | + - ovn-edpm-deployment-logging |
| 220 | + - reboot-os-edpm-deployment-logging |
| 221 | + - repo-setup-edpm-deployment-logging |
| 222 | + - run-os-edpm-deployment-logging |
| 223 | + - ssh-known-hosts-edpm-deployment-logging |
| 224 | + - telemetry-edpm-deployment-logging |
| 225 | + - validate-network-edpm-deployment-logging |
| 226 | + |
| 227 | + tasks: |
| 228 | + - name: "Run pods completed tests" |
| 229 | + ansible.builtin.import_role: |
| 230 | + name: common |
| 231 | + |
| 232 | + |
| 233 | +- name: "Verify logging services are running in openstack" |
| 234 | + hosts: controller |
| 235 | + gather_facts: no |
| 236 | + vars: |
| 237 | + service_test_id: "RHOSO-12749" |
| 238 | + service_nspace: openstack |
| 239 | + service_list: |
| 240 | + - nova-internal |
| 241 | + - nova-metadata-internal |
| 242 | + - nova-novncproxy-cell1-public |
| 243 | + - nova-public |
| 244 | + |
| 245 | + tasks: |
| 246 | + - name: "Run Services tests" |
| 247 | + ansible.builtin.import_role: |
| 248 | + name: common |
0 commit comments