/srv/irclogs.ubuntu.com/2016/04/19/#cloud-init.txt

smosermgagne, sorry. bzr01:01
smoserlp:cloud-init01:01
mgagneyea, I figured. thanks!01:01
harlowjamgagne  ya, were working on fixing that01:24
harlowjai mean smoser is gonna save us all01:24
smoserharlowja, right after you get the rhel networking sorted01:40
smoser:)01:40
harlowjalol01:40
harlowjaoh ya, i'll try to do something there this week01:40
smoser:)01:40
smoserfound / hit this today: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/157176101:40
smoser:-(01:40
smoserand with that  /me disapears01:40
smoserlater gator.01:40
harlowjahmmmm, interesting, later01:41
ReSamgood morning!07:57
ReSamI'07:57
ReSamI'm running MAAS and want to change my curtin_userdata preseed to install a few more things - but unfortunatley something always errors and then the exit code causes my deployment to fail07:58
ReSamwhat is the best way to "ignore the exit code" completely?07:58
ReSamI'm have lines like this in /etc/maas/preseeds/curtin_userdata:  puppet_02: curtin in-target -- sh -c 'dpkg -i /tmp/puppetlabs-release-pc1.deb'07:59
Odd_Blokesmoser: Is the expected behaviour of the 'fallback' networking to present network interfaces as eth{0,1,...} rather than the systemd names?09:31
Odd_Blokerharper: ^09:36
Odd_BlokeIf it isn't that's fine, I just got the impression that maybe that's what's meant to happen.09:36
Odd_BlokeAnd therefore want to know if I should be reporting if it isn't. :)09:36
Odd_Bloke(Oh, actually, maybe I'm being thrown off by a red herring: systemd leaves Hyper-V interfaces named eth* and I looked at Azure first; confirmation of the above would still be appreciated :)09:44
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
rharperOdd_Bloke: smoser  can confirm, but I don't think fallback does any renaming, so if you're booted without net.ifnames=0, and you have systemd, and fallback happens, you should see whatever systemd named the nic in the interfaces.d/50-cloud-init.cfg file12:32
Odd_BlokeOK, cool.12:33
Odd_Blokesmoser: rharper: So (assuming that to be true), do you have any suggestions for handling clouds that are sending network_config over in the meta_data.json, where content/0000 hard-codes eth0 as the expected network interface?12:34
rharperif12:34
Odd_Bloke(Other than going to the cloud and telling them to change what they're doing, of course ;)12:34
Odd_Bloke(Though we will try that)12:34
rharperif they are sending network_config via metadata service, we respect and use that12:34
rharperincluding naming12:34
rharperthat's not fallback12:35
rharperwe convert network_data.json into internal network_config.yaml which is then parsed and applied as if you had passed in a network_config.yaml in user-data12:35
rharperthis is the configdrive stuff12:35
Odd_BlokeYeah.12:35
Odd_BlokeLet me paste some things so we're on the same page.12:35
Odd_Blokerharper: http://paste.ubuntu.com/15929016/12:41
Odd_BlokeSo the cloud are just specifying an ENI file via meta_data.json and content/12:41
Odd_Bloke000012:41
rharperoh, this is network_config12:41
rharperunfortunate naming collision smoser and I discussed12:41
rharperOdd_Bloke: so, IIUC, cloud is providing an eni as-is;  however, it may not be aware of how nics will be named, right ?12:42
Odd_BlokeRight.12:42
rharperif they're sending ethX naming, and not also supplying an udev rule mapping file (70-persistent-net)12:42
rharperor network_config.yaml; then it's a bit of a shot in the dark12:42
rharperfor Xenial (and wily), ensuring you boot with net.ifnames=0 will prevent nic naming to systemd style12:43
rharperwhich should match what they send; but the cloud itself should transition to using network_config.yaml12:43
Odd_Blokerharper: Right; we're trying to get away from net.ifnames=0 as far as we can (because I suspect we will strongly regret having that delta in place for the next five years).12:44
rharperagreed12:44
rharperand the requirement is to specify what you want in network_config.yaml12:44
rharperalternatively, they can emit the ConfigDrive format that OpenStack uses12:44
rharperwhich cloud-init can convert to network_config.yaml12:44
rharperwhich emits the rules files needed to do name mapping12:45
Odd_Blokerharper: Is there documentation that I can read/point them at?12:45
rharpery12:45
rharperone sec12:45
rharperhttps://blueprints.launchpad.net/nova/+spec/metadata-service-network-info12:46
rharperhttp://specs.openstack.org/openstack/nova-specs/specs/liberty/implemented/metadata-service-network-info.html12:46
Odd_Blokerharper: So that's what they would put in /openstack/.../network_data.json, right?  How does network_config.yaml work?12:48
rharperit goes in the ConfigDrive at openstack/<date>/network_data.json12:49
rharperfor network_config.yaml, lemme find the details12:49
Odd_Blokerharper: Thanks. :)12:51
smoserOdd_Bloke, well, we need them to send the macs13:06
smoserand openstack does.13:07
Odd_Blokesmoser: From Liberty onward, right?13:13
Odd_Bloke(Can I tell what version of OpenStack I'm running on easily?)13:14
smoserthe easiest way to do so is to look at the config drive.13:17
smoseror metadata service.13:17
smoserthe version of the openstack isn't really exposed to the guest.13:17
smoserto further make it painful you actually have to have this fix applied to your liberty cloud : https://bugs.launchpad.net/nova/+bug/151326713:18
Odd_BlokeSo the most recent metadata version is 2013-10-17.13:18
smoserOdd_Bloke, https://github.com/openstack/nova/blob/master/nova/api/metadata/base.py#L7213:20
=== rangerpbzzzz is now known as rangerpb
smoserso they're ssomewhere between Havana and Liberty (Icehouse, Juno, or Kilo)13:21
Odd_Blokesmoser: So one of Hava, Icehouse, Juno or Kilo?13:21
Odd_BlokeHah.13:21
smoserits not unreasonabel to request the newer metadata really...13:21
smoserif they want to provide network data to the guest, then that is how it is done, and any thing previous is just kind of crap.13:22
smoserwe could maybe support the path where they made a /etc/network/interfaces style file available to the guest13:22
Odd_Blokesmoser: Assuming they aren't able to do network_config.json, is there any good path forward that might mean we can get something working on GA day?13:27
Odd_Bloke(I'm assuming cloud-init changes are out of scope for Thursday :p)13:27
smoserwell, ga is almost certainly no.13:27
smoserright.13:27
smoserthis is dreamhost ?13:28
Odd_BlokeYep.13:28
Odd_BlokeOnly their new region though.13:28
smoserand each instance has static ip configuration expected ?13:28
Odd_BlokeTheir old region has a DHCP server.13:28
smoserhow did they think this is supposed to work?13:28
smoserie, if its static config, how does the host tell the guest what config to use13:28
Odd_BlokeDid you see http://paste.ubuntu.com/15929016/ ?13:29
smoserno sorry13:36
smoserOdd_Bloke, ok. so yeah, thats the old way of declaring it and we could prbosbaly without too much effort make that work13:37
smoserbut not without some chagnes to cloud-init13:37
Odd_Blokesmoser: No need to be sorry. :)13:37
Odd_Blokesmoser: What would you envision those changes being, roughly?13:38
smoserthe config drive datasource would just have to look in that path for config information and the parse the ENI format13:39
smoserand then apply it as networking.13:39
smoserwe do have an ENI parser in cloud-init13:39
smoserand then a writer. so the pieces are mostly there.13:39
smoserthe hwaddress bit is actually *wrong* in openstack's use.13:40
smoserie, they're saying "eth0 is the nic with this mac address"13:40
Odd_BlokeHow would it infer that the config for eth0 should actually be applied to network_interfaces[0]?13:40
smoserwhen ifupdown says "i shoudl change the nic named eth0 to use this mac address"13:40
smoserhow would it infer ?13:40
Odd_BlokeOhhh, I'd missed that they specified the MAC address.13:42
Odd_BlokeSo cloud-init would rename the NIC with the MAC address specified there to eth0 and then apply that ENI config in ENI.d/50-cloud-init.cfg (or whatever that file is called)?13:44
smoseryeah.13:44
=== rangerpb is now known as rangerpbzzzz

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