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

gondoiutlemming or smoser: you guys around today?14:42
smosergondoi, here.14:51
smoserwhats up?14:51
smosergondoi, ^14:58
gondoismoser, sorry... quick team huddle brb14:59
gondoismoser, okay sorry about that15:14
gondoiokay, i am looking for some help with setting up cloud-init the proper way15:14
gondoii'm having trouble finding docs on the config file syntax/options15:14
gondoialso, we have images for different distribution releases so versions vary15:15
smosergondoi, well the best documentation on config is doc/example/15:19
smoserand/or the ones that ship in 'config/15:19
smoser'15:19
smoser(in source)15:19
gondoiokay, let me look over those15:35
smosergondoi, i'm completley open to improvements in documentation15:49
smoser(or code!)15:49
smoser:)15:49
gondoismoser, i don't see any examples of /etc/cloud/cloud.cfg, or the files in the .d directory16:05
gondoii'm trying to figure out the best working config for cloud-init itself, not necessarily user-data that it parses16:05
smoserthey're one and the same.16:06
gondoioh.....16:06
smosersee 'config/cloud.cfg' as the one that ships with cloud-init (and config/cloud.cfg.d/05_logging.cfg)16:06
smoserthats kind of a design goal of cloud-init16:06
smoserwhatever you could configure or do when you built the image16:06
smoseryou can do in user-data16:06
smoserand for the most part that is true16:07
gondoismoser, how does backporting work for cloud-init?17:17
gondoifor example, i think I found a bug, but if I fix it, i assume it will only land in 0.7.3 and above only17:18
smosergondoi, well for ubuntu, we can get the fix back into 12.04 (or other previous releases)17:19
smoserfor other distros, whatever their distro policy is.17:19
gondoiokay17:21
gondoithanks smoser 17:21
gondoii'll get a launchpad issue opened to start with :D17:21
gondoithen i'll try my hand at patching it17:21
harmwharlowja: I'm reading over the _write_network stuff in distros/rhel.py18:17
harlowjayo18:17
harmwyou still need to fix that?18:17
harlowjai'd still like to get to a non-ubuntu input format18:17
harlowjai haven't checked the status of netcfg in a while though18:18
harlowja*netcf [https://fedorahosted.org/netcf/]18:18
harmwok, well I haven't verified if rhel_util.translate_network() works - my centos6 instance most certainly didn't configure eth0 accordingly so...18:18
harlowjaoh, it defintly works18:19
harlowjaat least good enough for y!18:19
harmwi thought so, I probably left some required config 18:20
harmw*out18:20
harmwnetcf looks nice btw18:20
harlowjaya, its a little more distro-independent18:24
harmwdo you have an example of what cloud-init eventually passes to the translate_network() function?18:25
harlowjasure18:26
harlowjabtw, are u using openstakc or ec218:27
harmwshouldn't be that hard to convert that debian-style blob to freebsd's /etc/rc.conf18:27
harmwmy cloud is openstack, though cloud-init says it took the ec2 datasource18:27
harlowjak, thats why its not getting called then18:27
harmwah18:27
harmwhaven't debugged that part just yet, but thanks18:28
harlowjathe cfgdrive is the main provider of this data18:28
harlowjahttp://paste.ubuntu.com/6515839/18:28
harmwexcellent,thanks18:28
harlowjahttp://docs.openstack.org/grizzly/openstack-compute/admin/content//config-drive.html18:29
harlowjahttp://paste.ubuntu.com/6515844/ 18:29
harlowjafrom a grizzly instance at y! 18:29
harmwi've read about configdrive, it looks nice18:29
harmwcan't cloud-init setup static networking on DHCP nets?18:31
harlowjasure, if someone provides it that data18:32
harlowjathe ec2 datasource afaik doesn't have that data18:33
harlowjaif it did, then sure, it likely could18:33
harmwhm hm18:33
harmwok18:33
harmwapply_network() only exists in datasources ConfigDrive, NoCloud and OpenNebula18:48
harlowjaya, do u know if the openstack ec2 metadata server even provides it?18:53
harlowjai don't recall if it does18:53
harmwdont think so18:54
harmwwell, there is a meta-data/local-ipv4 key18:55
harlowjaya, thats not enough afaik to be useable by apply_network18:57
harmwnope18:57
harlowjai think the openstack ec2 could host network config18:57
harlowjai think most people that use the ec2 metatadata sever though use dhcp18:58
harlowja*but doesn't mean it has to be that way (of course)18:59
harmwyea, and besides, the instance already got all required stuff through dhcp19:01
harmwso reading that and writing it to sysconfig would seem viable19:01
harlowjadepends, the whole 169.blah.blah address stuff imho seems to magical (and hard to debug/reason)19:02
harlowjaconfigdrive u know pretty much what the source data was, where it is (via blkid) so it can be easily looked at post-boot...19:03
harlowja$ blkid 19:03
harlowja...19:03
harlowjaex: /dev/vdb: SEC_TYPE="msdos" LABEL="config-2" UUID="124A-8C96" TYPE="vfat"19:03
harlowjaand the 169 business means u have to run a external service (that can be DOS'd from user vms)19:04
harlowjaand u have to connect that 169 business via iptables/other 19:04
harmwtrue, true19:05
harlowjaconfigdrive simpler imho19:05
harlowjabut to each there own i guess :-P19:05
harmw:)19:08
harmwhm, can I attach a configdrive to a running vm harlowja ?19:12
harlowjanot afaik, its created in nova, during the vm creation process, so if it wasn't created during that process, it won't exist19:12
harlowjaand settings in nova.conf turn it on/off19:13
harlowjaforce_config_drive=true being the main one i think19:13
harmwyea, thats to forcefully create a cfgdrive iirc19:14
harlowjaya, all controlled by https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L2516 afaik19:16
=== shardy is now known as shardy_afk
smoserfwiw, i'll be fairly annoying on "change the network interface description code"19:22
smoserharlowja, harmw19:23
smoserfrom the openstack side.19:23
harlowjaagreed19:23
smoseri'd accept patches for cloud-init to read one or the other 19:23
harmw:)19:23
smoserbut i think it is in general a bad idea to change that on the hypervisor19:23
smoseras then you're in a situation where either:19:23
smosera.) you have to know something about the guest in order to know what to provide it19:24
smoserb.) you break existing guests19:24
harmwagreed19:24
smoserwrt config drive...19:24
smoseri think looking forward it will go away.19:25
smoseri think it was a stop gap solution for a time when quantum wasn't really there and many people had issues getting the metadata service set up correcdtly.19:25
harlowjahmmm, idk19:25
smoserthe dynamic nature of a web service makes it so much more useful.19:25
smoserexample: 19:26
smoserhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/115362619:26
smoserie, on amazon when you attach a new NIC, the metadata service then has information about what the instance should do with that NIC.19:26
smoseramazon linux has a tool that then takes the udev event, hits the MD service, and runs 'ifup ethX' appropriately.19:27
smoserall making magic work.19:27
harmwthat sure is nice19:27
smoser(good magic in this case ... that can be confusing as other times I complain about magic).19:27
harmw:)19:27
harlowjaya, its the weird boundary of agents vs init things19:28
harlowja*active agents19:28
harmwhow nice, freebsd respects the rfc in regards to receiving multiple routes through dhcp20:28
harmwthus, it just (only) adds the static route to 169.x and not the default route20:29
=== shardy_afk is now known as shardy
gondoismoser, I have a question about the upstart process... on my rackspace cloud server, it appears the nova-agent in use is waiting for cloud-init to finish before configuring netowrking...22:35
gondoithis is not good since chef can't be installed at that point22:35
gondoialthough, I can't find the upstart events that would prevent rc 2 from being fired22:36
gondoido you have a good handle on upstart events and their dependencies?22:36

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