$ sleep 20
$ lxc exec b4 grep WARN /var/log/cloud-init.log
2017-11-28 16:49:12,251 - user_data.py[WARNING]: HTTPSConnectionPool(host='hastebin.com', port=443): Max retries exceeded with url: /raw/coladicuva (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f20736a4e80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) for url: https://hastebin.com/raw/coladicuva
Cloud-init can fail to download a url in '#include' for reasons such
as bug 1734167 but not represent that failure anywhere.
$ curl --silent https:/ /hastebin. com/raw/ coladicuva script- uptime
#!/bin/sh
cat /proc/uptime | tee /run/user-
$ lxc launch ubuntu-daily:bionic b4 "--config= user.user- data=#include https:/ /hastebin. com/raw/ coladicuva"
$ sleep 20 cloud-init. log py[WARNING] : HTTPSConnection Pool(host= 'hastebin. com', port=443): Max retries exceeded with url: /raw/coladicuva (Caused by NewConnectionEr ror('<urllib3. connection. VerifiedHTTPSCo nnection object at 0x7f20736a4e80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) for url: https:/ /hastebin. com/raw/ coladicuva
$ lxc exec b4 grep WARN /var/log/
2017-11-28 16:49:12,251 - user_data.
$ lxc exec b4 cat /run/cloud- init/result. json var/lib/ cloud/seed/ nocloud- net][dsmode= net]",
{
"v1": {
"datasource": "DataSourceNoCloud [seed=/
"errors": []
}
}
ProblemType: Bug g76243487- 0ubuntu1 ature: Ubuntu 4.13.0- 16.19-generic 4.13.4 ture: all 256color log-warnings: 2017-11-28 16:37:17,380 - user_data. py[WARNING] : HTTPConnectionP ool(host= 'smoser. brickies. net', port=80): Max retries exceeded with url: /ubuntu/ nocloud/ user-data (Caused by NewConnectionEr ror('<urllib3. connection. HTTPConnection object at 0x7f66a4f01f28>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) for url: http:// smoser. brickies. net/ubuntu/ nocloud/ user-data smoser. brickies. net/ubuntu/ nocloud/ user-data
DistroRelease: Ubuntu 18.04
Package: cloud-init 17.1-41-
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.8-0ubuntu2
Architecture: amd64
CloudName: NoCloud
Date: Tue Nov 28 16:38:49 2017
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-init-
user_data.txt: #include http://