/srv/irclogs.ubuntu.com/2017/09/21/#cloud-init.txt

elurkkismoser: CentOS 7.4 & cloud-init 0.7.9 didn't set the gateway when used earlier user-data and meta-data files with NoCloud. Managed to figure out the network-config syntax and now all the network configurations are set correctly.06:16
=== shardy is now known as shardy_afk
mtangaroDear experts, I've a problem with Cloud-init or at least I think so10:04
mtangarocan you please help me?10:04
=== shardy_afk is now known as shardy
smoserrobjo, around ?14:17
smoserresponded to both your mps14:20
robjoon the phone, will check after, thanks14:32
smoserk14:54
robjosmoser: https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/331142 should hopefully meet the needs16:09
smoserrobjo, are you ok if i change the indent on 'Copyright' ?16:30
robjosure16:31
smoserrobjo, ok. and is it ok if i just drop the copyright ?16:35
smoseri think they're 99% largely harlowja work anyway.16:35
robjoYeah, I guess, this is going away in 2019 anyway when SLE 11 dies, I can't wait.....16:36
smoser http://paste.ubuntu.com/25587157/16:37
smoserthats the diff from redhat/* to suse/*16:39
robjoyup, just off enough to be annoying, I know16:41
smoseri think then we shoudl just do a straight copy and then make the changes that matter16:42
smoseris that ok ?16:42
smoserwe could do some integration or templating, but sysvinit in suse and redhat are both really EOL16:42
smoserso that doesn't make much sense.16:42
kszarlejhey guys, I have a Libvirt VMs that are using cloud-init provided by the 'config drive'. Is this possible using cloud init to setup the eth0 interface when booting the instance? I use in my network only static addressing and I dont want to add DHCP server16:43
robjoYes copy and then changing the bits where it matters also works for me16:43
kszarlejSo instance starts with no configured interfaces -> cloud init configures statically the eth016:44
smoserrobjo, http://paste.ubuntu.com/25587206/16:48
smoserthats what i would do on top of your branch16:48
smoserwhich leaves me with16:49
smoser http://paste.ubuntu.com/25587211/16:49
smoseras (redhat -> suse differences)16:49
smoserrobjo, i'm sorry that i didnt realize at the start that you had copied the redhat/ scripts16:49
smoseri assumed they'd come from your packaging or something16:49
smosersorry16:49
smoserkszarlej, not statically16:49
smoseroh. sorry. wait.16:50
smoserkszarlej, "config drive"16:50
kszarlejye16:50
smoseris that meaning "OpenStack config drive" ?16:50
smoseror meaning "configuration disk" more generically16:50
kszarlejI am creating .iso with 'user-data' and 'meta-data'16:50
smoserright.  NoCloud then.16:50
kszarlejand I mount it to VM as 'cdrom' device16:50
kszarlejand the VM recognizes it just fine16:51
smoser'config drive' is a term that means something specifically to openstack.16:51
smosersorry. i was just trying to clarify what you were asking16:51
robjosmoser: http://paste.ubuntu.com/25587206/ looks fine, do not recall the origins os the sysvinit stuff it's been too long, been carrying those patches in cloud-init package forever16:51
kszarlejI have problem setting up the dnsmasq in my network infrastructure that would be leasing DHCPs to VMs.. and I am thinking if it would be possible to16:51
smoserok. then robjo i'll pull those in with my changes.16:51
kszarlejconfigure the interfaces using cloud-init instead of DHCP16:51
robjothanks16:52
smoserkszarlej, so on your disk with 'user-data' and 'meta-data'.16:52
smoseryou need to16:52
robjoalso replied on the other proposal16:52
smosera.) set the label to be 'cidata'16:52
smoserb.) provide 'network-config' file in addition to user-data and meta-data16:52
smoserthe network-config is described http://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html#network-config-v116:53
kszarlejso like that https://gist.github.com/Informatic/0b6b24374b54d09c77b9d25595cdbd4716:53
kszarlej??16:53
smoseror http://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html#network-config-v216:53
kszarlejok smoser16:53
kszarlejthanks!!16:53
kszarlejI was looking for "cloud init config drive network configuration"16:53
smoseryou do not need dsmode: local now16:54
smoseri'm 99% sure16:54
kszarlejand tried the network-interfaces: in meta-data16:54
kszarlejbut I am failed :)16:54
kszarlejwill try the network-config :)16:54
smosernetwork-interfaces is legacy16:54
smoser(as described in that do up there)16:54
kszarlejthanks!16:54
paulmeyI have a case of vanishing tempdir... Any idea what might cause this? http://paste.ubuntu.com/25587235/16:54
smoserkszarlej, if you're able, its best to provide the mac address of the nic16:55
smoserthat way cluod-init can16:55
smosera.) rename the nic to whatever you want16:55
paulmeyIs systemd mounting tmpfs on /tmp while cloud-init is in the middle of something?16:55
smoserb.) actually identify it, rather than you guessing the name that the kernel will give it.16:55
smoserpaulmey, yes16:55
smosersort of16:56
smoserpaulmey, https://bugs.launchpad.net/cloud-init/+bug/170722216:56
ubot5Ubuntu bug 1707222 in cloud-init "usage of /tmp during boot is not safe due to systemd-tmpfiles-clean" [High,Confirmed]16:56
smosernot "mounting", but deleting16:56
smoserrobjo, i'm going to pull the sysvinit changes for you16:57
paulmeyhmmm... nasty16:58
paulmeysmoser: thanks. That will be in the upcoming release, I assume?17:02
smoseryeah, i just marked it fix-committed.17:02
paulmeyawesome thanks17:02
smosernote, it had fallout though17:02
smoserwe changed to using /run/cloud-init/tmp17:02
smoserso that systemd wouldnt think it should just delete things for us17:02
smoserand that broke because /run is (typcially) mounted with 'noexec'17:03
smoserand at times we need exec17:03
smoserfun17:03
paulmeysigh... sorry for your pain...17:03
smoseri find the idea of deleting files under almost any criteria by a central daemon questionable.17:03
paulmeybut getting into earlier boot races is a good condition to be in... ;-)17:04
smoserie, there is stuff that will delete your files in /tmp if they're 30 days old17:04
robjosmoser: thanks17:04
smoserwell... sometimes i put stuff there :)17:04
smoseri dont plan ahead of time how long i'll want to keep something for17:04
paulmeyyeah... systemd is getting power hungry...17:04
harlowjasmoser wut17:09
harlowjalol17:09
smoserharlowja, cloud-init misses you17:09
harlowjaya17:09
harlowjai miss her to17:09
harlowjalol17:09
* dpb1 hands smoser /home17:11
smoserdpb1, i have ~/t/ for tmp files in /home that i think i might need later.17:12
smoserbut sometimes i just dont know.17:12
dpb1smoser: I have a ~/tmp/17:13
dpb1for same17:13
* smoser is 66% more effective than dpb1, but has to think about typing 'affective' or 'effective'17:13
dpb1hahaha @ affective17:14
smoser(googled that for kids last week. RAVEN: Remember Affect Verb Effect Noun)17:14
smoserrharper, what do you think...17:17
smoserhttps://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/33114017:17
smoserrobjo's merge above17:17
smoserwe can drop the duplicated 'Default user' section (line 31-44) with this change instead17:17
smoserhttp://paste.ubuntu.com/25587352/17:18
smoserie, the only change that robjo put in there was different default groups17:18
smoserblackboxsw, what do you think ?17:30
blackboxswwas looking it over17:30
smoserbasically i'm asking about whether to "nested loop" or "copy block"17:33
smoserer...17:33
smoser"nested if/else"17:33
blackboxswsmoser: it looks like it's the same content as centos/rhel/fedora too17:34
smoser?17:34
smosermy diff should make it clear what is different17:34
smoser http://paste.ubuntu.com/25587416/17:34
blackboxswahh didn't know your were talking about a pastebin. I was on robjo's branch17:34
blackboxswyeah looking now17:34
smosermy pastebin there is on top of robjo's branch. (and *this* pastebin doesn't use undefined variables)17:35
smoserwhich is a nice feature i think (the last one spelled variant wrong)17:35
blackboxsw+1 on that pastebin as I was thinking kinda the same, we didn't want to copy a separate block for suse as it's nearly the same as rhel etc17:35
blackboxswyeah I like that fix17:36
blackboxsws/fix/patch17:36
blackboxswgotta go for kid pickup17:36
smoserok. then i am going to pull that also.17:36
smoserwith my change there.17:36
smoserrobjo, are you there ?17:40
smoseri do have some questions though on that mp.17:40
robjosmoser:  on the phone again17:40
smoserwelll, please when you get done take a look at my comments.17:42
smatzekDoes multiple interface configuration work for anyone using the OpenStack datasource on Xenial using 0.7.9?17:47
smoseri'd expect it to work.17:47
smoserah.17:47
smoserwith config drive17:47
smatzekit works with config drive but not the OpenStack datasource.17:47
smoseryeah17:48
smoserer.. yes. that is what i would expect.17:48
smatzekwhy is that?  A bug? I've dug through the code and have some ideas.17:48
smatzekcloud-init successfully reads the network json: 2017-09-21 13:07:58,001 - url_helper.py[DEBUG]: Read from http://169.254.169.254/openstack/latest/network_data.json (200, 626b) after 1 attempts17:48
robjosmoser: I did respond on the inline comments, hmm not sure what I screwed up that they didn't arrive on your end17:48
robjobasic.target vs. sysinit.target17:49
smatzekbut then says this: stages.py[INFO]: Applying network configuration from fallback bringup=True17:49
smatzeklikely because the OpenStack datasource doesn't have the network_config() property in 0.7.9 and doesn't override it from the base class at master in github either17:49
smatzekhttps://git.launchpad.net/cloud-init/tree/cloudinit/stages.py#n62317:49
smoserrobjo, maybe you didn't hit 'submit17:49
smoserr... 'Save comment'17:50
smoseri dont see them. i'm sorry17:50
robjoprobably :(17:50
robjoI bet I cannot get back there now, darn.....17:50
smosersmatzek, right now, only "local" datasources can provide network data.17:51
smoserthis is because the point at which cloud-init.service (non-local) runs is too late in boot to declaritively set up networking.17:51
smatzekah, I suppose because you don't want to depend on the networking to come up to allow metadata service gets to then configure networking....17:52
smoserand we don't currently have any configuration of hotplugged networking17:52
smatzekthanks!17:52
robjosmoser: do you see the comments now?17:52
robjoThey were not lost that's nice17:52
smoserthe real problem woudl be that at cloud-init.service point in boot osmehting could already be using the network (and rightfully so, as network.target is reached)17:53
smoserso taking it down to fix it would be difficult and possibly break things17:53
smoserso it is as it is right now, smatzek but we do have intent on fixing feature to address it17:53
robjoWell, that's not intuitive, I comment in-line but hen have to click "Save-Comment" for an empty text field....17:53
robjosomething learned17:53
smoserrobjo, yeah, launchpad has saved me there before :)17:53
rharpersmoser: +1 on the smaller delta to the config template for suse17:54
smoserrobjo, ok. if you're ok with my suggested changes, then i'll make some small comments in the template based on your responses and pull it18:06
smosermy only concern is that you're never going to figure out why basic.target v sysinit.target so i'm accepting this technical debt when what i should tell you to do is properly justify it18:06
robjosmoser: sounds good thanks18:06
robjoI will put a card on my trello board to re-visit this topic before the end of the year18:08
blackboxswback18:10
smoserrobjo, http://paste.ubuntu.com/25587623/18:12
smoserthat is my total diff against your current branch (73acbf4a00741f8)18:12
smoserseem sane ?18:12
robjosmoser: yes, thanks18:14
blackboxswmy heart goes pitter-patter when I hear others use trello. /me ♥'s agile w/ trello.18:14
blackboxsw... yeah I don't get out much18:14
rharperlol18:16
smoserbut look at the mastery of unicode usage. 💕18:18
blackboxswheh18:19
robjothe world was much simpler without .decode() ;)18:19
rharperf = '💕''18:23
rharper  File "<stdin>", line 118:23
rharper    f = '💕''18:23
rharperSyntaxError: EOL while scanning string literal18:23
rharperso masterful18:23
smoserblackboxsw, rharper robjo i'm looking at18:34
smoser https://cloud.google.com/compute/docs/storing-retrieving-metadata#querying18:34
smoserand then planning on making sure that goes thorugh an integration run and then change versions and tag18:34
rharpersmoser: did you mean a code link not gce metadata ?18:35
robjoyes, puzzled...18:35
rharpersmoser is having cut-n-paste fun after switching main browsers18:36
robjobut did I tell you about gcemetadata ;)  https://github.com/SUSE/Enceladus/tree/master/gcemetadata18:36
blackboxswI recall from the summit, thanks for the link!18:37
smoseri meant18:38
smoserhttps://code.launchpad.net/~arnd-arndnet/cloud-init/+git/cloud-init/+merge/33114818:38
blackboxswbtw /run/cloud-init/instance-data.json is queued for review an will land post this release18:38
* blackboxsw wants to get a branch up for DataSource.crawl_metadata ++ cloud-init devel crawl-metadata 18:39
smoserpowersj,18:43
powersjyo18:43
rharpersmoser: sounds like a plan18:43
smoseronce i push above, i'd like to push a branch candidate/17.118:43
smoserthen i'd like to run through integration tests on that18:44
smoserand also as much other stuff as possible18:44
smoserthen just pull that.18:44
powersjok18:44
smoserwhat all do you recommend we run and how can we do that ?18:44
powersjhonestly we should be doing all the tests we say we will run for an SRU exception: https://wiki.ubuntu.com/CloudinitUpdates18:44
powersjso touching each of the data sources18:45
powersjfor integration tests, run through all tests on LTS + devel via lxd18:45
blackboxswI could spin up a couple instances on azure, gce and aws to test too18:45
smoserhm..18:45
powersj`python3 -m tests.cloud_tests run --verbose --platform --os-name xenial --os-name artful`  should do the lxd side18:45
powersjwoops forogt the lxd part18:46
powersjpython3 -m tests.cloud_tests run --verbose --platform lxd --os-name xenial --os-name artful`18:46
smoserpowersj, well, i'd like for jenkins to run that for me18:46
smoserthen there are some thing sthat ideally we'd test that dont (currently) take a branch18:46
powersjyou are looking for a release testing job that runs that based on a given branch?18:47
smoserie, testing xenial is actually much more valid to test the daily ppa18:47
smoserwhich builds from trunk18:47
smoserpowersj, so yes, sort of :)18:47
smoserwhat you said18:47
smoserthis doesnt have to be perfect now18:47
powersjYou know our current daily integration tests build for each distro and then run using the built deb right?18:48
smoserwell, do they ?18:48
powersjyes18:48
powersjhttps://github.com/canonical-server/jenkins-jobs/blob/master/cloud-init/integration.yaml18:48
smoserdo they use the packaging branch ?18:48
powersjno they use trunk18:48
powersjI sbuild each18:49
powersjI do not have direct testing on your release branches, only master18:49
powersjsounds like a test gap18:49
smoserright.18:49
* powersj adds a card for release branch testing18:49
smoserit'd be best for us to test those daily ppas or some other way build trunk + ubuntu packaging18:50
smoserand test the result.18:50
powersjI think I am testing the latter option, right?18:50
robjoOur image build system has been terribly slow the last couple of days. I had hoped to have some rudimentary test results on SLES in EC2 by now but well, no images, no testing.....18:50
robjohowever rather than pulling master and pushing more on the long queue I'll just wait until this round goes through that should be a reasonably close approximation18:51
smoserpowersj, i suspect you're not testing ubuntu packaging18:56
smoseri think its just using packages/bddeb18:56
smoserwhich builds trunk's packaging18:56
powersjcan you define what you mean by that... to mean ubuntu packaging == debian directory18:56
smoserwhich is missing some patches18:56
smoseryeah, the debian/ directory in the ubuntu/xenial branch18:57
powersjso I'm not testing the specific release patch sets18:57
smoserright.18:57
powersjok table that for next week?18:57
smoserfrom a "we are upstream" perspective, its arguable that that is fine.18:57
smoseryeah18:57
powersjmore immediately you want a jenkins job to run lxd backed integration tests that i proposed above?18:58
smoserpowersj, yes18:58
powersjok18:58
smoserbut it will just do that18:58
smoserright ?18:58
smoserif i push a branch for review18:58
powersjThe review ill run 2-3 integration test cases on xenial only18:59
smoserpowersj, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33116119:02
* smoser wonders if that will pass check_version in c-i19:02
blackboxswsmoser is that using log2dch?19:02
powersjheh we will find out shortly :)19:03
smoserblackboxsw, it did, yeah19:03
blackboxswI just pushed that into our cloud-init/qa-scripts repo19:03
blackboxswso we have a copy of it in non-gist format :)19:03
smoseri un-indented19:03
blackboxswfigured we'd collect any tools we are using for our varios dev practice in powers19:04
blackboxswfigured we'd collect any tools we are using for our varios dev practice in powers' shared repo19:04
blackboxswvarious even19:04
blackboxswbak 2 typoe skool19:04
powersj:D19:05
powersjok created two jenkins jobs for release based testing, given a repo + branch it will run all LXD tests, one for xenial, one for artful.19:06
powersjsmoser: build passed19:15
powersjinstall deb: "cloud-init_17.1-0-gbf6456f-1~bddeb_all.deb" into target19:15
* blackboxsw runs that branch on aws 19:15
powersjsmoser: are we really still including the git tag?19:15
smoserpowersj, ?19:16
powersjwhen you release will the version string have "-gbf6456f" or some revision string in it and not just "17.1"?19:16
smoserthe version string in the debian package will have that.19:18
smoserhm..19:20
powersjCI passed19:22
powersjrunning integration tests19:22
blackboxswsmoser: python-jsonschema needs to not be required by the package on that branch19:26
blackboxswdpkg: dependency problems prevent configuration of cloud-init:19:26
blackboxsw cloud-init depends on python3-jsonschema; however:19:26
blackboxsw  Package python3-jsonschema is not installed.19:26
kszarlejHey. I am having an exception when trying to use `network-config` with NoCloud cloudinit that is suppose to provision my libvirt instances. I tried both version1 and version2 of the network-config. Details can be found in http://paste.ubuntu.com/25588011/ (both configurations and an error)19:27
smoserblackboxsw, so the debian packages built from trunk will get -0-gXXXX the ones that go into ubuntu will have19:27
smoser 17.1-0ubuntu119:27
smoserbut then the first time we grab a snapshot again we'll get19:27
smoser 17.1-0-gXXXXX-0ubuntu119:28
smoserblackboxsw, "package on that branch" ?19:28
smoserblackboxsw, trunk requires python3-jsonschema19:28
smoserxenial patches that dependency out19:29
blackboxswsorry, just a reminder that we carry a patch for no python3-jsonschema19:29
blackboxswyeah19:29
blackboxswok good good19:29
smoserthis is one of the things that testing the daily builds from the ubuntu/xenial + trunk build would cover19:31
smoserhttps://git.launchpad.net/cloud-init/tree/debian/patches/stable-release-no-jsonschema-dep.patch?h=ubuntu/xenial19:31
smoserist hte patch19:31
powersjxenial lxd tests passed https://jenkins.ubuntu.com/server/view/cloud-init/job/cloud-init-integration-release-lxd-xenial/2/console19:32
blackboxsw2017-09-21 19:31:43,001 - util.py[DEBUG]: Cloud-init v. 17.1 running 'init-local' at Thu, 21 Sep 2017 19:31:42 +0000. Up 5.54 seconds.19:33
blackboxsw2017-09-21 19:31:43,523 - handlers.py[DEBUG]: finish: init-local/search-Ec2Local: SUCCESS: found local data from DataSourceEc2Local19:33
blackboxswok looking good aws19:33
rharperkszarlej: I've seen that error before; I can't find the bug but it should be fixed in trunk;  if possible you can test/try the daily cloud-init rpm https://copr.fedorainfracloud.org/coprs/g/cloud-init/cloud-init-dev/19:37
smoserkszarlej, please do try trunk. i can't reproduce the error there.19:41
smoseri suspect you're on centos/rhel based on python2.719:41
kszarlejyep19:43
kszarlej2 bad19:43
kszarlejI have to modify the19:43
kszarlejoriginal centos cloud image19:43
smoserhttp://paste.ubuntu.com/25588132/19:45
smoserkszarlej, ^ shows how you can use a tool in trunk to more quickly iterate19:45
smoserwhich probably would have been useful to you earlier19:45
smoser:)19:45
blackboxsw2017-09-21 19:45:36,396 - util.py[DEBUG]: Cloud-init v. 17.1 running 'init-local' at Thu, 21 Sep 2017 19:45:36 +00019:48
blackboxsw0. Up 9.36 seconds.2017-09-21 19:45:39,401 - handlers.py[DEBUG]: finish: init-network/search-GCE: SUCCESS: found network data from Dat19:48
blackboxswaSourceGCE19:48
blackboxswhttps://www.irccloud.com/pastebin/7XrX4aVw/19:48
blackboxswgce looking good19:48
blackboxswand now to remember my azure creds19:48
rharper7a3nf07sf19:49
rharpersomething like that =)19:49
powersjblackboxsw: created card and added to you19:49
powersjblackboxsw: can you add links to your pastebin results there?19:49
blackboxswI'm pretty good w/ ctrl-v. let's see :)19:50
blackboxswthx powersj19:50
powersjhttps://trello.com/c/sd5qvgJx/428-171-release19:50
rharperblackboxsw: maybe you can help smoser; there was some ctrl-v/ctrl-p trouble earlier19:50
blackboxswhahaa19:50
smoserin firefox with pentadactyl i could just hit 'y' rather than ctrl-v.19:54
smoserbut cvim doesn't seem to work as well. thats supposed to work i think, but doenst sometimes. in chrome.19:54
rharpervimium!19:54
dpb1vimperator19:54
rharperdid that get ported to chrome ?19:54
rharperit used to be ff only (*years* ago )19:55
dpb1idk, actually19:55
dpb1ya19:55
dpb1my cube neighbor at hp was hardcore vimperator user19:55
rharpersadly, it's not as complete as vimperator was (input boxes) so I've added also wasavi (which is inputbox only vim support)19:55
rharperbut the link/tab highlighting is super cool in vimium19:56
smoserpentadactyl was well better follow-on to vimperator19:56
smoserbut is kind of dead.19:56
smoserhttps://github.com/5digits/dactyl/issues/9919:56
smosergoogle seemed to think that cvim was better than other options for chrome19:57
smoserand wasavi is pretty nice. but can't read or write to files.19:58
rharperyeah19:59
powersjartful lxd tests passed https://jenkins.ubuntu.com/server/view/cloud-init/job/cloud-init-integration-release-lxd-artful/2/console20:00
powersjrunning nocloud kvm20:04
blackboxswazure clean boot test completed20:06
blackboxswok, looks like that'll cover it w/ powersj' test20:07
* blackboxsw remebers to teardown my azure resource group20:07
powersjsmoser: ok got coverage on ec2, azure, aws, nocloud, lxd20:08
powersj+build +ci20:08
powersj+MAAS Compatability Testing20:09
blackboxswI use wasavi too. ... though I keep accidentally triggering it20:09
dpb1same20:16
dpb1it's also not the same20:16
smoserhttps://public.etherpad-mozilla.org/p/cloud-init-17.120:16
kszarlejsmoser: I upgraded to newest from daily rpm builds20:24
kszarlej(v0.7.9)20:25
kszarlejand still same error20:25
kszarlejthe exact version is cloud-init-0.7.9+286.gd3a8777-1.el7.centos.noarch20:27
smoserkszarlej, hm..20:29
smoserah20:29
smoserwait20:29
smoserkszarlej, so...20:30
smoserfirst thing20:30
smoseris that 'network:' should not be present in the network-config file20:31
smoseras its already namespaced to 'network'20:31
smoserclearly better error would be ncie.20:31
smoserbut try out-denting that and dropping network:20:31
smoserthe 'version: 2.... i'm not sure20:31
rharperhttps://bugs.launchpad.net/cloud-init/+bug/170825520:31
ubot5Ubuntu bug 1708255 in cloud-init "empty or invalid network config dictionaries are not handled well" [Undecided,New]20:31
kszarlejok trying to out-dent20:32
kszarlejtrying with version 1 synta20:32
kszarlejx20:33
smoseroh. and kszarlej you didn't have a mac_address in your v120:33
kszarlejsmoser: I have20:34
kszarlejnetwork:20:34
kszarlej  version: 120:34
kszarlej  config:20:35
kszarlej  - type: physical20:35
kszarlej    name: eth020:35
kszarlej    mac_address: 0e:a5:95:fd:a3:b220:35
kszarlej    subnets:20:35
kszarlej      - control: auto20:35
kszarlej        type: static20:35
kszarlej        address: 10.10.1.120/2420:35
kszarlej        gateway: 10.10.1.320:35
kszarlej        dns_nameservers:20:35
kszarlej          - 8.8.8.820:35
smoseryeah, in your paste you didn't have {{ mac address }}20:35
kszarlej          - 8.8.4.4y20:35
kszarlejhere is the exact config. (the y on the end is by accident)20:35
kszarlejsry I should have used paste20:35
kszarlejthats the exaact config I used now and it failed20:35
smoserwell you should not have 'network'20:36
smoserremove l ine 120:36
smoserout-dent 2 spaces20:36
kszarlejyep20:36
kszarlejI will try that now20:36
kszarlejis it possible to20:36
kszarlejrun cloud-init on host once again20:36
kszarlejor I have to reproviosion it?20:36
kszarlej(I will have to dd the original image to the VM disk and it takes time)20:37
rharperif you have console, you should be able to restart the service (cloud-init-local)   you may need to remove /var/lib/cloud/instance/obj.pkl;  and of course update the the on-disk network-config file;20:38
blackboxswwouldn't sudo rm -rf  /var/log/cloud*log /var/lib/cloud; sudo reboot work too?20:39
smoserblackboxsw, bah20:41
dpb1blackboxsw: we have 'cloud-init clean' or something on our ideas, right?20:41
smoserlook at your /tmp20:41
smosersee if you have ci-FakeExtendedTempFile*20:41
powersjci-FakeExtendedTempFile.b5pmLb20:53
powersjci-FakeExtendedTempFile.oqisp_1520:53
powersjci-FakeExtendedTempFile.pkggbqro20:53
powersjci-FakeExtendedTempFile.q9aq1dpv20:53
powersjci-FakeExtendedTempFile.uIPh1b20:53
powersjci-FakeExtendedTempFile.vq9_ldsb20:53
kszarlejsmoser: rharper finally20:58
kszarlejit works20:58
kszarlej :)20:58
smoserblackboxsw, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+ref/fix/fake-extended-tempfile-cleanup21:01
blackboxswbah /tmp21:03
blackboxswoops bah blackboxsw21:03
blackboxswnot cleaning up my own tmpfiles21:03
smoserblackboxsw, i might have regressed that for you21:04
smoseri took that duplicated class out21:04
smoserand put it at the top21:04
smoseryou probably had it reerencing  self.tmp_dir21:04
smoseras i remember21:04
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33116821:06
=== smoser changed the topic of #cloud-init to: is Reviews: http://bit.ly/ci-reviews | Meeting minutes: https://goo.gl/mrHdaj | Next status meeting: Monday 10/2 14:00 UTC | cloud-init 17.1 released
rharperkszarlej: \o/21:07
smoserkszarlej, so version 1 worked.21:08
smoserversion 2 should work also21:08
smoserbut if it works, it works.21:08
kszarlejyup the out-dent helped21:08
kszarlej:)21:09
kszarlejthanks21:09
blackboxswsmoser: still seeing the /tmp leaks21:09
blackboxswwith the patch21:09
blackboxswsmoser: nevermind. PEBKAC21:10
blackboxswapproved21:10
blackboxswdpb1: I didn't know if we committed on that 'cloud-init clean'. We can have a branch up today if we want it. I think it sounds like a good idea, and it's simple to implement a basic approach. (We might end up tweaking it a bit with the re-rentrant cloud-init features). Certainly if all it is is wiping the cloud-init logs/lib dirs21:15
dpb1blackboxsw: no, just curious21:16
dpb1blackboxsw: it's a common testing pattern21:16
dpb1would be nice to codify it21:16
blackboxswagreed21:16
robjoblackboxsw: Could you take a look at https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/331149, need some help filling in the rest of the schema data, thanks21:26
blackboxswrobjo: you made my week21:27
blackboxswI was just looking over schema stuff last night and thought that this is going to be a lot of work for the 50 remaining cloud-config modules21:27
blackboxsw:)21:27
robjoWell this is net new, so I am not really helping you get that work done, sorry. But at least I am not creating more ;)21:28
blackboxsw+1 to that.21:30
kszarlejok there is one more problem. Cloud-init in NoCloud doesnt manage the resolv.conf. Both when setting in network-config for subnet as dns_nameservers: ['8.8.8.8'] and in meta-data21:43
kszarlejmanage_resolv_conf: true21:43
kszarlejresolv_conf:21:43
kszarlej  nameservers:21:43
kszarlej    - '8.8.8.8'21:44
kszarlej    - '8.8.4.4'21:44
kszarlejin first case it should set the DNS1=8.8.8.8 in eth0 script but it doesnt actually.21:44
kszarlejseems like the module is not activated on centos21:49
robjo17.1 is building in Cloud:Tools:Next smoser thanks for including all the new patches and for the help, hopefully I'll get to do some testing tomorrow.21:54
robjothe https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/331149 will change the config format for SUSE repos, thus I am negotiating with the internal user of this feature whethere we will add the patch I am working on to the 17.1 build or keep the old patch and switch the next time21:56
robjoThings are looking up I am 17 patches down from the previous package :D21:57
rharperkszarlej: it looks like the sysconfig renderer doesn't handle the dns_nameserver entry under the subnets (eni does);  you can specify it as a top-level type: nameserver21:58
rharper        - type: nameserver21:58
rharper          address:21:58
rharper          - 8.8.8.821:58
rharperkszarlej: if you have time, please file a bug; sysconfig render should handle both21:58
kszarlejrharper: as top level in networking section22:07
kszarlejor in cloud-config 'meta-data' ?22:07
rharperat the same level as the type: physical22:07
rharperunder config: array22:07
kszarlejbtw. in centos7 /etc/cloud/cloud.cfg 'resolvconf' module is not listed under any of the 'stages'22:08
rharperthat's likely a but too w.r.t the which modules are run by default;22:08
kszarlejw.r.t ?22:08
rharpersorry, with respect to22:09
rharpers/but/bug22:09
kszarlejpl thx22:29
kszarlejok* ;p22:29
kszarlejI will create bug reports tomorrow. Time to sleep. Gn822:29
powersjsmoser: I usually run the integration tests by doing `python3 -m ...` versus tox... well since I added simplestreams as a dependency that broke tox. I don't see simplestreams in pypi.23:42
powersjBecuase tox will only work with the lxd backend, my thought was to remove references to tox in the docs and remove the tox support. However, since you were pretty happy with that ability to run I wanted your thoughts.23:44

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