Skip to content

Commit

Permalink
Merge branch 'efoley-replace_query' into efoley-zuul-local_build-inde…
Browse files Browse the repository at this point in the history
…x_deploy
  • Loading branch information
elfiesmelfie authored Oct 5, 2023
2 parents 246f949 + bbcb60e commit 13c387f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
# Pass vars to crc cli https://review.rdoproject.org/cgit/config/tree/playbooks/crc/simple-start.yaml#n30
crc_parameters: '--memory 16000 --disk-size 80 --cpus 6' # Increase from 14336

- job:
name: stf-crc-latest-local_build
parent: stf-base
description: |
Build images locally and deploy STF
vars:
scenario: "local_build"

- job:
name: stf-crc-latest-local_build-index_deploy
parent: stf-base
Expand All @@ -38,4 +46,5 @@
name: infrawatch/service-telemetry-operator
github-check:
jobs:
- stf-crc-latest-local_build
- stf-crc-latest-local_build-index_deploy
1 change: 1 addition & 0 deletions build/stf-run-ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ choose to override:
| `__service_telemetry_trap_default_oid` | <default_oid> | 1.3.6.1.4.1.50495.15.1.2.1 | The trap OID if none is found in the Prometheus alert labels. |
| `__service_telemetry_trap_default_severity` | <default_severity> | <undefined> | The trap severity if none is found in the Prometheus alert labels. |
| `__service_telemetry_observability_strategy` | <observability_strategy> | `use_redhat` | Which observability strategy to use for deployment. Default is 'use_redhat'. Also supported are 'use_hybrid', 'use_community', and 'none' |
| `__service_telemetry_transports_qdr_auth` | {'none', 'basic'} | `none` | Which auth method to use for QDR. Can be 'none' or 'basic'. Note: 'basic' is not yet supported in smoketests. |
| `__service_telemetry_transports_certificates_endpoint_cert_duration` | [ParseDuration](https://golang.org/pkg/time/#ParseDuration) | 70080h | Lifetime of the QDR endpoint certificate (minimum duration is 1h) |
| `__service_telemetry_transports_certificates_ca_cert_duration` | [ParseDuration](https://golang.org/pkg/time/#ParseDuration) | 70080h | Lifetime of the QDR CA certificate (minimum duration is 1h) |
| `__internal_registry_path` | <registry_path> | image-registry.openshift-image-registry.svc:5000 | Path to internal registry for image path |
Expand Down
3 changes: 3 additions & 0 deletions build/stf-run-ci/tasks/deploy_stf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
transports:
qdr:
enabled: true
{% if __service_telemetry_transports_qdr_auth is defined %}
auth: "{{ __service_telemetry_transports_qdr_auth }}"
{% endif %}
certificates:
endpointCertDuration: {{ __service_telemetry_transports_certificates_endpoint_cert_duration }}
caCertDuration: {{ __service_telemetry_transports_certificates_ca_cert_duration }}
Expand Down
4 changes: 2 additions & 2 deletions build/stf-run-ci/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- name: Setup default values
ansible.builtin.set_fact:
branch: "{{ working_branch | default('master') }}"
namespace: "{{ working_namespace | default('service-telemetry') }}"
namespace: "{{ namespace if namespace is defined else (working_namespace | default('service-telemetry'))}}"

- name: Set default image paths for local builds
ansible.builtin.set_fact:
Expand Down Expand Up @@ -205,7 +205,7 @@

- name: Validate system is operational
ansible.builtin.shell: |
OCP_PROJECT="{{ namespace }}" VALIDATION_SCOPE="{{ __service_telemetry_observability_strategy }}" timeout 600 "{{ base_dir }}/validate_deployment.sh" >> {{ logfile_dir }}/validate_deployment.log 2>&1
OCP_PROJECT="{{ namespace }}" VALIDATION_SCOPE="{{ __service_telemetry_observability_strategy }}" timeout 1200 "{{ base_dir }}/validate_deployment.sh" >> {{ logfile_dir }}/validate_deployment.log 2>&1
args:
executable: /bin/bash
register: validate_deployment
Expand Down
7 changes: 5 additions & 2 deletions ci/post-collect_logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
oc get subscriptions > {{ logfile_dir }}/post_oc_get_subscriptions.log 2>&1
oc describe subscription service-telemetry-operator >> {{ logfile_dir }}/post_oc_get_subscriptions.log 2>&1
cat {{ logfile_dir}}/post_oc_get_subscriptions.log
ignore_errors: true

- name: "Get image infos"
ansible.builtin.shell:
Expand All @@ -69,6 +70,7 @@
oc get imagestream -oyaml >> {{ logfile_dir }}/post_oc_get_images.log 2>&1
cat {{ logfile_dir }}/post_oc_get_images.log 2>&1
register: post_oc_get_images
ignore_errors: true
retries: 3
delay: 10

Expand All @@ -86,9 +88,10 @@
echo "What images were created in the internal registry?" > {{ logfile_dir }}/post_question_deployment.log 2>&1
oc get images | grep $(oc registry info --internal) >> {{ logfile_dir }}/post_question_deployment.log 2>&1
echo "What state is the STO csv in?" >> {{ logfile_dir }}/post_question_deployment.log 2>&1
oc get csv -n service-telemetry | grep service-telemetry-operator >> {{ logfile_dir }}/post_question_deployment.log 2>&1
oc get csv -n service-telemetry-operator -oyaml >> {{ logfile_dir }}/post_question_deployment.log 2>&1
oc get csv -n {{ namespace }} | grep service-telemetry-operator >> {{ logfile_dir }}/post_question_deployment.log 2>&1
oc get csv -n {{ namespace }} service-telemetry-operator -oyaml >> {{ logfile_dir }}/post_question_deployment.log 2>&1
register: output
ignore_errors: true
retries: 3
delay: 10

Expand Down
5 changes: 5 additions & 0 deletions ci/vars-local_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
__deploy_stf: true
__local_build_enabled: true
__service_telemetry_snmptraps_enabled: true
__service_telemetry_storage_ephemeral_enabled: true
1 change: 1 addition & 0 deletions ci/vars-zuul-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
namespace: "service-telemetry"
setup_bundle_registry_tls_ca: false
setup_bundle_registry_auth: false
__service_telemetry_transports_qdr_auth: none
base_dir: "{{ sto_dir }}/build"
logfile_dir: "{{ ansible_user_dir }}/zuul-output/logs/controller"

0 comments on commit 13c387f

Please sign in to comment.