Fix edge case + additional debugging 58/8158/7 v6.0 v6.0.4
authorAdam Israel <adam.israel@canonical.com>
Tue, 12 Nov 2019 17:37:57 +0000 (09:37 -0800)
committerAdam Israel <adam.israel@canonical.com>
Tue, 12 Nov 2019 23:28:40 +0000 (15:28 -0800)
commit13a999650c017ed1fa936860378ddd77eb8b12ca
tree8255d1abb3d825eb9872363070be17382299bc66
parent83f8ee21a5531654e23bea213047c74045b6c1b3
Fix edge case + additional debugging

An edge case was detected and fixed: we can't guarantee that the cloud
image used will have an updated apt cache, so run `apt-get update`
before attempting to install the iptables-persistent package.

Second, additional debug output was added to trace an error that's only
been reproduced in the rc1 LCM image published to hub.docker.com.
Building the image locally have been unable to reproduce the error.

Change-Id: I333bedab8d754102eb13b9da06ee278b6cf0d6ad
Signed-off-by: Adam Israel <adam.israel@canonical.com>
n2vc/provisioner.py