Fix security context for glance rally tests

Also enable glance helm tests for gates.
Temporary replaces cirros url to mirror due to [0]

[0] https://bugs.launchpad.net/rally/+bug/1887705

Change-Id: I21ceba857c375c1de054e69cf84449e02881b0ce
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2020-07-14 18:43:45 -05:00 committed by Andrii Ostapenko
parent 61a61d9de1
commit f305793243
3 changed files with 11 additions and 2 deletions

View File

@ -91,6 +91,8 @@ spec:
readOnly: true
- name: rally-db
mountPath: /var/lib/rally
- name: rally-work
mountPath: /home/rally/.rally
{{ if $mounts_tests.volumeMounts }}{{ toYaml $mounts_tests.volumeMounts | indent 8 }}{{ end }}
volumes:
- name: pod-tmp
@ -105,5 +107,7 @@ spec:
defaultMode: 0555
- name: rally-db
emptyDir: {}
- name: rally-work
emptyDir: {}
{{ if $mounts_tests.volumes }}{{ toYaml $mounts_tests.volumes | indent 4 }}{{ end }}
{{- end }}

View File

@ -103,7 +103,8 @@ conf:
- args:
container_format: bare
disk_format: qcow2
image_location: http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
# NOTE(aostapenko) temporary location to work around https://bugs.launchpad.net/rally/+bug/1887705
image_location: https://artifactory.mirantis.com/artifactory/binary-prod-local/mirantis/external/images/cirros/0.3.5/cirros-0.3.5-x86_64-disk.img
runner:
concurrency: 1
times: 1
@ -115,7 +116,8 @@ conf:
- args:
container_format: bare
disk_format: qcow2
image_location: http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
# NOTE(aostapenko) temporary location to work around https://bugs.launchpad.net/rally/+bug/1887705
image_location: https://artifactory.mirantis.com/artifactory/binary-prod-local/mirantis/external/images/cirros/0.3.5/cirros-0.3.5-x86_64-disk.img
runner:
concurrency: 1
times: 1
@ -867,6 +869,7 @@ pod:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
glance_test:
runAsUser: 65500
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
affinity:

View File

@ -59,3 +59,5 @@ openstack service list
sleep 30 #NOTE(portdirect): Wait for ingress controller to update rules and restart Nginx
openstack image list
openstack image show 'Cirros 0.3.5 64-bit'
helm test glance --timeout 900