yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #77542
[Bug 1820360] [NEW] unable to specify custom seed location on raspberry pi arm64
Public bug reported:
Hello, I'm trying to bootstrap the Raspberry Pi Arm64 image from (http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/) using cloud-init.
In order to customize the seed I tried to specify the following kernel cmdline in cmdline.txt:
$ cat cmdline.txt # corresponds to kernel cmdline
net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ds=nocloud;seedfrom=file://boot/seed/
In /boot/seed (VFAT partition) these are the contents:
$ cat /boot/seed/meta-data
instance_id: cloud-image
$ cat /boot/seed/user-data
#cloud-config
# vim: syntax=yaml
#
ssh_pwauth: True
hostname: rpi3plus
locale: "en_US.UTF-8"
timezone: "Europe/Rome"
users:
- name: devster
gecos: Daniele Riccucci
ssh_authorized_keys:
- ssh-ed25519 <mykey>
lock_passwd: false
passwd: <hashed pw>
package_update: true
package_upgrade: true
package_reboot_if_required: true
Cloud-init ran, however the following happened (I had to remove the SD
card and mount it somewhere else to retrieve this cloud-init.log
(beginning only):
2018-01-28 15:58:24,891 - util.py[DEBUG]: Cloud-init v. 18.4-0ubuntu1~18.04.1 running 'init-local' at Sun, 28 Jan 2018 15:58:24 +0000. Up 16.85 seconds.
2018-01-28 15:58:24,892 - main.py[DEBUG]: No kernel command line url found.
2018-01-28 15:58:24,892 - main.py[DEBUG]: Closing stdin.
2018-01-28 15:58:24,912 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2018-01-28 15:58:24,916 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 102:4
2018-01-28 15:58:24,918 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2018-01-28 15:58:24,918 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net
2018-01-28 15:58:24,919 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2018-01-28 15:58:24,919 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2018-01-28 15:58:24,920 - stages.py[DEBUG]: no cache found
2018-01-28 15:58:24,920 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found
2018-01-28 15:58:24,921 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
2018-01-28 15:58:24,934 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
2018-01-28 15:58:24,936 - __init__.py[DEBUG]: Looking for data source in: ['NoCloud', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']
2018-01-28 15:58:24,951 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceNoCloud']
2018-01-28 15:58:24,952 - handlers.py[DEBUG]: start: init-local/search-NoCloud: searching for local data from DataSourceNoCloud
2018-01-28 15:58:24,952 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'>
2018-01-28 15:58:24,953 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: New instance first boot
[...]
It seems the data source wasn't found and cloud-init couldn't find my specified seed.
The following is the beginning of cloud-init-output.log:
Cloud-init v. 18.4-0ubuntu1~18.04.1 running 'init-local' at Sun, 28 Jan 2018 15:58:24 +0000. Up 16.85 seconds.
2018-01-28 15:58:25,118 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'> failed
[...]
As expected the directory /var/lib/cloud/instances/iid-datasource-none
was present.
How can I solve?
Thank you.
** Affects: cloud-init
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1820360
Title:
unable to specify custom seed location on raspberry pi arm64
Status in cloud-init:
New
Bug description:
Hello, I'm trying to bootstrap the Raspberry Pi Arm64 image from (http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/) using cloud-init.
In order to customize the seed I tried to specify the following kernel cmdline in cmdline.txt:
$ cat cmdline.txt # corresponds to kernel cmdline
net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ds=nocloud;seedfrom=file://boot/seed/
In /boot/seed (VFAT partition) these are the contents:
$ cat /boot/seed/meta-data
instance_id: cloud-image
$ cat /boot/seed/user-data
#cloud-config
# vim: syntax=yaml
#
ssh_pwauth: True
hostname: rpi3plus
locale: "en_US.UTF-8"
timezone: "Europe/Rome"
users:
- name: devster
gecos: Daniele Riccucci
ssh_authorized_keys:
- ssh-ed25519 <mykey>
lock_passwd: false
passwd: <hashed pw>
package_update: true
package_upgrade: true
package_reboot_if_required: true
Cloud-init ran, however the following happened (I had to remove the SD
card and mount it somewhere else to retrieve this cloud-init.log
(beginning only):
2018-01-28 15:58:24,891 - util.py[DEBUG]: Cloud-init v. 18.4-0ubuntu1~18.04.1 running 'init-local' at Sun, 28 Jan 2018 15:58:24 +0000. Up 16.85 seconds.
2018-01-28 15:58:24,892 - main.py[DEBUG]: No kernel command line url found.
2018-01-28 15:58:24,892 - main.py[DEBUG]: Closing stdin.
2018-01-28 15:58:24,912 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2018-01-28 15:58:24,916 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 102:4
2018-01-28 15:58:24,918 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2018-01-28 15:58:24,918 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net
2018-01-28 15:58:24,919 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2018-01-28 15:58:24,919 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2018-01-28 15:58:24,920 - stages.py[DEBUG]: no cache found
2018-01-28 15:58:24,920 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found
2018-01-28 15:58:24,921 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
2018-01-28 15:58:24,934 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
2018-01-28 15:58:24,936 - __init__.py[DEBUG]: Looking for data source in: ['NoCloud', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']
2018-01-28 15:58:24,951 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceNoCloud']
2018-01-28 15:58:24,952 - handlers.py[DEBUG]: start: init-local/search-NoCloud: searching for local data from DataSourceNoCloud
2018-01-28 15:58:24,952 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'>
2018-01-28 15:58:24,953 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: New instance first boot
[...]
It seems the data source wasn't found and cloud-init couldn't find my specified seed.
The following is the beginning of cloud-init-output.log:
Cloud-init v. 18.4-0ubuntu1~18.04.1 running 'init-local' at Sun, 28 Jan 2018 15:58:24 +0000. Up 16.85 seconds.
2018-01-28 15:58:25,118 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloud'> failed
[...]
As expected the directory /var/lib/cloud/instances/iid-datasource-none
was present.
How can I solve?
Thank you.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1820360/+subscriptions
Follow ups