Skip to content

Commit 453d275

Browse files
committed
NP-1102: Support for Ansible playbook for offline migration
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 8c9558d commit 453d275

File tree

9 files changed

+423
-0
lines changed

9 files changed

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

0 commit comments

Comments
 (0)