Skip to content

Commit 961d5ec

Browse files
authored
NP-1102: Support for Ansible playbook for offline migration (#61752)
This commit runs migration to change CNI from OpenShiftSDN to OVNKubernetes using ipi-aws-ovn workflow. It also runs rollback to change CNI from OVNKubernetes to OpenShiftSDN using ipi-aws-sdn worflow. This commit also creates a new workflow called ipi-aws-sdn to test the rollback. OWNERS and OWNERS_ALIASES file has been added in config and jobs folder present under ci-operator folder for merge process of the PR.
1 parent acd098a commit 961d5ec

File tree

7 files changed

+435
-0
lines changed

7 files changed

+435
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
approvers:
2+
- abhat
3+
- arghosh93
4+
- danwinship
5+
- dougbtv
6+
- gsr-shanks
7+
- JacobTanenbaum
8+
- jcaamano
9+
- knobunc
10+
- kyrtapz
11+
- Meina-rh
12+
- miheer
13+
- pliurh
14+
- pperiyasamy
15+
- trozet
16+
- zshi-redhat
17+
reviewers:
18+
- abhat
19+
- arghosh93
20+
- danwinship
21+
- dougbtv
22+
- gsr-shanks
23+
- JacobTanenbaum
24+
- jcaamano
25+
- kyrtapz
26+
- Meina-rh
27+
- miheer
28+
- pliurh
29+
- pperiyasamy
30+
- trozet
31+
- tssurya
32+
- zshi-redhat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
base_images:
2+
ocp_4.13_cli:
3+
name: "4.13"
4+
namespace: ocp
5+
tag: cli
6+
ocp_builder_rhel-8-golang-1.19-openshift-4.13:
7+
name: builder
8+
namespace: ocp
9+
tag: rhel-8-golang-1.19-openshift-4.13
10+
build_root:
11+
image_stream_tag:
12+
name: release
13+
namespace: openshift
14+
tag: golang-1.13
15+
images:
16+
- dockerfile_path: ci/Dockerfile
17+
from: ocp_4.13_cli
18+
inputs:
19+
ocp_4.13_cli:
20+
as:
21+
- registry.ci.openshift.org/ocp/4.13:cli
22+
ocp_builder_rhel-8-golang-1.19-openshift-4.13:
23+
as:
24+
- registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.19-openshift-4.13
25+
to: ansible-test-runner
26+
promotion:
27+
to:
28+
- name: "4.13"
29+
namespace: ocp
30+
releases:
31+
initial:
32+
integration:
33+
name: "4.13"
34+
namespace: ocp
35+
latest:
36+
integration:
37+
include_built_images: true
38+
name: "4.13"
39+
namespace: ocp
40+
resources:
41+
'*':
42+
requests:
43+
cpu: 100m
44+
memory: 200Mi
45+
tests:
46+
- as: migration
47+
steps:
48+
cluster_profile: aws
49+
test:
50+
- as: test-migration
51+
cli: latest
52+
commands: sh ci/test-integration.sh
53+
dependencies:
54+
- env: ANSIBLE_TEST_IMAGE
55+
name: ansible-test-runner
56+
from: ansible-test-runner
57+
resources:
58+
requests:
59+
cpu: 100m
60+
workflow: ipi-aws-sdn
61+
- as: rollback
62+
steps:
63+
cluster_profile: aws
64+
test:
65+
- as: test-rollback
66+
cli: latest
67+
commands: sh ci/test-integration.sh
68+
dependencies:
69+
- env: ANSIBLE_TEST_IMAGE
70+
name: ansible-test-runner
71+
from: ansible-test-runner
72+
resources:
73+
requests:
74+
cpu: 100m
75+
workflow: ipi-aws-ovn
76+
zz_generated_metadata:
77+
branch: main
78+
org: openshift
79+
repo: ansible-ocp-networking-migration-rollback
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
approvers:
2+
- abhat
3+
- arghosh93
4+
- danwinship
5+
- dougbtv
6+
- gsr-shanks
7+
- JacobTanenbaum
8+
- jcaamano
9+
- knobunc
10+
- kyrtapz
11+
- Meina-rh
12+
- miheer
13+
- pliurh
14+
- pperiyasamy
15+
- trozet
16+
- zshi-redhat
17+
reviewers:
18+
- abhat
19+
- arghosh93
20+
- danwinship
21+
- dougbtv
22+
- gsr-shanks
23+
- JacobTanenbaum
24+
- jcaamano
25+
- kyrtapz
26+
- Meina-rh
27+
- miheer
28+
- pliurh
29+
- pperiyasamy
30+
- trozet
31+
- tssurya
32+
- zshi-redhat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
postsubmits:
2+
openshift/ansible-ocp-networking-migration-rollback:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
cluster: build03
8+
decorate: true
9+
decoration_config:
10+
skip_cloning: true
11+
labels:
12+
ci-operator.openshift.io/is-promotion: "true"
13+
ci.openshift.io/generator: prowgen
14+
max_concurrency: 1
15+
name: branch-ci-openshift-ansible-ocp-networking-migration-rollback-main-images
16+
spec:
17+
containers:
18+
- args:
19+
- --gcs-upload-secret=/secrets/gcs/service-account.json
20+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
21+
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
22+
- --promote
23+
- --report-credentials-file=/etc/report/credentials
24+
- --target=[images]
25+
command:
26+
- ci-operator
27+
image: ci-operator:latest
28+
imagePullPolicy: Always
29+
name: ""
30+
resources:
31+
requests:
32+
cpu: 10m
33+
volumeMounts:
34+
- mountPath: /secrets/gcs
35+
name: gcs-credentials
36+
readOnly: true
37+
- mountPath: /secrets/manifest-tool
38+
name: manifest-tool-local-pusher
39+
readOnly: true
40+
- mountPath: /etc/pull-secret
41+
name: pull-secret
42+
readOnly: true
43+
- mountPath: /etc/push-secret
44+
name: push-secret
45+
readOnly: true
46+
- mountPath: /etc/report
47+
name: result-aggregator
48+
readOnly: true
49+
serviceAccountName: ci-operator
50+
volumes:
51+
- name: manifest-tool-local-pusher
52+
secret:
53+
secretName: manifest-tool-local-pusher
54+
- name: pull-secret
55+
secret:
56+
secretName: registry-pull-credentials
57+
- name: push-secret
58+
secret:
59+
secretName: registry-push-credentials-ci-central
60+
- name: result-aggregator
61+
secret:
62+
secretName: result-aggregator

0 commit comments

Comments
 (0)