This is a temporary fix. Jenkins slave can't bootstrap a bionic series right now.
Change-Id: I28da224c093a102a964f15bcbd7fadfca771b9af
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit
7ca1ec63172ee3e98ce9ad56bc925b90ef771b49)
if ! juju show-controller $OSM_STACK_NAME &> /dev/null; then
# Not found created, create the controller
sudo usermod -a -G lxd ${USER}
- sg lxd -c "juju bootstrap $OSM_VCA_CLOUDNAME $OSM_STACK_NAME"
+ sg lxd -c "juju bootstrap --bootstrap-series=xenial $OSM_VCA_CLOUDNAME $OSM_STACK_NAME"
fi
[ $(juju controllers | awk "/^${OSM_STACK_NAME}[\*| ]/{print $1}"|wc -l) -eq 1 ] || FATAL "Juju installation failed"
}