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

=== hatchetation_ is now known as hatchetation
=== alexpilotti_ is now known as alexpilotti
=== harlowja is now known as harlowja_away
=== shardy_afk is now known as shardy
harmwsmoser: 0.3.2 :)09:04
harmwsmoser: regarding r293 and r294, I can only use file injection or rebuilding cirros from source as a means to configuring the proper resizefs mode, right?09:10
harmwor I could use cmd execution (in this case: sed or just echo) in userdata, though that would probably come in to late for resizefs to occur on the current boot09:11
smoserharmw, fil injection or image modification for sure.13:46
smoseruserdata will happen too late.13:48
smoserharmw, the plan would be for in 0.4 or something to have a newer kernel13:48
smoserand newer krenel gets magic fast online resize13:49
smoserso i'd enable it by default.13:49
harmwah ok14:33
harmwfair enough14:33
harmwperhaps it'd be nice to have 2 prebuild images online, one with and one without resizefs 14:41
harmwsince I'm to lazy to roll my own image :p14:41
smoseri really dont want to complicate things. its really easy to patch an image before upload.14:41
smoserwell, actually for cirros its more difficult isnt it :)14:41
smoseri'm open to suggestions on it.14:42
smoserthe newer kernel will magically make everythign wonderful.14:42
smoser(i'm actually not kidding, its up to 100x faster)14:42
harmwtrue, but I can imagine that'll take atleast a year :p14:42
smoserfor online resize.14:42
harmwyea you've told that bfore, sounds promissing fo14:43
smoserwell, yeah. i know. i suck. and the other thing i want in 0.4.0 would be some udev like thing (maybe 'mdev') which is theonly way i can reasonably support running on microsoft hypervisor (name eludes me now)14:43
harmwhyper-v14:44
harmwyes, I noticed a bugreport on it 14:44
harmwbut let's just do a 0.3.2 first, ok :)14:45
harmwwould cirros benefit from a tool to show more environment stats? hypervisor, ram, cpu and the likes?14:46
harmwbasically extending cirros-status14:47
=== harlowja_away is now known as harlowja
harlowjasmoser anything u need from me releated to bug https://bugs.launchpad.net/cloud-init/+bug/1136343 ?18:08
smoserharlowja, nah. thats fix-released in cloud-init.18:10
smoseri made it public today18:10
smoseras juerg opened a dupe of it.18:10
smoseri have no intent of SRUing that to 12.0418:10
harlowjak18:10
harmwsmoser: any thought about my question earlier on?18:15
harlowjaharmw for the network settings writing question, http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/distros/freebsd.py#L220 18:16
harlowjaprobably something simple to write, i can even do, but not sure what the freebsd network format is :_P18:16
harlowja:-P 18:16
harmwit's just some stuff going into /etc/rc.conf18:16
harmwshouldn't be that hard, indeed18:17
smoserharlowja, sure. extending cirros-status would be fine. and useful i think.18:17
harlowjasounds good to me smoser 18:17
harlowjalol18:17
harmwlol18:17
smoserbah. harmw ^18:17
smoserharmw, yeah, definitely 0.3.2 is not including hyperv support.18:17
smoseror a 3.13 kernel :)18:17
harmwindee18:18
harmwharlowja: I guess I can look into the _write_network stuff later tonight18:18
harlowjasweet, if u want, i can try to figure it out also, but freebsd experts would probably do it quicker ;)18:18
harmwhaha18:19
* harmw is by no means an expert18:19
harlowjamore expert than me :-P18:19
harmwharlowja: openstack doesn't put any network stuff in metadata, I have to use configdrive for that right?20:07
harlowjacorrect20:07
harlowjabut u can just expect that its the format at http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/distros/net_util.py#L2420:07
harlowjaif it isn't provided, then just don't write20:07
harmwI'm including that indeed20:08
harmwTypeError: _read_hostname() takes at least 2 arguments (1 given)20:09
harmwdid I break that (freebsd, ofcourse)20:10
harlowjadid u do self._head_hostname?20:10
harlowjaself._read_hostname20:10
harmwthis is a new checkout from launchpad, I didn't touch thta part of the code20:11
harmwlets dive in :)20:11
harmwgot it20:12
harmwjeez20:12
harmwhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/distros/freebsd.py#L8520:13
harmwthe filename parameter is not supposed to be there20:14
harlowjahmmm, that would do it :-P20:15
harmwbut sucks I didn't notice the error before20:16
harmwAHA20:23
harmwhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/92720:23
harmwsmoser: you broke it :p20:23
harmwharlowja: https://code.launchpad.net/~harmw/cloud-init/freebsd-static-networking20:36
harlowjawoot20:36
harmwI havent tested that just yet though20:37
harmwsince I'm not using configdrive atm20:37
harlowjaharmw should be easy to add a unittest that can verify what was written20:37
harlowjathat 'simulates' input and the right output20:37
harmwyea 20:38
harmwcould you write one? or should I do that?20:38
harlowjaif only i know what the expected output should be ;)20:38
harmw(I dont know how laborintensive such a thing is)20:38
harlowjahttp://bazaar.launchpad.net/~harmw/cloud-init/freebsd-static-networking/view/head:/tests/unittests/test_distros/test_netconfig.py can probably be extended20:38
harmwah ok20:38
harlowjadef test_simple_write_ub(self): -> def test_simple_write_bsd(self):20:38
harmwIll look into that, thanks :)20:39
harlowjanp20:39
harlowjathat'd be sweet, seanwbruno if u wouldn't mind looking that over when it arrives20:39
harlowjasince u probably can verify all that stuffs :)20:39
smoserharlowja, what'd i break?21:15
harmwyou introduced a parameter to a function, causing it to break once called (freebsd.py) :)21:17
harmwhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/distros/freebsd.py#L8521:17
smoserhm..21:22
smoserfix?21:22
harmwjust undo the change on that line21:22
harmw(dropping the filename argument)21:22
smoserpylint cries21:25
harmwooooooh21:25
smoserfor not a good reason.21:26
smoserits odd. but since it is in the parent class and even declared an abstractmethod there21:26
smoserwe shoudl have the same21:26
smoserso maybe this: http://paste.ubuntu.com/7012683/21:27
harmwhm yea, I was thinking the same21:27
smoserharmw, can you just verify that that fixses it really quick21:29
smoserand then i'll commmit21:29
smosersorry for breaking21:29
harmwsure, gimme a sec21:32
harmwsmoser: works :)21:35
smoserpushed21:40
harmwharlowja: I've extended that netconfig test a little, how should I proceed?21:56
harlowjaharmw commit it and there u go ;)21:58
harlowja?21:58
harmwoh, hm21:58
harmwI was expecting some of just running that test here, local21:58
harmwharlowja: its commited22:59
harmwI've pushed some other fixes in freebsd.py as wll23:00
harlowjaah, u should just be able to run nosetests and have it locally run23:00

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