Saturday, 2017-11-11

*** dmsimard is now known as dmsimard|off02:17
*** bhavik1 has joined #zuul03:32
*** bhavik1 has quit IRC03:33
*** qwc has quit IRC11:30
*** qwc has joined #zuul11:31
SpamapSThe more I play with zuul, the more I want a zuul-ansible-playbook entry point that will setup the roles path for me and execute a playbook in bwrap sort of the same way the executor would. Would be very useful for local playbook iterating.17:00
dmsimard|offSpamapS: how does it do that without a running scheduler that loads the config from 2000 repos ? :)17:23
dmsimard|offFWIW your idea runs along the same lines of what I've been thinking about doing to test trusted playbooks/jobs17:25
SpamapSdmsimard|off: I believe the config needs to be accessible via REST API17:27
SpamapSso just like we ask the scheduler for keys, we can ask it for configs.17:27
dmsimard|offWe can't speculatively test many things and it's bitten more than once.. It's hard to come up with ideas that don't involve somehow running a nested zuul that runs the patch(es) you're testing17:27
dmsimard|offbut the config is massive, isn't it ?17:27
SpamapSso 'zuul-ansible-playbook -c https://zuulv3.openstack.org/openstack playbooks/foo.yaml'17:28
dmsimard|offI mean it's probably not going to be the size of openstack for other deployments, sure, but how do you expose that without killing the server ?17:28
SpamapSdmsimard|off: If-None-Match and a good HTTP cache? ;-)17:28
dmsimard|offhm, I'd rather write a "compiled" version of the config to disk each time the config is reloaded and then have the API call return that file so that you don't poke the actual server instead17:29
SpamapSThat's basically the same thing done on the backend instead of the frontend. :)17:30
SpamapSlazy-load vs. pre-cache17:30
dmsimard|offhttp cache and headers are not part of zuul though17:30
SpamapSYeah, it could be done pretty easily in zuul. I like it.17:31
SpamapSAssuming it can be serialized relatively quickly.17:31
SpamapSAnyway, so many good features, so little time. :)17:31
* dmsimard|off nods17:31
SpamapSFor now, I have a script that just sets ANSIBLE_ROLES_PATH and a static zuul.json that I -e @ in17:31
dmsimard|offI was supposed to have a beta of ara 1.0 in september17:31
dmsimard|offso much for that, I'm maybe half done17:31
dmsimard|offSpamapS: the other thing about your idea is running on localhost (executor) vs remote17:32
SpamapSdmsimard|off: yeah, no groups :)17:33
SpamapSright now I just -i localhost,17:33
SpamapSand if I need an inventory, I invent one.17:33
dmsimard|offಠ_ಠ17:34
SpamapShonestly most of the time I just want to make sure the syntax checks out so I don't embarass myself when pushing up PR's/patches. :)18:18
SpamapSjeblair: so.. interesting problem I just ran into.18:51
SpamapSjeblair: we have a local mirror of all the openstack projects. I'd like to push those into some of our local jobs. But the zuul.yaml in those repos gets loaded, and fails, because I don't have all the other jobs/repos. Thoughts?18:52
SpamapSWe may need to have some way in the tenant config to prevent loading in-repo configs for a repo.18:57
*** jkilpatr has quit IRC19:00
*** jkilpatr has joined #zuul19:06
*** jkilpatr has quit IRC23:35
dmsimard|offSpamapS: I was wondering about that. For example, once our zuul v3 is up, we might want to add zuul-jobs to benefit from playbooks/roles/jobs that are defined there, but that also means loading the zuul.yaml, which means there can be syntax errors (for our zuul)23:38

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