Pin juju version to 2.8.1 and minor fixes in installer 68/8968/1
authorDavid Garcia <david.garcia@canonical.com>
Tue, 26 May 2020 11:50:54 +0000 (13:50 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 26 May 2020 11:50:54 +0000 (13:50 +0200)
Change-Id: Icc13bf72b664bad928d90e040f2ce55608dad759
Signed-off-by: David Garcia <david.garcia@canonical.com>
docker/LCM/Dockerfile
docker/MON/Dockerfile
installers/charmed_install.sh
installers/full_install_osm.sh

index a18bcc9..de8a713 100644 (file)
@@ -47,7 +47,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git make
     && python3 -m pip install -U pip \
     && python3 -m pip install -U aiokafka lxml six enum34 \
     && python3 -m pip install requests \
-    && python3 -m pip install -U juju \
+    && python3 -m pip install -U "juju==2.8.1" \
     && rm -rf /var/lib/apt/lists/*
 
 # RUN git clone https://osm.etsi.org/gerrit/osm/N2VC.git \
index 9505034..22451fc 100644 (file)
@@ -61,7 +61,7 @@ RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add - \
                           python3-n2vc${N2VC_VERSION}
 
 
-RUN python3 -m pip install -U juju
+RUN python3 -m pip install -U "juju==2.8.1"
 
 COPY scripts/ scripts/
 
index eb809d1..78a1e12 100755 (executable)
@@ -236,7 +236,7 @@ function install_microstack() {
     ubuntu1604
     ssh-keygen -t rsa -N "" -f ~/.ssh/microstack
     microstack.openstack keypair create --public-key ~/.ssh/microstack.pub microstack
-    export OSM_HOSTNAME=`juju status --format yaml | yq r - applications.nbi-k8s.address`
+    export OSM_HOSTNAME=`juju status --format yaml | yq -r '.applications["nbi-k8s"].address'`
     osm vim-create --name microstack-site \
     --user admin \
     --password keystone \
index eaf79d7..01a1bb2 100755 (executable)
@@ -1417,7 +1417,7 @@ if [ -n "$CHARMED" ]; then
      echo
      echo "1. Get the NBI IP with the following command:"
      echo
-     echo "juju status --format yaml | yq r - applications.nbi-k8s.address"
+     echo "juju status --format yaml | yq -r '.applications[\"nbi-k8s\"].address'"
      echo
      echo "2. Create the OSM_HOSTNAME environment variable with the NBI IP"
      echo