/srv/irclogs.ubuntu.com/2018/02/09/#cloud-init.txt

* blackboxsw needs to add an integration test for restarting cloudinit.service on upgrade path00:20
rharperblackboxsw: bummer, we all missed it: https://code.launchpad.net/~ajorgens/cloud-init/+git/cloud-init/+merge/329657  in the review +1 on integration test01:28
blackboxswyeah I know, I'll add an upgrade cli invocation integration test with the fix for this rharper01:31
blackboxswso we don't get hit by any other upgrade obj.pkl isms on new class attrs01:31
blackboxswwas thinking about the following http://paste.ubuntu.com/26544332/ will test it out01:44
smoserblackboxsw: thanks for finding :-(01:46
smoserblackboxsw: https://bugs.launchpad.net/cloud-init/+bug/173533101:58
ubot5Ubuntu bug 1735331 in cloud-init "ec2: zesty tempfile sandbox dhclient.pid file can't be created" [High,Fix released]01:58
smosera comment there. i asked for logs.01:58
blackboxswhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/174835403:53
ubot5Ubuntu bug 1748354 in cloud-init (Ubuntu) "ec2: systemctl restart cloud-init after upgrade 17.1.46 -> 17.2.30" [High,Triaged]03:53
amitprakashCan someone please help me make sense of why cloud-init is failing? https://gist.github.com/291e61880cfdc6c9e1bc46b243d47760 I've verified that /bin/ip exists. Modifying net/*.py with abspath to binaries allows it to find ip/resize2fs etc commands07:29
amitprakashany ideas why the path is broken for cloud-init07:29
kutasekhello, I am trying to set a hostname for an AWS Ami on reboot with the instance id in the name. Is it possible to substiture some variable in the hostname param?08:58
kutaseke.g I wish to be able to do something like: "hostname: abc-dev-$INSTANCE_ID.domain.com"09:08
jchevalierHEllo, modules-config and modules-final won't start, but works fine manually09:34
jchevalierHow can I debug this? Is there a configuration somewhere saying which steps must run?09:35
PsyRabbits as-admin-p2.central.infra.maz13:38
PsyRabbitSorry, wrong window :/13:38
blackboxswkutasek: watch for this branch to land https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/335290   you can then provide  something like this https://pastebin.ubuntu.com/26546614/14:05
kutasekblackboxsw: I can put that template directly in the user-data of my aws instance?14:06
blackboxswcorrect kutasek once I get that branch touched up and landed (it would make it into bionic images until we SRU it)14:06
blackboxswSRU (stable release update into xenial and artful)14:06
blackboxswyeah you'd just have to provied the ## template: jinja2 header above the #cloud-config you provide anyway14:07
blackboxswsorry ## template: jinja   I mean14:07
kutasekblackboxsw: Thanks for the info, one more question will it support aws meta-data variable out of the box?14:08
blackboxswkutasek: it  pulls anything from /run/cloud-init/instance-data.json ... leeme get you an ec2 example14:09
blackboxswhttps://paste.ubuntu.com/26368359/14:10
kutasekgreat, and about that v1. prefix, will there be more ? is it linked to the aws meta-data api date they use for versioning?14:11
blackboxswv1 is our stadardized/generalized fields across all clouds. we will be adding more14:13
blackboxswthe rest of the top level keys are cloud specific14:14
kutasekawesome thanks a lot, can't wait for it, gonna have to use bash in meantime :D14:14
blackboxswkutasek: yeah I bet with a runcmd section containing   - cat /run/cloud-init/instance-data.json | jq -r '.v1.instance-id'   you might get pretty far14:31
kutasekblackboxsw: I am not able to change the hostname with runcmd for some reasons (need to update it on each boot)14:50
=== simpoir is now known as simpoir|lunch
=== simpoir|lunch is now known as simpoir
smosermgerdts: around ?18:40
mgerdtsyep18:41
smoserhttp://paste.ubuntu.com/26547352/18:41
smoserthatfixes your 2.6 issues18:42
mgerdtsgreat, thanks!18:42
blackboxswsmoser: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33747519:08
blackboxswi;m afk a while so if it needs desc commit message work to land  can't get to it for an hour pr so19:10
smoseri still dont know what we do about python219:40
smoserblackboxsw: looking to fix. fixed the flake, but the test is failing for me.19:54
blackboxswjust saw my latest change busted the tst19:54
blackboxswpushed19:54
blackboxswback in 1-19:54
blackboxswback in 1019:54
smoseroh. ok.19:54
smoserblackboxsw: still no :-(20:01
smoseryou needc http://paste.ubuntu.com/26547563/ for flake20:01
smoserbut i still get the test failure.20:01
smoserhttp://paste.ubuntu.com/26547572/20:06
blackboxswok looking for real20:10
smoserits not getting registered correctly20:11
blackboxswwas a complex dict registration on httppretty20:28
blackboxswfixing now to handle children20:28
blackboxswI was originally testing with just the specific instanceId mocked and tried changing the test to mock the whole nested instance-identity document20:29
blackboxswwithout all the nested children routes20:29
blackboxswfixing that now20:29
smoserhm.20:30
blackboxswthe unit tests right now fall over when trying to materialize dynamic/instance-identity/document url20:30
blackboxswwhich isn't registered via httpretty properly20:30
smoseri'm missing nit.20:35
blackboxswohh the problem is  in our registration_helper we can't actually return a dictionary if provided, we actually register separate URIs for each key-value20:42
blackboxswok20:42
smoserblackboxsw: http://paste.ubuntu.com/=nNgvNtJJCD/20:56
smoseri'm guessing you have that now though20:56
smoserblackboxsw: i gotta walk away for 30-45 minutes. i'll return though and will ack your MP assuming c-i does.20:59
smosermy only comment is that the @property is tempting (for self.identity)20:59
smoserblackboxsw: you there ?21:44
smoserdid you open a bug for that ?21:44
blackboxswsmoser: yep, pushed changes and finding the bug21:58
blackboxswI'm sparsely here, need to mark a sick day today21:58
smoserblackboxsw: i merged22:01
blackboxswok thanks was just writing the commit message over with real content and the https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/174835422:02
ubot5Ubuntu bug 1748354 in cloud-init (Ubuntu) "ec2: systemctl restart cloud-init after upgrade 17.1.46 -> 17.2.30" [High,In progress]22:02
blackboxswok thanks22:02
blackboxswa lot22:02
smoserand i'm going to push overwrite22:02
smoseri can upload to bionic22:02
blackboxswthanks, pretty much absent today.22:03
smoseron its way to bionic.22:04

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