Skip to content

Commit 8357cfc

Browse files
akrzoschaitanyaenr
authored andcommitted
Few small fixes related to pvc scale workload
1 parent 44febab commit 8357cfc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

docs/pvcscale.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The storageclass which will be used to allocated PVCs. It has to be present on c
117117

118118
### ACCESS_MODES
119119
Default: `ReadWriteOnce`
120-
`ACCESS_MODES` is access_mode for PVC inside Pod. This field does not affect the test itself and might be removed in the future.
120+
`ACCESS_MODES` is access_mode for PVC inside Pod. This field does not affect the test itself and might be removed in the future.
121121

122122
### Smoke test variables
123123

@@ -141,10 +141,11 @@ PVCSCALE_PAUSE=0
141141
PVCSCALE_STORAGE_SIZE="1Gi"
142142
PVCSCALE_STORAGECLASS="storgage_class_name"
143143
ACCESS_MODES="ReadWriteOnce"
144-
# adapt PUBLIC_KEY and PRIVATE_KEY to your needs
144+
# adapt PUBLIC_KEY and PRIVATE_KEY to your needs
145145
PUBLIC_KEY=~/.ssh/id_rsa.pub
146146
PRIVATE_KEY=~/.ssh/id_rsa
147147
echo "[orchestration]" > inventory
148+
echo "${ORCHESTRATION_HOST}" >> inventory
148149
```
149150

150151
After exporting above variables, execute test:
@@ -153,7 +154,7 @@ After exporting above variables, execute test:
153154
time ansible-playbook -v -i inventory workloads/workloads/pvcscale.yml
154155
```
155156

156-
### Test results
157+
### Test results
157158

158159
PVCScale test creates first the number of Pods specified in `PVCSCALE_MAXPODS` variable. Once all Pods are in `READY` state with PVC in `Bound` status, PVCScale test collects data for all Pods when they are started, and from this information we can then see how long it takes to start Pods from Pod1..PodN.
159160

workloads/templates/workload-pvcscale-script-cm.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ data:
334334
- name: persistentvolume
335335
mountPath: "/mnt/pvcmount"
336336
securityContext:
337-
apabilities: {}
337+
capabilities: {}
338338
privileged: false
339339
seLinuxOptions:
340340
level: s0:c9,c4

workloads/vars/pvcscale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ orchestration_user: "{{ lookup('env', 'ORCHESTRATION_USER')|default('root', true
1414
workload_image: "{{ lookup('env', 'WORKLOAD_IMAGE')|default('quay.io/openshift-scale/scale-ci-workload', true) }}"
1515

1616
# Use nodeselector to place workload job on specific node
17-
workload_job_node_selector: "{{ lookup('env', 'WORKLOAD_JOB_NODE_SELECTOR')|default('', true)|bool }}"
17+
workload_job_node_selector: "{{ lookup('env', 'WORKLOAD_JOB_NODE_SELECTOR')|default(true, true)|bool }}"
1818
# Tolerate taint on workload driver
1919
workload_job_taint: "{{ lookup('env', 'WORKLOAD_JOB_TAINT')|default(true, true)|bool }}"
2020
# Privileged job container
@@ -42,5 +42,5 @@ pvcscale_pod_image: "{{ lookup('env', 'PVCSCALE_POD_IMAGE')|default('quay.io/ope
4242
pvcscale_stepsize: "{{ lookup('env', 'PVCSCALE_STEPSIZE')|default(1, true)|int }}"
4343
pvcscale_pause: "{{ lookup('env', 'PVCSCALE_PAUSE')|default(0, true)|int }}"
4444
pvcscale_storage_size: "{{ lookup('env', 'PVCSCALE_STORAGE_SIZE')|default('1Gi',true) }}"
45-
pvcscale_storageclass: "{{ lookup('env', 'PVCSCALE_STORAGECLASS')|default('csi-rbd', true) }}"
45+
pvcscale_storageclass: "{{ lookup('env', 'PVCSCALE_STORAGECLASS')|default('', true) }}"
4646
access_modes: "{{ lookup('env', 'ACCESS_MODES')|default('ReadWriteOnce',true) }}"

0 commit comments

Comments
 (0)