15:04:55 #startmeeting Ansible Core Public Meeting 15:04:55 Meeting started Thu Jun 23 15:04:55 2016 UTC. The chair is jimi|ansible. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:04:55 Useful Commands: #action #agreed #halp #info #idea #link #topic. 15:04:55 The meeting name has been set to 'ansible_core_public_meeting' 15:05:05 #topic anything and stuff 15:05:33 o/ 15:06:11 Hi, thanks for holding this 15:06:35 hi 15:06:54 hello 15:09:06 Yo 15:09:34 * mattclay waves 15:10:21 There was a bug I ran into last week on 2.1.0.0 (Mac FWIW) that caused tasks in a role when notifying to not fire a handler defined in a higher, global directory. It was a known-issue with an existing issue. I'm looking for it and that's what I'll be asking about 15:11:25 kellytk: ok, 2.1.1 rc1 (and the stable-2.1 branch) have some fixes specifically related to roles and handlers 15:11:51 i would suggest giving the rc1 a test, which you can do from source quite easily without having to install anything 15:12:02 * resmo waves 15:12:33 git clone --recursive https://github.com/ansible/ansible; git checkout v2.1.1.0-0.1.rc1; . hacking/env-setup 15:13:09 ^ that modifies the PYTHONPATH for the current shell only, so it's not persistent, then you can just run ansible-playbook from there and test it 15:13:15 Is it possible to upgrade using pip? That's how I've installed Ansible 15:13:28 kellytk: you can, but the rc1 tar isn't on pypi 15:13:41 That's smart 15:13:43 * nitzmahone mumbles something 15:13:43 since it's an rc1, i wouldn't recommend overwriting a working setup 15:13:55 (i also forgot a cd ansible/ in there after the clone) 15:14:26 nitzmahone: ? 15:15:20 Just remembering last week's convo about publishing rcs to pypi. ;) 15:15:46 ahh yeah, heh 15:16:22 @next on NPM is a useful feature for easily testing latest code 15:17:20 i think pypi has some kind of support for testing packages like that, i just haven't explored how easy/feasible it is to use that for rc's 15:18:05 i'd also like to modify sdist to output the tar with the full release name in it 15:18:24 right now it just does the major/minor, the release string isn't in it 15:18:52 ie. `make sdist` on the rc1 sha outputs ansible-2.1.1.0.tar.gz, not ansible-2.1.1.0-0.1.rc1.tar.gz 15:18:56 I've run in a duplicate of my project root for testing and it's downloading 15:18:58 yes please- I'd be happy to take that on... 15:19:26 nitzmahone: go for it, i hate dealing with setuptools stuff :) 15:19:27 * git clone --recursive https://github.com/ansible/ansible; git checkout v2.1.1.0-0.1.rc1; . hacking/env-setup 15:19:46 kellytk: right, like i said i forgot a `cd ansible/` in there after the clone 15:20:17 I read that but I don't know the purpose. When the repo is downloaded I'll investigate 15:20:52 #action nitzmahone to work on RC versioning/setuptools/investigate publishing RCs to pypi 15:21:17 Oops, not chaired 15:21:31 Does that create an issue automatically? 15:21:44 #chair nitzmahone 15:21:44 Current chairs: jimi|ansible nitzmahone 15:21:54 kellytk: no, just records it in the log for the meeting 15:21:59 #action nitzmahone to work on RC versioning/setuptools/investigate publishing RCs to pypi 15:22:07 Cool 15:22:12 nitzmahone: this is an old article, but: http://blog.ziade.org/2011/02/15/do-not-upload-dev-releases-at-pypi/ 15:22:27 5 years old... sheesh 2011 doesn't seem like that long ago 15:23:04 FWIW I think that's still the recommendation 15:23:06 https://github.com/ansible/ansible/pull/16387 15:23:13 Especially since pip can install from git refs now 15:23:22 Yeah, it handles way better now with --pre and the way it understands rc/beta/etc in versions 15:23:27 considering the problems we've had already with pypi ... i'ld be cautios 15:23:27 ryansb: yeah i see there are categories for beta/etc. but i don't think they mean anything 15:23:34 ^ try it out with diff project first 15:24:01 I've been doing with pywinrm for a couple months 15:24:10 Works great 15:25:20 bcoca: run status from shippable is failed on #16387? 15:25:28 #chair bcoca ryansb 15:25:28 Current chairs: bcoca jimi|ansible nitzmahone ryansb 15:25:30 The error is new at least, "ERROR! The requested handler 'restart system' was found in neither the main handlers list nor the listening handlers list" 15:25:40 hrm 15:25:48 Where is the "main list" it's looking in? 15:25:57 kellytk: can you create a gist which reproduces the issue for you? 15:26:00 I'm new to Ansible so part of what I'm working through is potential operator error 15:26:07 I'll work on that 15:26:20 that can happen if the handler is in an include which is considered dynamic 15:26:26 but that's the only time 15:28:20 jimi|ansible: error is about postgresql not sure its related 15:29:04 maybe, suspicious that it failed across the board 15:29:30 (item=/root/ansible/test/integration/roles/setup_postgresql_db/vars/default.yml) => {"failed": true, "item": "/root/ansible/test/integration/roles/setup_postgresql_db/vars/default.yml", "message": "Unable to find '/root/ansible/test/integration/roles/setup_postgresql_db/vars/default.yml' in expected paths."} 15:29:33 ^ def related 15:29:39 include_vars is failing there 15:29:47 hmm, but i did not change include_vars ... 15:30:05 created new function, so old one should still work as was 15:30:09 bisect? 15:30:25 other devel builds are not failing 15:30:57 i see you did change include_vars: https://github.com/ansible/ansible/pull/16387/files#diff-b98d0eb5981eb00d04363dd4d3b5bb43R22 15:31:20 ah, totally thought i had not 15:31:30 clearly my issue 15:32:15 seems like it's doing what it's supposed to do, so must be some bug in _find_needle? 15:32:36 Hmm, what's the coding equivalent of kleptomania (subconsciously changing code)? 15:32:59 whmm, should not even be an issue as 'first_found' should already return an existing file's full path 15:39:08 nitzmahone: patchomania? 15:39:27 Heh, wfm 15:40:05 bcoca: i wonder if it's because of first_found that _raw_params there isn't set, and the old dwim would return whatever was originally passed in? 15:40:15 so that could have been buggy from the get-go 15:41:21 ah 15:41:31 new dwim will return fullpath if this is given 15:41:46 but i can see it 'worked by accident' in previous case 15:42:09 yeah looks like it 15:42:52 I've prepared the test case, it's a zipped up directory ready to run. May I email it to one of the Ansible team? 15:43:14 kellytk: i'd prefer if you could just paste it to gist.github.com 15:43:23 just make sure it doesn't have any sensitive info in it 15:43:31 That's what I did last time and it wasn't good enough :-P 15:43:36 Give me a moment 15:44:12 kellytk: that's odd, that's how i look at 95% of issues, was this an interaction with the core team or the tower support team? 15:45:36 yeah, core normally does not like zipped emails 15:45:48 not at all 15:55:19 jimi|ansible: http://pastie.org/private/ktjmxhsczkcd1z8tjlxq 15:55:39 * jimi|ansible looks 15:55:40 I make the assumption here that ./playbooks/handlers/* is picked up with no further configuration, which may be mistaken 15:55:55 ahh right not without an include statement 15:55:58 that's only for roles 15:56:03 You'll see that the handler is called by two tasks in the play, one via role and one via role meta environmental dependency 15:56:52 so, in the playbook handlers: section, you could do `- include: handlers/restart-system.yaml` and it should work 15:58:37 there was a bug prior to 2.1.1 where includes which should have been static were not, but that is also fixed in rc1 15:58:57 weird, first_found is using old dwim and should return same results as before ... does this mean it was not working? 15:59:34 seems like it 15:59:50 he 16:00:09 need to fix lookups also, first_found is 'special' 16:00:45 first_found at the task level is deprecated isn't it? people should be using with_first_found: 16:02:29 jimi|ansible: That was the solution 16:02:37 excellent, glad it was an easy one :) 16:05:13 I changed handlers: in the play to include handlers/main.yaml, which includes the various handlers I expect in global space 16:06:36 I've confirmed correct behavior with the role dependency notification to the global handler BTW. Thank you for fixing this bug Ansible team and thanks jimi|ansible for helping me verify it 16:07:03 Standard disclaimers apply, is there an ETA when the fixed version can be expected in pip? 16:08:17 jimi|ansible: this is not task level, its the lookup 16:28:45 kellytk: sorry wife got home with kids and groceries... we're going to do a rc2 for 2.1.1, and Red Hat Summit is next week, so expect 2.1.1 at the earliest next Friday but more likely the week after 16:29:14 Thanks jimi|ansible 16:30:45 ok, we're (way) past the hour, so i'll officially end the meeting 16:30:48 #endmeeting