diff --git a/ci-operator/config/openshift/ansible-ocp-networking-migration-rollback/OWNERS b/ci-operator/config/openshift/ansible-ocp-networking-migration-rollback/OWNERS new file mode 100644 index 0000000000000..31848d0de9c91 --- /dev/null +++ b/ci-operator/config/openshift/ansible-ocp-networking-migration-rollback/OWNERS @@ -0,0 +1,32 @@ +approvers: + - abhat + - arghosh93 + - danwinship + - dougbtv + - gsr-shanks + - JacobTanenbaum + - jcaamano + - knobunc + - kyrtapz + - Meina-rh + - miheer + - pliurh + - pperiyasamy + - trozet + - zshi-redhat +reviewers: + - abhat + - arghosh93 + - danwinship + - dougbtv + - gsr-shanks + - JacobTanenbaum + - jcaamano + - kyrtapz + - Meina-rh + - miheer + - pliurh + - pperiyasamy + - trozet + - tssurya + - zshi-redhat \ No newline at end of file diff --git a/ci-operator/config/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main.yaml b/ci-operator/config/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main.yaml new file mode 100644 index 0000000000000..f8ffb1373b3bc --- /dev/null +++ b/ci-operator/config/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main.yaml @@ -0,0 +1,79 @@ +base_images: + ocp_4.13_cli: + name: "4.13" + namespace: ocp + tag: cli + ocp_builder_rhel-8-golang-1.19-openshift-4.13: + name: builder + namespace: ocp + tag: rhel-8-golang-1.19-openshift-4.13 +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: golang-1.13 +images: +- dockerfile_path: ci/Dockerfile + from: ocp_4.13_cli + inputs: + ocp_4.13_cli: + as: + - registry.ci.openshift.org/ocp/4.13:cli + ocp_builder_rhel-8-golang-1.19-openshift-4.13: + as: + - registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.19-openshift-4.13 + to: ansible-test-runner +promotion: + to: + - name: "4.13" + namespace: ocp +releases: + initial: + integration: + name: "4.13" + namespace: ocp + latest: + integration: + include_built_images: true + name: "4.13" + namespace: ocp +resources: + '*': + requests: + cpu: 100m + memory: 200Mi +tests: +- as: migration + steps: + cluster_profile: aws + test: + - as: test-migration + cli: latest + commands: sh ci/test-integration.sh + dependencies: + - env: ANSIBLE_TEST_IMAGE + name: ansible-test-runner + from: ansible-test-runner + resources: + requests: + cpu: 100m + workflow: ipi-aws-sdn +- as: rollback + steps: + cluster_profile: aws + test: + - as: test-rollback + cli: latest + commands: sh ci/test-integration.sh + dependencies: + - env: ANSIBLE_TEST_IMAGE + name: ansible-test-runner + from: ansible-test-runner + resources: + requests: + cpu: 100m + workflow: ipi-aws-ovn +zz_generated_metadata: + branch: main + org: openshift + repo: ansible-ocp-networking-migration-rollback diff --git a/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/OWNERS b/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/OWNERS new file mode 100644 index 0000000000000..31848d0de9c91 --- /dev/null +++ b/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/OWNERS @@ -0,0 +1,32 @@ +approvers: + - abhat + - arghosh93 + - danwinship + - dougbtv + - gsr-shanks + - JacobTanenbaum + - jcaamano + - knobunc + - kyrtapz + - Meina-rh + - miheer + - pliurh + - pperiyasamy + - trozet + - zshi-redhat +reviewers: + - abhat + - arghosh93 + - danwinship + - dougbtv + - gsr-shanks + - JacobTanenbaum + - jcaamano + - kyrtapz + - Meina-rh + - miheer + - pliurh + - pperiyasamy + - trozet + - tssurya + - zshi-redhat \ No newline at end of file diff --git a/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main-postsubmits.yaml b/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main-postsubmits.yaml new file mode 100644 index 0000000000000..5fbcc093d887f --- /dev/null +++ b/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main-postsubmits.yaml @@ -0,0 +1,62 @@ +postsubmits: + openshift/ansible-ocp-networking-migration-rollback: + - agent: kubernetes + always_run: true + branches: + - ^main$ + cluster: build03 + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/is-promotion: "true" + ci.openshift.io/generator: prowgen + max_concurrency: 1 + name: branch-ci-openshift-ansible-ocp-networking-migration-rollback-main-images + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson + - --promote + - --report-credentials-file=/etc/report/credentials + - --target=[images] + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - 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/push-secret + name: push-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: push-secret + secret: + secretName: registry-push-credentials-ci-central + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main-presubmits.yaml b/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main-presubmits.yaml new file mode 100644 index 0000000000000..1333c73651ea3 --- /dev/null +++ b/ci-operator/jobs/openshift/ansible-ocp-networking-migration-rollback/openshift-ansible-ocp-networking-migration-rollback-main-presubmits.yaml @@ -0,0 +1,206 @@ +presubmits: + openshift/ansible-ocp-networking-migration-rollback: + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build03 + context: ci/prow/images + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-images + rerun_command: /test images + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=[images] + - --target=[release:latest] + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - 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: 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( | .* )images,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build05 + context: ci/prow/migration + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-migration + rerun_command: /test migration + 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=migration + command: + - ci-operator + image: 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( | .* )migration,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build05 + context: ci/prow/rollback + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-rollback + rerun_command: /test rollback + 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=rollback + command: + - ci-operator + image: 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( | .* )rollback,?($|\s.*) diff --git a/ci-operator/step-registry/ipi/aws/sdn/ipi-aws-sdn-workflow.metadata.json b/ci-operator/step-registry/ipi/aws/sdn/ipi-aws-sdn-workflow.metadata.json new file mode 100644 index 0000000000000..19116e3e5b6b0 --- /dev/null +++ b/ci-operator/step-registry/ipi/aws/sdn/ipi-aws-sdn-workflow.metadata.json @@ -0,0 +1,13 @@ +{ + "path": "ipi/aws/sdn/ipi-aws-sdn-workflow.yaml", + "owners": { + "approvers": [ + "vrutkovs", + "deads2k", + "technical-release-team-approvers", + "jianlinliu", + "yunjiang29", + "patrickdillon" + ] + } +} \ No newline at end of file diff --git a/ci-operator/step-registry/ipi/aws/sdn/ipi-aws-sdn-workflow.yaml b/ci-operator/step-registry/ipi/aws/sdn/ipi-aws-sdn-workflow.yaml new file mode 100644 index 0000000000000..4ed2d6692579c --- /dev/null +++ b/ci-operator/step-registry/ipi/aws/sdn/ipi-aws-sdn-workflow.yaml @@ -0,0 +1,11 @@ +workflow: + as: ipi-aws-sdn + steps: + post: + - chain: gather-core-dump + - chain: ipi-aws-post + pre: + - chain: ipi-aws-sdn-pre + documentation: |- + IPI workflow that provision and deprovision an OpenShift cluster + with OpenShiftSDN network on AWS.