/srv/irclogs.ubuntu.com/2018/03/01/#cloud-init.txt

=== Guest20946 is now known as mgagne
do3melianyone able to tell me how to activate debug logging for a specific module?12:43
smoser1do3meli: you can't turn it on per module like that.16:56
smoser1generally at this point DEBUG gets written to /var/log/cloud-init.log16:56
smoser1youc an run individual modules: cloud-init single --name=apt_configure --frequency=always16:57
do3melithanks smoser1, i realized that and found the correct log file later on ;-)16:57
smoser1do3meli: your mp at https://code.launchpad.net/~d-info-e/cloud-init/+git/cloud-init/+merge/340112 needs to be rebased to master17:00
smoser1git fetch origin17:00
smoser1(or git fetch upstream)17:00
smoser1dependening on what is the name of the upstream one17:00
smoser1then17:00
smoser1git checkout master17:00
smoser1git merge --ff-only17:00
smoser1git checkout salt-freebsd-patch17:00
smoser1git rebase -i master17:00
do3melihmm de rebase would just pick 2 commits:17:02
do3melipick dbc395c salt-minion module now works on FreeBSD17:03
do3melipick bee5b16 adjust formatting17:03
do3meliwould that be correct?17:03
smoser1correct17:05
smoser1those are the 2 commits that you have made17:05
smoser1right ?17:05
smoser1and you just want those moved on top of master17:05
smoser1we *had* fixed the deb install issue you saw in trunk17:05
smoser1but you are off an older version of trunk, so you dont have that fix.17:05
=== smoser1 is now known as smoser
smoserdo3meli: that make sene ?17:19
smosersense17:19
do3melihmmm...really. i am confused. because created a brand new branch from upstream/master (in my case origin. but its the upstream)17:23
do3melii followed the steps in HACKING.rst as you mentioned to me yesterday.17:24
do3meliwell. anyway. let me try again ;-)17:25
smoserpowersj, rharper, blackboxsw, dpb1 . i think i had written this somewhere before. but... lost it.18:11
smoserhttps://hackmd.io/KwUwDAnAxgJgbARgLQA4DsAzCSAsBDHFVCBDJKNPAIzmDQgGY0pgg===18:11
smoserthat is just a copy-and-paste if a user contributes that has not signed CLA.18:12
=== r-daneel_ is now known as r-daneel
=== r-daneel_ is now known as r-daneel
Odd_BlokeIt looks like the most recent cloud-init in artful doesn't handle GCE user data any longer.20:50
Odd_BlokeI'm filing a bug now (unless someone points me at an existing one).20:50
blackboxswok odd_bloke, ssh handling is a bit different in gce now. certain expired keys removed etc.20:51
blackboxswplease file away, will check details. 'ubuntu-bug cloud-init'20:51
Odd_Blokeblackboxsw: https://bugs.launchpad.net/cloud-init/+bug/175271120:53
ubot5`Ubuntu bug 1752711 in cloud-init "cloud-init no longer processes user data on GCE in artful" [Undecided,New]20:53
Odd_BlokeYeah, this seems more fundamental than that.20:53
blackboxswthanks looking now20:54
Odd_BlokeHopefully I'm just doing something wrong.20:54
Odd_BlokeThat wasn't filed with ubuntu-bug; is there a way I can add the ubuntu-bug information after the fact?20:54
blackboxswcloud-init collect-logs20:56
rharper #/bin/sh20:56
rharperthat's missing the the bang, no ?20:56
smoserOdd_Bloke: apport_collect20:57
blackboxswOdd_Bloke: ^ cloud-init collect-logs:   that'll grab a tarfile of all data/logs to attach to bugs when filed after the fact20:57
smosererr... apport-collect20:57
Odd_Blokerharper: Ah, yeah, so it is.20:57
Odd_Blokerharper: We are seeing this in automated testing as well, which doesn't have that typo.20:57
Odd_Bloke(Also, would that cause cloud-init to not even store it in /var/lib/cloud?)20:57
rharperhuh, the % cat thingy made me thing it was a real cat20:57
rharpernothing in /var/lib/cloud at all ?20:58
rharperdid cloud-init run ? cloud-init status says ?20:58
Odd_Blokerharper: That was a real cat from the actual file I manually ran this with.20:58
rharperok, then the file is broken, it's not going to execute, right ?20:59
Odd_BlokeI've just reproduced with the bang.20:59
rharperok, did you use something else besides /tmp ?21:02
rharpersystemd likes to clean /tmp and /var/tmp for you21:02
rharpertouch /ubuntu-is-awesome21:03
Odd_BlokeTrying now.21:08
Odd_BlokeYeah, still not working.21:09
rharperok; and any way to get the logs of those and attached ?21:10
Odd_BlokeYeah, will do so after this meeting.21:12
smoserblackboxsw: http://paste.ubuntu.com/p/s7DQJrvTKn/21:28
blackboxswsmoser there's aslo a 2nd part that handled encoded user-data21:29
smoserits there still21:29
blackboxswahh right you're paste manipulates that content21:30
rharpersmoser: blackboxsw: Odd_Bloke: It looks like the recent change to GCE source dropped setting md['user-data'] since the introduction of recursive query of instance/attributes URL;21:37
rharperblackboxsw is confirming21:38
Odd_BlokeAck.21:38
Odd_BlokeThanks for the speedy response. :)21:38
blackboxswsmoser your fix is good.21:39
smoserthe main is useful :)21:40
rharperyes21:40
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34024821:40
smoseri'll add a unit test21:40
blackboxswsmoser: when's EOD for you ? I will shepherd that in once I re-test on gce with changes. Also time to  expand our manual tests to include  user-data on all clouds21:43
smoserok. i have 20 minutes.21:43
* blackboxsw will flag regression to stop xenial from getting an update21:43
blackboxsw(given that it's blocked21:43
blackboxswgood pt. will deploy and check21:44
smoserblackboxsw: good. thanks.21:49
blackboxswyeah bionic is good, I see things working there in bionic.21:49
blackboxswchecking the changeset21:49
smoserwhy would it work in bionic?21:49
blackboxswstrike that on bionic, I provided the same #cloud-config\n hostname: <myname>  as when I used gcloud to create the instance. so I mistakenly thought user-data was observed.   It is not: bionic fail too22:03
blackboxswOdd_Bloke: thanks for the bug, I just refiled one with the regression tags etc https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1752729 and dup'd yours22:20
ubot5`Ubuntu bug 1752711 in cloud-init (Ubuntu Artful) "duplicate for #1752729 cloud-init no longer processes user data on GCE in artful" [Critical,Confirmed]22:20
blackboxswlanding the fix today. bionic should be fixed by tomorrow and we'll SRU a cherry pick to artful22:21
blackboxswlanding the fix today. bionic should be fixed by tomorrow and we'll SRU a cherry pick to artful/xenial22:21
Odd_BlokeAck, thanks!22:22
blackboxswOdd_Bloke: do your automated tests run against bionic?22:23
Odd_Blokeblackboxsw: They do, but we've been having problems in the pipeline before we get to GCE image publication/test.22:24
blackboxswahh gotcha.22:24
blackboxswsmoser: bionic merge is up https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34025222:49
blackboxswand your fix has landed in tip22:49
blackboxswxenial cherry pick https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34025623:09
blackboxswartful cherry pick https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/34025523:10

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