Friday, 2021-07-09

opendevreviewMerged zuul/zuul master: Use an actual database in all Zuul tests  https://review.opendev.org/c/zuul/zuul/+/79718100:02
opendevreviewMerged zuul/zuul master: Remove ZuulDBTestCase  https://review.opendev.org/c/zuul/zuul/+/79835000:26
*** bhagyashris|ruck is now known as bhagyashris|out05:53
opendevreviewSimon Westphahl proposed zuul/zuul master: Don't clear connection caches during full reconfig  https://review.opendev.org/c/zuul/zuul/+/80006606:06
swestclarkb: corvus: ^ fixed the failing test06:16
swestcorvus: I'm interested in your opinion regarding the clearCaches API in 80006606:17
*** jpena|off is now known as jpena07:11
opendevreviewSimon Westphahl proposed zuul/zuul master: Lock tenants, pipelines during processing  https://review.opendev.org/c/zuul/zuul/+/79601307:24
opendevreviewSimon Westphahl proposed zuul/zuul master: Don't clear connection caches during full reconfig  https://review.opendev.org/c/zuul/zuul/+/80006607:34
*** mgoddard- is now known as mgoddard08:40
opendevreviewAlbin Vass proposed zuul/zuul-operator master: Mount connection sshkeys on executors and mergers  https://review.opendev.org/c/zuul/zuul-operator/+/79999808:41
*** jpena is now known as jpena|lunch11:20
*** jpena|lunch is now known as jpena12:25
opendevreviewSimon Westphahl proposed zuul/zuul master: Lock tenants, pipelines during processing  https://review.opendev.org/c/zuul/zuul/+/79601312:33
opendevreviewSimon Westphahl proposed zuul/zuul master: Lock tenants, pipelines during processing  https://review.opendev.org/c/zuul/zuul/+/79601312:37
opendevreviewFelix Edel proposed zuul/zuul master: Switch to ZooKeeper backed NodesProvisionedEvents  https://review.opendev.org/c/zuul/zuul/+/79983312:48
corvusswest: i'm inclined to remove it now; it would be easy to add back in a new form if we're wrong (but also, a rolling scheduler restart would accomplish the same thing in the future).  (i'll leave a comment on the change too)13:48
avass[m]corvus: if you wanna do a quick operator review: https://review.opendev.org/c/zuul/zuul-operator/+/79999814:10
avass[m]oh I see another issue too14:11
corvusavass: ah so that's setting a per-connection sshkey.  ++  i'll look into covering that case in the update to the functional job.14:13
avass[m]corvus: yeah that was configured for zuul.conf and mounted on the scheduler but no on executors or mergers14:19
opendevreviewAlbin Vass proposed zuul/zuul-operator master: Set component command with args instead of command  https://review.opendev.org/c/zuul/zuul-operator/+/80026314:19
opendevreviewAlbin Vass proposed zuul/zuul-operator master: Configure debug logs for merger  https://review.opendev.org/c/zuul/zuul-operator/+/80026414:19
opendevreviewAlbin Vass proposed zuul/zuul-operator master: Gracefully shutdown executor on SIGTERM  https://review.opendev.org/c/zuul/zuul-operator/+/80026514:19
avass[m]the operator had the usual issue with overriding command (docker entrypoint) instead of setting args :)14:20
corvustristanC: could you look at https://review.opendev.org/799701 real quick?14:21
tristanCcorvus: sure, the change LGTM, though I left a small nit about the meaning of the env value14:26
corvusoh, flipping the default?  well, since people may already be using sigterm, i figured this was the least disruptive.  and i'm also not sure which default is "best".  avass wants 'graceful', opendev wants 'stop'.  it's kind of a toss-up which we should make default.  :|14:29
avass[m]I very much think the operator should do graceful shutdowns at least :)14:29
corvusavass: i'd like the operator to do zuul's default by default14:30
corvusof course it should be able to be set as an option in the operator :)14:30
avass[m]just thinking that the operator handles that for you so any human operator has less controll of how the services are managed14:31
corvusavass: if you think that the operator should do that by default, then let's translate your argument into saying that zuul should do it by default and accept tristanC's suggestion and flip the default.14:32
avass[m]also it's less harmful for newer installations to check why their upgrade/restart whatever is taking some time to happen than "oops all jobs got lost"14:32
avass[m]corvus: yeah maybe that's the better way to do it?14:33
tristanCcorvus: i meant to keep the default, it's just that it can be confusing to use `1`/`true` or `0` to enable or disable a feature through the environment, what about `yes` and `no` ?14:33
avass[m]tristanC: I think all of those are confusing since every service does it differently. :)14:35
tristanCthe presence of the environment variable should be enough, but it can be more difficult to remove in some situation (e.g. helm template)14:35
avass[m]I just think the environment variables needs to be well documented14:35
corvuswe could say "ZUULEXECUTORSIGTERM_BEHAVIOR=graceful" :)14:35
corvuswe could say "ZUUL_EXECUTOR_SIGTERM_BEHAVIOR=graceful" :)14:35
tristanCcorvus: that looks better to me14:36
avass[m]I like that one14:36
corvusi might use method to avoid the us/gb behavio[u]r issue14:39
avass[m]by writing everything in swedish instead? :)14:40
corvusavass: we're writing swedish now, right?  ;)14:40
avass[m]bork bork14:41
fungithat chef really had style though14:43
opendevreviewJames E. Blair proposed zuul/zuul master: Add graceful stop environment variable  https://review.opendev.org/c/zuul/zuul/+/79970114:44
opendevreviewJames E. Blair proposed zuul/zuul master: Flip default of ZUUL_EXECUTOR_SIGTERM_METHOD  https://review.opendev.org/c/zuul/zuul/+/80027014:44
corvustristanC, avass, tobiash, clarkb, fungi, mnaser: ^ i separated concerns there so you can review those independently.  i'm not tied to one default or the other, but i do think that the operator should have the same default as zuul (but also the option to change it in the CRD).14:47
avass[m]to be fair it would be really weird seeing `ZUUL_EXEKVERARE_SIGTERM_BETEENDE=graviös`, like that one error message that's in hebrew in php14:49
avass[m]*graciös :)14:49
tristanCcorvus: thanks14:49
avass[m]corvus: lgtm, I don't mind either way for 800270 (since I'm aware of it) but I still think it's safer default behaviour14:50
fungicorvus: on 799701, just to confirm, you did intend for that to be a substring match right? so ZUUL_EXECUTOR_SIGTERM_METHOD=g or ZUUL_EXECUTOR_SIGTERM_METHOD=race all work14:59
corvusfungi: hah i did not :)14:59
fungiat first i misread it as a membership comparison, but then realized there was no trailing , so the () were merely decorative and not a tuple14:59
corvusyep, i fell into that trap.  in my defense, i haven't had breakfast yet.15:00
fungii'll unapprove15:00
opendevreviewJames E. Blair proposed zuul/zuul master: Add graceful stop environment variable  https://review.opendev.org/c/zuul/zuul/+/79970115:05
opendevreviewJames E. Blair proposed zuul/zuul master: Flip default of ZUUL_EXECUTOR_SIGTERM_METHOD  https://review.opendev.org/c/zuul/zuul/+/80027015:05
clarkbcorvus: I've approved https://review.opendev.org/c/zuul/zuul/+/80006615:34
opendevreviewJames E. Blair proposed zuul/zuul-operator master: WIP: add static node to functional test  https://review.opendev.org/c/zuul/zuul-operator/+/79987416:02
*** jpena is now known as jpena|off16:11
opendevreviewMerged zuul/zuul master: Add graceful stop environment variable  https://review.opendev.org/c/zuul/zuul/+/79970116:15
corvustristanC, tobiash, clarkb, fungi: can you review https://review.opendev.org/800270 please?  since 799701 merged, i'd like to make a decision on 800270 asap.  i'm fine with either decision, i just don't want to change it across a release boundary.  feel free to -1 without comment even just to record a vote.16:19
opendevreviewMerged zuul/zuul master: Don't clear connection caches during full reconfig  https://review.opendev.org/c/zuul/zuul/+/80006616:40
opendevreviewJames E. Blair proposed zuul/zuul master: Flip default of ZUUL_EXECUTOR_SIGTERM_METHOD  https://review.opendev.org/c/zuul/zuul/+/80027016:43
*** holser is now known as holser_16:52
*** holser_ is now known as holser16:52
fungicorvus: commented, i wonder if the behavior when setting that envvar to empty might confuse some people, but i don't know if that's a real concern16:53
opendevreviewJames E. Blair proposed zuul/zuul master: Flip default of ZUUL_EXECUTOR_SIGTERM_METHOD  https://review.opendev.org/c/zuul/zuul/+/80027016:56
corvusfungi: ^16:56
avass[m]corvus: I think you misunderstood the last comment by fungi17:18
avass[m]the last patch set looks like it will only log an error in the exit handler if the environemnt variable is given a bad value so the executor has to be SIGKILLED17:19
fungiyes, the error condition turns the signal handler into a no-op (aside from logging the warning of course)17:20
fungiso no action is taken on any sigkill received17:20
fungier, sigterm i mean17:21
corvuswhat would you rather it do?17:21
avass[m]log an error and stop/raise an exception?17:21
corvuswhich stop method?17:21
fungii don't have a particular preference, i was just pointing out that it will do nothing and need a sigkill to actually terminate17:22
fungiwhich might be fine17:22
corvusfungi: or a "zuul-executor stop" to terminate17:22
fungiright, or that. just not sigterm17:22
corvusyep17:22
avass[m]I think I'd expect a bad value to use the default behaviour, or error on startup but we're not checking that on start17:23
opendevreviewJames E. Blair proposed zuul/zuul master: Revert "Add graceful stop environment variable"  https://review.opendev.org/c/zuul/zuul/+/80028217:25
avass[m]:)17:26
corvusokay, i'm going to revert out the already-merged thing17:26
corvussince this discussion is growing and growing, i don't want to split these 2 changes across a release, and i want to be able to make a release17:26
avass[m]I think the above change does the right thing and we just need to agree to what the default behaviour should be17:26
corvusso we'll revert out the env variable, then i'll push up a revert-revert, WIP it, and we can continue to discuss17:26
opendevreviewJames E. Blair proposed zuul/zuul master: Flip default of ZUUL_EXECUTOR_SIGTERM_METHOD  https://review.opendev.org/c/zuul/zuul/+/80027017:28
opendevreviewJames E. Blair proposed zuul/zuul master: Add graceful stop environment variable  https://review.opendev.org/c/zuul/zuul/+/80028417:28
corvusavass: what do you mean the default behavior?  that change sets the default to 'graceful'.  do you mean we need to agree what the error behavior should be?17:30
avass[m]something along the lines of "if `ZUUL_EXECUTOR_SIGTERM_METHOD` specifies a valid method do that, otherwise fall back to default behaviour", so I don't think splitting the change into two helps in this case17:30
corvusi'm not splutting it into two17:30
*** melwitt is now known as Guest32217:31
corvusit was already split in two17:31
corvuswe just merged the first one too early17:31
fungiavass[m]: so use stop is stop is explicitly specified, use graceful otherwise *but* if something is specified which is neither stop nor graceful, emit an error message (but still do a graceful shutdown after logging the warning)17:32
avass[m]fungi: yep17:32
fungiseems reasonable17:33
avass[m]corvus: yes actually you're right there, but the logic breaks because the "Flip" change also requires valid input the way it's written17:33
avass[m]which the first change didn't require17:33
corvussure, i was just trying to give people an opportunity to weigh in on what the default should be17:34
corvusif we don't merge the flip, we can still apply the same thing to the other change17:34
corvusthis is turning into a huge time sink though :(17:35
avass[m]do we really need to revert 800282 then?17:35
fungiin the first change it was less problematic because the fallback was to the default. the second change inverted the default but did not invert the fallback17:35
corvusabsolutely, i have no reason to believe we can get everyone to agree on this within the next few minutes17:36
corvusand we're about to do an opendev restart17:36
avass[m]I mean 799701 didn't change the default behaviour, just added a way to do something else. The default can be switched later17:37
opendevreviewJames E. Blair proposed zuul/zuul master: Add graceful stop environment variable  https://review.opendev.org/c/zuul/zuul/+/80028417:37
corvusit added a new environment variable; i don't think it's very professional to make a release with that env variable knowing we're going to change it17:38
corvusokay, so all of my attempts to make this simple and quick have failed.  so it's just one change now.17:38
corvuswe'll just iterate over https://review.opendev.org/800284 in the normal way until we find something we all like17:39
corvussorry for all the churn :(17:39
avass[m]I don't think we're changing the behaviour of the environment variable with the follow up17:39
corvuswe were changing the default17:40
corvusi never intended to do that across a release17:40
avass[m]but yeah I agree that it's not great since it would lead to people who want that behaviour adding an environment variable that will become unecessary17:40
corvusi thought we could merge change #1 (add a variable) and, if we wanted the default flipped, merge change #2 immediately, so no users would ever see #1 without #2.  but it turned out all the deferred review items from #1 just piled up on #2, so we can't merge it quickly.17:42
corvusanyway, tristanC, tobiash, clarkb, fungi, avass: please review https://review.opendev.org/800284 but don't approve it.  let's get everyones comments on that and merge it when we have consensus.  i'm sorry for the extra work :(17:44
fungino worries, process management is a generally painful topic17:46
*** melwitt_ is now known as melwitt17:57
*** melwitt is now known as jgwentworth17:58
tristanCcorvus: wfm, thanks again!18:00
opendevreviewAlbin Vass proposed zuul/zuul-operator master: Set component command with args instead of command  https://review.opendev.org/c/zuul/zuul-operator/+/80026318:13
opendevreviewAlbin Vass proposed zuul/zuul-operator master: Configure debug logs for merger  https://review.opendev.org/c/zuul/zuul-operator/+/80026418:13
opendevreviewMerged zuul/zuul master: Revert "Add graceful stop environment variable"  https://review.opendev.org/c/zuul/zuul/+/80028218:35
opendevreviewAlbin Vass proposed zuul/zuul-operator master: WIP: Add structural schema to crd  https://review.opendev.org/c/zuul/zuul-operator/+/80030219:09
avass[m]should we bump the apiversion if we add a schema to the crd?19:10
corvusavass: i don't think so.  how is the schema useful?19:17
avass[m]corvus: makes it possible to validate the object before applying it19:18
avass[m]or rather you'll error earlier when you `kubectl apply -f ...`19:18
avass[m]from what I understand19:18
tristanCthe schema also enable a web based form when creating the crd in the openshift console19:19
corvusgotcha, thx.19:20
clarkbcorvus: re https://review.opendev.org/800284 the opendev docker-compose file will probably need to be updated with that change? Thats fine with me, just want to call out impact to other users19:25
corvusclarkb: yes19:26
fungiright, i assumed we'd do that if/when it merges19:27
opendevreviewJames E. Blair proposed zuul/zuul-operator master: Add static node to functional test  https://review.opendev.org/c/zuul/zuul-operator/+/79987419:41
corvusthat succeeded, so i just removed the WIP flag from the commit msg19:42
corvusi think we can rebase avass's ssh key change on that and maybe look at expanding the test to include that19:42
avass[m]++19:42
corvusi'll just go ahead and push up a rebase19:43
opendevreviewJames E. Blair proposed zuul/zuul-operator master: Mount connection sshkeys on executors and mergers  https://review.opendev.org/c/zuul/zuul-operator/+/79999819:44
opendevreviewJames E. Blair proposed zuul/zuul-operator master: Set component command with args instead of command  https://review.opendev.org/c/zuul/zuul-operator/+/80026319:44
opendevreviewJames E. Blair proposed zuul/zuul-operator master: Configure debug logs for merger  https://review.opendev.org/c/zuul/zuul-operator/+/80026419:44

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!