Wednesday, 2017-12-13

*** JasonCL has joined #zuul00:24
*** JasonCL has quit IRC00:29
*** openstackgerrit has quit IRC00:33
*** JasonCL has joined #zuul01:19
*** JasonCL has quit IRC01:23
*** baiyi has joined #zuul02:11
*** JasonCL has joined #zuul02:14
*** JasonCL has quit IRC02:19
*** baiyi1 has joined #zuul02:21
*** baiyi has quit IRC02:23
*** baiyi1 is now known as baiyi02:23
*** baiyi has quit IRC02:39
*** JasonCL has joined #zuul03:09
*** JasonCL has quit IRC03:13
*** JasonCL has joined #zuul03:55
*** threestrands has joined #zuul04:14
*** threestrands has quit IRC04:14
*** threestrands has joined #zuul04:14
*** jappleii__ has quit IRC04:15
*** threestrands has quit IRC04:15
*** threestrands has joined #zuul04:16
*** threestrands has quit IRC04:16
*** threestrands has joined #zuul04:16
*** baiyi has joined #zuul04:28
*** threestrands has quit IRC04:36
*** threestrands has joined #zuul04:43
*** threestrands has quit IRC04:43
*** threestrands has joined #zuul04:43
*** threestrands has quit IRC04:44
*** threestrands has joined #zuul04:44
*** threestrands has quit IRC04:44
*** threestrands has joined #zuul04:44
*** threestrands has quit IRC04:45
*** threestrands has joined #zuul04:46
*** threestrands has quit IRC04:46
*** threestrands has joined #zuul04:46
*** threestrands has quit IRC04:47
*** threestrands has joined #zuul04:47
*** threestrands has quit IRC04:47
*** threestrands has joined #zuul04:47
tobiashjlk, SpamapS: ghe 2.12 is released now04:53
tobiashAnd it includes github apps as tech preview :)04:53
SpamapStobiash: that's good to hear!05:16
SpamapSNo idea what version we even run05:17
*** openstackgerrit has joined #zuul05:24
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: add /{tenant}/jobs/{job_name} route  https://review.openstack.org/52757905:24
tristanCjeblair: rcarrillocruz: 527579 adds the job's detail page we talked about, it even includes a tiny rendering of the nodeset with box colored based on label name hash05:26
tristanCmore importantly, it also list source_context location to answer the "where is this job defined" question05:28
*** baiyi1 has joined #zuul05:55
*** baiyi has quit IRC05:57
*** baiyi1 is now known as baiyi05:57
*** threestrands has quit IRC06:03
tobiashtristanC: cool stuff06:15
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: WIP: Revert "Revert "Add sphinx_python variable to sphinx role and job""  https://review.openstack.org/52666606:44
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: add /{tenant}/jobs/{job_name} route  https://review.openstack.org/52757906:45
tristanCtobiash: thanks for the review, made me fixed my emacs conf... i was using setq instead of setq-default for indent-tabs-mode :)06:48
*** flepied__ has quit IRC07:09
*** hashar has joined #zuul07:57
*** baiyi1 has joined #zuul07:57
*** baiyi has quit IRC08:00
*** baiyi has joined #zuul08:02
*** baiyi1 has quit IRC08:04
*** jpena|off is now known as jpena08:09
*** xinliang has quit IRC08:35
*** flepied__ has joined #zuul08:35
*** yolanda__ has joined #zuul08:37
rcarrillocruztristanC: good stuff :-)08:39
*** yolanda has quit IRC08:40
*** yolanda__ has quit IRC08:46
*** yolanda__ has joined #zuul08:46
*** yolanda__ is now known as yolanda08:47
*** xinliang has joined #zuul08:47
*** xinliang has quit IRC08:47
*** xinliang has joined #zuul08:47
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: doc: refine zuul_return instruction  https://review.openstack.org/52763308:53
*** flepied_ has joined #zuul09:35
*** flepied__ has quit IRC09:38
*** electrofelix has joined #zuul09:57
rcarrillocruztristanC: is zuul web going to host both websocket AND the dashboard via aiohttp ? or is supposedly to run a separate apache to serve the dashboard and aiohttp for the streaming stuff10:08
kklimondait seems that nodepool logic for fulfilling node requests has a suboptimal behavior when you reach a quota and there are requests for multiple node types, some of which are ready10:11
kklimondanodepool takes the next request, puts it into a pending state, and waits until its possible to spawn this node type, never processing requests for node types that are already available (via min-ready)10:12
kklimonda(it could be that it's been fixed in the last 2-3 weeks, I'm running a little behind feature/zuulv3)10:12
tristanCrcarrillocruz: zuul web is already serving both websocket and the dashboard via aiohttp10:14
rcarrillocruzExcellent thx10:14
tristanCkklimonda: there is a series of patch to greatly improve provider quota here: https://review.openstack.org/#/q/topic:quota-second-try10:15
kklimondatristanC: oh, those are actually pretty cool - we could use cpu/ram instead of hardcoding number of servers per pool10:16
tristanCrcarrillocruz: actually zuul-web is going to also ingests github payloads when https://review.openstack.org/#/c/504267/ lands10:16
rcarrillocruzNeat10:17
kklimondatristanC: but I don't think any of those will fix that particular issue - when we reach any quota, nodepool will just get "stuck" waiting for more resources for the node type it's trying to fulfill10:17
tristanCkklimonda: oh right, but then what would be logic to lock and wait for a nodeset with more than one node?10:23
tristanCif the provider is almost running at capacity, this nodeset may get delayed until all the one node request are fullfilled10:24
fdegirrcarrillocruz: regarding zuulv3 installation10:29
fdegirrcarrillocruz: did you install everything manually or tried something else or have something that installs stuff automatically which you can share?10:29
rcarrillocruzWell10:30
rcarrillocruzLet me link you10:30
fdegirok10:30
*** hashar is now known as hasharAway10:36
rcarrillocruzon my first POC, i simply used pabelanger roles: ansible-role-zuul , ansible-role-nodepool10:39
rcarrillocruzwhich can be found on openstack git10:39
rcarrillocruzhttps://github.com/openstack/ansible-role-nodepool10:39
rcarrillocruzhowever, i'm working now on containerizing everything with an ansible-container app10:40
rcarrillocruzhttps://github.com/rcarrillocruz/zuul-ci-container10:40
rcarrillocruzwith that, the workflow is10:40
rcarrillocruz1. create your config files under config/ folder10:41
rcarrillocruz2. ansible-container build10:41
rcarrillocruz3a. if you want to run in your local docker env, ansible-container run10:41
rcarrillocruz3b: if you want to run in an openshift cluster (i use oc cluster up), ansible-container --enginer deploy + ansible-playbook the deployment playbook created by deploy verb10:42
rcarrillocruzat this stage, i can completely run a very basic zuul on openshift10:42
rcarrillocruzi need to add more things to it to make it usable10:42
rcarrillocruznamely10:42
rcarrillocruzzuul-logs to hold job logs10:42
rcarrillocruzzuul-sqlstore to hold sql job log runs (with sql reporter)10:43
rcarrillocruzand zuul-web10:43
rcarrillocruzONCE it's decent, then README10:43
rcarrillocruzand maybe announce it a bit more, haven't so far cos is very rough at the moment10:43
fdegirok, thanks10:43
rcarrillocruzbut, feel free to use it, as i said, it can be used on dev for both local docker and openshift10:44
fdegirI tried pabelanger windmill10:44
fdegirthe gerrit event streaming and stuff works with my config for opnfv gerrit10:44
fdegirbut having some errors in nodepool and openstack keystone10:44
rcarrillocruzyah, windmill is an AIO which uses the roles i pasted earlier10:44
fdegirfailed to run noop even10:44
rcarrillocruzwhat nodepool errors10:44
fdegirI wiped out the installation and started again10:45
fdegirwill come back with logs when i try again10:45
fdegirI'll try zuul-ci-container again10:45
fdegirwhat I need at this phase is the ability to run basic noop10:45
fdegirand then look at openstack base jobs10:45
fdegirslowly bringing up basic ci with zuulv3 in parallel to jenkins to have ability to compare outcome from both10:46
fdegirI think I have something to look at now10:46
fdegirthanks for the pointers10:46
rcarrillocruzsure, just ping me if you have any issues, with gerrit should be even easier, as you don't have the issue of the review system sending events to your zuul, it's zuul listeniing to gerrit event stream10:47
rcarrillocruzwould be superawesome to have a mechanism  to listen to webhooks, rathen than push10:48
rcarrillocruztristanC: ^ any way you may think of ?10:48
rcarrillocruzcos i'm tied to deploying stuff on an oc cluster up in a public VM, like RDO or something, so zuul is reachable10:48
rcarrillocruzand well, i don't want to spend my day having a reverse proxy down to my local docker or mess with my home NAT :/10:49
tristanCrcarrillocruz: it seems like having the fedmsg driver as a source trigger would let you "listen to webhook"10:57
rcarrillocruzAHA10:57
rcarrillocruzso10:57
rcarrillocruzwebhook sends to fedmsg10:57
rcarrillocruzgithub driver listens to fedmsg notifications?10:58
tristanCrcarrillocruz: you could even dismiss the webhook and just follow project activity and trigger job as you want10:58
rcarrillocruzgeez10:58
rcarrillocruzthe future is BRIGHT10:58
tristanCrcarrillocruz: note that the fedmsg driver remains to be defined11:01
rcarrillocruzyah,11:02
rcarrillocruzlol11:06
rcarrillocruzit seems is a common thing amongst users11:06
rcarrillocruzhttp://www.ultrahook.com/11:06
kklimondatristanC: perhaps nodepool could consider "ready" unlocked nodes for deletion when trying to satisfy a request11:14
kklimondait's still possible that other launcher will snatch the freed up resources for some other request, but at least those resources won't be "wasted"11:15
*** jkilpatr has quit IRC11:23
*** JasonCL has quit IRC11:27
rcarrillocruztristanC: the native js toolchain, i take that will be installed with the zuul pypi package. Is that supposed to be a deliverable for 3.0 or will it be 3.1 ?11:33
rcarrillocruzlike, i'm doing a role for zuul-web, i wonder if i should create tasks for creating www/static, pulling bootstrap, angular, etc as puppet-zuul does or just wait as that will come with 3.0 anyways11:34
tristanCrcarrillocruz: mordred probably knows what's the status of the js toolchain11:40
tristanCrcarrillocruz: fwiw, there is this change to add zuul-web to ansible-role-zuul: https://review.openstack.org/49941711:42
*** JasonCL has joined #zuul11:43
tristanCrcarrillocruz: also there is this rpm package for zuulv3 that i meant to propose to fedora https://softwarefactory-project.io/r/gitweb?p=scl/zuul-distgit.git;a=blob;f=zuul.spec11:44
tristanCrcarrillocruz: this includes a zuul-webui sub package with all the stuff minified and ready to use for zuul-web...11:45
*** jkilpatr has joined #zuul11:54
rcarrillocruzcool11:56
*** dmellado has quit IRC12:47
*** jpena is now known as jpena|lunch12:53
*** dmellado has joined #zuul12:58
*** toabctl has quit IRC13:00
*** dkranz has joined #zuul13:02
*** dmellado has quit IRC13:08
*** dmellado has joined #zuul13:09
*** flepied__ has joined #zuul13:53
*** flepied_ has quit IRC13:55
*** jpena|lunch is now known as jpena13:58
mordredtristanC, rcarrillocruz: re: js toolchain patch, I've got a half-finished patch - if my head clears a bit more today I'll get it finished and pushed up13:59
*** flepied_ has joined #zuul14:10
*** flepied__ has quit IRC14:13
*** JasonCL has quit IRC14:20
Shrewsaaaaaaarrrrrrrrrgh!!!! spent half a day yesterday and time this morning wondering why my gateway test no longer works. forgot i added a 'return' to short circuit things for a bit14:35
Shrewsi iz teh dumb14:35
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: Add finger gateway  https://review.openstack.org/52527614:36
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: Add finger gateway  https://review.openstack.org/52527614:38
*** openstack has quit IRC14:39
*** openstack has joined #zuul14:43
*** ChanServ sets mode: +o openstack14:43
*** openstack has quit IRC14:43
*** openstack has joined #zuul14:48
*** ChanServ sets mode: +o openstack14:48
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: Add finger gateway  https://review.openstack.org/52527615:04
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: Add finger gateway  https://review.openstack.org/52527615:07
Shrews^^^ doc fixes15:07
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: WIP: Revert "Revert "Add sphinx_python variable to sphinx role and job""  https://review.openstack.org/52666615:19
*** toabctl has joined #zuul15:27
tobiashyay, upgraded ghe test instance to 2.12 and the api doesn't return protected branches anymore15:27
tobiashwhich makes zuul to completely ignore the github projects15:28
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Revert "Revert "Add sphinx_python variable to sphinx role and job""  https://review.openstack.org/52666615:32
pabelangertobiash: is that good or bad?15:34
tobiashpabelanger: in other words, zuul doesn't work with ghe 2.12 currently15:35
tobiashcurrently trying to figure out how to work around this15:35
pabelangertobiash: boo15:35
tobiashlooks like branch protection info is just gone from the api response :(15:36
openstackgerritMerged openstack-infra/zuul-jobs master: Convert back to zuul.projects  https://review.openstack.org/52446016:01
*** maxamillion has quit IRC16:15
*** maxamillion has joined #zuul16:15
*** sshnaidm|ruck has quit IRC16:17
* sc68cal is currently on GHE 2.1016:19
Shrewstobiash: going to start looking at your quota changes now16:19
Shrewstobiash: those functional test timeouts don't look so good though  :(16:19
Shrewsalthough they're non-voting, we should see what's happening there16:21
*** sshnaidm has joined #zuul16:21
Shrewsjeblair: fyi, i consider 525276 ready if you have time to review it before the end of the week16:22
Shrewsno telling if i'll even remember what zuul is after the break  :)16:23
jeblairShrews: cool, i'll take a look, thanks16:55
jlktobiash: neat!16:56
jlktobiash: (re GHE)16:57
*** flepied__ has joined #zuul17:01
*** hasharAway is now known as hashar17:01
*** flepied_ has quit IRC17:03
tobiashShrews: what functional test timeout?17:05
tobiashjlk: looks like we have different oppinions about what's neat ;)17:07
*** jkilpatr has quit IRC17:07
jlktobiash: well, preview is better than not at all (for apps)17:08
tobiashjlk: ah this one, I thought you meant the broken branch protection api17:09
jlkoh, no I missed that.17:09
tobiashSo we have apps now but no zuul...17:09
jlkGAH17:09
*** tumbarka has joined #zuul17:12
tobiashjlk: apps tech preview means that you can add apps via api with a special header17:13
tobiashseems that no ui is yet there17:13
jlkthat's.. interesting. It at least lets us develop against it.17:14
*** umbarkar has quit IRC17:15
tobiashjlk: just saw, at least the user side of github apps is there17:15
tobiashso the user seems to be able to install apps into repos/orgs17:16
tobiashbut the app itself needs to be installed via api17:16
tobiashbut I think that's ok for starting17:17
*** jkilpatr has joined #zuul17:23
*** jpena is now known as jpena|brb17:24
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: group matchers together and explain them  https://review.openstack.org/52774817:24
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: group matchers together and explain them  https://review.openstack.org/52774817:25
Shrewstobiash: timeouts are here with latest PS: https://review.openstack.org/50383817:27
Shrewstobiash: and all dependent reviews, so appears to be a real thing17:28
tobiashShrews: hm, any idea how to debug this?17:29
tobiashthe log doesn't seem to have any advice17:29
tobiashjlk: ah no, I'm mistaken, the github apps ui is completely there, just didn't find it when I looked for it17:30
jlkwoo!17:30
tobiashShrews: found connection issues: http://logs.openstack.org/82/504282/16/check/nodepool-functional-py35-src/6e6d16d/job-output.txt.gz#_2017-12-12_08_37_00_07434217:34
tobiashthat might have been caused by the zuul problems yesterday17:34
tobiashI'll recheck a few changes to double check17:34
Shrewsmaybe17:36
*** jkilpatr has quit IRC17:38
*** jpena|brb is now known as jpena17:43
*** jkilpatr has joined #zuul17:52
*** baiyi has quit IRC17:55
jeblairShrews: fingergw looks good -- i just left one tiny doc nit17:56
Shrewsjeblair: cool. i'll fix that in a follow up17:57
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: Fix nit in fingergw doc  https://review.openstack.org/52775118:02
jlkjeblair: I started poking at removing github3.py... I think you're right, it's a bit more involved than I thought. we'll need some basic things, like iterators for pagination of results for things, and re-thinking some data structures. I'm still poking away at it though.18:03
jeblairjlk: ack, thx18:03
*** JasonCL has joined #zuul18:06
Shrewstobiash: jeblair: reviewed the quota changes. only found an issue on the first review. still need to see the functional tests pass18:15
tobiashShrews: thanks18:15
Shrewsclarkb: i'm going to see if i can help with your test after lunch18:15
clarkbShrews: thanks, I haven't had a chance to look at it yet myself. Been focused on sprint/onboarding new root stuff18:17
clarkbShrews: feel free to push patchsets or whatever18:18
*** myoung|rover is now known as myoung18:18
clarkbtobiash: microsoft is adding or has added an ssh server to windows 1018:25
clarkbtobiash: not sure if that changes anything for you, but thought I would point it out18:25
tobiashclarkb: thanks, but I think ansible has more problems than ssh with windows18:26
*** flepied__ has quit IRC18:29
tobiashjlk: further debugged the branch protection problem18:35
tobiashlooks like the zuul user now needs admin rights on a repo in order to view branch protection18:35
tobiashwrite access is not enough18:36
*** electrofelix has quit IRC18:43
*** jpena is now known as jpena|off18:49
jlkhrm, I thought that was always the case.18:56
jlkmight be better in app land where you can request specifically just access to those things18:57
tobiashprobably19:06
tobiashShrews: the upper three changes of the quota stack all succeeded the functional tests on the recheck19:08
openstackgerritMonty Taylor proposed openstack-infra/zuul-jobs master: Update javascript jobs to take npm_command variable  https://review.openstack.org/52777019:36
openstackgerritMonty Taylor proposed openstack-infra/zuul-jobs master: Install yarn if needed in javascript jobs  https://review.openstack.org/52777119:36
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Use yarn and webpack to manage status and streaming  https://review.openstack.org/48753819:36
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Send open CORS header for jobs and builds  https://review.openstack.org/52777219:36
openstackgerritTobias Henkel proposed openstack-infra/nodepool feature/zuulv3: Add cloud quota handling  https://review.openstack.org/50383819:44
openstackgerritTobias Henkel proposed openstack-infra/nodepool feature/zuulv3: Don't fail on quota exceeded  https://review.openstack.org/50305119:44
openstackgerritTobias Henkel proposed openstack-infra/nodepool feature/zuulv3: Make max-servers optional  https://review.openstack.org/50428219:44
openstackgerritTobias Henkel proposed openstack-infra/nodepool feature/zuulv3: Support cores limit per pool  https://review.openstack.org/50428319:44
openstackgerritTobias Henkel proposed openstack-infra/nodepool feature/zuulv3: Support ram limit per pool  https://review.openstack.org/50428419:44
kklimondacan zuulv3 tenants be used to completely separate projects, hiding some of them from public?19:56
tobiashkklimonda: yes that should be possible19:58
tobiashkklimonda: but you have to take care to isolate them on zuul-web (tenants are path separated there)19:58
kklimondaright19:58
tobiashthat's also what we will be doing19:59
tobiashkklimonda: do you even need to hide the information of existence?20:00
kklimondatobiash: lets say yes, I'm exploring our options right now and what can be done in zuul - whether we should recommend a separate deployment instead20:01
tobiashin this case you would need to block the tenants overview page and probably also merge the tenants.yaml from different sources20:01
tobiashthe latter at least if you want your users to be able to propose changes to tenants.yaml20:02
*** jkilpatr has quit IRC20:03
kklimondamhm, thanks - I haven't kept up with the latest changes to zuul-web to separate tenants, I'll have to read up a little on that20:04
tobiashkklimonda: and we would need to restrict labels to tenants (which I also need but had no time for this yet) if you want to leverage node image caching mechanisms20:05
kklimondamhm20:05
tobiashthat's not implemented yet20:05
pabelangerkklimonda: yah, shared deployments are much easier in zuulv3. While we haven't done so yet on zuulv3.o.o, I do expect us to have another tenant on it.  It will still be public, but private between each other.20:06
tobiashbut we're also going the way with one deployment and isolated projects via tenants20:06
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add finger gateway  https://review.openstack.org/52527620:08
kklimondathanks, I'll keep it all in mind when we discuss it internally20:08
pabelangerYah, shared zuul will make operations easier for sure20:11
jlkare nodepool node labels a per-tenant thing as well?20:13
jlkcan you separate out the Zuul tenants by OpenStack tenants(projects) too?20:14
tobiashjlk: not yet, but some time ago there was a discussuin about letting them be restricted in tenants.yaml20:14
pabelangeryou could have 1 nodepool-launcher per tenant today20:15
pabelangerbut yah, think labels would be globak20:15
pabelangerglobal*20:15
pabelangerpretty exciting, seeing new uses for nodepool / zuul :D20:16
tobiashyes currently, but we will need some sort of restriction in the tenant config for labels20:16
pabelangeryah20:16
tobiashand if you distribute these labels to different providers you can separate them to different openstack tenants20:16
tobiashbtw, had today an interesting discussion about how to handle a mandatory authenticating proxy for internet access20:22
tobiashthat's the worst thing you can have for any type of deployment of anything20:22
tobiashthe idea to handle this in check pipelines without disclosing proxy credentials is to install an unauthenticated squid within a trusted base job and revoke sudo for the zuul user20:23
tobiashthat way the untrusted jobs can use unauthenticated localhost as proxy20:23
tobiashand with a little bit of care about the squid config permissions we can lock the untrusted job away from the proxy credentials20:24
tobiashShrews: have you seen already such a build failure https://review.openstack.org/#/c/503838/21 ?20:29
tobiashlooks to me like problems setting up zookeeper20:30
tobiashwhole log full of kazoo.exceptions.ConnectionLoss20:31
Shrewstobiash: on rare occasion. just recheck20:31
tobiashok20:31
*** jkilpatr has joined #zuul20:39
Shrewsclarkb: so the reason your test still works w/o your fix is because the self.request object in poll() has a valid self.request.lock object, thus the exception is not being thrown as expected.20:41
Shrewsclarkb: i'm not sure i understand what would be the cause of self.request.lock being None20:41
clarkbShrews: gotcha so its not necesarily the zk state itself but the python process state that is affecting us?20:42
tobiashShrews: that's where I also was stuck looking at this change20:42
*** logan- has quit IRC20:43
*** logan- has joined #zuul20:43
Shrewsi think we need to figure out what causes the lock to be None during the race20:43
*** JasonCL has quit IRC20:44
clarkbthis also means the lock could still be in place in zk right?20:44
clarkbits just the python object that is foobar potentially?20:44
Shrewsclarkb: maybe? i honestly don't know20:44
Shrewsif the cleanup thread removes the request lock, that removes the kazoo lock stuff too, making the Kazoo lock object invalid. how it handles that, i'm not sure20:46
tobiashunlocking an inexistent lock is handled gracefully20:47
Shrewslooks like the kazoo release would get a NoNodeError and hide that fact from you20:47
tobiashyes20:47
Shrewsyeah20:48
tobiashbut our problem is that nodepool itself calls unlockNodeRequest somewhere in a different thread20:48
tobiashbut I didn't find where20:48
clarkbtobiash: I thought I posted the two places in the commit message that I found20:50
tobiashmaybe http://git.openstack.org/cgit/openstack-infra/nodepool/tree/nodepool/launcher.py?h=feature/zuulv3#n203 is the source20:50
clarkboh except now we are saying it may not be that20:51
Shrewstobiash: i don't think so. a handler already has the request locked, so the check above should handle that20:53
tobiashhrm20:53
tobiashmaybe the lost requsts cleanup worker if there was a connection loss to zk20:54
tobiashthen the locks would be invalid -> cleanup worker cleans the lock up with setting it to none20:54
*** JasonCL has joined #zuul20:54
tobiashbut that would probably break more than that20:55
*** JasonCL has quit IRC20:59
Shrewshrm, if the request object is somehow the same one between the cleanup thread, and the request handling thread, that could be21:00
Shrewswouldn't be the first time python object references have hurt us  :)21:01
*** JasonCL has joined #zuul21:01
clarkbso that I understand better are you saying that if there was no lock in zk the unlock in poll that is failing would not fail?21:01
clarkb(and as a result my test passes without the chagne as well)21:02
Shrewsclarkb: yah, but there *should* be a lock21:02
Shrewsthat's what has me baffled21:02
clarkbright, thanks21:02
*** hashar has quit IRC21:03
tobiashwell, the test explicitly deletes the lock from outside21:03
tobiashbut that doesn't break the unlock21:03
clarkbtobiash: right because I think I assumed that the failures was due to the lock missing in zk21:03
clarkbbut its not, its the python lock object21:03
tobiashyes21:03
Shrewsto be clear, self.request.lock should ALWAYS be a Kazoo Lock() at that point21:04
tobiashShrews: I think that is the case21:04
clarkbright its still a bug just not where I thought it was21:04
Shrewstobiash: but it wasn't the case for the thing clarkb and myself saw in production21:05
Shrewsso clarkb is right... seems to be elsewhere21:06
tobiashnow I'm confused21:06
tobiashso the error in production was a missing lock or the exception when trying to unlock?21:07
jeblairfbo_: the git driver looks really good; i left a comment inline about something we may want te restructure slightly21:07
Shrewstobiash: the error in production was an exception *caused* by self.request.lock being None21:08
*** JasonCL has quit IRC21:08
Shrewsin the poll() method21:08
tobiashwhich is not the missing lock because that wouldn't have cause an exception21:09
tobiashso notepool itself unlocked it correctly but just from an unexpected time/codepath21:09
Shrewstobiash: correct. lock.release(), as we just determined, handles that gracefully21:09
Shrewstobiash: nodepool should NOT have unlocked it (which is the problem here). i suspect an overwrite of the object b/c of object references, but that's just a theory21:10
* Shrews has to step away for a bit21:11
*** threestrands has joined #zuul21:18
*** threestrands has quit IRC21:18
*** threestrands has joined #zuul21:18
*** JasonCL has joined #zuul21:20
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix nit in fingergw doc  https://review.openstack.org/52775121:22
*** JasonCL has quit IRC21:24
tobiashmordred: looking at your yarn stuff21:28
tobiashwhat's the difference in package.json between the versions with '^' and the versions without?21:28
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Serve keys from canonical project name  https://review.openstack.org/50480721:31
openstackgerritMerged openstack-infra/nodepool feature/zuulv3: Add cloud quota handling  https://review.openstack.org/50383821:33
openstackgerritMerged openstack-infra/nodepool feature/zuulv3: Don't fail on quota exceeded  https://review.openstack.org/50305121:33
openstackgerritMerged openstack-infra/nodepool feature/zuulv3: Make max-servers optional  https://review.openstack.org/50428221:33
openstackgerritMerged openstack-infra/nodepool feature/zuulv3: Support cores limit per pool  https://review.openstack.org/50428321:33
openstackgerritMerged openstack-infra/nodepool feature/zuulv3: Support ram limit per pool  https://review.openstack.org/50428421:33
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Send open CORS header for jobs and builds  https://review.openstack.org/52777221:36
dmsimardtobiash: ^ woot21:39
dmsimardbest feature evar21:39
dmsimard<321:39
tobiashyay :):):)21:39
*** hashar has joined #zuul21:40
dmsimardtobiash: didn't we think of that back in denver ?21:44
kklimondahmm, I just had zuul-merger fail to merge something (explode rather spectacularly: https://pastebin.com/vrER4DSR) but rerunning the same command (`git merge -s resolve FETCH_HEAD`) on the same HEAD worked fine: https://pastebin.com/621M1Jd021:44
tobiashthat was most of my time in denver and refining the week after21:44
*** JasonCL has joined #zuul21:46
kklimondaI can probably ask author to rebase, but I'm curious as of why is this happening21:46
clarkbkklimonda: couple things, are you sure fetch head is the same ref there?21:47
clarkbkklimonda: but also I want to say that zuul attempts to approximate the jgit merge method so that it is similar to gerrit's behavior, that could possibly have an effect here21:47
kklimondaclarkb: yes21:47
kklimondaclarkb: can I do the same from commandline? i.e. approximate what jgit does?21:48
clarkbkklimonda: yes, but I'm not quite sure whee that happens in zuul so not sure how it is done21:48
clarkbit might be a git repository setting? or I could just be misremembering21:49
kklimonda(also, gerrit is not showing merge failure for this review)21:50
jeblairkklimonda, clarkb: the 'approximate jgit' behavior is in the pastebin -- it's 'git merge -s resolve'21:51
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Drop local fork of GitPython for 2.1.8 release  https://review.openstack.org/52729821:51
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix attribute syntax in docs  https://review.openstack.org/52697221:51
jeblairkklimonda: are there any other dependencies involved?21:53
kklimonda@jeblair there is another review depending on this one21:54
jeblairbut this one doesn't have a depends-on: header or anything?21:54
*** dkranz has quit IRC21:54
jeblairkklimonda: what's the gerrit merge strategy for this repo?  'merge if necessary'?21:55
kklimondajeblair: no, it doesn't have any depends-on itself, and its parent isn't in the review. the strategy is 'merge if necessary' indeed21:56
jeblairkklimonda: well, hrm.  i'm not positive that gerrit's merge-conflict detection works exactly the same way as its actual merges.  it's possible that everything is working as intended and if you did tell gerrit to submit this, it would fail.  or it could be that this is just an edge case where jgit and git don't work quite the same.  or perhaps jgit got better and we're now being too conservative.21:58
jeblairat any rate, for most of those cases, the best thing is probably to rebase.  and if this starts happening more, we may need to look into whether we should still be using '-s resolve'.21:59
kklimondathanks, I'll just ask author to do a rebase - we're having some issues with gerrit replication right now, so that's a low priority - if this happen again, I'll dig more into it22:00
*** hashar has quit IRC22:39
*** harlowja has quit IRC22:54
*** flepied__ has joined #zuul22:54
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add implied-branches pragma directive  https://review.openstack.org/52780523:09
*** harlowja has joined #zuul23:42

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