Look at source - autoinstall not working
Jerry Geis
jerry.geis at gmail.com
Fri Aug 27 14:44:33 UTC 2021
On Fri, Aug 27, 2021 at 8:56 AM Jerry Geis <jerry.geis at gmail.com> wrote:
> How do I get a look at the source for autoinstall ?
> Thanks
>
> Jerry
>
Ok so once I found I had to UNCOMMENT the deb-src items in sources.list;
then apt update; then I could apt source cloud-init
This is the cloud-init that WORKS: (snippit)
2021-08-23 20:30:46,908 - util.py[DEBUG]: Attempting to load yaml from
string of length 0 with allowed root types (<class 'dict'>,)
2021-08-23 20:30:46,908 - util.py[DEBUG]: loaded blob returned None,
returning default.
2021-08-23 20:30:46,908 - subp.py[DEBUG]: Running command ['blkid',
'-tTYPE=vfat', '-odevice'] with allowed return codes [0, 2] (shell=False,
capture=True)
2021-08-23 20:30:46,924 - subp.py[DEBUG]: Running command ['blkid',
'-tTYPE=iso9660', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 20:30:46,927 - subp.py[DEBUG]: Running command ['blkid',
'-tLABEL=CIDATA', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 20:30:46,930 - subp.py[DEBUG]: Running command ['blkid',
'-tLABEL=cidata', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 20:30:46,933 - subp.py[DEBUG]: Running command ['blkid',
'-tLABEL_FATBOOT=cidata', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 20:30:46,936 - DataSourceNoCloud.py[DEBUG]: Seed from
http://devgeis.LayeredSolutionsInc.com/autoinstall/ not supported by
DataSourceNoCloud [seed=None][dsmode=net]
2021-08-23 20:30:46,936 - __init__.py[DEBUG]: Datasource DataSourceNoCloud
[seed=None][dsmode=net] not updated for events: New instance first boot
2021-08-23 20:30:46,936 - handlers.py[DEBUG]: finish:
init-local/search-NoCloud: SUCCESS: no local data found from
DataSourceNoCloud
2021-08-23 20:30:46,936 - main.py[DEBUG]: No local datasource found
2021-08-23 20:30:46,937 - util.py[DEBUG]: Reading from
/sys/class/net/lo/address (quiet=False)
2021-08-23 20:30:46,937 - util.py[DEBUG]: Read 18 bytes from
/sys/class/net/lo/address
This is the cloud-init that does not work:
2021-08-23 18:15:50,212 - subp.py[DEBUG]: Running command ['blkid',
'-tTYPE=vfat', '-odevice'] with allowed return codes [0, 2] (shell=False,
capture=True)
2021-08-23 18:15:50,287 - subp.py[DEBUG]: Running command ['blkid',
'-tTYPE=iso9660', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 18:15:50,299 - subp.py[DEBUG]: Running command ['blkid',
'-tLABEL=CIDATA', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 18:15:50,311 - subp.py[DEBUG]: Running command ['blkid',
'-tLABEL=cidata', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 18:15:50,324 - subp.py[DEBUG]: Running command ['blkid',
'-tLABEL_FATBOOT=cidata', '-odevice'] with allowed return codes [0, 2]
(shell=False, capture=True)
2021-08-23 18:15:50,338 - util.py[DEBUG]: Reading from /etc/hosts
(quiet=False)
2021-08-23 18:15:50,338 - util.py[DEBUG]: Read 250 bytes from /etc/hosts
2021-08-23 18:15:50,346 - atomic_helper.py[DEBUG]: Atomically writing to
file /run/cloud-init/instance-data-sensitive.json (via temporary file
/run/cloud-init/tmpye9iymr0) - w: [600] 5035 bytes/chars
2021-08-23 18:15:50,349 - atomic_helper.py[DEBUG]: Atomically writing to
file /run/cloud-init/instance-data.json (via temporary file
/run/cloud-init/tmpkliagls2) - w: [644] 1400 bytes/chars
2021-08-23 18:15:50,350 - handlers.py[DEBUG]: finish:
init-local/search-NoCloud: SUCCESS: found local data from DataSourceNoCloud
2021-08-23 18:15:50,350 - stages.py[INFO]: Loaded datasource
DataSourceNoCloud - DataSourceNoCloud
[seed=/var/lib/cloud/seed/nocloud][dsmode=net]
2021-08-23 18:15:50,351 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg
(quiet=False)
2021-08-23 18:15:50,352 - util.py[DEBUG]: Read 4017 bytes from
/etc/cloud/cloud.cfg
2021-08-23 18:15:50,352 - util.py[DEBUG]: Attempting to load yaml from
string of length 4017 with allowed root types (<class 'dict'>,)
I tried looking at the cloud-init source - but cannot tell why the
autoinstall failes.
I have used it on about 10 other machines and it worked. Just not this
machine ?
This is my install line:
root=/dev/ram0 ramdisk_size=1500000 nouveau.modeset=0 fsck.mode=skip
autoinstall 'ds=nocloud-net;s=http://MyIP/autoinstall/' ip=dhcp url=
http://MyIp/autoinstall/ubuntu-20.04.3-live-server-amd64.iso
cloud-config-url=http://MyIp/autoinstall/meta-data --- splash
nouveau.modeset=0
>From the Two differences above - does someone know why this one is failing
???
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210827/572958ea/attachment.html>
More information about the ubuntu-users
mailing list