19:07:26 #startmeeting public core meeting 19:07:26 Meeting started Tue Aug 2 19:07:26 2016 UTC. The chair is gundalow. Information about MeetBot at http://wiki.debian.org/MeetBot. 19:07:26 Useful Commands: #action #agreed #halp #info #idea #link #topic. 19:07:26 The meeting name has been set to 'public_core_meeting' 19:07:44 #chair abadger1999 bcoca jtanner 19:07:44 Current chairs: abadger1999 bcoca gundalow jtanner 19:08:00 #chair ryansb 19:08:00 Current chairs: abadger1999 bcoca gundalow jtanner ryansb 19:08:05 * mattclay waves 19:08:16 #chair abadger1999 bcoca jtanner jimi|ansible mattclay nitzmahone 19:08:16 Current chairs: abadger1999 bcoca gundalow jimi|ansible jtanner mattclay nitzmahone ryansb 19:08:59 * Qalthos 🌊🌊 19:09:14 Guys, was there anything that didn't get discussed in the internal core meeting that we want to discuss here 19:09:18 #chair abadger1999 bcoca jtanner jimi|ansible mattclay nitzmahone Qalthos 19:09:18 Current chairs: Qalthos abadger1999 bcoca gundalow jimi|ansible jtanner mattclay nitzmahone ryansb 19:09:45 MichaelBaydoun: Did you have anything? 19:09:56 gundalow: I don't 19:10:03 None from me -- still recovering from all those meetings :-) 19:10:43 #topic Testing Working Group 19:11:24 #info gundalow will be running the Testing Working Group, which will start in a few weeks. If you are interested please subscribe to updates on https://github.com/ansible/community/issues/114 19:11:43 Also if you have anything you've like to bring to the table, feel free to add it to 19:11:48 the above ticket 19:11:58 #topic Open Floor 19:11:59 ... 19:13:33 I have several PRs related to AWS modules pending review/merge. Was directed here by @gregdek on one of them at https://github.com/ansible/ansible-modules-core/pull/2184. 19:14:25 #topic https://github.com/ansible/ansible-modules-core/pull/2184 19:14:36 * gundalow looks at his fellow chairs 19:14:43 :) 19:14:56 hello gregdek :) 19:15:21 I can test/review 2184 unless rynasb or others feel strongly 19:15:37 s/rynasb/ryansb/ 19:15:44 #action nitzmahone to test/review https://github.com/ansible/ansible-modules-core/pull/2184 19:15:48 Thank you :) 19:15:58 Anything else that's stuck in review? 19:16:01 https://github.com/ansible/ansible-modules-core/pull/2527 19:16:08 https://github.com/ansible/ansible-modules-core/pull/2179 19:16:28 Both bugfixes as well. 19:16:28 ditto 19:16:44 #action nitzmahone to test/review https://github.com/ansible/ansible-modules-core/pull/2527 and https://github.com/ansible/ansible-modules-core/pull/2179 19:16:47 nitzmahone: Thanks :) 19:16:50 2184, Code looks sane but I'm not setup to test aws. 19:18:00 2527, exception handling needs to be python3 compatible. Not sure if we need py2.4 compat or if boto requirement is for python2.6+. 19:18:19 I don't know if the logic change is good or not. 19:18:41 boto is 2.6 19:18:46 so no 2.4 19:19:02 19:19:10 almost every cloud requires 2.6+ (do might soon be the only exception) 19:19:34 2179 looks like someone who can test aws should look at it.. if nitzmahone is going to I'll leave it be. 19:19:41 s/do/Digital Ocean/ ... they might rewrite it using module_utils/url.py exclusively 19:19:42 Yep, I'm taking all 3 19:19:45 Cool. 19:20:19 nitzmahone: no strong feelings 19:20:31 aight 19:21:19 I have two more that are feature PRs but don't want to monopolize everyone's time. I can wait until a later meeting if desired. 19:21:39 ssiefkas: also AWS stuff? 19:21:41 Yes 19:21:55 Bring em on- no guarantees, but I'll at least take a peek 19:21:57 As long as there isn't anyone else with PRs/issues to bring up, I say go for it. 19:22:37 https://github.com/ansible/ansible-modules-core/pull/2273 is just mapping SNS notifications into the asg module 19:23:14 https://github.com/ansible/ansible-modules-core/pull/3581 is less straight forward and not a pure AWS service mapping 19:23:31 * bcoca says goodby to nitzmahone for rest of week 19:24:11 OK- I'll hit the bugfixes first and if I've got time the others. 19:24:27 Thanks @nitzmahone 19:24:29 * nitzmahone is a master procrastinator 19:24:34 I can take the other two 19:24:41 (2273 and 3581) 19:24:41 ryansb: that'd be cool 19:25:19 #action ryansb to test/review https://github.com/ansible/ansible-modules-core/pull/2273 and https://github.com/ansible/ansible-modules-core/pull/3581 19:25:22 Thanks ryansb :) 19:26:45 oh, if there's other AWS folks around, I'm looking for feedback on 19:26:58 https://github.com/ansible/ansible-modules-extras/pull/2558 19:27:16 #topic https://github.com/ansible/ansible-modules-extras/pull/2558 19:27:40 * gundalow -> awk for 5 19:27:57 * gundalow -> afk for 5 19:29:01 ssiefkas: ^ I think that means you ;-) 19:29:30 I'm reading :-) 19:29:50 I think I can provide feedback on this @abadger1999 19:30:00 Excellent :-) 19:30:04 Thanks 19:34:23 @mattclay --^ (#2558) 19:34:33 @ryansb I have a test case I can construct for this in the real world. Will provide feedback on PR later this week. 19:35:16 neato, thanks! 19:36:52 I can test #2558 as well. 19:37:14 I've spent the couple of days trying to take down as many synchronize module/plugin related issues. Have one I could use a core team consult on ATM: https://github.com/ansible/ansible-modules-core/issues/3895 19:37:29 When y'all have a chance here. ;) 19:38:01 * abadger1999 takes a look 19:39:37 @abadger1999 my last comment covers the ways to fix the issue. 19:39:39 tima: if it's indeed just that the default needs to be explicitly passed, then I agree, that seems like the correct fix. 19:41:37 @abadger1999 yeah parsing the ssh_config to discover what Port ssh is running on seems like a bear where explicitly defining the port regardless of it as the default solves addresses that. 19:41:59 19:42:13 tima: Do you want to submit a pull request or should I just change that? 19:42:58 tima: I see the code that appears to be doing that in the ansible-modules-core/files/synchronize.py file. Should be easy to modify if you just want me to do it. 19:43:06 I have a few PRs related to my synchronize issues/PR sweep queued up if you want to take that one. 19:43:16 that would be swell @abadger1999 19:43:31 tima: Cool. I'll do that. 19:43:47 tima: any of your PRs ready to review? We can go through them in this meeting if you want 19:43:56 #topic Open Floor 19:45:17 @abadger1999 not at this point though there is one PR I looked at that seems sane -- I just haven't gotten around to test it. 19:45:57 https://github.com/ansible/ansible/pull/16349 19:46:00 That's it. 19:46:48 There are two or three issues open that stem from this that I've found so far. 19:51:19 that format() method is how you process a string for any inline variables? 19:51:32 recall it was something different pre-2.0 19:52:56 I think that one is wrong. 19:54:30 i'm used to "asdfasfasdf".format() 19:54:49 tima: the first part might be right... I'm not sure.... Should ask jimi|ansible or bcoca. That's probably a quick yes or no. 19:54:58 tima: The second part just looks entirely wrong. 19:55:12 tima: I suppose need to ask the submitter what that's there for. 19:55:52 expandpath/expandvars .. unfrakpath should take care of all 19:56:21 I don't think we call unfrakpath() anywhere in synchronize(). 19:56:37 yeah, not called. 19:56:44 though ssh uses os.path.expanduser(key)) 19:56:58 guessing we don't allow for vars in private_key? 19:57:01 fine with it then 19:57:20 we do, but not directly, through dwim 19:57:28 @jtanner i think that format is a different method than what you are thinking of. Given the issue this PR is said to resolve I took it to be a method (of unclear origin) that substitutes the variables with their values. 19:57:31 what does the format() actually do? 19:57:52 basically ' %s' % stuff 19:57:58 a bit more powerfull 19:58:19 does it do variable substitution though bcoca? 19:58:54 kindof $USER or ~user 19:59:04 but not $HOME 19:59:08 Really? 19:59:16 * abadger1999 tests 19:59:18 or maybe $HOME also but not $ANY ... reading 19:59:24 so what do they need to use for any variable in context? 19:59:29 ok 19:59:36 No, I don't think so. 19:59:39 https://docs.python.org/2/library/os.path.html#os.path.expanduser 19:59:42 so ... depends 19:59:43 >>> format('$HOME') 19:59:43 '$HOME' 19:59:57 yeah, expanduser() and expandvars() do good things. 20:00:12 I think format() is a bad change, though. 20:00:28 seems like a noop to me 20:00:34 ssh connection is now all 'format()' 20:00:47 mind posting that to the PR abadger1999 and I'll follow up with the submitter? 20:01:01 tima: Cool. That will work out well. 20:01:34 bcoca: Did the first portion of the PR look right to you? 20:01:45 bcoca: https://github.com/ansible/ansible/pull/16349/files#diff-b6aae93451e66b991ccbd1b9e1ababb0L275 20:02:12 it's syncronize, nothing looks right 20:02:15 I was working on triaging as many issues as quickly as I could and was going to circle around to figure out (nee test) the harder ones once I got setup. 20:02:24 :-) 20:02:30 delegation issues should be solved by play context, not the plugin 20:02:32 @bcoca sigh 20:02:39 Getting rid of the if seems okay -- there may be a bug there but it would be a pre-existing bug if so. 20:02:49 @bcoca know how many times a day I hear that from someone? 20:02:54 tima: you know its not cause of your code, it is the issue itself you try to solve 20:03:08 he didn't try to solve all of them 20:03:10 But I'm not sure if task-vars.get() is needed before we try the play_context or not. 20:03:10 tima: as many as we get Issues for syncronize? 20:03:11 we did 20:03:31 @bcoca: and then some. 20:04:50 so fix does look correct 20:05:17 so what does the format() do? 20:05:24 syncronize being special it needs the data for the dest= host if it exists, but src/delegate should work fine 20:05:25 eli5 20:05:56 jtanner: probably magic stringification? 20:06:33 https://docs.python.org/2/library/functions.html#format 20:07:08 hmm, that is weird 20:07:30 without a format spec, it seems like a noop to me 20:07:48 probably guarantees its a string for later use in concat 20:07:50 I think the format() is wrong. But if the first part is correct, then that's probably what's fixing things. 20:08:10 ^its probably a hackish way to do our to_str() 20:08:38 utf8 safe version of str() ? 20:08:56 or unicode 20:09:15 not sure, he seems to expect it to do some sideffect 20:09:48 we can always merge and correct that to to_str/to_unicode as needed 20:10:03 yeah the delegate_to conditional in the first part was a bit odd. seemed like it was some cleanup tossed into this PR but it doesn't resolve the issue they are reporting. 20:10:21 so nofix? 20:10:30 tima: I think it probably is the actual fix. 20:10:51 tima: afaics the format() is at least a noop and possibly detrimental in some cornercase I haven't thought of yet. 20:11:25 oh wait. yeah. i've been looking at some many of these issues i'm losing it. 20:11:31 so +1 for merge, with followup on abadger1999 on the forrmat issue 20:11:34 tima: What I'm guessing is happening is that task-vars.get() is returning some string that has untemplated variables. play_context is returning a string with those variables already templated. 20:11:40 right the task.get() is what's getting in the way. 20:11:40 right. 20:11:42 tima: back away from the the synchronize ... slowlo 20:11:46 slowly* 20:11:47 Cool. 20:12:07 jtanner: no, the appropriate reaction is to sprint 20:12:29 HALO jump 20:12:39 i may need to drop off here and run to something else -- any comments you can drop would be appreciated. 20:12:42 Thanks all. 20:12:45 TTYL 20:12:47 later 20:15:20 gundalow: okay, is that it for our meeting time now? Or do we have another 15minutes? 20:19:49 abadger1999: You can take as long as you want, there isn't another meetin in here 20:20:13 Anyone else have topics/issues/PRs they want us to look at? 20:20:21 not I 20:21:03 Nothing else from me 20:21:33 10 20:21:34 9 20:21:35 8 20:21:36 7 20:21:38 1 20:21:40 #endmeeting