Monday, 28 October 2013

Re: [ubuntu-cloud] Ubuntu cloud image '-root.tar.gz' content changes

On 29 October 2013 08:56, Scott Moser <[email protected]> wrote:
> On Tue, 29 Oct 2013, Robert Collins wrote:
>
>> On 29 October 2013 07:46, Scott Moser <[email protected]> wrote:
>> > Hi all,
>> >
>> > tldr;
>> > As we look forward to the 14.04 deliverable of cloud images, we're wanting
>> > to reduce legacy formats and streamline those that we have.
>> >
>> > If you're a consumer of the '-root.tar.gz' file then read on.
>> > The change suggested here will *only* affect the -root.tar.gz file.
>> >
>> > We make several formats of images available on cloud-images.ubuntu.com.
>> > The one relevant to this mail is the '-root.tar.gz'. This is essentially
>> > a 'tar -cSpzf - /' of the contents of /.
>> >
>> > The changes we've just made to trusty are to remove the kernel and
>> > bootloader packages before creating the tarfile. Essentially doing a
>> > 'apt-get --purge remove "linux-*" "grub-*"' before packaging.
>> >
>> > The reasoning for this is
>> > a.) the images will then be more similar to the ubuntu core tar files at
>> > http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/
>> > b.) the images are primarily used for lxc, where a kernel and bootloader
>> > are not necessary or used.
>> > c.) there is a ~25M reduction in the size of the tarball, and a 100M+
>> > reduction in the size of the extracted root.
>> >
>> > I'm interested in hearing feedback from anyone using these images that
>> > would be [negatively] affected by the proposed change.
>>
>> Hi, we use those images (the root.tar.gz) ones for diskimage-builder
>> in OpenStack. We build both vm and baremetal images from them, and
>> currently assume that there is a kernel in them (but we do remove grub
>> from them early on). Overall I think this is probably a good idea, but
>> we'll need to fixup our code to be a bit more explicit about whether
>> the output is for a vm or physical machine.
>
> -root.tar.gz != tar.gz

I know :)

> I think you were using the .tar.gz files. not sure.

code will avoid confusion:
DIB_CLOUD_IMAGES=${DIB_CLOUD_IMAGES:-http://cloud-images.ubuntu.com/}
DIB_RELEASE=${DIB_RELEASE:-raring}
BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-$DIB_RELEASE-server-cloudimg-$ARCH-root.tar.gz}
SHA256SUMS=${SHA256SUMS:-https://${DIB_CLOUD_IMAGES##http?(s)://}/$DIB_RELEASE/current/SHA256SUMS}

-Rob


--
Robert Collins <[email protected]>
Distinguished Technologist
HP Converged Cloud

--
ubuntu-devel mailing list
[email protected]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel