Fixed some rally, rally-plugins installation commands
Related-PROD: PROD-37187
Change-Id: Ie6ec5efbc7cf4b5caed7add80cb05ac76caa7d3c
(cherry picked from commit 001ba9b6b7a7f99050b08c0a556f14ff4bb8ccf7)
diff --git a/k8s/docker-mos-rally b/k8s/docker-mos-rally
index c2d5406..6d75636 100644
--- a/k8s/docker-mos-rally
+++ b/k8s/docker-mos-rally
@@ -1,4 +1,4 @@
-FROM xrally/xrally-openstack:2.1.0
+FROM xrally/xrally-openstack:2.1.0
LABEL maintainer="qa-ps@mirantis.com"
@@ -10,7 +10,10 @@
RUN git clone https://github.com/Mirantis/rally-plugins.git && \
cd rally-plugins/ && \
pip3 install . && \
- cd /rally
+ # since rally-plugins use v1beta1 API which is deprecated, downgrade kubernetes
+ pip3 install kubernetes==21.7.0 && \
+ cd /rally && \
+ rally plugin list | grep kubernetes
COPY ./rally-files/* /rally/rally-files/
diff --git a/k8s/workspace/create-rally-deployments.sh b/k8s/workspace/create-rally-deployments.sh
index 71a4041..e4f2043 100644
--- a/k8s/workspace/create-rally-deployments.sh
+++ b/k8s/workspace/create-rally-deployments.sh
@@ -7,9 +7,9 @@
exit 1
fi
-# Updating filder and file permissions
-kubectl exec -n qa-space --stdin rally -- sudo chown rally /artifacts
-kubectl exec -n qa-space --stdin rally -- sudo chown rally /rally/rally-files/*
+# Updating folder and file permissions
+kubectl exec -n qa-space --stdin rally -- sudo chown rally -R /artifacts
+kubectl exec -n qa-space --stdin rally -- sudo chown rally -R /rally/rally-files/
###
if [ ! -z $(kubectl exec -n qa-space --stdin rally -- rally env list | grep openstack | cut -d' ' -f2) ]; then