So that was not quite right. From the machine agent log of the host, I can see that container provisioner is failing because it can't install lxd-client from the archives:
""" E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lxd/lxd-client_2.0.11-0ubuntu1~16.04.2_amd64.deb 404 Not Found [IP: 201:67c:1360:8001::17 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? """
Then in cloud-init-output.log:
""" Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'archive.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists... """
I still think we should short-circuit the removal of containers, but the more important issue here is to stop apt flaking out.
So that was not quite right. From the machine agent log of the host, I can see that container provisioner is failing because it can't install lxd-client from the archives:
""" archive. ubuntu. com/ubuntu/ pool/main/ l/lxd/lxd- client_ 2.0.11- 0ubuntu1~ 16.04.2_ amd64.deb 404 Not Found [IP: 201:67c: 1360:8001: :17 80]
E: Failed to fetch http://
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
"""
Then in cloud-init- output. log:
""" security. ubuntu. com/ubuntu xenial-security InRelease ubuntu. com' archive. ubuntu. com/ubuntu xenial InRelease ubuntu. com' archive. ubuntu. com/ubuntu xenial-updates InRelease ubuntu. com' archive. ubuntu. com/ubuntu xenial-backports InRelease ubuntu. com' archive. ubuntu. com/ubuntu/ dists/xenial/ InRelease Temporary failure resolving 'archive. ubuntu. com' archive. ubuntu. com/ubuntu/ dists/xenial- updates/ InRelease Temporary failure resolving 'archive. ubuntu. com' archive. ubuntu. com/ubuntu/ dists/xenial- backports/ InRelease Temporary failure resolving 'archive. ubuntu. com' security. ubuntu. com/ubuntu/ dists/xenial- security/ InRelease Temporary failure resolving 'security. ubuntu. com'
Err:1 http://
Temporary failure resolving 'security.
Err:2 http://
Temporary failure resolving 'archive.
Err:3 http://
Temporary failure resolving 'archive.
Err:4 http://
Temporary failure resolving 'archive.
Reading package lists...
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
"""
I still think we should short-circuit the removal of containers, but the more important issue here is to stop apt flaking out.