/srv/irclogs.ubuntu.com/2016/06/07/#cloud-init.txt

harlowjasmoser  https://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor/+merge/293957 should be up and running again01:48
harlowjaseems to pass unit tests (allthough a few new unittests fail)01:48
harlowjaaka one that runs 'Command: ['dpkg', '--print-architecture']'01:48
harlowjaor ''lsb_release', '-cs']'01:48
harlowjastuff that's not being mocked afaik01:48
harlowjahttps://gist.github.com/harlowja/d0a8d56ca460d0a7adbc99f1db3c8fe601:49
ccard_I am creating an OpenStack instance with an ephemeral disk, and cloud-init creates a filesystem and mounts it as /mnt - is there a way to stop cloud-init from doing this? I want to use the ephemeral disk to create a drbd device.09:17
GivenToCodeccard_, I just had to do something similar, check this out https://castro.io/2015/01/24/preparing-ec2-instance-store-with-cloud-init.html12:23
GivenToCodeI had to override the mounts and also remove an existing entry in fstab for the mount12:23
ccard_GivenToCode: thanks, that's helpful. Ideally I'd like there to be no filesystem at all created on the ephemeral disk, since I want to create a drbd partition on it.12:25
GivenToCodeccard_, can't help you there, amazon puts a filesystem on most of its ephemeral disks automatically. Though you can replace it with whatever you like via fs_setup or bootcmd, etc12:31
smoserharlowja, yeah, cpaelzer is working on those.13:06
cpaelzersmoser: ?13:14
cpaelzersmoser: out of my log since I sometimes disconnect over night (like tonight) due to vpn13:15
cpaelzersmoser: was that a reference to the bug you opened with the unittests failing in some environments?13:15
smoserharlowja said:13:16
smosersmoser  https://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor/+merge/293957 should be up and running again.  seems to pass unit tests (allthough a few new unittests fail). aka one that runs 'Command: ['dpkg', '--print-architecture']' or ''lsb_release', '-cs']'.  stuff that's not being mocked afaik https://gist.github.com/harlowja/d0a8d56ca460d0a7adbc99f1db3c8fe613:16
cpaelzerthanks smoser13:16
cpaelzeryeah the dpdk print architecture fix is in my last MP13:16
cpaelzerdpkg13:16
cpaelzerI can't type it anymore :-/13:17
smoser:)13:21
smoserlink ?13:21
cpaelzerI thought it falls into your inbox, gimme a sec ...13:21
cpaelzersmoser: https://code.launchpad.net/~paelzer/cloud-init/bug-1589174-fix-tests-in-adt-env/+merge/29664313:22
cpaelzersmoser: you might argue about the (unrelated) bddeb change, since ther emight have been a way I just haven't seen13:22
cpaelzersmoser: but other than that most changes should be straight forward13:22
cpaelzersmoser: tested in Ubuntu, ppa, sbuild and a CentOS container13:23
smosercpaelzer, it does fall into my inbox with the slew of 300 other things :)13:44
cpaelzersmoser: hehe13:45
cpaelzersmoser: it takes most of my first 30 minutes each day to sort that out13:45
cpaelzersmoser: don't tell me you have not all read in your inbox :-P13:46
GivenToCodehas anyone run in to issues in upstart with a service with start on stopped cloud-init running before cloud-init is finished?13:58
smoserGivenToCode, not that i'm aware of, and that surely should not happen,.14:41
smoserharlowja, what would you do if you wanted an Enum but did not want to depend on python2 package to provide python 3's builtin Enum ?14:42
smosercpaelzer, you have a conflict in merge at url above14:43
cpaelzersmoser: ok, I'm gonna refresh later14:46
cpaelzerI should always before MP'ing next time ...14:49
GivenToCodesmoser, I found this: http://www.madorn.com/cloud-init-stages.html#.V1bVB7orJMM which helped me see I need start on stopped cloud-final14:50
smoserright. :)14:52
smoserGivenToCode, i thought maybe you didn't mean cloud-init but cloud-inti-final14:52
cpaelzer1227 wasn't out yet when I branched this morning16:05
cpaelzerI merged and uploaded again16:06
cpaelzerthou I'm not sure all in the merge worked correctly16:06
cpaelzerthe conflict was minimal16:06
cpaelzersmoser: please let me know if there still is a conflict16:06
cpaelzerdid a pull into a trunk dir, found the conflciting rev 1227, did a merge into my dir, found the conflict, resolved and committed the merge16:07
cpaelzeryet it seemded to have an empty diff16:07
* cpaelzer lacks one more piece of bzr magic16:07
harlowjaok backs17:04
harlowjasooo smoser Emum that u don't want to use the pkg from17:04
harlowjai can make a crappyEnum that will work17:04
harlowjalol17:04
harlowjain nearly the same manner17:05
harlowjasmoser do u want that ?17:05
smoserharlowja, my query was for stuff for curtin..17:10
smoserthere is http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python17:10
smoserwhich kind of has a crappy enum for py2, but i just wanted to know what you woudl ot there.17:11
harlowjaprob make enum (maybe less crappy) that works for u17:11
harlowjaand try to make it so that it works with py3 (using native stuff) and py2 (using your stuff)17:12
harlowjasmoser  i'll make some17:33
harlowjathing17:33
smoserthe enum seems pretty nice. do people use that ?17:33
harlowjai do17:33
harlowjalol17:33
harlowjai am all the people17:33
harlowjalol17:33
smosermy expectation was to use for basic constant like things17:33
harlowjasmoser ya, one sec, whipping up something for u17:37
harlowjalol17:37
smoserlooks like we used this in curtin (and cloud-init/reporting) before17:37
smoser pastebinithttp://paste.ubuntu.com/17095446/17:37
smoserhttp://paste.ubuntu.com/17095446/17:38
harlowjahmmm17:38
harlowjaya, that's pretty ghetto :-P17:38
harlowjamine will be a little better, ha17:38
smoseri suspected as much.17:38
harlowjahttps://gist.github.com/harlowja/f60d91128a1fcd99d30d27715d5a9a30 smoser17:51
harlowjahave fun17:51
harlowjaha17:51
harlowjashould use the native enum, and a close-enough equivalent on py217:51
smoserharlowja, if six.PY3 ?17:57
smoserif enum is None17:58
smoser?17:58
harlowjaya, do that, i was just doing that approach cause wanted to make sure my mac tested the other path17:58
harlowjaand the venv i run in has enum lib installed, ha17:58
smosermagicalChicken, ^17:58
smoserthat is for enum stuff. harlowja thinks our namespace is for pathetic lusers17:59
harlowjalol17:59
harlowjait at least mirrors more closely the py3 stuff17:59
harlowjaso the basics should work across both18:00
magicalChickensmoser: Yeah that amkes sense haha. Using __getattr__ is kinda not good18:00
magicalChickenI'll get that pulled into the storage-config branch real, quick, thanks harlowja18:01
harlowjanp18:03
harlowjado is enum not None though18:03
harlowjaas smoser pointed out18:03
harlowjait probably is missing some things, but should work for basic things18:03
harlowjasoooo that gets me enough brownie points to get https://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-refactor merged right18:05
harlowjalol18:05
harlowjasmoser in that i'm just for that merge not making the net/ folder any less copy/pasteable18:05
harlowjathink change big enough already18:05
harlowjacan do that later or something18:06
harlowjaor ummm, neterator18:06
harlowjalol18:06
smoserharlowja, it does in deed.18:08
harlowjaoh goodie18:08
harlowjadoes it also get enough for https://gist.github.com/harlowja/d63a36de0b405d83be9bd3222a5454a7 after that to also merge18:09
harlowjalol18:09
harlowjaactually i gotta change that due to the nova bug18:09
harlowja(with naming things dumb)18:09
harlowjabut, bb, gotta do oslo ptl stuff for a little18:11

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!