<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 30, 2021 at 1:51 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com">jerry.geis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 29, 2021 at 8:27 AM Jerry Geis <<a href="mailto:jerry.geis@gmail.com" target="_blank">jerry.geis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have been using autoinstall for a while now... So 'seems' everything is working.<div><br></div><div>however - I am working on this one machine - I'm using the same script to setup GRUB, and reboot, and start installing Ubunutu 20.04. However on this machine it stops autoinstall and shows me the Language screen.</div><div><br></div><div>So i got the console and change to the /var/log/installer directory - "grep -i fail" and all I see are references to subiquity/Refresh/check_for_update: FAIL: cancelled.</div><div><br></div><div>Why am I getting the language screen ???</div><div><br></div><div>Thanks,</div><div><br></div><div>jerry</div></div></blockquote><div><br></div><div><br></div><div><br></div><div>I was able to grab more data...</div><div>My grub boot line is :</div><div>root=/dev/ram0 ramdisk_size=1500000 LS_mediacontroller nouveau.modeset=0 fsck.mode=skip autoinstall 'ds=nocloud-net;s=<a href="http://MYIP/autoinstall/" target="_blank">http://MYIP/autoinstall/</a>' ip=dhcp url=<a href="http://MYIP/autoinstall/ubuntu-20.04.2-live-server-amd64.iso" target="_blank">http://MYIP/autoinstall/ubuntu-20.04.2-live-server-amd64.iso</a> cloud-config-url=<a href="http://MYIP/autoinstall/meta-data" target="_blank">http://MYIP/autoinstall/meta-data</a>  --- splash nouveau.modeset=0 </div><div><br></div><div>In the cloud-init.log file I can see it download the iso file, I can see it download the meta-data file (which is 0 length as suggested), I do not see it download or ask for the user-data file ??? </div><div><br></div><div>I use this "same" command(s) to do a number of machines to remotely install Ubuntu 20.04 - this one is not working I'm trying to find out why.</div><div><br></div><div>So looks like autoinstall begins  - but exists because there is not data. (the file is present on my server and has all my commands just like I have used before).</div><div><br></div><div>/var/lib/cloud/seed/nocloud/user-data is an empty file also.</div><div><br></div><div>Any thoughts/ suggestions ? </div><div><br></div><div>Jerry</div></div></div></blockquote><div><br></div><div><br></div><div><br></div><div><br></div><div>I collected data from a GOOD autoinstall (same files) and a BAD autoinstall (same files different machine) </div><div><br></div><div>Here is the cloud-init.log from the GOOD machine:</div>2021-07-30 17:55:47,201 - util.py[DEBUG]: Cloud-init v. 20.4.1-0ubuntu1~20.04.1 running 'init-local' at Fri, 30 Jul 2021 17:55:47 +0000. Up 26.34 seconds.<br>2021-07-30 17:55:47,201 - main.py[DEBUG]: retrieving url '<a href="http://MYIP/autoinstall/meta-data">http://MYIP/autoinstall/meta-data</a>' failed: HTTPConnectionPool(host='MYIP', port=80): Max retries exceeded with url: /autoinstall/meta-data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9b0f0c790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))<br>2021-07-30 17:55:47,201 - main.py[DEBUG]: Closing stdin.<br>2021-07-30 17:55:47,203 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes<br>2021-07-30 17:55:47,203 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4<br>2021-07-30 17:55:47,203 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished<br>2021-07-30 17:55:47,203 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net<br>2021-07-30 17:55:47,203 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]<br>2021-07-30 17:55:47,204 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)<br>2021-07-30 17:55:47,204 - stages.py[DEBUG]: no cache found<br>2021-07-30 17:55:47,204 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found<br>2021-07-30 17:55:47,204 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance<br>2021-07-30 17:55:47,207 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'><br>2021-07-30 17:55:47,207 - __init__.py[DEBUG]: Looking for data source in: ['NoCloud', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']<br>2021-07-30 17:55:47,211 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceNoCloud']<br>2021-07-30 17:55:47,211 - handlers.py[DEBUG]: start: init-local/search-NoCloud: searching for local data from DataSourceNoCloud<br>2021-07-30 17:55:47,211 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'><br>2021-07-30 17:55:47,211 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: New instance first boot<br>2021-07-30 17:55:47,211 - dmi.py[DEBUG]: querying dmi data /sys/class/dmi/id/product_serial<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/user-data (quiet=False)<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Read 0 bytes from /var/lib/cloud/seed/nocloud/user-data<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/meta-data (quiet=False)<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Read 0 bytes from /var/lib/cloud/seed/nocloud/meta-data<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/vendor-data (quiet=False)<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/network-config (quiet=False)<br>2021-07-30 17:55:47,211 - DataSourceNoCloud.py[DEBUG]: Using seeded data from /var/lib/cloud/seed/nocloud<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (<class 'dict'>,)<br>2021-07-30 17:55:47,211 - util.py[DEBUG]: loaded blob returned None, returning default.<br>2021-07-30 17:55:47,211 - subp.py[DEBUG]: Running command ['blkid', '-tTYPE=vfat', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 17:55:47,227 - subp.py[DEBUG]: Running command ['blkid', '-tTYPE=iso9660', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 17:55:47,232 - subp.py[DEBUG]: Running command ['blkid', '-tLABEL=CIDATA', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 17:55:47,236 - subp.py[DEBUG]: Running command ['blkid', '-tLABEL=cidata', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 17:55:47,240 - subp.py[DEBUG]: Running command ['blkid', '-tLABEL_FATBOOT=cidata', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 17:55:47,243 - DataSourceNoCloud.py[DEBUG]: Seed from <a href="http://MYIP/autoinstall/">http://MYIP/autoinstall/</a> not supported by DataSourceNoCloud [seed=None][dsmode=net]<br>2021-07-30 17:55:47,244 - __init__.py[DEBUG]: Datasource DataSourceNoCloud [seed=None][dsmode=net] not updated for events: New instance first boot<br>2021-07-30 17:55:47,244 - handlers.py[DEBUG]: finish: init-local/search-NoCloud: SUCCESS: no local data found from DataSourceNoCloud<br><div><br></div><div><br></div><div>here is the one from the BAD machien that stops at Language selection:</div>021-07-30 18:02:41,403 - util.py[DEBUG]: Cloud-init v. 20.4.1-0ubuntu1~20.04.1 running 'init-local' at Fri, 30 Jul 2021 18:02:41 +0000. Up 25.53 seconds.<br>2021-07-30 18:02:41,403 - main.py[DEBUG]: retrieving url '<a href="http://MYIP/autoinstall/meta-data">http://MYIP/autoinstall/meta-data</a>' failed: HTTPConnectionPool(host='MYIP', port=80): Max retries exceeded with url: /autoinstall/meta-data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fef44fa6790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))<br>2021-07-30 18:02:41,403 - main.py[DEBUG]: Closing stdin.<br>2021-07-30 18:02:41,405 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes<br>2021-07-30 18:02:41,405 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4<br>2021-07-30 18:02:41,405 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished<br>2021-07-30 18:02:41,405 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net<br>2021-07-30 18:02:41,405 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]<br>2021-07-30 18:02:41,405 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)<br>2021-07-30 18:02:41,405 - stages.py[DEBUG]: no cache found<br>2021-07-30 18:02:41,406 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found<br>2021-07-30 18:02:41,406 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance<br>2021-07-30 18:02:41,410 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'><br>2021-07-30 18:02:41,410 - __init__.py[DEBUG]: Looking for data source in: ['NoCloud', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']<br>2021-07-30 18:02:41,414 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceNoCloud']<br>2021-07-30 18:02:41,414 - handlers.py[DEBUG]: start: init-local/search-NoCloud: searching for local data from DataSourceNoCloud<br>2021-07-30 18:02:41,414 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'><br>2021-07-30 18:02:41,414 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: New instance first boot<br>2021-07-30 18:02:41,414 - dmi.py[DEBUG]: querying dmi data /sys/class/dmi/id/product_serial<br>2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/user-data (quiet=False)<br>2021-07-30 18:02:41,414 - util.py[DEBUG]: Read 0 bytes from /var/lib/cloud/seed/nocloud/user-data<br>2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/meta-data (quiet=False)<br>2021-07-30 18:02:41,414 - util.py[DEBUG]: Read 0 bytes from /var/lib/cloud/seed/nocloud/meta-data<br>2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/vendor-data (quiet=False)<br>2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/nocloud/network-config (quiet=False)<br>2021-07-30 18:02:41,415 - DataSourceNoCloud.py[DEBUG]: Using seeded data from /var/lib/cloud/seed/nocloud<br>2021-07-30 18:02:41,415 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (<class 'dict'>,)<br>2021-07-30 18:02:41,415 - util.py[DEBUG]: loaded blob returned None, returning default.<br>2021-07-30 18:02:41,415 - subp.py[DEBUG]: Running command ['blkid', '-tTYPE=vfat', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 18:02:41,436 - subp.py[DEBUG]: Running command ['blkid', '-tTYPE=iso9660', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 18:02:41,440 - subp.py[DEBUG]: Running command ['blkid', '-tLABEL=CIDATA', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 18:02:41,443 - subp.py[DEBUG]: Running command ['blkid', '-tLABEL=cidata', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 18:02:41,445 - subp.py[DEBUG]: Running command ['blkid', '-tLABEL_FATBOOT=cidata', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)<br>2021-07-30 18:02:41,448 - util.py[DEBUG]: Reading from /etc/hosts (quiet=False)<br>2021-07-30 18:02:41,448 - util.py[DEBUG]: Read 250 bytes from /etc/hosts<br>2021-07-30 18:02:41,449 - atomic_helper.py[DEBUG]: Atomically writing to file /run/cloud-init/instance-data-sensitive.json (via temporary file /run/cloud-init/tmpq7d8y2dd) - w: [600] 5038 bytes/chars<br>2021-07-30 18:02:41,449 - atomic_helper.py[DEBUG]: Atomically writing to file /run/cloud-init/instance-data.json (via temporary file /run/cloud-init/tmpzpt15_bg) - w: [644] 1400 bytes/chars<br><div><br></div><div><br></div><div><br></div><div><br></div><div>So in the BAD one it does NOT ask for the user-data yaml  </div><div><br></div><div>This is where in the GOOD example its looking/asking for the user-data:</div><div>2021-07-30 17:55:47,243 - DataSourceNoCloud.py[DEBUG]: Seed from <a href="http://MYIP/autoinstall/">http://MYIP/autoinstall/</a> not supported by DataSourceNoCloud [seed=None][dsmode=net]<br>2021-07-30 17:55:47,244 - __init__.py[DEBUG]: Datasource DataSourceNoCloud [seed=None][dsmode=net] not updated for events: New instance first boot<br></div><div><br></div><div>Why are the exact same files etc not working on the BAD machine ?</div><div>Thanks</div><div><br></div><div>Jerry</div></div></div>