=== 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 | ||
harlowja | smoser u see all my changes?? lol | 18:06 |
---|---|---|
harlowja | i think https://code.launchpad.net/~harlowja/cloud-init/changeable-templates was what u were thinking of | 18:06 |
smoser | harlowja, i did see that go by. i haven't really lookd at it. | 18:08 |
harlowja | np | 18:08 |
smoser | i'd like to have that for 14.04, as a way to tell pepole "use this for backwards compat to 16.04" | 18:08 |
smoser | but i need a FFE to get it. | 18:08 |
harlowja | ah | 18:09 |
seanwbruno | bah | 18:12 |
seanwbruno | I need a brain reboot this morning. | 18:12 |
harlowja | reboot! | 18:12 |
harlowja | smoser let me know if i can help, i can say it needs a FFE | 18:13 |
harlowja | lol | 18:13 |
harlowja | seanwbruno hey, the whole whatsapp stuff ran on freebsd, there u go :-P | 18:14 |
seanwbruno | indeed it did | 18:14 |
seanwbruno | a lot of ex-Y! people over there. | 18:15 |
harlowja | swimming in $$ now, lol | 18:15 |
smoser | i loved/love whatsapp. | 18:16 |
smoser | but fear where facebook will take it. | 18:16 |
smoser | i surely don't wantto be inundated with pics of harlowja everytime he posts on facebook. | 18:17 |
harlowja | lol | 18:17 |
harlowja | smoser u know u want it | 18:17 |
harlowja | lol | 18:17 |
* harlowja should now be quiet or else i get in trouble | 18:18 | |
smoser | harlowja, one thing in that changeable template... | 18:31 |
harlowja | sure | 18:31 |
smoser | it'd be nice if it worked without cheetah | 18:31 |
harlowja | hmmm | 18:31 |
smoser | as in, it wouldn't work in backwards compat mode | 18:32 |
smoser | but it woudn't stck trace | 18:32 |
harlowja | like it would just use mako? | 18:32 |
smoser | well, i guess what i'd really like would be: | 18:33 |
harlowja | or 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 error | 18: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 |
harlowja | gotcha | 18:34 |
harlowja | sure, smoser makes sense | 18: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 |
harmw | smoser: https://code.launchpad.net/~harmw/cirros/cirros-sysinfo | 19:32 |
harmw | thoughts? :) | 19:32 |
smoser | harmw, i'd rather read /proc/partitions. | 19:35 |
harmw | ok | 19:37 |
harmw | its all about warpspeed, mr Worf | 19:38 |
harmw | :) | 19:38 |
smoser | http://paste.ubuntu.com/7029317/ | 19:41 |
harmw | nice | 19:42 |
smoser | harmw, do we have lsblk in there ? | 19:42 |
harmw | yep | 19:42 |
harmw | pff lol | 19:42 |
harmw | thats easy output as well | 19:42 |
smoser | yeah. | 19:42 |
harmw | $ lsblk | 19:42 |
harmw | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | 19:42 |
harmw | vda 253:0 0 1G 0 disk | 19:42 |
harmw | `-vda1 253:1 0 1011.9M 0 part / | 19:42 |
smoser | oh. the other hting to be awware of is running in lxc | 19:43 |
smoser | i dont want a bunch of silly error messages that are not relevant. | 19:43 |
smoser | lsblk has nice formatting options too | 19:43 |
harmw | I see now | 19:44 |
harmw | still favor /proc/partitions? | 19:44 |
smoser | well, the above is really nice. | 19:44 |
smoser | and gets you LABEL easily too | 19:44 |
smoser | http://paste.ubuntu.com/7029329/ | 19:44 |
smoser | see how i use it in _lsblock there | 19:45 |
smoser | i'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 |
smoser | one thing i'd think about (and yes, i overthink just about everything) | 19:45 |
smoser | is that i want to enable machines to read this stuff. | 19:46 |
smoser | in additionto humans. | 19:46 |
smoser | and if i had to choose between humans and machines, i'd probably pick machines. | 19:46 |
harmw | uhm, how does that relate to cirros-status? | 19:47 |
harmw | (I'm not sure I'm getting it) | 19:47 |
smoser | well, what i'm afraid of is that if we put something in like that. | 19:47 |
smoser | in any format | 19:47 |
smoser | then people will make scripts/programs that expect it in that format | 19:47 |
smoser | and thn i'm tied to an api of sorts. | 19:48 |
harmw | ah | 19:48 |
smoser | harmw, trying to do too many things. | 19:53 |
smoser | cirros-status runs to stdout by default, right? | 19:53 |
harmw | yea | 19:53 |
smoser | k. | 19:53 |
harmw | it's ran at the end of booting cirros, pushing all the info down to the console.log | 19:54 |
smoser | right. | 19:54 |
smoser | so i'm not opposed to having status output mostly human readable at this point. and takign some patch like you have there. | 19:54 |
smoser | i thin i'd like lsblk if it put label output. that'd be great. | 19:55 |
harmw | like this? | 19:55 |
harmw | $ lsblk -d -o NAME,SIZE | 19:55 |
harmw | NAME SIZE | 19:55 |
harmw | vda 1G | 19:55 |
harmw | harlowja: i've submitted the fbsd static network stuff btw | 20:12 |
harlowja | harmw yup yup, seanwbruno can u check it out? | 20:15 |
harlowja | if u don't mind boss | 20:15 |
harlowja | https://code.launchpad.net/~harmw/cloud-init/freebsd-static-networking/+merge/208973 | 20:16 |
smoser | harmw, i'd like to see LABEL in there too. | 20:28 |
harmw | smoser: pushed | 20:35 |
seanwbruno | eh? | 20:40 |
seanwbruno | oh | 20:40 |
seanwbruno | one sec | 20:40 |
harlowja | seanwbruno if u don't mind, harmw has been doing some stuff to write out the freebsd network config | 20:42 |
harlowja | so since u likely know that format, u might be a good reviewer ;) | 20:42 |
harlowja | seanwbruno v | 20:43 |
harlowja | *oops | 20:43 |
harlowja | seanwbruno https://code.launchpad.net/~harmw/cloud-init/freebsd-static-networking/+merge/208973 | 20:43 |
harlowja | stupid paste key, lol | 20:43 |
smoser | harmw, how does it look if you dro pthat '-d' | 20:57 |
smoser | ? | 20:57 |
harmw | $ lsblk -t -o NAME,SIZE,LABEL | 21:03 |
harmw | NAME SIZE LABEL | 21:03 |
harmw | vda 1G | 21:03 |
harmw | `-vda1 1011.9M | 21:03 |
smoser | harmw, so i like this: | 21:07 |
smoser | sudo LANG=C lsblk --ascii --list --bytes -o NAME,MAJ:MIN,SIZE,LABEL,MOUNTPOINT | 21:07 |
smoser | you can drop the LANG=C i guess and sudo. | 21:07 |
smoser | i like the output other than i wish it would print a '.' or somethign for "no label" | 21:08 |
smoser | as parsing that is crap | 21:08 |
harmw | ah, with sudo I get a label returned | 21:31 |
harmw | wicked | 21:31 |
smoser | harmw, well, i added LABLE to output there. | 21:40 |
smoser | but reading label may require root. if it wasn't using blkid and that data already cached. | 21:40 |
harmw | indeed | 21:44 |
harmw | I'm changing it to the above | 21:44 |
harmw | without LANG=C though | 21:44 |
harmw | and yes, something like no-label would've be nice | 21:45 |
harmw | perhaps something similar for mountpoints | 21:45 |
harmw | for the sake of parsing | 21: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!