UbuntuIRC / 2014 /11 /14 /#cloud-init.txt
niansa
Initial commit
4aa5fce
[15:38] <Odd_Bloke> smoser: I'm scoping out Python 3 changes; would we be talking about supporting Python 2 _and_ 3, or shifting to just Python 3?
[15:39] <Odd_Bloke> smoser: If both, is just 2.7 acceptable?
[16:11] <JayF> I definately use cloud-init on boxes with only py26 :(
[16:11] <JayF> (CentOS 6)
[16:25] <smoser> Odd_Bloke, 2 and 3
[16:25] <smoser> Odd_Bloke, https://code.launchpad.net/~harlowja/cloud-init/py2-3/+merge/225240
[16:26] <smoser> that is harlowja's start.
[16:41] <Odd_Bloke> smoser: Thanks for the pointer.
[17:35] <harlowja> smoser ok back!
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
[20:23] <harmw_> https://cloud-images.ubuntu.com/utopic/current/utopic-server-cloudimg-armhf-disk1.img
[20:23] <harmw_> smoser: can I just add that to glance?
[20:24] <harmw_> you happen to know?
=== harmw_ is now known as harmw
[20:34] <harlowja> harmw u can try my tool @ https://github.com/stackforge/anvil/blob/master/tools/img-uploader.py
[20:34] <harlowja> if it still works, ha
[20:34] <harlowja> https://github.com/stackforge/anvil/blob/master/anvil/components/helpers/glance.py is the code that it uses to extract image, upload it...
[20:35] <harlowja> should still work i think (although it may expect an image archive with a kernel and ram disk as well)
[20:40] <harmw> harlowja: could you decribe what it tries to do? :) looks like extracting initrd+kernel and adding that to glance, right?
[20:41] <harlowja> ya
[20:41] <harmw> (im unsure on how to exactly get ARM images in glance)
[20:41] <harlowja> pretty much :-P
[20:41] <harlowja> let me look at, forgot what it does, haha
[20:41] * harlowja wrote it to long ago
[20:41] <harlowja> from what i remember, it calls into https://github.com/stackforge/anvil/blob/master/anvil/components/helpers/glance.py#L439
[20:41] <harmw> ok, so, why :p since kernel+ramdisk are often just supplied :p
[20:42] <harlowja> which then calls into to extract, register, upload @ https://github.com/stackforge/anvil/blob/master/anvil/components/helpers/glance.py#L391
[20:43] <harlowja> harmw mainly u have to associate the ramdisks and crap with the raw image file, although if u just have a single image, i think u can just upload that directly
[20:50] <harmw> glance image-create --name 'Ubuntu Utopic ARM' --disk-format raw --container-format bare --property architecture=armv7l --file utopic-server-cloudimg-armhf-disk1.img
[20:55] <harlowja> ya, something like that should work also
[21:03] <harmw> I'm hopeing it will :p
[21:45] <harmw> libvirtError: internal error: no supported architecture for os type 'hvm'
[21:45] <harmw> hm
[21:47] <harlowja> hmmm, ya, not sure about that one
[21:48] <harlowja> https://ask.openstack.org/en/question/7519/instance-error-caused-by-libvirterror-internal-error-no-supported-architecture-for-os-type-hvm/?answer=7520#post-id-7520
[21:48] <harlowja> maybe 'libvirt_type=qemu'
[21:48] <harlowja> in nova.conf
[21:49] <harmw> nah, I apparently didn't load kvm - trying to that now
[21:49] <harmw> *krnel module
[21:49] <harlowja> k
[21:53] <harmw> ah, yes, I needed the -lpae kernel for that
[22:56] <harmw> hmk, well, I can boot a vm from that image - but it doesn't show anything in the console.log
[22:57] <harmw> or am I using the wrong hardware thingy here
[23:00] <harlowja> unsure :-P