Skip to content

Commit 99622bc

Browse files
committed
NP-1102: Support for Ansible playbook for offline migration
1 parent 8c9558d commit 99622bc

File tree

4 files changed

+295
-0
lines changed

4 files changed

+295
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
base_images:
2+
base:
3+
name: "4.17"
4+
namespace: ocp
5+
tag: base
6+
build_root:
7+
image_stream_tag:
8+
name: release
9+
namespace: openshift
10+
tag: golang-1.13
11+
images:
12+
- dockerfile_path: ci/Dockerfile
13+
from: base
14+
to: ansible-test-runner
15+
releases:
16+
initial:
17+
integration:
18+
name: "4.17"
19+
namespace: ocp
20+
latest:
21+
integration:
22+
include_built_images: true
23+
name: "4.17"
24+
namespace: ocp
25+
resources:
26+
'*':
27+
limits:
28+
memory: 4Gi
29+
requests:
30+
cpu: 100m
31+
memory: 200Mi
32+
tests:
33+
- as: migration
34+
steps:
35+
cluster_profile: aws
36+
test:
37+
- as: test-migration
38+
cli: latest
39+
commands: sh ci/test-integration.sh
40+
dependencies:
41+
- env: ANSIBLE_TEST_IMAGE
42+
name: ansible-test-runner
43+
from: src
44+
resources:
45+
requests:
46+
cpu: 100m
47+
workflow: ipi-aws-sdn
48+
- as: rollback
49+
steps:
50+
cluster_profile: aws
51+
test:
52+
- as: test-rollback
53+
cli: latest
54+
commands: sh ci/test-integration.sh
55+
dependencies:
56+
- env: ANSIBLE_TEST_IMAGE
57+
name: ansible-test-runner
58+
from: src
59+
resources:
60+
requests:
61+
cpu: 100m
62+
workflow: ipi-aws-ovn
63+
zz_generated_metadata:
64+
branch: main
65+
org: openshift
66+
repo: ansible-ocp-networking-migration-rollback
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
presubmits:
2+
openshift/ansible-ocp-networking-migration-rollback:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
- ^main-
8+
cluster: build03
9+
context: ci/prow/images
10+
decorate: true
11+
decoration_config:
12+
skip_cloning: true
13+
labels:
14+
ci.openshift.io/generator: prowgen
15+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
16+
name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-images
17+
rerun_command: /test images
18+
spec:
19+
containers:
20+
- args:
21+
- --gcs-upload-secret=/secrets/gcs/service-account.json
22+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
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/report
44+
name: result-aggregator
45+
readOnly: true
46+
serviceAccountName: ci-operator
47+
volumes:
48+
- name: manifest-tool-local-pusher
49+
secret:
50+
secretName: manifest-tool-local-pusher
51+
- name: pull-secret
52+
secret:
53+
secretName: registry-pull-credentials
54+
- name: result-aggregator
55+
secret:
56+
secretName: result-aggregator
57+
trigger: (?m)^/test( | .* )images,?($|\s.*)
58+
- agent: kubernetes
59+
always_run: true
60+
branches:
61+
- ^main$
62+
- ^main-
63+
cluster: build05
64+
context: ci/prow/migration
65+
decorate: true
66+
decoration_config:
67+
skip_cloning: true
68+
labels:
69+
ci-operator.openshift.io/cloud: aws
70+
ci-operator.openshift.io/cloud-cluster-profile: aws
71+
ci.openshift.io/generator: prowgen
72+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
73+
name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-migration
74+
rerun_command: /test migration
75+
spec:
76+
containers:
77+
- args:
78+
- --gcs-upload-secret=/secrets/gcs/service-account.json
79+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
80+
- --lease-server-credentials-file=/etc/boskos/credentials
81+
- --report-credentials-file=/etc/report/credentials
82+
- --secret-dir=/secrets/ci-pull-credentials
83+
- --target=migration
84+
command:
85+
- ci-operator
86+
image: ci-operator:latest
87+
imagePullPolicy: Always
88+
name: ""
89+
resources:
90+
requests:
91+
cpu: 10m
92+
volumeMounts:
93+
- mountPath: /etc/boskos
94+
name: boskos
95+
readOnly: true
96+
- mountPath: /secrets/ci-pull-credentials
97+
name: ci-pull-credentials
98+
readOnly: true
99+
- mountPath: /secrets/gcs
100+
name: gcs-credentials
101+
readOnly: true
102+
- mountPath: /secrets/manifest-tool
103+
name: manifest-tool-local-pusher
104+
readOnly: true
105+
- mountPath: /etc/pull-secret
106+
name: pull-secret
107+
readOnly: true
108+
- mountPath: /etc/report
109+
name: result-aggregator
110+
readOnly: true
111+
serviceAccountName: ci-operator
112+
volumes:
113+
- name: boskos
114+
secret:
115+
items:
116+
- key: credentials
117+
path: credentials
118+
secretName: boskos-credentials
119+
- name: ci-pull-credentials
120+
secret:
121+
secretName: ci-pull-credentials
122+
- name: manifest-tool-local-pusher
123+
secret:
124+
secretName: manifest-tool-local-pusher
125+
- name: pull-secret
126+
secret:
127+
secretName: registry-pull-credentials
128+
- name: result-aggregator
129+
secret:
130+
secretName: result-aggregator
131+
trigger: (?m)^/test( | .* )migration,?($|\s.*)
132+
- agent: kubernetes
133+
always_run: true
134+
branches:
135+
- ^main$
136+
- ^main-
137+
cluster: build05
138+
context: ci/prow/rollback
139+
decorate: true
140+
decoration_config:
141+
skip_cloning: true
142+
labels:
143+
ci-operator.openshift.io/cloud: aws
144+
ci-operator.openshift.io/cloud-cluster-profile: aws
145+
ci.openshift.io/generator: prowgen
146+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
147+
name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-rollback
148+
rerun_command: /test rollback
149+
spec:
150+
containers:
151+
- args:
152+
- --gcs-upload-secret=/secrets/gcs/service-account.json
153+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
154+
- --lease-server-credentials-file=/etc/boskos/credentials
155+
- --report-credentials-file=/etc/report/credentials
156+
- --secret-dir=/secrets/ci-pull-credentials
157+
- --target=rollback
158+
command:
159+
- ci-operator
160+
image: ci-operator:latest
161+
imagePullPolicy: Always
162+
name: ""
163+
resources:
164+
requests:
165+
cpu: 10m
166+
volumeMounts:
167+
- mountPath: /etc/boskos
168+
name: boskos
169+
readOnly: true
170+
- mountPath: /secrets/ci-pull-credentials
171+
name: ci-pull-credentials
172+
readOnly: true
173+
- mountPath: /secrets/gcs
174+
name: gcs-credentials
175+
readOnly: true
176+
- mountPath: /secrets/manifest-tool
177+
name: manifest-tool-local-pusher
178+
readOnly: true
179+
- mountPath: /etc/pull-secret
180+
name: pull-secret
181+
readOnly: true
182+
- mountPath: /etc/report
183+
name: result-aggregator
184+
readOnly: true
185+
serviceAccountName: ci-operator
186+
volumes:
187+
- name: boskos
188+
secret:
189+
items:
190+
- key: credentials
191+
path: credentials
192+
secretName: boskos-credentials
193+
- name: ci-pull-credentials
194+
secret:
195+
secretName: ci-pull-credentials
196+
- name: manifest-tool-local-pusher
197+
secret:
198+
secretName: manifest-tool-local-pusher
199+
- name: pull-secret
200+
secret:
201+
secretName: registry-pull-credentials
202+
- name: result-aggregator
203+
secret:
204+
secretName: result-aggregator
205+
trigger: (?m)^/test( | .* )rollback,?($|\s.*)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"path": "ipi/aws/sdn/ipi-aws-sdn-workflow.yaml",
3+
"owners": {
4+
"approvers": [
5+
"vrutkovs",
6+
"deads2k",
7+
"technical-release-team-approvers",
8+
"jianlinliu",
9+
"yunjiang29",
10+
"patrickdillon"
11+
]
12+
}
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
workflow:
2+
as: ipi-aws-sdn
3+
steps:
4+
post:
5+
- chain: gather-core-dump
6+
- chain: ipi-aws-post
7+
pre:
8+
- chain: ipi-aws-sdn-pre
9+
documentation: |-
10+
IPI workflow that provision and deprovision an OpenShift cluster
11+
with OpenShiftSDN network on AWS.

0 commit comments

Comments
 (0)