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

=== rangerpbzzzz is now known as rangerpb
=== nacc_ is now known as nacc
dtpi've worked around https://bugs.launchpad.net/cloud-init/+bug/1671927, but now the gateway is not being rendered to ifcfg-eth0.  gateway is defined in network_data.json, but not content/0000, so more evidence i guess that it's preferring 0000 in this case17:22
=== mgagne_ is now known as mgagne
smoserdtp, can you give the config drive that you ave?18:17
dtpsmoser some of the files are available at http://imgur.com/a/qEElh18:17
dtpand others are attached to the bug.  or is there another you need?18:18
smoserdtp, you couldnt use pastebin ? for text :)18:18
dtpi don't have net access to the VM / only have spice console18:19
smoserdtp, so the issue... is that cloud-init did not write that /etc/network/interfaces18:19
smoseras it says, nova "injected" it.18:19
smoseressentially, your cloud platform broke your image by thinking it knows what it is doing.18:19
smoserand cloud-init does not attempt to un-break it for that scenario.18:19
smoserthat make sense ?18:20
dtpwhich /etc/network/interfaces?18:20
smoseri'm 95% certain that nova mounted the image and write /etc/network/interfaces18:20
smoseroh wait.18:20
smoserno.18:20
smoserok. let me re-think18:20
dtpthis is fedora 25 / no /etc/network/interfaces, only network-scripts/... files18:20
smoserright18:20
dtpso where i'm coming from is this all worked on fedora 23 w/ older cloud-init18:21
dtptrying to get fedora 25 up18:21
smoseryou're right. it sure would appear that cloud-init is preferring to parse the 0000 file18:22
smosertheres no way you can get the disk there?18:22
dtpwhich file do you need?18:23
smoseryou shoudl be able to bring up networking by hand18:23
smoserif you just get me the config drive (dd if=/dev/vdb of=my.img)18:23
smoseror something to that affect, thats the easiest.18:23
dtpok, i'm in a meeting but will after18:23
=== shardy is now known as shardy_afk
smoserdtp, just reading code, it sure seems like it should be looking at the network json in 0.7.819:10
dtpsome of the other guys in here on Friday seemed to think it was skipping that stuff and using meta data or something?19:11
smoserwell if you attached a config drive then it should be reading that.19:12
smoserthere is a config drive, right ?19:12
smoserthats what you showed with 'cat' ?19:12
smoseryeah19:12
dtpyeah19:13
dtpthey were saying something else in the config drive caused it to ignore network_data.json19:13
dtpmeta_data i think19:13
dtpbut i didn't see much in there19:13
smoserhm.19:15
smosercan you show me ls /sr0/openstack/ ?19:15
dtpsmoser - http://imgur.com/a/YXfc5 - still working on bringing network up19:17
smoserhm.19:19
smoserthat wasnt what i expected :)19:19
dtpoh?19:19
smoserthat should work. i expected that you were going to honly have 2016-10-06 and 2017-02-2219:20
dtpone thing we noticed was that the debug logs in ConfigDrive where it says (if network_data use it, else use 0000) weren't being logged19:20
dtpso it wasn't making it there before it went to write net conf19:21
dtpi guess the trace is in that original imgur19:21
dtpwould explain how it skipped that part19:22
smoserwell, if you can get me a copy of the cdrom i can get further. without that, ... i'm not sure whats going on. and /var/log/cloud-init.log woudl be good too19:22
dtpyeah, that's in the imgur already - http://imgur.com/a/qEElh19:22
dtpat bottom19:22
smoserwell, the full thing..19:22
dtpok19:22
dtpi'll keep working to get networking up on it19:23
=== dtp is now known as dtp-afk
rharpersmoser: re: network passthrough/netplan support;  for zesty it's too late to switch to using netplan/systemd by default; so I'd like your opinion on how best to set a policy in the Distro object (or elsewhere that the Distro can use to select the right renderer)19:43
smoserwell, rharper for ubuntu we have (i think) 3 cases:19:47
smosera.) ifupdown without netplan: use ifupdown19:47
smoserb.) netplan without ifupdown: use netplan19:47
smoserc.) ifupdown and netplan: this is where we need a choice19:48
rharpercorrect; it's the (c) I was interested in19:48
smoserand i guess19:48
smoserd.) no ifupdown, no netplan: scream19:48
rharperyakkety and zesty; netplan (nplan) is seeded in the image (it's in main); so we're always in (c) for yak and zesty images19:49
smoserso i guess generically, we have  a list of available "backends" that cloud-init will come up with.19:51
smoserin 'c', that'd be: available = ['ifupdown', 'netplan']19:51
rharperrenders19:51
smoseror something19:51
rharpereni and netplan19:51
rharperand sysconfig19:52
smoserok. yeah.19:52
smoseri think that the distro should coome up with an ordered list of which are available.19:53
smoseravailable = ['eni', 'netplan']19:54
smoserfor 'c' above19:54
smoserand for 'a', that'd just be: available = ['eni']19:54
smoserthen, i guess we just have config (config/cloud.cfg i guess) that has a order of preference19:55
smosersystem_info/network/render_priority = ['eni', 'sysconfig', 'netplan']19:56
smoserand pick the first entry in render_priority that is also in available19:56
smoser?19:56
rharperok, so order of the available renders is the policy19:57
rharperso, for say UC16 (or to be named 17.10 release), we 'd update the list to indicate the preference19:58
rharpersmoser: that seems reasonable; is config only reasonable?  I know we do things like enumerate the DataSource classes to build a list; do we need to do that here for net/render.py to probe for possible renderers?19:59
smoserwell, i think something has to do that. we can put a generic implementation in the distro class.20:01
rharpersure, but I'm questioning whether we're dynamically building that list from probing cloud-init .py files (or class loading); versus returning a list of known renderer names;20:04
smoserit has to be dynamic20:08
smosersuch that in 'a', netplan is not available20:08
smoserwe can allow a force of netplan even if the discovery says netplan isnt there.20:08
rharperwell, there's whether cloud-init has a netplan renderer vs. whether the system has the tool to consume the rendered file20:09
rharperso, older cloud-inits won't have a config list with 'netplan' in it without a netplan class;  but they system may have nplan package and netplan binary available20:09
smoserwell, older cloud-inits wont read that list20:10
smoserthey're just goign to pick eni20:10
rharpersmoser: how's this look http://paste.ubuntu.com/24178612/20:35
smoserrharper, hangout ?20:39
rharpery20:39
smoserhttp://c.brickies.net/hangout20:39
=== dtp-afk is now known as dtp
smoserrharper, r class loading); versus returning a list of known renderer names;21:11
smoseroos21:11
smoserhttps://bugs.launchpad.net/cloud-init/+bug/167192721:11
smoserhttp://paste.ubuntu.com/24178813/21:13
dtpsmoser i'm giving up on getting networking up on this thing22:11
dtpthe command i need to run to add the default route is not working22:11
dtpi'll add more of the cloud-init log to the imgur22:11
dtpand let me know if there's anything else i can give22:11
=== rangerpb is now known as rangerpbzzzz
dtpsmoser nevermind, i got the sr0 image22:30
dtphow do you want it?22:30

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