Removing juju installation in the jenkins pipeline 30/11230/2
authoraktas <emin.aktas@ulakhaberlesme.com.tr>
Mon, 6 Sep 2021 10:23:35 +0000 (13:23 +0300)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 6 Oct 2021 08:49:52 +0000 (10:49 +0200)
With the new way of the juju accces in k8s_08 testsuite,
installing juju in the container is not needed.
k8s_08 testsuite changes: https://osm.etsi.org/gerrit/c/osm/tests/+/11104

Change-Id: I945aa6995241869926c5f76ec9c3eaf960576920
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
(cherry picked from commit 8e0504fac0d2280b41a07f1e4c124c376997c50d)

README.md
docker/Dockerfile
robot-systest/run_test.sh

index 1d7d5dc..68741c2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -64,9 +64,6 @@ OS_SDNC=<SDN_controller_in_sdncs_file>
 # K8S config file
 K8S_CREDENTIALS=<path_to_kubeconfig>
 
-# Juju data file
-JUJU_DATA=<path_to_jujudata>
-
 # The following set of environment variables will be used in host
 # of the robot framework. Not needed for docker execution
 
@@ -106,7 +103,6 @@ Volumes:
 * <path_to_clouds.yaml> [OPTIONAL]: It is the absolute path to the clouds.yaml file in the host
 * <path_to_sdncs.yaml> [OPTIONAL]: It is the absolute path to the sdncs.yaml file in the host
 * <path_to_kubeconfig> [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters
-* <path_to_jujudata> [OPTIONAL]: It is the jujudata file to be used for juju cli
 
 ```bash
 docker run --rm=true -t osmtests --env-file <env_file> \
@@ -114,7 +110,6 @@ docker run --rm=true -t osmtests --env-file <env_file> \
        -v <path_to_clouds.yaml>:/robot-systest/clouds.yaml \
        -v <path_to_sdncs.yaml>:/robot-systest/sdncs.yaml \
        -v <path_to_kubeconfig>:/root/.kube/config \
-       -v <path_to_jujudata>:/root/.local/share/juju \
        -o <osmclient_version> \
        -p <package_branch> \
        -t <testing_tags>
index a0740ff..b3b7860 100644 (file)
@@ -21,18 +21,7 @@ FROM ubuntu:18.04
 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \
     make python3 debhelper python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev cargo rustc
 
-# Installing Juju
-ARG JUJU_VERSION_M=2.8
-ARG JUJU_VERSION_R=11
-ARG JUJU_VERSION=$JUJU_VERSION_M.$JUJU_VERSION_R
-
-RUN curl --output /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz -LO \
-    https://launchpad.net/juju/$JUJU_VERSION_M/$JUJU_VERSION/+download/juju-$JUJU_VERSION-linux-amd64.tar.xz && \
-    tar -xf /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz -C /tmp && \
-    install /tmp/juju /usr/local/bin/juju && \
-    rm /tmp/juju /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz
-
-RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y 
+RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
 
 RUN python3 -m pip install -U pip
 
@@ -67,9 +56,6 @@ ENV ROBOT_REPORT_FOLDER=/robot-systest/reports
 # Kubeconfig file
 ENV K8S_CREDENTIALS=/root/.kube/config
 
-# Juju data folder
-ENV JUJU_DATA=/root/.local/share/juju
-
 # OSM RSA file
 ENV OSM_RSA_FILE=/root/osm_id_rsa
 
index 75cd0d4..dd77f8e 100755 (executable)
@@ -150,7 +150,6 @@ Usage:
             -v <path_to_reports>:/reports osmtests \\
             -v <path_to_clouds.yaml>:/robot-systest/clouds.yaml \\
             -v <path_to_kubeconfig>:/root/.kube/config \\
-            -v <path_to_jujudata>:/root/.local/share/juju \\
             -o <osmclient_version> \\
             -p <package_branch> \\
             -t <testing_tags>
@@ -166,8 +165,7 @@ Options:
 Volumes:
         <path_to_reports> [OPTIONAL]: It is the absolute path to reports location in the host
         <path_to_clouds.yaml> [OPTIONAL]: It is the absolute path to the clouds.yaml file in the host
-        <path_to_kubeconfig> [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters
-        <path_to_jujudata> [OPTIONAL]: It is the jujudata file to be used for juju cli"
+        <path_to_kubeconfig> [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters"
 
             exit 0
             ;;