/srv/irclogs.ubuntu.com/2014/03/03/#cloud-init.txt

=== alexpilotti_ is now known as alexpilotti
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
harlowjasmoser u see all my changes?? lol18:06
harlowjai think https://code.launchpad.net/~harlowja/cloud-init/changeable-templates was what u were thinking of18:06
smoserharlowja, i did see that go by. i haven't really  lookd at it.18:08
harlowjanp18:08
smoseri'd like to have that for 14.04, as a way to tell pepole "use this for backwards compat to 16.04"18:08
smoserbut i need a FFE to get it.18:08
harlowjaah18:09
seanwbrunobah18:12
seanwbrunoI need a brain reboot this morning.18:12
harlowjareboot!18:12
harlowjasmoser let me know if i can help, i can say it needs a FFE 18:13
harlowjalol18:13
harlowjaseanwbruno hey, the whole whatsapp stuff ran on freebsd, there u go :-P18:14
seanwbrunoindeed it did18:14
seanwbrunoa lot of ex-Y! people over there.18:15
harlowjaswimming in $$ now, lol18:15
smoseri loved/love whatsapp.18:16
smoserbut fear where facebook will take it.18:16
smoseri surely don't wantto be inundated with pics of harlowja everytime he posts on facebook.18:17
harlowjalol18:17
harlowjasmoser u know u want it18:17
harlowjalol18:17
* harlowja should now be quiet or else i get in trouble18:18
smoserharlowja, one thing in that changeable template...18:31
harlowjasure18:31
smoserit'd be nice if it worked without cheetah18:31
harlowjahmmm18:31
smoseras in, it wouldn't work in backwards compat mode18:32
smoserbut it woudn't stck trace18:32
harlowjalike it would just use mako?18:32
smoserwell, i guess what i'd really like would be:18:33
harlowjaor are u thinking some basic simple impl?18:33
smoser a.) update all existing templates to "future"18:33
smoser b.) try loading cheetah, silently swallow error18:33
smoser c.) if need cheetah becaus eyou find old format, then either use what you imported, or cry loudly at that point.18:34
harlowjagotcha18:34
harlowjasure, smoser  makes sense18:34
smoser'c' could be improved in the future to say "if i can render this in hack-mode, then i will still be ok"18:34
harmwsmoser: https://code.launchpad.net/~harmw/cirros/cirros-sysinfo19:32
harmwthoughts? :)19:32
smoserharmw, i'd rather read /proc/partitions. 19:35
harmwok19:37
harmwits all about warpspeed, mr Worf19:38
harmw:)19:38
smoserhttp://paste.ubuntu.com/7029317/19:41
harmwnice19:42
smoserharmw, do we have lsblk in there ?19:42
harmwyep19:42
harmwpff lol19:42
harmwthats easy output as well19:42
smoseryeah.19:42
harmw$ lsblk 19:42
harmwNAME   MAJ:MIN RM    SIZE RO TYPE MOUNTPOINT19:42
harmwvda    253:0    0      1G  0 disk 19:42
harmw`-vda1 253:1    0 1011.9M  0 part /19:42
smoseroh. the other hting to be awware of is running in lxc19:43
smoseri dont want a bunch of silly error messages that are not relevant.19:43
smoserlsblk has nice formatting options too19:43
harmwI see now19:44
harmwstill favor /proc/partitions?19:44
smoserwell, the above is really nice. 19:44
smoserand gets you LABEL easily too19:44
smoserhttp://paste.ubuntu.com/7029329/19:44
smosersee how i use it in _lsblock there19:45
smoseri'm not saying we want all of that, but for sure, or even if we want it (since that ascii art is so nice to humans)19:45
smoserone thing i'd think about (and yes, i overthink just about everything)19:45
smoseris that i want to enable machines to read this stuff.19:46
smoserin additionto humans. 19:46
smoserand if i had to choose between humans and machines, i'd probably pick machines.19:46
harmwuhm, how does that relate to cirros-status?19:47
harmw(I'm not sure I'm getting it)19:47
smoserwell, what i'm afraid of is that if we put something in like that. 19:47
smoserin any format19:47
smoserthen people will make scripts/programs that expect it in that format19:47
smoserand thn i'm tied to an api of sorts.19:48
harmwah19:48
smoserharmw, trying to do too many things.19:53
smosercirros-status runs to stdout by default, right?19:53
harmwyea19:53
smoserk.19:53
harmwit's ran at the end of booting cirros, pushing all the info down to the console.log19:54
smoserright.19:54
smoserso i'm not opposed to having status output mostly human readable at this point. and takign some patch like you have there. 19:54
smoseri thin i'd like lsblk if it put label output. that'd be great.19:55
harmwlike this?19:55
harmw$ lsblk -d -o NAME,SIZE19:55
harmwNAME SIZE19:55
harmwvda    1G19:55
harmwharlowja: i've submitted the fbsd static network stuff btw20:12
harlowjaharmw yup yup, seanwbruno can u check it out?20:15
harlowjaif u don't mind boss20:15
harlowjahttps://code.launchpad.net/~harmw/cloud-init/freebsd-static-networking/+merge/208973 20:16
smoserharmw, i'd like to see LABEL in there too.20:28
harmwsmoser: pushed20:35
seanwbrunoeh?20:40
seanwbrunooh20:40
seanwbrunoone sec20:40
harlowjaseanwbruno if u don't mind, harmw has been doing some stuff to write out the freebsd network config20:42
harlowjaso since u likely know that format, u might be a good reviewer ;)20:42
harlowjaseanwbruno v20:43
harlowja*oops20:43
harlowjaseanwbruno https://code.launchpad.net/~harmw/cloud-init/freebsd-static-networking/+merge/208973 20:43
harlowjastupid paste key, lol20:43
smoserharmw, how does it look if you dro pthat '-d'20:57
smoser?20:57
harmw$ lsblk -t -o NAME,SIZE,LABEL21:03
harmwNAME      SIZE LABEL21:03
harmwvda         1G 21:03
harmw`-vda1 1011.9M 21:03
smoserharmw, so i like this:21:07
smosersudo LANG=C lsblk  --ascii --list --bytes -o NAME,MAJ:MIN,SIZE,LABEL,MOUNTPOINT21:07
smoseryou can drop the LANG=C i guess and sudo.21:07
smoseri like the output other than i wish it would print a '.' or somethign for "no label"21:08
smoseras parsing that is crap21:08
harmwah, with sudo I get a label returned21:31
harmwwicked21:31
smoserharmw, well, i added LABLE to output there.21:40
smoserbut reading label may require root. if it wasn't using blkid and that data already cached.21:40
harmwindeed21:44
harmwI'm changing it to the above21:44
harmwwithout LANG=C though21:44
harmwand yes, something like no-label would've be nice21:45
harmwperhaps something similar for mountpoints21:45
harmwfor the sake of parsing21:45
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja

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