Skip to content

Commit 8fb6b0b

Browse files
authored
Create CNV chaos testing job to run it as formal testing with existing Krkn scenarios (#70546)
* Create CNV chaos testing job to run it as formal testing with existing Krkn scenarios * make-update for job build cluster * Add previous failed 3 refs
1 parent e6b7693 commit 8fb6b0b

25 files changed

+749
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
base_images:
2+
cli:
3+
name: "4.19"
4+
namespace: ocp
5+
tag: cli
6+
build_root:
7+
image_stream_tag:
8+
name: release
9+
namespace: openshift
10+
tag: golang-1.23
11+
images:
12+
- dockerfile_literal: |
13+
FROM cli
14+
RUN set -exo pipefail && \
15+
# Install openssh-clients and jq
16+
declare pkgs='openssh-clients jq' && \
17+
if command -v dnf 1> /dev/null; then \
18+
dnf install --setopt tsflags=nodocs -y ${pkgs} && \
19+
dnf clean all; \
20+
else \
21+
microdnf install -y ${pkgs} && \
22+
microdnf clean all; \
23+
fi && \
24+
rm -rf /var/cache/dnf/* && \
25+
# Install yq
26+
wget -qO - 'https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64.tar.gz' | \
27+
tar zvx -C /usr/local/bin/ --transform 's|^\./yq_linux_amd64$|yq|' ./yq_linux_amd64
28+
from: cli
29+
to: cli-plus-tools
30+
releases:
31+
latest:
32+
candidate:
33+
product: ocp
34+
stream: nightly
35+
version: "4.19"
36+
resources:
37+
'*':
38+
limits:
39+
memory: 4Gi
40+
requests:
41+
cpu: 100m
42+
memory: 200Mi
43+
tests:
44+
- as: krkn-hub-tests
45+
cron: 0 22 * * 0
46+
steps:
47+
cluster_profile: aws-lp-chaos
48+
env:
49+
BASE_DOMAIN: chaos.lp.devcluster.openshift.com
50+
COMPUTE_NODE_TYPE: m5.metal
51+
CONTAINER_ETCD_RECOVERY_TIME: "120"
52+
ENABLE_ES: "false"
53+
LPC_LP_CNV__VM__REPLICA_COUNT: "3"
54+
LPC_LP_CNV__VM__WAIT_TIMEOUT: 30m
55+
TELEMETRY_GROUP: ocp4.19-nightly--cnv-4.19-stable--aws
56+
test:
57+
- ref: redhat-lp-chaos-lp-cnv-vm-create
58+
- chain: redhat-chaos-krkn-hub-tests
59+
- ref: redhat-lp-chaos-lp-cnv-vm-check
60+
- ref: redhat-lp-chaos-lp-cnv-vm-clean
61+
workflow: redhat-lp-chaos-ocp-installer-aws-cnv
62+
timeout: 6h0m0s
63+
- as: krkn-hub-node-tests
64+
cron: 0 8 * * 1
65+
steps:
66+
cluster_profile: aws-lp-chaos
67+
env:
68+
BASE_DOMAIN: chaos.lp.devcluster.openshift.com
69+
COMPUTE_NODE_TYPE: m5.metal
70+
ENABLE_ES: "false"
71+
LPC_LP_CNV__VM__WAIT_TIMEOUT: 30m
72+
NODE_OUTAGE_TIMEOUT: "1200"
73+
POWER_OUTAGE_TIMEOUT: "1200"
74+
TELEMETRY_GROUP: ocp4.19-nightly--cnv-4.19-stable--aws
75+
test:
76+
- ref: redhat-lp-chaos-lp-cnv-vm-create
77+
- chain: redhat-chaos-krkn-hub-node-tests
78+
- ref: redhat-lp-chaos-lp-cnv-vm-check
79+
- ref: redhat-lp-chaos-lp-cnv-vm-clean
80+
workflow: redhat-lp-chaos-ocp-installer-aws-cnv
81+
timeout: 8h0m0s
82+
- as: kubevirt-outage
83+
cron: 0 4 * * 1
84+
steps:
85+
cluster_profile: aws-lp-chaos
86+
env:
87+
BASE_DOMAIN: chaos.lp.devcluster.openshift.com
88+
COMPUTE_NODE_TYPE: m5.metal
89+
ENABLE_ES: "false"
90+
LPC_LP_CNV__VM__WAIT_TIMEOUT: 30m
91+
TARGET_NAMESPACE: cnv-chaos-test-ns
92+
TELEMETRY_GROUP: ocp4.19-nightly--cnv-4.19-stable--aws
93+
test:
94+
- ref: redhat-lp-chaos-lp-cnv-vm-create
95+
- ref: redhat-chaos-kubevirt-outage
96+
- ref: redhat-lp-chaos-lp-cnv-vm-check
97+
- ref: redhat-lp-chaos-lp-cnv-vm-clean
98+
workflow: redhat-lp-chaos-ocp-installer-aws-cnv
99+
timeout: 4h0m0s
100+
zz_generated_metadata:
101+
branch: main
102+
org: redhat-chaos
103+
repo: lp-chaos
104+
variant: ocp4.19-nightly--cnv-4.19-stable--aws
Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
periodics:
2+
- agent: kubernetes
3+
cluster: build11
4+
cron: 0 8 * * 1
5+
decorate: true
6+
decoration_config:
7+
skip_cloning: true
8+
timeout: 8h0m0s
9+
extra_refs:
10+
- base_ref: main
11+
org: redhat-chaos
12+
repo: lp-chaos
13+
labels:
14+
ci-operator.openshift.io/cloud: aws
15+
ci-operator.openshift.io/cloud-cluster-profile: aws-lp-chaos
16+
ci-operator.openshift.io/variant: ocp4.19-nightly--cnv-4.19-stable--aws
17+
ci.openshift.io/generator: prowgen
18+
job-release: "4.19"
19+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
20+
name: periodic-ci-redhat-chaos-lp-chaos-main-ocp4.19-nightly--cnv-4.19-stable--aws-krkn-hub-node-tests
21+
spec:
22+
containers:
23+
- args:
24+
- --gcs-upload-secret=/secrets/gcs/service-account.json
25+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
26+
- --lease-server-credentials-file=/etc/boskos/credentials
27+
- --report-credentials-file=/etc/report/credentials
28+
- --secret-dir=/secrets/ci-pull-credentials
29+
- --target=krkn-hub-node-tests
30+
- --variant=ocp4.19-nightly--cnv-4.19-stable--aws
31+
command:
32+
- ci-operator
33+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
34+
imagePullPolicy: Always
35+
name: ""
36+
resources:
37+
requests:
38+
cpu: 10m
39+
volumeMounts:
40+
- mountPath: /etc/boskos
41+
name: boskos
42+
readOnly: true
43+
- mountPath: /secrets/ci-pull-credentials
44+
name: ci-pull-credentials
45+
readOnly: true
46+
- mountPath: /secrets/gcs
47+
name: gcs-credentials
48+
readOnly: true
49+
- mountPath: /secrets/manifest-tool
50+
name: manifest-tool-local-pusher
51+
readOnly: true
52+
- mountPath: /etc/pull-secret
53+
name: pull-secret
54+
readOnly: true
55+
- mountPath: /etc/report
56+
name: result-aggregator
57+
readOnly: true
58+
serviceAccountName: ci-operator
59+
volumes:
60+
- name: boskos
61+
secret:
62+
items:
63+
- key: credentials
64+
path: credentials
65+
secretName: boskos-credentials
66+
- name: ci-pull-credentials
67+
secret:
68+
secretName: ci-pull-credentials
69+
- name: manifest-tool-local-pusher
70+
secret:
71+
secretName: manifest-tool-local-pusher
72+
- name: pull-secret
73+
secret:
74+
secretName: registry-pull-credentials
75+
- name: result-aggregator
76+
secret:
77+
secretName: result-aggregator
78+
- agent: kubernetes
79+
cluster: build11
80+
cron: 0 22 * * 0
81+
decorate: true
82+
decoration_config:
83+
skip_cloning: true
84+
timeout: 6h0m0s
85+
extra_refs:
86+
- base_ref: main
87+
org: redhat-chaos
88+
repo: lp-chaos
89+
labels:
90+
ci-operator.openshift.io/cloud: aws
91+
ci-operator.openshift.io/cloud-cluster-profile: aws-lp-chaos
92+
ci-operator.openshift.io/variant: ocp4.19-nightly--cnv-4.19-stable--aws
93+
ci.openshift.io/generator: prowgen
94+
job-release: "4.19"
95+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
96+
name: periodic-ci-redhat-chaos-lp-chaos-main-ocp4.19-nightly--cnv-4.19-stable--aws-krkn-hub-tests
97+
spec:
98+
containers:
99+
- args:
100+
- --gcs-upload-secret=/secrets/gcs/service-account.json
101+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
102+
- --lease-server-credentials-file=/etc/boskos/credentials
103+
- --report-credentials-file=/etc/report/credentials
104+
- --secret-dir=/secrets/ci-pull-credentials
105+
- --target=krkn-hub-tests
106+
- --variant=ocp4.19-nightly--cnv-4.19-stable--aws
107+
command:
108+
- ci-operator
109+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
110+
imagePullPolicy: Always
111+
name: ""
112+
resources:
113+
requests:
114+
cpu: 10m
115+
volumeMounts:
116+
- mountPath: /etc/boskos
117+
name: boskos
118+
readOnly: true
119+
- mountPath: /secrets/ci-pull-credentials
120+
name: ci-pull-credentials
121+
readOnly: true
122+
- mountPath: /secrets/gcs
123+
name: gcs-credentials
124+
readOnly: true
125+
- mountPath: /secrets/manifest-tool
126+
name: manifest-tool-local-pusher
127+
readOnly: true
128+
- mountPath: /etc/pull-secret
129+
name: pull-secret
130+
readOnly: true
131+
- mountPath: /etc/report
132+
name: result-aggregator
133+
readOnly: true
134+
serviceAccountName: ci-operator
135+
volumes:
136+
- name: boskos
137+
secret:
138+
items:
139+
- key: credentials
140+
path: credentials
141+
secretName: boskos-credentials
142+
- name: ci-pull-credentials
143+
secret:
144+
secretName: ci-pull-credentials
145+
- name: manifest-tool-local-pusher
146+
secret:
147+
secretName: manifest-tool-local-pusher
148+
- name: pull-secret
149+
secret:
150+
secretName: registry-pull-credentials
151+
- name: result-aggregator
152+
secret:
153+
secretName: result-aggregator
154+
- agent: kubernetes
155+
cluster: build11
156+
cron: 0 4 * * 1
157+
decorate: true
158+
decoration_config:
159+
skip_cloning: true
160+
timeout: 4h0m0s
161+
extra_refs:
162+
- base_ref: main
163+
org: redhat-chaos
164+
repo: lp-chaos
165+
labels:
166+
ci-operator.openshift.io/cloud: aws
167+
ci-operator.openshift.io/cloud-cluster-profile: aws-lp-chaos
168+
ci-operator.openshift.io/variant: ocp4.19-nightly--cnv-4.19-stable--aws
169+
ci.openshift.io/generator: prowgen
170+
job-release: "4.19"
171+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
172+
name: periodic-ci-redhat-chaos-lp-chaos-main-ocp4.19-nightly--cnv-4.19-stable--aws-kubevirt-outage
173+
spec:
174+
containers:
175+
- args:
176+
- --gcs-upload-secret=/secrets/gcs/service-account.json
177+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
178+
- --lease-server-credentials-file=/etc/boskos/credentials
179+
- --report-credentials-file=/etc/report/credentials
180+
- --secret-dir=/secrets/ci-pull-credentials
181+
- --target=kubevirt-outage
182+
- --variant=ocp4.19-nightly--cnv-4.19-stable--aws
183+
command:
184+
- ci-operator
185+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
186+
imagePullPolicy: Always
187+
name: ""
188+
resources:
189+
requests:
190+
cpu: 10m
191+
volumeMounts:
192+
- mountPath: /etc/boskos
193+
name: boskos
194+
readOnly: true
195+
- mountPath: /secrets/ci-pull-credentials
196+
name: ci-pull-credentials
197+
readOnly: true
198+
- mountPath: /secrets/gcs
199+
name: gcs-credentials
200+
readOnly: true
201+
- mountPath: /secrets/manifest-tool
202+
name: manifest-tool-local-pusher
203+
readOnly: true
204+
- mountPath: /etc/pull-secret
205+
name: pull-secret
206+
readOnly: true
207+
- mountPath: /etc/report
208+
name: result-aggregator
209+
readOnly: true
210+
serviceAccountName: ci-operator
211+
volumes:
212+
- name: boskos
213+
secret:
214+
items:
215+
- key: credentials
216+
path: credentials
217+
secretName: boskos-credentials
218+
- name: ci-pull-credentials
219+
secret:
220+
secretName: ci-pull-credentials
221+
- name: manifest-tool-local-pusher
222+
secret:
223+
secretName: manifest-tool-local-pusher
224+
- name: pull-secret
225+
secret:
226+
secretName: registry-pull-credentials
227+
- name: result-aggregator
228+
secret:
229+
secretName: result-aggregator

ci-operator/jobs/redhat-chaos/lp-chaos/redhat-chaos-lp-chaos-main-presubmits.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
presubmits:
22
redhat-chaos/lp-chaos:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
- ^main-
8+
cluster: build09
9+
context: ci/prow/ocp4.19-nightly--cnv-4.19-stable--aws-images
10+
decorate: true
11+
decoration_config:
12+
skip_cloning: true
13+
labels:
14+
ci-operator.openshift.io/variant: ocp4.19-nightly--cnv-4.19-stable--aws
15+
ci.openshift.io/generator: prowgen
16+
job-release: "4.19"
17+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
18+
name: pull-ci-redhat-chaos-lp-chaos-main-ocp4.19-nightly--cnv-4.19-stable--aws-images
19+
rerun_command: /test ocp4.19-nightly--cnv-4.19-stable--aws-images
20+
spec:
21+
containers:
22+
- args:
23+
- --gcs-upload-secret=/secrets/gcs/service-account.json
24+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
25+
- --report-credentials-file=/etc/report/credentials
26+
- --target=[images]
27+
- --variant=ocp4.19-nightly--cnv-4.19-stable--aws
28+
command:
29+
- ci-operator
30+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
31+
imagePullPolicy: Always
32+
name: ""
33+
resources:
34+
requests:
35+
cpu: 10m
36+
volumeMounts:
37+
- mountPath: /secrets/gcs
38+
name: gcs-credentials
39+
readOnly: true
40+
- mountPath: /secrets/manifest-tool
41+
name: manifest-tool-local-pusher
42+
readOnly: true
43+
- mountPath: /etc/pull-secret
44+
name: pull-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: result-aggregator
58+
secret:
59+
secretName: result-aggregator
60+
trigger: (?m)^/test( | .* )ocp4.19-nightly--cnv-4.19-stable--aws-images,?($|\s.*)
361
- agent: kubernetes
462
always_run: false
563
branches:

0 commit comments

Comments
 (0)