Help with autoinstall

Jerry Geis jerry.geis at gmail.com
Fri Jul 30 18:18:33 UTC 2021


On Fri, Jul 30, 2021 at 1:51 PM Jerry Geis <jerry.geis at gmail.com> wrote:

>
>
> On Thu, Jul 29, 2021 at 8:27 AM Jerry Geis <jerry.geis at gmail.com> wrote:
>
>> I have been using autoinstall for a while now... So 'seems' everything is
>> working.
>>
>> 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.
>>
>> 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.
>>
>> Why am I getting the language screen ???
>>
>> Thanks,
>>
>> jerry
>>
>
>
>
> I was able to grab more data...
> My grub boot line is :
> root=/dev/ram0 ramdisk_size=1500000 LS_mediacontroller nouveau.modeset=0
> fsck.mode=skip autoinstall 'ds=nocloud-net;s=http://MYIP/autoinstall/'
> ip=dhcp url=http://MYIP/autoinstall/ubuntu-20.04.2-live-server-amd64.iso
> cloud-config-url=http://MYIP/autoinstall/meta-data  --- splash
> nouveau.modeset=0
>
> 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 ???
>
> 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.
>
> 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).
>
> /var/lib/cloud/seed/nocloud/user-data is an empty file also.
>
> Any thoughts/ suggestions ?
>
> Jerry
>




I collected data from a GOOD autoinstall (same files) and a BAD autoinstall
(same files different machine)

Here is the cloud-init.log from the GOOD machine:
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.
2021-07-30 17:55:47,201 - main.py[DEBUG]: retrieving url '
http://MYIP/autoinstall/meta-data' 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'))
2021-07-30 17:55:47,201 - main.py[DEBUG]: Closing stdin.
2021-07-30 17:55:47,203 - util.py[DEBUG]: Writing to
/var/log/cloud-init.log - ab: [644] 0 bytes
2021-07-30 17:55:47,203 - util.py[DEBUG]: Changing the ownership of
/var/log/cloud-init.log to 104:4
2021-07-30 17:55:47,203 - util.py[DEBUG]: Attempting to remove
/var/lib/cloud/instance/boot-finished
2021-07-30 17:55:47,203 - util.py[DEBUG]: Attempting to remove
/var/lib/cloud/data/no-net
2021-07-30 17:55:47,203 - handlers.py[DEBUG]: start:
init-local/check-cache: attempting to read from cache [check]
2021-07-30 17:55:47,204 - util.py[DEBUG]: Reading from
/var/lib/cloud/instance/obj.pkl (quiet=False)
2021-07-30 17:55:47,204 - stages.py[DEBUG]: no cache found
2021-07-30 17:55:47,204 - handlers.py[DEBUG]: finish:
init-local/check-cache: SUCCESS: no cache found
2021-07-30 17:55:47,204 - util.py[DEBUG]: Attempting to remove
/var/lib/cloud/instance
2021-07-30 17:55:47,207 - stages.py[DEBUG]: Using distro class <class
'cloudinit.distros.ubuntu.Distro'>
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']
2021-07-30 17:55:47,211 - __init__.py[DEBUG]: Searching for local data
source in: ['DataSourceNoCloud']
2021-07-30 17:55:47,211 - handlers.py[DEBUG]: start:
init-local/search-NoCloud: searching for local data from DataSourceNoCloud
2021-07-30 17:55:47,211 - __init__.py[DEBUG]: Seeing if we can get any data
from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'>
2021-07-30 17:55:47,211 - __init__.py[DEBUG]: Update datasource metadata
and network config due to events: New instance first boot
2021-07-30 17:55:47,211 - dmi.py[DEBUG]: querying dmi data
/sys/class/dmi/id/product_serial
2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/user-data (quiet=False)
2021-07-30 17:55:47,211 - util.py[DEBUG]: Read 0 bytes from
/var/lib/cloud/seed/nocloud/user-data
2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/meta-data (quiet=False)
2021-07-30 17:55:47,211 - util.py[DEBUG]: Read 0 bytes from
/var/lib/cloud/seed/nocloud/meta-data
2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/vendor-data (quiet=False)
2021-07-30 17:55:47,211 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/network-config (quiet=False)
2021-07-30 17:55:47,211 - DataSourceNoCloud.py[DEBUG]: Using seeded data
from /var/lib/cloud/seed/nocloud
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'>,)
2021-07-30 17:55:47,211 - util.py[DEBUG]: loaded blob returned None,
returning default.
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)
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)
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)
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)
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)
2021-07-30 17:55:47,243 - DataSourceNoCloud.py[DEBUG]: Seed from
http://MYIP/autoinstall/ not supported by DataSourceNoCloud
[seed=None][dsmode=net]
2021-07-30 17:55:47,244 - __init__.py[DEBUG]: Datasource DataSourceNoCloud
[seed=None][dsmode=net] not updated for events: New instance first boot
2021-07-30 17:55:47,244 - handlers.py[DEBUG]: finish:
init-local/search-NoCloud: SUCCESS: no local data found from
DataSourceNoCloud


here is the one from the BAD machien that stops at Language selection:
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.
2021-07-30 18:02:41,403 - main.py[DEBUG]: retrieving url '
http://MYIP/autoinstall/meta-data' 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'))
2021-07-30 18:02:41,403 - main.py[DEBUG]: Closing stdin.
2021-07-30 18:02:41,405 - util.py[DEBUG]: Writing to
/var/log/cloud-init.log - ab: [644] 0 bytes
2021-07-30 18:02:41,405 - util.py[DEBUG]: Changing the ownership of
/var/log/cloud-init.log to 104:4
2021-07-30 18:02:41,405 - util.py[DEBUG]: Attempting to remove
/var/lib/cloud/instance/boot-finished
2021-07-30 18:02:41,405 - util.py[DEBUG]: Attempting to remove
/var/lib/cloud/data/no-net
2021-07-30 18:02:41,405 - handlers.py[DEBUG]: start:
init-local/check-cache: attempting to read from cache [check]
2021-07-30 18:02:41,405 - util.py[DEBUG]: Reading from
/var/lib/cloud/instance/obj.pkl (quiet=False)
2021-07-30 18:02:41,405 - stages.py[DEBUG]: no cache found
2021-07-30 18:02:41,406 - handlers.py[DEBUG]: finish:
init-local/check-cache: SUCCESS: no cache found
2021-07-30 18:02:41,406 - util.py[DEBUG]: Attempting to remove
/var/lib/cloud/instance
2021-07-30 18:02:41,410 - stages.py[DEBUG]: Using distro class <class
'cloudinit.distros.ubuntu.Distro'>
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']
2021-07-30 18:02:41,414 - __init__.py[DEBUG]: Searching for local data
source in: ['DataSourceNoCloud']
2021-07-30 18:02:41,414 - handlers.py[DEBUG]: start:
init-local/search-NoCloud: searching for local data from DataSourceNoCloud
2021-07-30 18:02:41,414 - __init__.py[DEBUG]: Seeing if we can get any data
from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'>
2021-07-30 18:02:41,414 - __init__.py[DEBUG]: Update datasource metadata
and network config due to events: New instance first boot
2021-07-30 18:02:41,414 - dmi.py[DEBUG]: querying dmi data
/sys/class/dmi/id/product_serial
2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/user-data (quiet=False)
2021-07-30 18:02:41,414 - util.py[DEBUG]: Read 0 bytes from
/var/lib/cloud/seed/nocloud/user-data
2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/meta-data (quiet=False)
2021-07-30 18:02:41,414 - util.py[DEBUG]: Read 0 bytes from
/var/lib/cloud/seed/nocloud/meta-data
2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/vendor-data (quiet=False)
2021-07-30 18:02:41,414 - util.py[DEBUG]: Reading from
/var/lib/cloud/seed/nocloud/network-config (quiet=False)
2021-07-30 18:02:41,415 - DataSourceNoCloud.py[DEBUG]: Using seeded data
from /var/lib/cloud/seed/nocloud
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'>,)
2021-07-30 18:02:41,415 - util.py[DEBUG]: loaded blob returned None,
returning default.
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)
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)
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)
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)
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)
2021-07-30 18:02:41,448 - util.py[DEBUG]: Reading from /etc/hosts
(quiet=False)
2021-07-30 18:02:41,448 - util.py[DEBUG]: Read 250 bytes from /etc/hosts
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
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




So in the BAD one it does NOT ask for the user-data yaml

This is where in the GOOD example its looking/asking for the user-data:
2021-07-30 17:55:47,243 - DataSourceNoCloud.py[DEBUG]: Seed from
http://MYIP/autoinstall/ not supported by DataSourceNoCloud
[seed=None][dsmode=net]
2021-07-30 17:55:47,244 - __init__.py[DEBUG]: Datasource DataSourceNoCloud
[seed=None][dsmode=net] not updated for events: New instance first boot

Why are the exact same files etc not working on the BAD machine ?
Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210730/f170b098/attachment.html>


More information about the ubuntu-users mailing list