[10:55] <pasasap_> Hi. How to run script once at boot time? Put that script to /var/lib/cloud/scripts/per-instance ?
[15:19] <smoser> pasasap_, that should work,  yes.
[15:19] <smoser> it will have to exist in the image
[15:21] <pasasap_> I havent tested that, now I decided to use user-data.
[15:24] <pasasap_> https://thepasteb.in/p/r0hwE8gDVqDCK It is part of log. I have prepared ubuntu 16.04 image with cloud-init, openssh. Sometimes it cannot configure interfaces, sometimes it works. I dont know, maybe I have sth wrong configured.
[15:28] <smoser> pasasap_, can you get /var/log/cloud-init.log from inside ?
[15:28] <smoser> and /etc/network/interfaces* ?
[15:31] <pasasap_> I have deleted all files from /etc/network/interfaces.d/ with guestfish. In interfaces is only 'lo' interface.
[15:37] <pasasap_> "Max retries exceeded with url" Hmm, maybe should I wait ;'|
[15:48] <pasasap_> In Ubuntu should NetworkManager be enabled?
[15:48] <smoser> no
[15:48] <smoser> can you get that log file ?
[15:49] <smoser> paste it ?
[15:50] <pasasap_> I have waited and now it launch properly. So there should be too much http requests to metadata server.
[15:52] <smoser> well, i suspect something was not quite right, and if you can paste that log it'd be helpful.
[15:52] <smoser> just run
[15:52] <smoser> pastebinit /var/log/cloud-init.log
[15:54] <pasasap_> http://paste.ubuntu.com/24053660/
[15:55] <pasasap_> Hmm, so there can be sth wrong ;'|
[16:28] <rcj> smoser: just to check, with the cloud-init ds-identify changes we're limited to a single datasource specified via /var/lib/cloud/cloud.cfg.d/##-name.cfg, right?
[16:29] <rcj> Asking because I was just about to propose something on a partner call that would require support for 2 different data sources
[16:30] <rcj> OVF and NoCloud
[16:34] <smoser> rcj, if there is more than one, then it will filter out non-present sources.
[16:34] <rcj> smoser: great, so it will still work.  That's fantastic.  Thanks.
[16:35] <smoser> rcj, i dont know whaty ou mean.
[16:35] <smoser> if ds-identify runs and does not see a source (NoCloud) then it will remove it from the list.
[17:05] <pasasap_> Huh, I got official ubuntu xenial server image and this error still appears.
[17:30] <smoser> pasasap_, where are you running this ?
[17:30] <smoser> need some more info