From c008c6e811cd088819076a518e36af03a5f4c086 Mon Sep 17 00:00:00 2001 From: Marihan Girgis <102027102+mgirgisf@users.noreply.github.com> Date: Tue, 9 Jan 2024 19:29:53 +0100 Subject: [PATCH] Stop using ephemeral storage for testing (#547) Update the __service_telemetry_storage_persistent_storage_class to use CRC PVs Use the default value (false) for __service_telemetry_storage_ephemeral_enabled --- build/stf-collect-logs/tasks/main.yml | 17 +++++++++++++++++ ci/vars-local_build-index_deploy.yml | 3 +-- ci/vars-local_build.yml | 1 - ci/vars-nightly_bundles.yml | 1 - ci/vars-zuul-common.yml | 1 + 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/build/stf-collect-logs/tasks/main.yml b/build/stf-collect-logs/tasks/main.yml index 10fb0c97b..347d07f37 100644 --- a/build/stf-collect-logs/tasks/main.yml +++ b/build/stf-collect-logs/tasks/main.yml @@ -61,3 +61,20 @@ ignore_errors: true retries: 3 delay: 10 + +- name: "Get PV and PVC information details" + ansible.builtin.shell: + cmd: | + oc -n {{ namespace }} get pv >> {{ logfile_dir }}/post_pv.log 2>&1 + oc -n {{ namespace }} get pvc >> {{ logfile_dir }}/post_pvc.log 2>&1 + ignore_errors: true + +- name: "Get SGO,STO and QDR logs" + ansible.builtin.shell: + cmd: | + oc -n {{ namespace }} logs $(oc -n {{ namespace }} get pod -l name=service-telemetry-operator -o jsonpath='{.items[].metadata.name}') >> {{ logfile_dir }}/logs_sto.log 2>&1 + oc -n {{ namespace }} logs $(oc -n {{ namespace }} get pod -l app=smart-gateway-operator -o jsonpath='{.items[].metadata.name}') >> {{ logfile_dir }}/logs_sgo.log 2>&1 + oc -n {{ namespace }} logs $(oc -n {{ namespace }} get pod -l qdr -o jsonpath='{.items[].metadata.name}') >> {{ logfile_dir }}/logs_qdr.log 2>&1 + ignore_errors: true + retries: 3 + delay: 10 \ No newline at end of file diff --git a/ci/vars-local_build-index_deploy.yml b/ci/vars-local_build-index_deploy.yml index 0404049b4..ed9acc624 100644 --- a/ci/vars-local_build-index_deploy.yml +++ b/ci/vars-local_build-index_deploy.yml @@ -1,6 +1,5 @@ --- -#ansible-playbook --extra-vars __local_build_enabled=true -e __deploy_from_index_enabled=true --extra-vars working_branch="$(git rev-parse --abbrev-ref HEAD)" --extra-vars __service_telemetry_storage_ephemeral_enabled=true --extra-vars __service_telemetry_observability_strategy=use_redhat ./run-ci.yaml +#ansible-playbook --extra-vars __local_build_enabled=true -e __deploy_from_index_enabled=true --extra-vars working_branch="$(git rev-parse --abbrev-ref HEAD)" --extra-vars __service_telemetry_observability_strategy=use_redhat ./run-ci.yaml __local_build_enabled: true __deploy_from_index_enabled: true -__service_telemetry_ephemeral_enabled: true __service_telemetry_observability_strategy: use_redhat diff --git a/ci/vars-local_build.yml b/ci/vars-local_build.yml index 3126605a4..206e2b327 100644 --- a/ci/vars-local_build.yml +++ b/ci/vars-local_build.yml @@ -2,4 +2,3 @@ __deploy_stf: true __local_build_enabled: true __service_telemetry_snmptraps_enabled: true -__service_telemetry_storage_ephemeral_enabled: true diff --git a/ci/vars-nightly_bundles.yml b/ci/vars-nightly_bundles.yml index ca49656f3..26572fe9c 100644 --- a/ci/vars-nightly_bundles.yml +++ b/ci/vars-nightly_bundles.yml @@ -4,4 +4,3 @@ __local_build_enabled: false __deploy_from_bundles_enabled: true -__service_telemetry_storage_ephemeral_enabled: true diff --git a/ci/vars-zuul-common.yml b/ci/vars-zuul-common.yml index 12308a590..de0f17613 100644 --- a/ci/vars-zuul-common.yml +++ b/ci/vars-zuul-common.yml @@ -9,3 +9,4 @@ sgo_dir: "{{ ansible_env.HOME }}/{{ zuul.projects['github.com/infrawatch/smart-g sg_core_dir: "{{ ansible_env.HOME }}/{{ zuul.projects['github.com/infrawatch/sg-core'].src_dir }}" sg_bridge_dir: "{{ ansible_env.HOME }}/{{ zuul.projects['github.com/infrawatch/sg-bridge'].src_dir }}" prometheus_webhook_snmp_dir: "{{ ansible_env.HOME }}/{{ zuul.projects['github.com/infrawatch/prometheus-webhook-snmp'].src_dir }}" +__service_telemetry_storage_persistent_storage_class: "crc-csi-hostpath-provisioner" \ No newline at end of file