yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23363
[Bug 1377308] [NEW] booting cloud image without initramfs broken
Public bug reported:
Booting without a initramfs was broken by the cloud-init change for
bug 1377005 (http://pad.lv/1377005).
This affects arm guests where a bootloader is not used that would load
kernel and initramfs.
There are 2 workarounds:
a.) remove the offensive code
sudo mount-image-callback ubuntu.img -- \
sh -c 'f="$MOUNTPOINT/etc/init/cloud-init-local.conf";
sed -e "/^start on/s/ and mounted .*//" -i.dist $f &&
diff -u $f.dist $f'
b.) register and boot with an initramfs
This is done by
i.) getting the initramfs out of the image:
sudo mount-image-callback ubuntu.img -- \
sh -c 'cp $MOUNTPOINT/boot/initrd* . && chmod ugo+r initrd*'
ii.) upload the initramfs to glance
glance image-create --name=ubuntu-ramdisk --public \
--container-format ari --disk-format ari < initrd*
record the ramdisk id
iii.) register with --property ramdisk_id=$RAMDISK_ID
normally for "ami" style images on arm, the user had been
uploading with --property kernel_id=<kernel_id>.
now, you need to upload with:
glance image-create --name="$NAME" \
--public --container-format ami --disk-format ami \
--property "kernel_id=$KERNEL_ID" \
--property "ramdisk_id=$RAMDISK_ID" \ < ubuntu.img
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cloud-init 0.7.5-0ubuntu1.2
ProcVersionSignature: User Name 3.13.0-36.63-generic 3.13.11.6
Uname: Linux 3.13.0-36-generic aarch64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: arm64
Date: Thu Jan 1 00:02:09 1970
Ec2AMI: ami-00000007
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.5GB
Ec2Kernel: aki-00000005
Ec2Ramdisk: ari-00000003
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.init.cloud.init.local.conf: 2014-10-03T19:49:16.813801
** Affects: cloud-init
Importance: High
Status: Triaged
** Affects: cloud-init (Ubuntu)
Importance: High
Status: Triaged
** Tags: apport-bug arm64 ec2-images trusty
** Also affects: cloud-init
Importance: Undecided
Status: New
** Changed in: cloud-init (Ubuntu)
Status: New => Triaged
** Changed in: cloud-init
Status: New => Triaged
** Changed in: cloud-init
Importance: Undecided => High
** Changed in: cloud-init (Ubuntu)
Importance: Undecided => High
--
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/1377308
Title:
booting cloud image without initramfs broken
Status in Init scripts for use on cloud images:
Triaged
Status in “cloud-init” package in Ubuntu:
Triaged
Bug description:
Booting without a initramfs was broken by the cloud-init change for
bug 1377005 (http://pad.lv/1377005).
This affects arm guests where a bootloader is not used that would load
kernel and initramfs.
There are 2 workarounds:
a.) remove the offensive code
sudo mount-image-callback ubuntu.img -- \
sh -c 'f="$MOUNTPOINT/etc/init/cloud-init-local.conf";
sed -e "/^start on/s/ and mounted .*//" -i.dist $f &&
diff -u $f.dist $f'
b.) register and boot with an initramfs
This is done by
i.) getting the initramfs out of the image:
sudo mount-image-callback ubuntu.img -- \
sh -c 'cp $MOUNTPOINT/boot/initrd* . && chmod ugo+r initrd*'
ii.) upload the initramfs to glance
glance image-create --name=ubuntu-ramdisk --public \
--container-format ari --disk-format ari < initrd*
record the ramdisk id
iii.) register with --property ramdisk_id=$RAMDISK_ID
normally for "ami" style images on arm, the user had been
uploading with --property kernel_id=<kernel_id>.
now, you need to upload with:
glance image-create --name="$NAME" \
--public --container-format ami --disk-format ami \
--property "kernel_id=$KERNEL_ID" \
--property "ramdisk_id=$RAMDISK_ID" \ < ubuntu.img
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cloud-init 0.7.5-0ubuntu1.2
ProcVersionSignature: User Name 3.13.0-36.63-generic 3.13.11.6
Uname: Linux 3.13.0-36-generic aarch64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: arm64
Date: Thu Jan 1 00:02:09 1970
Ec2AMI: ami-00000007
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.5GB
Ec2Kernel: aki-00000005
Ec2Ramdisk: ari-00000003
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.init.cloud.init.local.conf: 2014-10-03T19:49:16.813801
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1377308/+subscriptions
Follow ups
References