Skip to content
Snippets Groups Projects
Commit 1dd7bdd8 authored by israelad's avatar israelad
Browse files

Fix itermittent error installing Juju


We originally made the decision to disable apt update and upgrades for
faster machine provisioning, but we've experienced the scenario where
the provisioning of a container will fail because the apt cache in the
lxd image is stale. This can cause the cloud-init used by Juju to get
stuck in a loop trying to install packages that no longer exist in the
Ubuntu Archive.

This patch enables the run of `apt-get update` when Juju provisions a
container. This will add some time to the provisioning process, but
ensures greater reliability in the process.

Signed-off-by: default avatarAdam Israel <adam.israel@canonical.com>
parent c3733e1c
No related branches found
Tags v1.0.0
No related merge requests found
......@@ -81,7 +81,7 @@ cp $HERE/update-lxd-image.sh /etc/cron.daily
INFO "Bootstrapping VCA"
juju bootstrap localhost osm \
--config default-series=xenial \
--config enable-os-refresh-update=false \
--config enable-os-refresh-update=true \
--config enable-os-upgrade=false \
--config apt-http-proxy=http://10.44.127.1:8000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment