15:00:07 #startmeeting ansible core 15:00:07 Meeting started Thu Nov 2 15:00:07 2017 UTC. The chair is thaumos. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:00:07 Useful Commands: #action #agreed #halp #info #idea #link #topic. 15:00:07 The meeting name has been set to 'ansible_core' 15:00:26 * gundalow waves 15:00:32 #chair gundalow 15:00:32 Current chairs: gundalow thaumos 15:00:41 oh, I added something to the agenda, though I'll be back in a couple of mins 15:00:51 heh, ok 15:02:29 heya 15:02:34 #chair ryansb 15:02:34 Current chairs: gundalow ryansb thaumos 15:02:35 hit there 15:02:54 back 15:02:58 wb 15:04:32 so how are you both today? 15:04:54 Good thanks 15:05:08 If more people appear we can discuss $topic 15:05:13 yep 15:06:09 * Qalthos 🌊🌊 15:06:16 #chair Qalthos 15:06:16 Current chairs: Qalthos gundalow ryansb thaumos 15:07:06 pretty good man - raining from clouds 15:09:29 * Pilou waves 15:09:39 #chair pilou 15:09:39 Current chairs: Qalthos gundalow pilou ryansb thaumos 15:09:54 feels like it's going to be a rough Thursday. 15:11:36 #topic fix for include_role unit tests 15:11:44 #link https://github.com/ansible/ansible/pull/31920 15:11:54 Pilou: this is your's 15:12:11 yep 15:12:31 anything specific you wanted to discuss? 15:14:28 no 15:14:32 he, just had someone report that templating on include/import_roles is not working 15:14:41 #chair bcoca 15:14:41 Current chairs: Qalthos bcoca gundalow pilou ryansb thaumos 15:15:09 #action jimi|ansible to review https://github.com/ansible/ansible/pull/31920 as he made the original changes 15:16:01 bcoca: Any thoughts on it? 15:16:11 Otherwise I guess we can go to Open Floor 15:16:23 need to fix the bug before i can update the test 15:17:04 Ola 15:17:10 #chair abadger1999 15:17:10 Current chairs: Qalthos abadger1999 bcoca gundalow pilou ryansb thaumos 15:17:21 @bcoca, looks like this bug should be fixed in 2.4.2, right? 15:17:26 bcoca: I found #31920 while fixing #32021 15:20:05 * jimi|ansible looks at that PR 15:20:29 i thought i had fixed a lot of those originally 15:21:06 i was also under same impression, but tima just told me otherwise 15:21:46 https://gist.github.com/bcoca/acbb85fcddede006ea23a343bef6ed94 15:22:03 ERROR! Could not find specified file in role: tasks/{{mytasks}} <= 15:23:07 about #31920, the original changes are ok, but related unit tests are not reliable 15:27:55 so, to recap... seems like we need to fix the currently reported bug before this test can do anything. 15:28:31 @bcoca, can we consider this bug as a blocker for 2.4.2? 15:28:35 or is it s 2.4.3 thing? 15:29:06 i would consider it a blocker .. but only if we have a fix 15:29:29 specially since it is broken in 2.3 also 15:31:56 well, since they are preview, imo they aren't really blockers. 15:32:10 15:32:12 Nice to have 15:32:41 Priority nice to have but I won't block release if it isn't fixed. 15:34:46 Anything left to discuss on this? 15:35:29 #agreed Not a blocker as: 1) It's a preview, 2) was broken in 2.3 15:36:11 #action jimi|ansible to look at fixing the underlying bug 15:36:28 jimi|ansible:, Pilou ^ I assume that's right? 15:37:11 yep 15:37:17 thaumos: Rooms gone dead. Next topic 15:37:18 sorry, I was poking around to find issues opened on this. 15:37:20 the PR looked fine so I merged it, if there's another underlying bug we can fix that as well 15:37:22 my bad 15:37:30 #undo 15:37:30 Removing item from minutes: ACTION by abadger1999 at 15:36:11 : jimi|ansible to look at fixing the underlying bug 15:37:49 #info PR merged. 15:37:56 thanks ! 15:37:58 jimi|ansible: Should I cherry-pick it now? 15:38:05 sure 15:38:22 Cool. We're done with this topic 15:38:34 #topic overloaded --ask-pass 15:38:38 #topic do we need a new cli arg to unlcok ssh key 15:38:48 #link https://github.com/ansible/community/issues/273#issuecomment-341108984 15:38:50 sorry 15:39:02 #info Background discussion https://github.com/ansible/ansible/issues/31988 15:39:08 #info We are overloading --ask-pass, sometimes it means: 15:39:15 #info a) Use this password to unlock an encrypted SSH Key 15:39:20 #info b) Use this for password auth 15:39:28 #info QUESTION: Do we need a new command line argument that's only used to unlock the SSH Key? 15:39:32 Thoughts? 15:40:00 https://github.com/ansible/ansible/issues/32503 15:40:36 ^ @jimi|ansible 15:41:28 #31988 is similar to a recent discussion about generalizing the --ask-*-pass handling 15:42:22 Yup 15:42:43 gundalow: So it sounds like we can't have two separate arguments when using paramiko? 15:43:00 I suppose paramiko could try to connect twice... 15:43:16 as a workaround 15:43:29 bcoca: ^ Would that work (as you looked at the paramiko api) 15:43:48 not really, once you pass a ssh pass, it will use it both ways 15:44:18 ^ i updated the paramiko connection docs to reflect this 15:45:07 gundalow: what is the bug? Is paramiko consuming the ssh pass to unlock the key and then not using it for ssh auth? 15:45:16 Wouldn't look_for_keys=False fix this? 15:45:19 no, it will fallback 15:45:23 gundalow: no 15:45:31 gundalow: or is it erroring when attempting to unlock the key? 15:45:43 look keys just stops ansible from looking for 'default locations' but if you pass in a keyfile, it will still do this 15:45:55 abadger1999: no error, if it cannot decrypt key it will use as ssh password 15:45:56 How can I connect to a machine using a passphrase when there are also keys available 15:46:00 to me, I'd like all of the --ask-*-pass to set up a (not-ansible-specific) callback to be called when it is needed. The main complication is interactive prompts want stdin/stdout, but sometimes the callbacks wouldn't get called until in a worker process. if we could work around that (always call them before starting a worker?) it should make it easier to handle things like ssh-key-pass vs ssh-pass 15:46:21 bcoca: There is a bug, though... trying to ask what that is: https://github.com/ansible/ansible/issues/31988 15:47:06 abadger1999: the bug was that we did not document nor tell the user when this happens, you can only really hit this issue if your passhprase == ssh password 15:47:24 but then, things like the ssh connect/auth state machine kind of have to be in the worker 15:47:39 alikins: the problem with that is 200 hosts prompting 15:47:52 privateip: You around? 15:47:57 we would need to institute tty locking, like debug, but this changes engine behaviour 15:49:10 https://github.com/ansible/ansible/pull/31024/files#diff-f24f238727907014621e8c7a84a5644dR47 <= my update to password docs in paramiko 15:50:00 but maybe connection plugins need to support an auth callback api, possibly via IPC. But I don't really want to accidentally re-implement PAM 15:50:12 http://docs.paramiko.org/en/2.3/api/client.html 15:50:46 alikins: that was one reason i was thinking of forking the stdout callback to handle out tty interaction and use multiproc queues to send/recieve events/input 15:52:05 that way we avoid the 'debug lock issue' and still ensure serialization at one point, the queue acts as a stack 15:52:15 though my temptation is just to document 'please, just use ssh-agent, I beg you' 15:52:25 "the queue acts as a stack" 15:52:38 Allan Turing is turning over in his grave right now. 15:52:52 ;-) 15:53:04 youknowwhatimeant 15:53:32 Well, misspelling peoples names generally does irk them 15:53:41 abadger1999: hey, it's true for N items where N=0,1. I'm sure it's okay for the rest... 15:53:56 :-) 15:54:07 gundalow: hah. that too. 15:54:19 At least I didn't misspell both names 15:54:26 :D 15:54:34 Allan Truning? 15:54:59 @alikin might some 'ssh-agent' configuration be useful here? 15:55:54 going back to problem at hand, this is moslty user being 'suprised' by a behaviour (to be fair so was I, did not know paramiko did this), I think documenting it shoudl be good enough 15:55:54 So.... is there actually anything to do here? 15:56:19 99% of peopel wont hit this and only 1% of those hitting it will notice/care they used ssh key instead of ssh pass 15:56:50 bcoca: Hmm... is the bug that you can't have ssh key passphrase == login passphrase on the remote machine? 15:56:56 i think that updating docs is enough ... someone will want ssh plugin to have feature parity 15:57:05 bcoca: if so, your doc update still doesn't highlight that problem 15:57:09 I think only docs improvements for 2.5 15:57:15 agreed on documenting this 15:57:25 abadger1999: no, the problem is that 'we dont tell user we used key instead of ssh login when both use same password' 15:57:42 bcoca: okay... but then why is the user's task failing? 15:59:00 cause cisco does not allow key auth, but since we successfully decrypted key .... paramiko uses key 15:59:20 ^ this is very much an incredebly narrow corner case 15:59:56 a) ssh key must be provided b) target must no accept ssh key c) passphrase for key must be same as ssh login password 16:00:48 d) must be using paramiko (which is true for most networking) 16:02:08 alright folks, we need to close the meeting out in a minute or so 16:02:13 gundalow: ^ So that seems like the documentation is more of a FAQ entry 16:02:28 probably both 16:02:38 I guess you could retry without any keys, just password to workaround that case, but... ewww. 16:02:39 I think both 16:02:55 thaumos: We can close meeting and continue in #ansible-devel 16:03:03 k, cool 16:03:05 #endmeeting