Wednesday, 2017-06-21

openstackgerritTristan Cacqueray proposed openstack-infra/nodepool feature/zuulv3: Add support for custom ssh port  https://review.openstack.org/46875200:57
*** bhavik1 has joined #zuul04:48
pabelangero/04:48
*** bhavik1 has quit IRC06:28
*** isaacb has joined #zuul06:32
*** hashar has joined #zuul08:31
*** rbergero1 is now known as rbergeron08:43
*** rbergeron has quit IRC08:43
*** rbergeron has joined #zuul08:43
tobiashfun with ansible and py309:26
tobiashwhen using delegate to localhost it ignores the ansible_python_interpreter setting and uses py309:27
tobiash-> synchronize broken09:27
tobiash:(09:27
jlktobiash: hey we were just talking about this at the Ansible Contributor Summit.09:29
tobiashjlk: yay :)09:30
jlktobiash: there is some weirdness with which python interpreter gets used on delegate to localhost vs others, and implicit localhost inventory entry vs explicit and whatnot.09:30
jlkit's somewhat known that there are bugs here, because the localhost handling is odd, and has been odd since the beginning.09:30
mordredjlk, tobiash we can grab toshio a little later today...09:39
mordredtobiash: in lib/ansible/inventory/data.py - it says something about setting ansible_python_interpreter explicitly for localhost09:43
mordredtobiash: any chance if we set it explicitly for localhost in addition to setting it more globally it behaves more different?09:43
tobiashmordred: thanks, will have a look on that09:44
tobiashbut first have to grab something to eat09:44
mordredtobiash: cool. there's also a note in the syncronize module too...09:44
tobiashmordred: this seems to be fixed in current develop branch:09:56
tobiashhttps://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/data.py#L8609:56
tobiashlatest release looks broken:09:56
tobiashhttps://github.com/ansible/ansible/blob/v2.3.1.0-1/lib/ansible/inventory/__init__.py#L50709:56
mordredtobiash: AHHHH09:56
mordredtobiash: I believeI have latest devel checked out09:56
mordredtobiash: ok - so - toshio says the issue is largely around implicit localhost ... so if we add localhost to our inventory explicitly, it shoudl work properly - even with 2.3.110:05
tobiashmordred: trying now10:10
tobiashfirst try failed as localhost was part of the all group -> plays against all break10:11
jlkjeblair: is there a thing in our test framework that can assert that a traceback didn't happen? I'm trying to add a test for some new code I introduced to limit github reporting for certain events (push events can't manipulate PRs). I can certainly test that the push event did the expected reporting, I want to somehow test that it didn't attempt the unexpected reporting.10:18
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add localhost explicitly to the inventory  https://review.openstack.org/47608110:20
mordredtobiash, jeblair, jlk: ^^ I think that's what we just chatted about with toshio10:20
tobiashmordred: that will add localhost to the all group10:21
mordredtobiash: oh - piddle. yah. that's bad10:22
mordredtobiash: thankyou10:22
jlkoh10:22
jlkuh10:22
jlkcrap that's the other shitty thing10:22
jlkimplicit localhost is not in all, but explicit is.10:22
tobiashcurrently trying something similar without putting it into all10:22
mordredyou should be able to put it into the group named "ungrouped"10:23
jeblairjlk: i don't think so (especially since that will be deep inside the scheduler -- if it does hit a traceback, the scheduler should just log it and continue).  but you can at least check that the reporting didn't happen.10:23
jlkhrm.10:24
jlkI don't think the github driver tracks attempts to report anywhere, so I can't really check the list of things that were reported for lack of a thing. And if there is no PR associated with the push, I can't check that hte PR didn't get reported on, because it never would have been.10:25
jeblairah, that makes sense10:25
mordredoh - piddle. adding localhost to ungrouped seems to still add it to all :(10:25
jeblairjlk: i don't have a good suggestion right now :(10:27
jlkokay thanks.10:30
jlkanother question10:30
jlkin a Fake connection class, can I overload a function (say the report() function) just to do some fake things first, and then still call the parent report() ?10:31
jlkI should be able to do super(FakeGithubConnection, self).report() yeah?10:31
mordredtobiash: ok - ansible core folks say it's not posible to do the explicit inventory fix without localhost going in to all10:34
mordredtobiash: so - it seems our choices are to see if we can extract enough of the fix from devel that it could be safely backported to 2.3 - or figure out a workaround like running ansible-playbook with python2 or something10:35
mordredtobiash: this is fun! :)10:35
jeblairjlk: yeah, i think there are some similar things already.10:36
tobiashmordred: so ungrouped won't work (that was also my idea)?10:43
*** ricky_ has joined #zuul10:43
*** ricky_ is now known as Guest8591110:43
mordredtobiash: yah - ungrouped still implies all10:43
tobiashcrap10:43
mordredtobiash: bcoca is going to look at backporting the specific thing after today10:44
mordredtobiash: he thinks this specific thing might be specific enough to do - devel otherwise has a reworking ofht einventory/variables system10:45
*** Guest85911 is now known as ricky_ansible_fe10:46
*** ricky_ansible_fe is now known as rcarrillocruz_fe10:46
*** rcarrillocruz_fe is now known as ricky_fest10:46
*** jkilpatr has quit IRC10:49
*** jkilpatr has joined #zuul11:08
*** ricky_fest has quit IRC11:12
*** isaacb_ has joined #zuul11:52
*** isaacb has quit IRC11:53
*** ricky_fest has joined #zuul12:01
*** isaacb_ has quit IRC12:25
*** isaacb_ has joined #zuul12:27
*** isaacb__ has joined #zuul12:40
*** isaacb__ has quit IRC12:40
*** isaacb_ has quit IRC12:42
tobiashok, hacked around it with the find and fetch modules (which seem to work with py3) instead of synchronize for now12:46
mordredtobiash: cool13:26
tobiashmordred: it's much slower and doesn't really work recursively but is ok for now for my use case13:27
tobiashcurrently crafting a base job which collects system stats with sar on all test nodes during the job13:28
tobiashmy problem was copying back the results13:28
tobiashhm, my multi-executor/merger deployment doesn't reliably update all relevant repos prior running the job13:43
tobiashwhen adding a change in repo a and having a base job in repo b it updates repo b non-deterministically13:44
tobiash(running current tip of v3 branch)13:52
*** ricky_fest has quit IRC15:10
SpamapSI'd support running ansible-playbook with python2 as a workaround until Ansible releases a version that supports py3 for at least the included modules.15:41
SpamapSZuul is in our control, so py3 is all well and good. But I don't really want to ride the lightning with Ansible.15:41
SpamapSWould mean jumping through some hoops to install ansible rather than having it in requirements.txt15:49
*** harlowja has joined #zuul17:07
*** hashar has quit IRC17:08
openstackgerritClark Boylan proposed openstack-infra/nodepool master: Cleanup failed upload records  https://review.openstack.org/47622318:04
*** hashar has joined #zuul18:05
openstackgerritMerged openstack-infra/nodepool master: Consider hostname in determining local builds  https://review.openstack.org/47036418:11
*** hashar has quit IRC18:35
Shrewsthat ^^^ reminds me, we should probably think of doing a nodepool feature/zuulv3 branch merge with master soon18:39
Shrewsmerge FROM master, rather18:40
*** hashar has joined #zuul18:47
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: WIP: Add web-based console log streaming  https://review.openstack.org/46335319:02
Shrewsfwiw, trying to test the websocket streaming within a unit test is a herculean task19:03
Shrewsdamn you, mordred19:03
Shrews:-P19:03
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: WIP: Add web-based console log streaming  https://review.openstack.org/46335319:05
*** openstackgerrit has quit IRC20:03
*** dmsimard has quit IRC20:20
*** dmsimard has joined #zuul20:21
*** hashar has quit IRC20:22
*** openstackgerrit has joined #zuul20:43
openstackgerritClark Boylan proposed openstack-infra/nodepool master: Cleanup failed upload records  https://review.openstack.org/47622320:43
openstackgerritClark Boylan proposed openstack-infra/nodepool master: Disable CleanupWorker thread for test_image_upload_fail  https://review.openstack.org/47626620:43
*** jkilpatr has quit IRC21:56
openstackgerritAdam Gandelman proposed openstack-infra/zuul feature/zuulv3: Fix parsing of github PR url  https://review.openstack.org/47628623:31

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