Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548786 - Provide an official gentoo openstack image
Summary: Provide an official gentoo openstack image
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Release Team
URL: http://gentoo.osuosl.org/experimental...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 16:24 UTC by Thomas Capricelli
Modified: 2017-10-12 23:01 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel output from failing highmem instance boot (gentoo-openstack-amd64-hardened-nomultilib-20150726.kp.txt.xz,9.37 KB, application/x-xz)
2015-08-21 11:44 UTC, Stuart Shelton
Details
20150812 image panic (20150812.kp.txt,27.83 KB, text/plain)
2015-08-21 13:26 UTC, Stuart Shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2015-05-06 16:24:29 UTC
There are lot of howtos to create a generic openstack image, and even some specific to gentoo.

That would probably means pre-installing
    app-emulation/openstack-guest-agents-unix
    app-emulation/cloud-init

Ideally building of such an image would be automatic (such as, i guess, current ISO), not a "one shot" release that would quickly become obsolate.

And there would be some documentation on how to use it, too ;-)

I could help doing it.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2015-05-06 20:32:11 UTC
> There are lot of howtos to create a generic openstack image, and even some specific to gentoo.

Can you provide a link or links to some guides that you find particular well written?
Comment 2 Thomas Capricelli 2015-05-07 09:53:24 UTC
This link was mentionned on the forum

http://blog.condi.me/base/

It provides an image, must mort importantly it says how it was done. Quite old (2013), but still interesting i think.
Comment 3 Travis Hansen 2015-05-13 05:09:39 UTC
I've rummaged around a bit and am working on a mostly automated tool to build images.  I'll post the results on github in the next day or two after a bit more testing.
Comment 4 Travis Hansen 2015-05-13 16:26:47 UTC
OK, it's pretty crude but I feel it's in good enough shape for some feedback at this point.

https://github.com/travisghansen/gentoo-cloud-image-builder

It produces a workable image for me anyway.  Biggest issue I've seen so far is newly attached volumes don't automagically appear like some kernel param is missing or something.
Comment 5 Thomas Capricelli 2015-05-13 23:57:43 UTC
Hi travis,

I tried your scripts. I got a bunch of modification that i'd like to talk to you. Ever on IRC ? My nick is 'orzel'.

Most importantly, the chroot env wont be able to resolve name until /etc/resolv.conf is copied to /mnt/gentoo/etc (as done in the official gentoo installation guide). This prevent 'kernel-sources' to be fetched here. (not the other one, i dont know why).

Also, i've removed the 'v' argument to tar for portage/stage3, this speeds up untarring.

And lot of other misc changes.
Comment 6 Travis Hansen 2015-05-14 16:32:21 UTC
Thomas

It should be copying over the resolv.conf

https://github.com/travisghansen/gentoo-cloud-image-builder/blob/master/builder/full_install.sh#L14

I have no problem removing the v from the tar command either.

I'd love to collaborate on the project.  Big picture it may be better to approach it completely differently (not boot from the installation cd as it doesn't provide much).  For example we could simply create a loopback image on the build host (not a live image booted to qemu) and mount/install/configure from there and only use qemu for testing the final product.  That would certainly make it easier to *fully* automate for example which is key IMO.

Which channel are you normally in on irc?  I generally hang out in #gentoo-desktop (thansen)
Comment 7 Travis Hansen 2015-05-21 07:58:12 UTC
I have a very trimmed down kernel at this point and feel like all the options are working as they 'should' for the time being if anyone want to try it out.  I'll upload my latest image as an initial 'gold' image at this point.

I've tried to enable all the hyperv/xen options as well so if anyone has any experience with either of those it would be great to test the image in those environments.
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-07-11 02:29:34 UTC
I do have some images built, but need help with the last step.  converting the stage4 to a qcow file via catalyst.

http://distfiles.gentoo.org/experimental/amd64/openstack/

Here are my build scripts, it is specifically the third script that I am having trouble with.

https://github.com/prometheanfire/gentoo-cloud-prep
Comment 9 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-08-05 03:08:13 UTC
Now providing releases here til I can get them built for infra automated like.
Comment 10 Stuart Shelton 2015-08-21 11:40:35 UTC
Images from http://distfiles.gentoo.org/experimental/amd64/openstack/ work with flavours up to 61,440MB memorry and 12 cores, but Kernel Panic on a 16 core/122,880MB flavour.

I've also tried Ubuntu and CentOS 7 images, which work as expected on VMs with this specification, so it appears to be a kernel issue with the openstack-amd64-hardened-nomultilib-20150726.qcow2 image.

I'll download the updated image from the 12th August and see whether anything has changed...
Comment 11 Stuart Shelton 2015-08-21 11:44:35 UTC
Created attachment 409750 [details]
Kernel output from failing highmem instance boot


Kernel log from openstack-amd64-hardened-nomultilib-20150726.qcow2 image with 16-core/122GB VM.

This panic is repeatable with 100% incidence for this flavour, whereas all smaller flavours boot correctly with otherwise the same configuration.
Comment 12 Stuart Shelton 2015-08-21 13:26:44 UTC
Created attachment 409752 [details]
20150812 image panic


Yeah, unfortunately the latest 20150812 image also fails in the same way - log attached :(
Comment 13 Ben Kohler gentoo-dev 2017-10-12 18:00:24 UTC
I'm pretty sure these stage4's have been available a while now alongside our standard stage3s, please reopen if I'm incorrect

http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage4-amd64-cloud/
Comment 14 Thomas Capricelli 2017-10-12 23:01:01 UTC
That's certainly interesting, but i was more thinking about proper actual 'images'.

With those images, you need to start an openstack instance, follow the whole install process (and use those tarballs). At the end you stop the instance, and your virtual hard disk is the kind of 'images' i was talking about.