Thursday, 2023-11-16

stephenfinM0weng[m]: You can only use other classmethods and staticmethod (plus external functions, obviously) from classmethods, so if 'is_extension_enabled' is a classmethod then you can use it from another classmethod10:21
stephenfinM0weng[m]: I should rephrase that: classmethods are only allowed to call other classmethods and staticmethods. They can't use instance methods.10:22
opendevreviewMerged openstack/os-service-types master: Add Python 3.8 and 3.9 to supported runtimes  https://review.opendev.org/c/openstack/os-service-types/+/84326616:13
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: WIP: Implement auto-code generation  https://review.opendev.org/c/openstack/openstacksdk/+/88232618:26
M0weng[m]stephenfin: Thanks! I didn't realize there were two different `is_extension_enabled()`s; I was looking at the non-classmethod one by mistake, no wonder things didn't seem to make sense haha18:27
fricklergtema: regarding the sdk cache issue, looking at the implementation it seems that there is no file locking or atomic updates happening, so the errors that yatin found seems very plausible to me https://github.com/jaraco/keyrings.alt/blob/main/keyrings/alt/file_base.py19:38
fricklernot sure if other backends would work better or maybe the whole library isn't suited for this usecase19:38
gtemafrickler: from the failed jobs I haven't seen a single one where cache seemed like an issue, there were always unrelated issues. So I would be interested to see whether after disabling it failure rate decrease 19:40
fricklergtema: did you look at the cache file contents that were posted in the bug report? those looked pretty convincing to me19:42
gtemaEven corrupting Cache content SDK will renew it. On the other side  in most of failed jobs keystone log was full of db issues19:43
gtemaAnd that is not related to osc token. It may be exactly causing that 19:44
gtemaI haven't looked into updates to the bug, LP doesn't send me notifications (need to look where to enable that)19:45
fricklerthe library wants to read the cache file for updates, so if the read fails, it cannot update or delete the cache entry. at least that's my reading of the code above19:45
gtemaPls try to use osc with broken cache state. Historically for me it was working fine19:46
gtemaHaven't checked recently though19:46
fricklerok, I can try that tomorrow19:46
M0weng[m]I'm trying to submit a patch using `git review` but it says I have the wrong email set. I changed the email to the one registered with gerrit using `git config user.email <email>` and re-ran `git review -s`, but it's still trying to use the incorrect email.19:51
M0weng[m]* <email>` and `git config --global gitreview.email <email>` and re-ran `git19:52
gtema0weng, use sure it tries to use wrong email or it is just a mismatch to the account you setup in Gerrit?19:53
gtemas/Use/you19:53
fricklerM0weng[m]: please show the full error on paste.opendev.org19:53
fricklergtema: if I mangle the cache file to contain two entries with identical key like in https://bugs.launchpad.net/devstack/+bug/2042943/comments/11 , I'm getting the same error locally19:59
fricklerI also get a different error, but similarly corrupted cache file, pretty fast when running just "openstack token issue" for two clouds in multiple parallel invocations?20:00
gtemaHmm, ok, will think about it. This "file" backend is the only thing which work in real detached mode.  Maybe we should drop that completely, I never was really convinced in that lib20:05

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