SRU cloud-initramfs-rooturl to archive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-images |
Triaged
|
Medium
|
Unassigned | ||
cloud-initramfs-tools (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
MAAS has an interest in booting entirely ephemerally without iscsi root.
The package cloud-initramfs
from a url.
root=http://
This function will be used to pxe boot into a RAM only system with no
dependency on the network.
[Test Case]
See the attached prepare-1688606.sh. That script automates
everything here making this much easier to test.
1. make sure squashfs module is in the initramfs
squashfs module is not automatically added to initramfs in precise.
Just ensure that it is there.
$ [ "$(lsb_release -sc)" = "precise" ] &&
echo "manual_add_modules squashfs" |
sudo tee /etc/initramfs-
2. install cloud-initramfs
sudo apt-get update
sudo apt-get install cloud-initramfs
3. collect the kernel and newly generated initramfs
sudo cat /boot/vmlinu?
cp /boot/initrd.
4. Download a squashfs image or a .tar.xz image
rel="xenial"
burl="http://
file=
file=
wget "$burl/
5. run a web server
python -m SimpleHTTPServer 9999 &
6. create a seed disk for cloud-init.
$ cat > my-user-data <<EOF
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
$ echo "instance-id: $(uuidgen || echo i-abcdefg)" > my-meta-data
$ cloud-localds seed.img my-user-data my-meta-data
7. Boot a vm using the kernel, initrd and url.
cmdline="root=http://
cmdline=
qemu-
-device virtio-
-netdev type=user,id=net00 \
-drive if=virtio,
-m 1G -nographic \
-kernel kernel -initrd initrd \
-append "root=$cmdline"
[Regression Potential]
Low. This is adding a package previously not present.
[Other Info]
Related bugs:
* bug 1689557: replace iscsi usage in ephemeral image with rooturl
* bug 1689642: cloud-initramfs
=== End SRU Template ===
Related branches
- Blake Rouse (community): Approve
-
Diff: 49 lines (+24/-5)1 file modifiedbin/kpack-from-image (+24/-5)
Changed in cloud-initramfs-tools (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in cloud-initramfs-tools (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in cloud-initramfs-tools (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in cloud-initramfs-tools (Ubuntu Yakkety): | |
status: | New → Confirmed |
Changed in cloud-initramfs-tools (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in cloud-initramfs-tools (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in cloud-initramfs-tools (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in cloud-initramfs-tools (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in cloud-initramfs-tools (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
description: | updated |
no longer affects: | cloud-initramfs-tools (Ubuntu Precise) |
description: | updated |
description: | updated |
Changed in maas-images: | |
status: | New → Triaged |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
I've added a 'maas-images' task for this. Under that task we will add the cloud-initramfs -rooturl package to the initramfs that are generated there.