Friday, 2026-10-23

-@gerrit:opendev.org- Zuul merged on behalf of Monty Taylor https://matrix.to/#/@mordred:inaugust.com: [opendev/system-config] 1011947: Add trixie slim and go 1.27 to the mirror https://review.opendev.org/c/opendev/system-config/+/101194704:25
-@gerrit:opendev.org- Zuul merged on behalf of Anil Shashikumar Belur: [opendev/system-config] 1002424: Build gerrit-base on python3.14 https://review.opendev.org/c/opendev/system-config/+/100242416:46
@clarkb:matrix.orgfungi: ^ images are promoting now16:48
@clarkb:matrix.orghttps://quay.io/repository/opendevorg/gerrit/manifest/sha256:4c2fd5f58559a423cd6bca6b133eb88124433069a14a50d11408d7d17e26abe8 and promoted here16:49
@clarkb:matrix.orgfungi: I can pause zuul queues if you want t odrive the update on gerrit when we're ready16:49
@fungicide:matrix.orgyeah, gimme a sec to prep16:55
@clarkb:matrix.orgyup no rush. I'm around as a second set of eyes too16:56
@fungicide:matrix.orgokay, i have a root screen session running on review03 and am preparing to pull images17:00
@clarkb:matrix.orgI have attached. Ready whenever you are. I don't think the hourly jobs should interfere with what we do particualry if we pause zuul when we'reabout to restart17:01
@fungicide:matrix.orgpulling17:01
@fungicide:matrix.org`quay.io/opendevorg/gerrit      3.13        9687958b3d1c  About an hour ago  718 MB`17:02
@clarkb:matrix.orgthat seems to match what I linked in quay about after the inspect step17:03
@fungicide:matrix.org`"quay.io/opendevorg/gerrit@sha256:4c2fd5f58559a423cd6bca6b133eb88124433069a14a50d11408d7d17e26abe8"`17:03
@fungicide:matrix.orgagreed17:04
@fungicide:matrix.orgi have the restart commands queued up, if you want to pause zuul now17:04
@clarkb:matrix.orgdo we want to send a status notice too?17:05
@fungicide:matrix.orgin progress17:05
@fungicide:matrix.org#status notice The Gerrit service on review.opendev.org will be offline momentarily to restart onto updated container images, but should return within a few minutes17:05
@status:opendev.org@fungicide:matrix.org: sending notice17:05
@clarkb:matrix.orgzuul is paused. Your queued up comamdn to restart gerrit lgtm17:05
@fungicide:matrix.orgrestarting17:06
@clarkb:matrix.orgI think that error is due to how we haev a second shell container and maybe we rebooted or something which stopped it running17:07
@fungicide:matrix.orgah17:07
@clarkb:matrix.orgI don't think it is a concern. However it likely caused your command to fail due to the &&17:07
@fungicide:matrix.orgyeah i was wondering17:07
@clarkb:matrix.orgoh wait it hasn't returned to the prompt17:07
@clarkb:matrix.orgso maybe it is still trying to do things?17:07
@clarkb:matrix.orglike delete large cche dbs or whatever. I think we just wait?17:07
@clarkb:matrix.orgfungi: did you have to ^C?17:08
@fungicide:matrix.orgi did not, no17:08
@clarkb:matrix.orgI think it is running?17:08
@fungicide:matrix.orgit had overwritten the prompt17:08
-@status:opendev.org- NOTICE: The Gerrit service on review.opendev.org will be offline momentarily to restart onto updated container images, but should return within a few minutes17:08
@status:opendev.org@fungicide:matrix.org: finished sending notice17:08
@fungicide:matrix.orgwith output17:08
@clarkb:matrix.orgdocker ps -a shows two containers17:08
@fungicide:matrix.orgokay, maybe it did complete in that case17:09
@clarkb:matrix.orgoh except neither is the gerrit container17:09
@fungicide:matrix.org`echo $?` reports that the command exited `1`17:09
@fungicide:matrix.organd seems to have been the `docker compose down`17:09
@clarkb:matrix.orgyup. So maybe we try to docker compose down step again without the rest of the process?17:10
@clarkb:matrix.organd then take it from there to determine what if any cleanup we need to do17:10
@fungicide:matrix.orgjust did17:10
@clarkb:matrix.orgok there is one container running now the one that I Think gave us problems17:10
@fungicide:matrix.orgit worked the second time17:10
@clarkb:matrix.orgI think we can proceed with starting gerrit using the rest of the normal process then try and clean up this container afterwards17:10
@fungicide:matrix.orgagreed, running it now17:11
@clarkb:matrix.org`gerrit-compose-shell-run-42a397500d98` this is the one that needs to be cleaned up I think17:11
@fungicide:matrix.orggerrit should be starting now17:12
@clarkb:matrix.orgthat shell run container appeas to be lefotver from the previous gerrit upgrade17:13
@fungicide:matrix.orgseems to be up and working17:13
@clarkb:matrix.orgthat is why the -suffix isn't -1 or similar which is what docker compose uses. So maybe that wasn't the problem17:13
@fungicide:matrix.organything you want to check before i `gerrit index start changes --force` ?17:13
@clarkb:matrix.orgya give me a sec. I have a change i want to push to check replication17:14
@fungicide:matrix.org2026-10-23T17:14:17 https://opendev.org/starlingx/ansible-playbooks/commit/ecfc2c467b82c17a03e24b9bb73abe6a679bfc4017:14
-@gerrit:opendev.org- Clark Boylan proposed: [opendev/system-config] 1012076: Upgrade etherpad to 3.3.10 https://review.opendev.org/c/opendev/system-config/+/101207617:16
@clarkb:matrix.orgalso ^ I will unpause zuul now and we can reindex17:16
@fungicide:matrix.org`Reindexer started`17:17
@clarkb:matrix.orgfungi: so I guess we don't knnow hich command exited non zero since it looked like waiting queues moved and the cache files got deleted?17:17
@fungicide:matrix.orgright. it may have been the up that failed17:18
@clarkb:matrix.orgI guess that is fine. We appear to have reached the state we wanted before we started up again.17:18
@clarkb:matrix.organd things seem to be working now17:18
@fungicide:matrix.organd reindex is 10% done17:21
@clarkb:matrix.orgfungi: do we have the error message that was emitted in screen scrollback still? I'm just wondering ifwe can capture that for future debugging if that becomes necessary (but I don't want to take over driving the screen)17:29
@fungicide:matrix.orgit was garbled by stdout and stderr overwriting one another because podman likes to do pretty things with updating the same lines in the console17:30
@fungicide:matrix.orgwe would probably need to redirect one or the other to separate the streams in a future run, or maybe tell podman not to assume a fully-functioning tty17:31
@clarkb:matrix.orgack. We can just try to be better prepared next time. And maybe run each step one by one so that we have a clearer picture of where things are going sideways if they do go side ways17:32
@clarkb:matrix.orgI almost wonder if this was a race between stopping and starting the container17:32
@clarkb:matrix.org(in which case running things a bit more manually will be slower and make the issue go away but on the off chance that isn't the case then it may provide valuable info)17:32
@fungicide:matrix.orgyeah, we can separate the steps back out and just accept the outage will be slightly longer as we pause momentarily between each step17:33
-@gerrit:opendev.org- Clark Boylan proposed: [opendev/system-config] 840972: DNM force etherpad failure to hold node https://review.opendev.org/c/opendev/system-config/+/84097217:38
@fungicide:matrix.orgi just realized https://fosstodon.org/@opendevinfra still points to our old irc channel if someone has time and interest in working out how to update it17:47
@clarkb:matrix.orgreindexing completed with the expected 3 failures. I have disconnected from the screen18:11
@fungicide:matrix.orgi closed out the screen session18:15
@clarkb:matrix.orgfungi: doing a show-queue I notice that there are a lot more patchset created hooks than I expected i nthe list and some of them are old18:23
@clarkb:matrix.orgI'm worried that the python update broke something there18:23
@fungicide:matrix.orgi'll check the log18:25
@clarkb:matrix.orgI think we are waiting for `738dadad              17:15:50.697      hook patchset-created` to complete18:27
@clarkb:matrix.orgps on the host side shows a python process which is maybe associated with that task? Could explain why it is still running if the python process hasn't completed18:29
@fungicide:matrix.orgalso possible this is a symptom of launchpad's api not responding in a timely fashion18:30
@clarkb:matrix.orgya I was just looking at strace against that python process and it appears to be talking to lp18:31
@fungicide:matrix.orgthe last traceback out of the patchset-created hook was 15:32:19 utc, before the upgrade18:32
@fungicide:matrix.orgsince upgrading there have been a few hook failures recorded18:32
@fungicide:matrix.orgs/upgrade/restart/18:33
@clarkb:matrix.orgthe most recent one was at 18:1418:33
@clarkb:matrix.orgmaybe you're right and this is just really slow lp?18:33
@fungicide:matrix.org`hook[patchset-created] exited with error status: 124`18:33
@clarkb:matrix.orgits possible that it is slow lp + a python3.14 incompatibiltiy that isn't tripped until we do network processing18:33
@fungicide:matrix.orgthose don't seem to come with python tracebacks18:33
@clarkb:matrix.orgfungi: we run the hooks under timeout18:34
@clarkb:matrix.orgI think the rc 124 with no tracback is indicative of hitting the timout18:34
@fungicide:matrix.org`124    if COMMAND times out, and --preserve-status is not specified`18:34
@fungicide:matrix.orgfrom the timeout(1) manpage18:35
@fungicide:matrix.orgso yes, seems to back up the "slow lp" theory18:35
@clarkb:matrix.orgok and we have 3 patchset created commands in the hook each with a separate timeout18:35
@clarkb:matrix.orgso we're waiting ~half an hour for each of these18:36
@clarkb:matrix.orgthis is unlikely to be a new issue I guess we just monitor and determine later if python3.14 is potentially a problem but for now unlikely to be our fault?18:36
@fungicide:matrix.orgwe saw a slew of similar timeout results between 2026-09-22 and 2026-10-01 but not again until today after the restart18:37
@fungicide:matrix.orgor i guess that might have started even longer ago, 2026-09-22 is as far back as we have log retention18:37
@clarkb:matrix.orgok I think I'm happy enough with that to know it isn't an emergency. I really need to catch up on normal morning activities now if you think this is ok to monitor for a bit as is18:38
@fungicide:matrix.orgbut whatever the cause, it stopped after 2026-10-01T06:29:25.712Z and started up again at 2026-10-23T17:34:17.658Z18:39
@clarkb:matrix.orgstrace may be the next debugging step18:39
@clarkb:matrix.orgsince that should show us what is slow without tracebacks18:39
@fungicide:matrix.org17:12 was roughly when we started gerrit up, so approximately 20 minutes before the first timeout was logged18:40
@clarkb:matrix.orgya it is possible this is coincidence. It is also possible we've introduced a performance change with the switch to python3.1418:41
@fungicide:matrix.orgstrace seems to indicate a socket polling loop for a connection between 2604:e100:1:0:f816:3eff:fe31:926a (review03.opendev.org) and 2620:2d:4000:1009::f3 (launchpad-net.ps5-frontend-0.canonical.com)18:42
@clarkb:matrix.orgtalking out loud here: I wonder if we're getting caught in a bot filter trap18:44
@fungicide:matrix.orgalways possible18:45
@clarkb:matrix.orgalternatively maybe we're inefficient with our session maangement and that causes us to make more connections than necessary which makes it more likely we get on a slow frontend/backend combo18:45
@clarkb:matrix.orgbecause ya it doesn't look like python is exploding and returning a traceback due to some incompatibiltiy18:45
@clarkb:matrix.orgit looks like the process is running just very slowly18:46
@clarkb:matrix.orgfungi: it looks like its looking up the name in dns, connecting, setting up ssl, doing a write then some reads then repeating18:48
@clarkb:matrix.orgso maybe that is bot defense or maybe we have a bug that causes us to retry in a loop18:48
@clarkb:matrix.orgupdate_blueprint in particular seems to be getting stuck18:50
@clarkb:matrix.orgoh wait its probably both update blueprint and update bug since we have 20 mibutes between failkures in the gerrit log and they each have a 10 minute timeout18:52
@clarkb:matrix.orghttps://review.opendev.org/c/starlingx/root/+/995093 this is the change that should be timing out as I type18:54
@clarkb:matrix.orgthat commit message doesn't have blueprint info18:54
@clarkb:matrix.orgso maybe the tight loop is in lpconn = launchpad.Launchpad.login_with() ? before we fetch the change and look for spec info18:55
@clarkb:matrix.orgLooks like launchpadlib updated on the 13th and we just deployed with that version here19:05
@clarkb:matrix.orgI suspect that may be hte source of whatever issue there is if it is on our end and not slowness in lp19:05
@clarkb:matrix.orgthe next change it is chewing on also doesn't seem to have a blueprint noted in its commit message19:07
@clarkb:matrix.orgso ya I'm thinking the bug is in the lp connection setup provided by launchpadlib. Possibly due to the changes in the latest release or possibly due to some interaction with pyhton3.14 I suppose19:08
@clarkb:matrix.org2.2.0 claims support for python3.14. We are running 2.3.019:08
@clarkb:matrix.orghttps://git.launchpad.net/launchpadlib/tree/?h=2.3.0&id=e50fdbab9fd874ab542dcf78c152185e14523b55 is the code for 2.3.019:09
@clarkb:matrix.orgfungi: I think it is somethign realted to ssl setup. If you look at the strace loop is appears to be doing a lookup launchpad.net in dns, connect to launchpad.net and read some data, then read our certifi python cert content and then it starts over19:18
@clarkb:matrix.orglike maybe it is rejecting the ssl cert and instead of quitting it tries again for some reason?19:18
@clarkb:matrix.orgI'm thinking we may need to try and reproduce this with some local lp credentials just using the portion of jeepyb that does the lp connection19:19
@clarkb:matrix.orgcan even run it in the gerrit image locally with a different credential file just toe nsure all the deps are the same19:19
@clarkb:matrix.orgI need to take a break though19:22
@fungicide:matrix.orgyeah, i don't think it's urgent, if we determine it looks like we're hitting some sort of botguard i can raise it in the lp matrix room19:24
@clarkb:matrix.orgfungi: something that just occurred to me is maybe if we send it sigterm/sigint type stuff out of band with timeout (I forget what it does by default) we might be able to generate a tracebak in the logs that way19:56
@clarkb:matrix.orgfungi: I don't know if yo uwant to poke at that I'm goign to try and reproduce locally19:56
@fungicide:matrix.orgi suppose i can see if that dumps anything useful into the error log when i do that, sure19:57
@fungicide:matrix.orgsigint to the python child process did not terminate the script19:59
@fungicide:matrix.org`exited with errorstatus: 135` and `output: Bus error`20:00
@fungicide:matrix.orgoh, that's because i sent it sigbus not sigint20:02
@fungicide:matrix.organyway, no traceback was captured in the error log20:03
@fungicide:matrix.org`File "/usr/local/lib/python3.14/site-packages/launchpadlib/credentials.py", line 804, in wait_for_end_user_authorization`20:06
@clarkb:matrix.orgack. I can kinda sorta reproduce the slowness using login_anonymously in the container image but it evenutally succeeds20:06
@fungicide:matrix.orgso maybe we need to refresh the token?20:06
@clarkb:matrix.orgfungi: where did that traceback come from?20:06
@fungicide:matrix.orgi did a sigint on another one20:07
@fungicide:matrix.orgit was sitting in `time.sleep(access_token_poll_time)`20:07
@clarkb:matrix.org2.3.0 did add new support for the fido key stuff. I wonder if the underlying details about tokens have changed or maybe their storage?20:09
@clarkb:matrix.orgok so it appears to be failing to authenticate. Refreshing the token seems like a good next step in that case particular since we know from release notes that there have been changes around that20:10
@clarkb:matrix.orgthen from my testing locally I know that anonymous access is slow so I think it may also be slow20:11
@clarkb:matrix.orgI'm only just now getting to eat breakfast. So not sure if you're able to figure out the token stuff20:11
@clarkb:matrix.orghttps://git.launchpad.net/launchpadlib/tree/src/launchpadlib/credentials.py?h=2.3.0&id=e50fdbab9fd874ab542dcf78c152185e14523b55#n692 doesn't have many more clues20:12
@clarkb:matrix.orgactually https://git.launchpad.net/launchpadlib/tree/src/launchpadlib/credentials.py?h=2.3.0&id=e50fdbab9fd874ab542dcf78c152185e14523b55#n804 this is where it is stalled out20:13
@clarkb:matrix.orghttps://git.launchpad.net/launchpadlib/tree/src/launchpadlib/credentials.py?h=2.3.0&id=e50fdbab9fd874ab542dcf78c152185e14523b55#n58 it will wait 15 minutes20:14
@clarkb:matrix.orgalso possible that authorization is that much slower than anonymous fetches20:15
@fungicide:matrix.orgcurrently prepping dinner and doing paperwork, but can try to track down our documentation for regenerating a lp api token in a bit20:15
@clarkb:matrix.orgack that would be great thanks. I really need to eat something and not be hunched over a laptop for a bit20:15
@fungicide:matrix.orgyes, do that20:17
@clarkb:matrix.orgI think launchpadlib will set up an interactive oauth process to make a new token if the old token doesn't work or if there isn't a token. I'm beginnig to suspect that auth is failing and its saying "please go regenerate your token" and we have no way of doing that so we sit there while it polls and then their timeuot is longer than our timeout and we end up where we have ended up20:18
@clarkb:matrix.orgok I'm going to go eat now20:18
-@gerrit:opendev.org- Monty Taylor https://matrix.to/#/@mordred:inaugust.com proposed:20:19
- [zuul/zuul-jobs] 1012107: Add roles and jobs for using the Just task runner https://review.opendev.org/c/zuul/zuul-jobs/+/1012107
- [zuul/zuul-jobs] 1012108: Add support for rustup from the distro https://review.opendev.org/c/zuul/zuul-jobs/+/1012108
@fungicide:matrix.orgi'm thinking https://ubuntu.com/docs/launchpad/user/how-to/launchpadlib/integrate-website/ is how we've done it in the past, but i'm hunting in old irc logs to try to get confirmation20:42
@clarkb:matrix.orgjust as a sanity check we are up to ~235 tasks from ~146 earlier today. I think that growth rate is not going to bankrupt the server resource wise, but something to keep in mind (we're growing tasks rather than catching up)21:02
@clarkb:matrix.orgwe might consider new images that set the timeout to a much lower value or just hack the image in place to either lower the timeout or comment out those commands from the hook script21:03
@clarkb:matrix.orgbut I suspect we'll be ok over the weekend if it lasts that long21:03
@clarkb:matrix.orgI'm going to test etherpad 3.3.10 (held node is at 146.20.60.207) really quickly now so that I can get that flushed out of the queue hopefully21:07
@clarkb:matrix.organy objections to me approving that change if things look good on the held node?21:07
@fungicide:matrix.orgoh for some reason i thought we'd already merged it21:08
@clarkb:matrix.orgWe upgraded to 3.3.9. They released 3.3.10 earlier today21:08
@clarkb:matrix.orgI got a change up just after the gerrit restart. Its the treadmill we can't jump off of :)21:08
@fungicide:matrix.orgah, new one just a few hours ago, right21:08
@clarkb:matrix.orgI think you can focus on your lp historical research as you do that much more better than I do21:10
@clarkb:matrix.orgI'll focus on etherpad and maybe we can kill two birds concurrently with two different stones21:10
@clarkb:matrix.orgmy typical clarkb-test pad looks great. Formatting and lists and chat all work as expected. I think I'll go ahead and approve https://review.opendev.org/c/opendev/system-config/+/1012076/ unless there are objections in the next few minutes21:14
@clarkb:matrix.orgfungi: I half wonder if we need toclear out the /home/gerrit2/.launchpadlib/cache/api.launchpad.net file. Its timestamp is older tahn I would expect. But I don't know what the consequences of that may be21:16
@clarkb:matrix.org(wondering if the old cache may somehow be incompatibile with new launchpadlib or launchpad apis)21:16
@clarkb:matrix.orghttps://review.opendev.org/c/opendev/system-config/+/1012076 has been approved. I'll keep an eye on that upgrade21:24
@clarkb:matrix.orgfungi: there is alos these docs: https://documentation.ubuntu.com/launchpadlib/introduction.html#oauth-authentication21:28
@clarkb:matrix.orgwhich is distinct to https://documentation.ubuntu.com/launchpadlib/hardware-tokens.html21:29
@clarkb:matrix.orgfungi: I'm half tempted to exec into the running gerrit container and try the lpconn = login_with() call that update_blueprint runs and see what happens if I'm a bit more interactive21:30
@clarkb:matrix.orgI think that may rule in or out a prompt to go through a new oauth dance21:31
@clarkb:matrix.orgbut maybe that isn't a good idea in production?21:31
@clarkb:matrix.org```21:35
from launchpadlib import launchpad
from launchpadlib import uris
cache_dir = '~/.launchpadlib/cache'
creds = '~/.launchpadlib/creds'
lpconn = launchpad.Launchpad.login_with(
'Gerrit User Sync', uris.LPNET_SERVICE_ROOT, GERRIT_CACHE_DIR,
credentials_file=GERRIT_CREDENTIALS, version='devel')
```
@clarkb:matrix.orgI think that would be what we want to run21:35
@clarkb:matrix.orgoh wait two bugs21:36
@clarkb:matrix.org* ```21:36
from launchpadlib import launchpad
from launchpadlib import uris
cache_dir = '~/.launchpadlib/cache'
creds = '~/.launchpadlib/creds'
lpconn = launchpad.Launchpad.login_with(
'Gerrit User Sync', uris.LPNET_SERVICE_ROOT, cache_dir,
credentials_file=creds, version='devel')
```
@clarkb:matrix.orgI have also discovered that that api.launchpad.net cache directory does container newer contents21:38
@fungicide:matrix.orgoh maybe21:39
@fungicide:matrix.orgi couldn't find any reference to the other integration functions in our irc logs, fwiw (that grep took a while to complete)21:39
@fungicide:matrix.orgso is it in `~/.cache/api.launchpad.net/` now?21:40
@clarkb:matrix.orgbut also some of the root cached contents seem to be from ~17:03 and we restarted at ~17:1221:40
@clarkb:matrix.orgfungi: its /home/gerrit2/.launchpadlib/cache/api.launchpad.net/cache/stuff21:40
@fungicide:matrix.orgaha21:40
@clarkb:matrix.orgsorry I was maybe not clear before I don't think the location changed i just didn't realize how deep the tree went and the content is hidden in there and some of it is from just before we restarted21:41
@clarkb:matrix.orgwhich makes me think old launchpadlib cached it and now new launchpadlib is trying to use it which may or may not be a problem21:41
@clarkb:matrix.orgbut theorizing maybe if we cached the info in the wrong format or something it could make things sad21:42
@clarkb:matrix.orgI think the ~three options avaible ot us are to 1) just reissue the token and see what happens 2) try that little script above and see if we are prompted to do the oauth dance or 3) clear  out/ move the cache and see if that helps21:42
@clarkb:matrix.orgfungi: if I do an anonymous login the cached data for a couple of those paths does have different byte lenghts21:46
@clarkb:matrix.orgnot very different but slightly different21:46
@fungicide:matrix.orgdepending on what kind of token it is, it may not have a fixed length21:47
@clarkb:matrix.org3226 vs 3218 and 2707580 vs 270757221:48
@clarkb:matrix.orgI think these are caching the responses not the tokens21:48
@clarkb:matrix.orgya one is json and one is xml21:49
@fungicide:matrix.orgright, i expect the credentials to be stored in `~/.launchpadlib/creds` instead anyway21:49
@clarkb:matrix.orgbut whether or not that means we've cached somethin gstale and broken for newer launchpadlib I can't say. It does lend some evidence ot the idea that the cache is stale and refreshing it may help though21:49
@clarkb:matrix.organyway I'm game to try any of those three items or all of them etc if you think it is worth pursuing them21:50
@fungicide:matrix.orgyeah, in theory blowing away the cache should be fine? it's supposedly just a cache21:51
@fungicide:matrix.orgcould move it aside at least and see if anything changes21:51
@clarkb:matrix.org++ do you want me to do that? mv /home/gerrit2/.launchpadlib/cache /home/gerrit2/.launchpadlib/oldcache ?21:51
@fungicide:matrix.orgyes, go for it21:51
@fungicide:matrix.orgmaybe we need to add a step to clear the lp cache when updating container images in the future, if this ends up helping21:52
@clarkb:matrix.orgdone21:52
@clarkb:matrix.orgthe cache dir has not been recreated yet. I'm guessing the running process has the old dir fd open and it won't create a new one until the current process fails and a new one starts21:53
@clarkb:matrix.orgthat should happen in a minute or two automatically21:54
@clarkb:matrix.orgnew process has created a new cache dir. Behavior doesn't seem to have cahnged so not a stale cache problem21:56
@clarkb:matrix.orgthoughts on exec'ing into the container and running that little python script quoted above?21:57
@fungicide:matrix.orgsorry, had to complete a survey that closed 30 seconds ago ;)22:00
@fungicide:matrix.orgi agree, testing from within the container to confirm it's an issue with the data we have in there is probably the best next step22:01
@clarkb:matrix.orgok I'll work on doing thatn ow22:02
@clarkb:matrix.orgconfirmed that I get a prompt to do the authorization dance22:04
@clarkb:matrix.orgit spits out a url to open22:04
@clarkb:matrix.orgI went ahead and gave it a ^C since I think this now confirms that what we need is a new token and I'm not logged in to the account do the dance22:05
@clarkb:matrix.orgI've exited my exec session. I think we should use a proper process to do that whatever that process may be and not my fabricobbled one that relies on random docker execs. But this does seem to confirm the problem so hopefully that helps us solve it22:07
@clarkb:matrix.orgI guess what we need to do is do the dance, cross check the creds file contents and determine if that needs a format update or just var value updates in private vars. Make those edits and let the periodic daily runs put that in place?22:09
@clarkb:matrix.orgI'm half hoping someone other than myself is ableto do all of that mostly because I've not done the lp dance beffore and am on the not ergonmic laptop setup. But let me know22:09
@clarkb:matrix.orgalso etherpad should upgrade in a few minutes so I'm going to pay attention to that for a few minutes22:10
@fungicide:matrix.orgfrom my notes, it looks like the last time i went through this dance was 2026-01-14 after we rotated all the zuul secret encryption keys22:15
@fungicide:matrix.orgi distilled https://documentation.ubuntu.com/launchpad/user/how-to/launchpadlib/using-launchpadlib/index.html#authenticated-access-for-website-integration down to a handful of steps22:15
@fungicide:matrix.org`from launchpadlib.credentials import Credentials`22:15
@fungicide:matrix.org`credentials = Credentials("Gerrit Hooks")`22:15
@fungicide:matrix.org`print(request_token_info = credentials.get_request_token(web_root="production"))`22:16
@fungicide:matrix.org[plug that into a browser that's already logged into the account we're using and select the access level we want]22:16
@fungicide:matrix.org`credentials.exchange_request_token_for_access_token(web_root="production")`22:16
@fungicide:matrix.org`print(credentials.consumer.key, credentials.access_token.secret, credentials.access_token.key)`22:16
@fungicide:matrix.organd that returns the three bits of data that go into our private hostvars22:17
@clarkb:matrix.orgI'm trying to dig into the lazr source now to find if the format of the file changed or something like that22:17
@jim:acmegating.comohai i am back at a terminal, anything i can do?22:17
@fungicide:matrix.orgprobably not unless you want to help dig into what might have changed in launchpadlib. i'm going to work on setting up a venv and generating new creds to see if swapping them out works22:19
@clarkb:matrix.orgcorvus: tldr is after updating the gerrit image to python3.14 and launchpadlib 2.3.0 it seems to not like our current lp credentials contents22:19
@jim:acmegating.comhappen to know the old version of lplib?22:20
@clarkb:matrix.orgcorvus: this causes the gerrit hooks to timeout after 20 minutes and we have a slowly growing backlog of those hooks in the gerrit tasks queue. Manually running the lp connect code spits out a url to do the oauth token dance and we seem to be stuck on that in the scripts causing the timeouts22:20
@clarkb:matrix.orgcorvus: I don't. We last upgraded gerrit to update to the latest 3.13 release we can cross check that against lplib releases maybe22:20
@jim:acmegating.comack22:20
@jim:acmegating.compretty sure launchpadlib==2.1.0 is what was in the old image22:23
@clarkb:matrix.orghttps://git.launchpad.net/lazr.restfulclient/tree/src/lazr/restfulclient/authorize/oauth.py#n163 this code doesn't seem to have chagned22:23
@clarkb:matrix.orgso it must be on the launchpadlib side or even in lp itself?22:23
@jim:acmegating.combut somehow triggered by this update, right?22:23
@clarkb:matrix.organyway if someone is able to work through issuing a new token I suspect that is our next step22:23
@clarkb:matrix.orgcorvus: yup22:24
@jim:acmegating.comis fungi doing that?22:24
@fungicide:matrix.orgyes22:24
@clarkb:matrix.orgthanks! etherpad change should merge momentaily so I'm switching gears to keep an eye on that22:25
-@gerrit:opendev.org- Zuul merged on behalf of Clark Boylan: [opendev/system-config] 1012076: Upgrade etherpad to 3.3.10 https://review.opendev.org/c/opendev/system-config/+/101207622:25
@clarkb:matrix.orgcorvus: launchpad lib runs a busy loop query for 15 minutes while it waits for you to do the lp oauth stuff in your browser. That makes for a very confusing strace22:26
@clarkb:matrix.orgbut I think we were able to run this down eventually22:26
@jim:acmegating.comthere's some changes where it decides whether to re-use a cached cred; not sure if that's the issue, but it smells like it could be; continuing to dig.  that does support your theory: something like a file format changed (or maybe now it stores more metadata) and to fix we either reverse-engineer the difference or get a new token (and presume it stores it with the needed info)22:28
@fungicide:matrix.orgnow that i have a private browser window logged in as hudson-openstack, it looks like i did it twice on 2026-01-14: "Application name: Gerrit Hooks" and "Application name: Release Jobs"22:28
@jim:acmegating.comthis is the fishy looking commit: https://git.launchpad.net/launchpadlib/commit/?id=b9e2de593f12823b4150059b66e46663c4e1c75822:30
@clarkb:matrix.orgetherpad is up and reports being healthy22:31
@clarkb:matrix.orghttps://etherpad.opendev.org/p/gerrit-upgrade-3.14 does load for me and looks about right22:31
@jim:acmegating.com+        Cached credentials are only reused when they clearly belong to22:32
+ the consumer we're authorizing as:
+
+ * the cached consumer key matches the one we're logging in with
+ (the same named consumer, or the same system-wide consumer on
+ this host), or
+ * both the cached and the requested consumer are system-wide.
+ System-wide consumers are keyed by hostname.
@jim:acmegating.com * ```22:32
+
+ Cached credentials are only reused when they clearly belong to
+ the consumer we're authorizing as:
+
+ * the cached consumer key matches the one we're logging in with
+ (the same named consumer, or the same system-wide consumer on
+ this host), or
+ * both the cached and the requested consumer are system-wide.
+ System-wide consumers are keyed by hostname.
```
@jim:acmegating.comthat looks relevant22:32
@clarkb:matrix.orgwe don't set the "Gerrit Hooks" string in the creds file22:33
@clarkb:matrix.orgmaybe that causes it to not match things up unless that is encoded in the key somehow and our old token doesn't carry that info?22:33
@clarkb:matrix.orghttps://git.launchpad.net/lazr.restfulclient/tree/src/lazr/restfulclient/authorize/oauth.py#n163 doesn't seem to load that unless consumer key and consumer secret contain the info/22:34
@clarkb:matrix.orgah yup consumer_key is the value there22:35
@clarkb:matrix.orgwe call it `'Gerrit User Sync'` in jeepyb22:35
@clarkb:matrix.orgso maybe we just need to change that value unless part of that avlue is encoded in the cryoptographic material22:36
@fungicide:matrix.orgi now have a fresh `consumer.key`/`access_token.secret`/`access_token.key` we can try swapping in22:36
@clarkb:matrix.orgfungi: I think the consumer key value may need to be Gerrit User Sync to match the strings in jeepyb based on what corvus quoted above22:37
@clarkb:matrix.org* fungi: I think the consumer key value may need to be `'Gerrit User Sync'` to match the strings in jeepyb based on what corvus quoted above22:37
@fungicide:matrix.orgi wonder then how this impacts the credential being used for release jobs22:37
@clarkb:matrix.orgif you look at the login_with calls in jeepyb they all use that string22:37
@jim:acmegating.comfungi: what version of launchpadlib does the release job use?22:38
@fungicide:matrix.orggreat question, i'll find out22:38
@clarkb:matrix.orgnote we need at least 2.2.0 for python3.14 support. 2.3.0 is the latest22:38
@clarkb:matrix.orgcorvus: do you know if that change was on 2.2.0 as well (thoug hreally just setting up the config and code to match is probably best rather than downgrading)22:38
@fungicide:matrix.orglooks like it uses the latest available per https://opendev.org/openstack/project-config/src/branch/master/roles/copy-release-tools-scripts/files/release-tools/requirements.txt#L222:38
@clarkb:matrix.orgfungi: those jobs use a different credential though right? Maybe their login_with calls match the strings? Or maybe it doesn't use the high level login with and skips psat these checks?22:39
@clarkb:matrix.organyway I wonder if we can just change the string in the current creats to Gerrit User Sync and it will start magically working22:39
@fungicide:matrix.orghttps://opendev.org/openstack/project-config/src/branch/master/roles/copy-release-tools-scripts/files/release-tools/launchpad_add_comment_set_status.py#L6422:39
@fungicide:matrix.orgdoesn't seem to match22:40
@clarkb:matrix.orgunless the new token invalidated the old one22:40
@fungicide:matrix.orgthere are currently two "Application name: Gerrit Hooks" tokens authorized, so doesn't appear that it invalidated anything existing22:40
@fungicide:matrix.orgi'll have to generate new credentials for "Application name: Gerrit User Sync" and replace them in the creds file if we want to do that22:41
@clarkb:matrix.orgoh except we can't easily switch jeepyb to Gerrit Hooks22:41
@clarkb:matrix.orgwe can change Gerrit Hooks in the creds file to Gerrit User Sync though22:42
@clarkb:matrix.orgbut again not sure if that gets encoded in the cryptographic material22:42
@fungicide:matrix.orgalso we haven't done a gerrit user sync since... 2012? then again this account isn't used by hudson any more so incentive to rename things for better accuracy is pretty low22:42
@clarkb:matrix.orgI'm thinking we just change the creds file in place in prod really quick and see if it gets happier22:42
@fungicide:matrix.orgwell, the application name is supplied in the `Credentials()` class object initialization, and appears in the list of authorized applications on the launchpad website22:43
@clarkb:matrix.organd if not then we issue another token with app name Gerrit User Sync and then update the creds file with that. Which I think will fix this. Then we can decide what things should be called long term when it isn't friday?22:43
@clarkb:matrix.orgfungi: ack so we probably need a new token called Gerrit User Sync then?22:43
@fungicide:matrix.orgbut yeah, i can try swapping this out, just wondering why it hasn't broken openstack release jobs if this is the problem22:44
@clarkb:matrix.orgmaybe theirs match up?22:44
@clarkb:matrix.orgalso 2.3.0 was released 10 days ago. Have releases been made since the 13th?22:44
@fungicide:matrix.orgsince they do `login_with(application_name='openstack-releasing', ...)` but launchpad has the credential for that with "Application name: Release Jobs"22:45
@fungicide:matrix.orgyes, plenty22:45
@clarkb:matrix.orgmaybe it is only checking the values client side. So load consumer key from the creds file and check against application name if match then use token22:45
@fungicide:matrix.orglemme see if i can find a recent job run22:45
@clarkb:matrix.orgif that is the case then simply updating our creds file from Gerrit Hooks to Gerrit User Sync should work22:45
@fungicide:matrix.orgi'm quickly running out of runway for my evening though and wasn't expecting to go so deep down this rabbit hole, i'll see what i can find it's just turning into a series of dominoes22:46
@clarkb:matrix.orgif it were me I'd ignore relases for now. Maybe drop a note to the release team that it is something to look at since it isn't breaking them apparently22:47
@clarkb:matrix.orgthere can be a few explanationfor that (maybe the lib is pinned somehow and we don't know) (maybe the creds file loading is all client side and the app name server side doesn't matter ) etc22:47
@fungicide:matrix.orgwell, my point is this has been working for release jobs since long after launchpadlib updated, and the job doesn't use a matching application name so i'm not sure that's the underlying problem either22:48
@clarkb:matrix.orghave we confirmed the value in their config file doesn't match what is in the script though? THats what I'm saying. The validation may not care on the server side only on the library client side22:48
@fungicide:matrix.orgi'm trying to find out22:49
@fungicide:matrix.orghttps://zuul.opendev.org/t/openstack/build/7783a79a30d8482e94e80c18bd45e9b4/log/job-output.txt#666-667 is an example that succeeded22:50
@fungicide:matrix.orgit produced this comment (yesterday): https://bugs.launchpad.net/python-openstackclient/+bug/2150856/comments/1122:51
@clarkb:matrix.org`consumer_key: 'System-wide: Ubuntu (review.openstack.org)'` is in the zuul secret22:51
@clarkb:matrix.org(which I think just makes this more confusing not less)22:52
@fungicide:matrix.orghttps://zuul.opendev.org/t/openstack/build/7783a79a30d8482e94e80c18bd45e9b4/console#1/0/28/ubuntu-noble so we're installing it from distro package22:53
@clarkb:matrix.orgaha22:53
@fungicide:matrix.orgunfortunately packages.ubuntu.com is broken again so i'll have to track this down the hard way22:54
@clarkb:matrix.org2.3.0 is only 10 days old so highly unlikely noble is running that version22:54
@jim:acmegating.comVersion: 1.11.0-6 in noble22:54
@fungicide:matrix.orgpython3-launchpadlib/noble,now 1.11.0-622:54
@fungicide:matrix.orgso won't hit this regression until a much newer ubuntu or we switch to pip installing the lib22:55
@fungicide:matrix.orgokay, i'm satisfied with the reason the release jobs didn't break (yet)22:55
@fungicide:matrix.orgso that goes onto the back burner, it doesn't invalidate our suspicions as to the cause22:56
@fungicide:matrix.orgi'll create a new triplet with "Gerrit User Sync" and we can test that22:57
@clarkb:matrix.orgcool thanks22:57
@fungicide:matrix.orgshould i edit them straight into ~gerrit2/.launchpadlib/creds?22:58
@clarkb:matrix.org++ then we can kill the running python process to force the next one to run and reload the creds22:59
@clarkb:matrix.organd if that looks happier we can update private vars and then let periodic jobs noop apply them from there22:59
@fungicide:matrix.orgokay, updated23:00
@clarkb:matrix.orgwere you doing kill -INT $PID before to get the traceback? I think thats basically what we want here to speed up the process refresh to load the new info23:00
@fungicide:matrix.orgkilling process 257134423:00
@clarkb:matrix.orgack23:00
@fungicide:matrix.orgi see it restarted a new process, so in theory is using the new creds23:01
@clarkb:matrix.orgya it should open the creds file anew each process. But the strace behavior hasn't changed so this maybe wan't it23:02
@clarkb:matrix.orgI'm wondering if we need to set consumer_name on login_with which the docstring warns about23:02
@clarkb:matrix.orgat this point I'm thinking maybe we just disable the hooks via commenting out the calls to jeepyb or something and pick it up monday23:02
@fungicide:matrix.orgi also wonder if we should just pin back launchpadlib in jeepyb temporarily23:02
@clarkb:matrix.orgwe can pin it to 2.2.0 but no earlier on python3.1423:03
@fungicide:matrix.orgoh good point23:03
@clarkb:matrix.orgcorvus: was this update you found in 2.2.0 or 2.3.0?23:03
@jim:acmegating.com22023:03
@jim:acmegating.comit's the last commit before that release23:03
@fungicide:matrix.orgargh23:03
@fungicide:matrix.orgoh well23:04
@jim:acmegating.comwhere are the hooks where this is used?  i'm wondering if we can try the name change real quick to see if that's it?23:04
@fungicide:matrix.orghttps://opendev.org/opendev/jeepyb/src/branch/master/jeepyb/cmd/update_bug.py#L325 and a couple of similar spots23:05
@clarkb:matrix.orgcorvus: its in jeepyb/jeepyb/cmbd/update_bug and update_blueprint23:05
@jim:acmegating.comokay, so the cowboy version of this is "edit the installed jeepyb in the running gerrit container"?23:05
@clarkb:matrix.orgcorvus: yes23:05
@clarkb:matrix.org```23:05
+ :param consumer_name: See `RequestTokenAuthorizationEngine`.
+ If application_name is provided, consumer_name and
+ allow_access_levels are ignored in favor of desktop-wide
+ integration.
```
@clarkb:matrix.orgI see ^ that in the commit before 2.2.023:06
@clarkb:matrix.orgbasically seems like maybe the name needs to be host level if we don't set consumer_name and do set application_name (we set application name to Gerrit User Sync but don't set consumer name)23:06
@fungicide:matrix.orgoh, another difference i spot just looking at that, it's setting `version='devel'` but i created the credentials with `web_root="production"`23:06
@fungicide:matrix.orgi wonder if those have to match too23:06
@clarkb:matrix.orgfungi: devel is the api versin23:06
@clarkb:matrix.orgbut maybe that has an impact?23:06
@fungicide:matrix.orgyeah, no idea if they're related in any way23:07
@fungicide:matrix.orgthe docs don't go into much detail23:07
@fungicide:matrix.orgthey just say to set `web_root="production"` in the credentials methods23:07
@fungicide:matrix.org"...tells launchpadlib which Launchpad instance to run against. Here, we’re using production, which is mapped to the web service root on the production Launchpad server..."23:09
@fungicide:matrix.orgokay, so presumably unrelated23:09
@jim:acmegating.comi think a cowboy edit to production is do-able if we want to try that.  i'm happy to do it.  or happy to stand down.23:09
@clarkb:matrix.orgcorvus: you want to change the application_name to something else or add consumer_name?23:09
@clarkb:matrix.orgcorvus: I'm game for you to try I just want to understand the intended edit23:09
@fungicide:matrix.org"staging" is the alternative to "production" for `web_root`23:09
@jim:acmegating.comheh i was going to ask you, i haven't paged all this in yet.23:10
@fungicide:matrix.orgshould i swap our original creds back in first, presumably?23:10
@jim:acmegating.combased on https://opendev.org/opendev/jeepyb/src/branch/master/jeepyb/cmd/update_bug.py#L32523:10
@jim:acmegating.comthat means application_name='Gerrit User Sync' right?23:10
@clarkb:matrix.orgcorvus: yes application anme is the first kwarg23:11
@clarkb:matrix.orgso not setting the explicit kwarg should map arg 1 to application_name23:11
@fungicide:matrix.orgi put the old creds back in place for now23:11
@fungicide:matrix.orgthe new alternative creds are in `~gerrit2/.launchpadlib/creds.test_2026-10-23`23:12
@clarkb:matrix.orgcorvus: I think the two edits to check are adding consumer_name to match the creds file consumer key and if that doesn't work keep that edit but remove application_name23:13
@jim:acmegating.comlaunchpadlib creds are owned by root?23:13
@clarkb:matrix.orgno should be 0600 gerrit2:gerrit223:13
@jim:acmegating.com-rw-------  1 root    root     187 Oct 23 23:11 creds23:14
@fungicide:matrix.orgah, that may be my fault23:14
@clarkb:matrix.orgfungi: is it possible when you edited the file it was set to root:root or was that only due to the revert?23:14
@fungicide:matrix.orghold on23:14
@jim:acmegating.comonce the perms are fixed, i'm going to try a quick python script test in the container to see if i can repro without the cowboy edit23:15
@clarkb:matrix.orgcorvus: ack23:15
@fungicide:matrix.orgokay, owned by gerrit2 now, sorry. and no when i tested swapping to new creds the file would still have been owned by gerrit223:15
@fungicide:matrix.orgi only broke it moments ago by moving a backup copy of the original i had created as root back into place23:16
@clarkb:matrix.orggot it. Just wanted to double check. corvus I think you're clear to do your testing23:16
@fungicide:matrix.orgbecause i didn't preserve permissions on copy23:16
@fungicide:matrix.orgyes, should be all set23:16
@clarkb:matrix.orgas a side note while we did update to python3.14 and we wanted to do that here and we need 2.2.0 or newer for that the next gerrit image update would've upgraded launchpadlib and we would've been in this position with or owthout the python update23:17
@fungicide:matrix.orgyes, i concur23:18
@fungicide:matrix.org(though we at least would have been able to pin back to older launchpadlib in that case)23:18
@jim:acmegating.com```python23:18
lpconn = launchpad.Launchpad.login_with(
service_root=uris.LPNET_SERVICE_ROOT,
launchpadlib_dir=GERRIT_CACHE_DIR,
credentials_file=GERRIT_CREDENTIALS,
version='devel',
consumer_name='Gerrit Hooks')
```
@jim:acmegating.comthat worked23:18
@clarkb:matrix.orgcorvus: did keeping the appliaction name not work or was that not tested?23:19
@jim:acmegating.com(all other combos i tried did not; they had the interactive url prompt)23:19
@jim:acmegating.comright, i did test application name, could not get to work with it23:19
@clarkb:matrix.orgcool in that case do you want ot update update_blueprint.py and udpate_bug.py with that edit (removal of application name adn addition of consumer_name) ? then we can update jeepyb to match on monday?23:20
@jim:acmegating.comyep i'll do that23:20
@clarkb:matrix.org* cool in that case do you want ot cowboy update update_blueprint.py and udpate_bug.py with that edit (removal of application name adn addition of consumer_name) ? then we can update jeepyb to match on monday?23:20
@clarkb:matrix.organd then we should also cleanup the unneeded tokens23:20
@fungicide:matrix.orginterestingly, the launchpad webui calls it the "application name"23:20
@fungicide:matrix.orgi can go ahead and remove the two newer tokens i created23:21
@clarkb:matrix.orgwhat a journey :)23:21
@fungicide:matrix.orgokay, both revoked, the only current authorizations are the ones i created back in january23:22
@fungicide:matrix.orgi also deleted the creds.test_2026-10-23 file from the server, for avoidance of future confusion23:22
@fungicide:matrix.orgi guess we'll want to keep this in mind for https://opendev.org/openstack/project-config/src/branch/master/roles/copy-release-tools-scripts/files/release-tools/launchpad_add_comment_set_status.py#L63-L67 and see if older launchpadlib will allow us to set it now for forward compatibility23:24
@clarkb:matrix.orgfungi: before you call it a day may be worth a note to the openstack relaese team that figuring this out is in the future at some point for them as well. That way we don't forget23:24
@fungicide:matrix.orgyes, well i'm probably the only member of openstack's release team awake at this hour anyway23:25
@jim:acmegating.comcowboy edit done23:25
@jim:acmegating.comsomeone want to kill the proc and see if it works?23:25
@fungicide:matrix.orgdoing now23:25
@fungicide:matrix.orgsent a sigint to 257882923:26
@fungicide:matrix.org2580539 is the new child process23:26
@clarkb:matrix.orgthe python processes are cycling rapidly now23:26
@fungicide:matrix.orgyes, hopefully a good thing?23:27
@clarkb:matrix.org285 tasks queued now23:27
@jim:acmegating.comhopefully that's because it's fixed and not because i made a syntax error? :)23:27
@clarkb:matrix.orgthat number should fall rather than grow23:27
@fungicide:matrix.orgright ;)23:27
@clarkb:matrix.orgI'm not seeing the error_log log things at a rate that indicates those processes are failing23:27
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [opendev/jeepyb] 1012141: Update login process for new launchpadlib https://review.opendev.org/c/opendev/jeepyb/+/101214123:28
@clarkb:matrix.org283 tasks23:28
@jim:acmegating.comi just want you all to know i used vim to keep the container delta small23:29
@clarkb:matrix.orgcorvus: join us on the dark side23:29
@clarkb:matrix.orgnow down to 274 tasks23:29
@clarkb:matrix.orgI think this is having the expected result23:29
@fungicide:matrix.orgyay, thanks!23:30
@clarkb:matrix.organd now 25323:31
@clarkb:matrix.orgso ya I suspect we can pick this back up again monday and get jeepyb sorted out properly then23:31
@jim:acmegating.com\o/23:31
@clarkb:matrix.orgwhat a week! thank you everyone for all the help! I'll be popping out to start the chipper shortly23:32
@clarkb:matrix.orgassuming there isn't anything else you think I should followup on first. I thin kgerrit (jeepyb really) is happier now and etherpad seems to work23:32
@clarkb:matrix.orgheh my keys just unloaded whcih is a clear signal that the day should be over23:34
@clarkb:matrix.org(they are loaded with a timeout)23:34
@fungicide:matrix.orgyep, mine as well. thanks again everyone!23:37
@fungicide:matrix.orgjust to follow up, proof the fix is definitely working now: https://bugs.launchpad.net/ironic/+bug/2166507/comments/4023:57
@fungicide:matrix.orgi saw notifications for a slew of them23:57

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