From e4fd5d05dcdbce32e441ef7329f4bb5bd6048906 Mon Sep 17 00:00:00 2001 From: ehila Date: Mon, 22 Sep 2025 15:15:30 -0400 Subject: [PATCH] feat: add tnf abi presubmit to installer added two node fencing agent ipv4 workflow added presubmit lane for tnf agent changes to the installer repo Signed-off-by: ehila --- .../installer/openshift-installer-main.yaml | 8 ++ .../openshift-installer-release-4.21.yaml | 8 ++ .../openshift-installer-release-4.22.yaml | 8 ++ .../openshift-installer-main-presubmits.yaml | 77 +++++++++++++++++++ ...ift-installer-release-4.21-presubmits.yaml | 77 +++++++++++++++++++ ...ift-installer-release-4.22-presubmits.yaml | 77 +++++++++++++++++++ .../step-registry/agent/e2e/two-node/OWNERS | 2 + .../agent/e2e/two-node/fencing/OWNERS | 1 + .../agent/e2e/two-node/fencing/ipv4/OWNERS | 1 + ...o-node-fencing-ipv4-workflow.metadata.json | 8 ++ ...nt-e2e-two-node-fencing-ipv4-workflow.yaml | 18 +++++ 11 files changed, 285 insertions(+) create mode 100644 ci-operator/step-registry/agent/e2e/two-node/OWNERS create mode 120000 ci-operator/step-registry/agent/e2e/two-node/fencing/OWNERS create mode 120000 ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/OWNERS create mode 100644 ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.metadata.json create mode 100644 ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.yaml diff --git a/ci-operator/config/openshift/installer/openshift-installer-main.yaml b/ci-operator/config/openshift/installer/openshift-installer-main.yaml index 96933b9c233b9..d67b661db94a3 100644 --- a/ci-operator/config/openshift/installer/openshift-installer-main.yaml +++ b/ci-operator/config/openshift/installer/openshift-installer-main.yaml @@ -1253,6 +1253,14 @@ tests: NETWORK_TYPE=OVNKubernetes workflow: agent-e2e-compact-ipv4 timeout: 6h0m0s +- as: e2e-agent-two-node-fencing-ipv4 + cluster: build05 + optional: true + run_if_changed: ^(cmd|pkg|data).*/agent/ + steps: + cluster_profile: equinix-ocp-metal + workflow: agent-e2e-two-node-fencing-ipv4 + timeout: 6h0m0s - always_run: false as: e2e-agent-compact-ipv4-appliance-diskimage cluster: build05 diff --git a/ci-operator/config/openshift/installer/openshift-installer-release-4.21.yaml b/ci-operator/config/openshift/installer/openshift-installer-release-4.21.yaml index 38e4a32c59cdb..47efa598b46e7 100644 --- a/ci-operator/config/openshift/installer/openshift-installer-release-4.21.yaml +++ b/ci-operator/config/openshift/installer/openshift-installer-release-4.21.yaml @@ -1254,6 +1254,14 @@ tests: NETWORK_TYPE=OVNKubernetes workflow: agent-e2e-compact-ipv4 timeout: 6h0m0s +- as: e2e-agent-two-node-fencing-ipv4 + cluster: build05 + optional: true + run_if_changed: ^(cmd|pkg|data).*/agent/ + steps: + cluster_profile: equinix-ocp-metal + workflow: agent-e2e-two-node-fencing-ipv4 + timeout: 6h0m0s - always_run: false as: e2e-agent-compact-ipv4-appliance-diskimage cluster: build05 diff --git a/ci-operator/config/openshift/installer/openshift-installer-release-4.22.yaml b/ci-operator/config/openshift/installer/openshift-installer-release-4.22.yaml index 47255ddd7fbec..79a28f54f4369 100644 --- a/ci-operator/config/openshift/installer/openshift-installer-release-4.22.yaml +++ b/ci-operator/config/openshift/installer/openshift-installer-release-4.22.yaml @@ -1253,6 +1253,14 @@ tests: NETWORK_TYPE=OVNKubernetes workflow: agent-e2e-compact-ipv4 timeout: 6h0m0s +- as: e2e-agent-two-node-fencing-ipv4 + cluster: build05 + optional: true + run_if_changed: ^(cmd|pkg|data).*/agent/ + steps: + cluster_profile: equinix-ocp-metal + workflow: agent-e2e-two-node-fencing-ipv4 + timeout: 6h0m0s - always_run: false as: e2e-agent-compact-ipv4-appliance-diskimage cluster: build05 diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-main-presubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-main-presubmits.yaml index cb3f2c3f8fd99..7034d974e4447 100644 --- a/ci-operator/jobs/openshift/installer/openshift-installer-main-presubmits.yaml +++ b/ci-operator/jobs/openshift/installer/openshift-installer-main-presubmits.yaml @@ -1054,6 +1054,83 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )e2e-agent-sno-ipv6,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^main$ + - ^main- + cluster: build05 + context: ci/prow/e2e-agent-two-node-fencing-ipv4 + decorate: true + decoration_config: + timeout: 6h0m0s + labels: + ci-operator.openshift.io/cloud: equinix-ocp-metal + ci-operator.openshift.io/cloud-cluster-profile: equinix-ocp-metal + ci-operator.openshift.io/cluster: build05 + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-main-e2e-agent-two-node-fencing-ipv4 + optional: true + rerun_command: /test e2e-agent-two-node-fencing-ipv4 + run_if_changed: ^(cmd|pkg|data).*/agent/ + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=e2e-agent-two-node-fencing-ipv4 + command: + - ci-operator + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )e2e-agent-two-node-fencing-ipv4,?($|\s.*) - agent: kubernetes always_run: false branches: diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-release-4.21-presubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-release-4.21-presubmits.yaml index ecae2b9c4f131..227a8595d5759 100644 --- a/ci-operator/jobs/openshift/installer/openshift-installer-release-4.21-presubmits.yaml +++ b/ci-operator/jobs/openshift/installer/openshift-installer-release-4.21-presubmits.yaml @@ -1052,6 +1052,83 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )e2e-agent-sno-ipv6,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^release-4\.21$ + - ^release-4\.21- + cluster: build05 + context: ci/prow/e2e-agent-two-node-fencing-ipv4 + decorate: true + decoration_config: + timeout: 6h0m0s + labels: + ci-operator.openshift.io/cloud: equinix-ocp-metal + ci-operator.openshift.io/cloud-cluster-profile: equinix-ocp-metal + ci-operator.openshift.io/cluster: build05 + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-release-4.21-e2e-agent-two-node-fencing-ipv4 + optional: true + rerun_command: /test e2e-agent-two-node-fencing-ipv4 + run_if_changed: ^(cmd|pkg|data).*/agent/ + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=e2e-agent-two-node-fencing-ipv4 + command: + - ci-operator + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )e2e-agent-two-node-fencing-ipv4,?($|\s.*) - agent: kubernetes always_run: false branches: diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-release-4.22-presubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-release-4.22-presubmits.yaml index c3d707537420a..8c4401720a8a2 100644 --- a/ci-operator/jobs/openshift/installer/openshift-installer-release-4.22-presubmits.yaml +++ b/ci-operator/jobs/openshift/installer/openshift-installer-release-4.22-presubmits.yaml @@ -1053,6 +1053,83 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )e2e-agent-sno-ipv6,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^release-4\.22$ + - ^release-4\.22- + cluster: build05 + context: ci/prow/e2e-agent-two-node-fencing-ipv4 + decorate: true + decoration_config: + timeout: 6h0m0s + labels: + ci-operator.openshift.io/cloud: equinix-ocp-metal + ci-operator.openshift.io/cloud-cluster-profile: equinix-ocp-metal + ci-operator.openshift.io/cluster: build05 + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-release-4.22-e2e-agent-two-node-fencing-ipv4 + optional: true + rerun_command: /test e2e-agent-two-node-fencing-ipv4 + run_if_changed: ^(cmd|pkg|data).*/agent/ + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=e2e-agent-two-node-fencing-ipv4 + command: + - ci-operator + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )e2e-agent-two-node-fencing-ipv4,?($|\s.*) - agent: kubernetes always_run: false branches: diff --git a/ci-operator/step-registry/agent/e2e/two-node/OWNERS b/ci-operator/step-registry/agent/e2e/two-node/OWNERS new file mode 100644 index 0000000000000..761bb7febf9a0 --- /dev/null +++ b/ci-operator/step-registry/agent/e2e/two-node/OWNERS @@ -0,0 +1,2 @@ +approvers: + - edge-enablement-approvers diff --git a/ci-operator/step-registry/agent/e2e/two-node/fencing/OWNERS b/ci-operator/step-registry/agent/e2e/two-node/fencing/OWNERS new file mode 120000 index 0000000000000..ec405d65a79df --- /dev/null +++ b/ci-operator/step-registry/agent/e2e/two-node/fencing/OWNERS @@ -0,0 +1 @@ +../OWNERS \ No newline at end of file diff --git a/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/OWNERS b/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/OWNERS new file mode 120000 index 0000000000000..ec405d65a79df --- /dev/null +++ b/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/OWNERS @@ -0,0 +1 @@ +../OWNERS \ No newline at end of file diff --git a/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.metadata.json b/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.metadata.json new file mode 100644 index 0000000000000..d328291c8b5bd --- /dev/null +++ b/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.metadata.json @@ -0,0 +1,8 @@ +{ + "path": "agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.yaml", + "owners": { + "approvers": [ + "edge-enablement-approvers" + ] + } +} \ No newline at end of file diff --git a/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.yaml b/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.yaml new file mode 100644 index 0000000000000..627634536d307 --- /dev/null +++ b/ci-operator/step-registry/agent/e2e/two-node/fencing/ipv4/agent-e2e-two-node-fencing-ipv4-workflow.yaml @@ -0,0 +1,18 @@ +workflow: + as: agent-e2e-two-node-fencing-ipv4 + steps: + allow_best_effort_post_steps: true + allow_skip_on_success: true + env: + DEVSCRIPTS_CONFIG: | + AGENT_E2E_TEST_SCENARIO=TNF_IPV4 + BMC_DRIVER=redfish + DEVSCRIPTS_TARGET: agent + pre: + - chain: agent-pre + test: + - chain: agent-test + post: + - chain: agent-post + documentation: |- + This workflow executes a Two Node OpenShift with Fencing (TNF) cluster installation with Agent Based Installer (ABI) with IPv4