Friday, 2022-06-17

*** jpena|off is now known as jpena07:01
*** whoami-rajat__ is now known as whoami-rajat11:33
dansmithzzzeek: if you get a chance, I wonder if you could have a look at the ML thread, starting hereish: http://lists.openstack.org/pipermail/openstack-discuss/2022-June/029096.html13:42
dansmithdbcounter is my sqla plugin thing, which works fine i the gate, and fine locally for most people,13:42
dansmithbut a small number end up with that inability to load the plugin, maybe only on glance13:43
dansmithit's installed properly and other projects are able to load it both before and after glance fails with it13:43
dansmithand it's not constant, obviously, because it works a lot of the time13:43
zzzeekso it looks like the url is coming in with the wrong data somehow13:46
zzzeekhave they viewed the conf file on an env that reprodcues the issue?13:46
zzzeekonly glance right?13:47
dansmithzzzeek: the conf file is right (see one of my later replies)13:48
dansmithseems to be only glance so far13:48
zzzeekdansmith: ok but you haven't reprodcued it locally right13:48
dansmithzzzeek: here's an example config https://zuul.opendev.org/t/openstack/build/ff5a7a6fc87840579b102b244f28200f/log/controller/logs/etc/glance/glance-api_conf.txt#2113:48
dansmithzzzeek: I can't yeah, some people have had it, obviously.. never happens in gate that we know of13:49
zzzeeki am saying, when the error happens, right there, whats in the config, is something writing into that file or something or are we completely sure the URL is correct in the conf13:49
zzzeekdansmith: any chance your URL appender can maybe check the existing URL to see if that plugin token is already present, or otherwise log what it's seeing?13:49
dansmithwhen melwitt is around I'll see if she still has a system stuck in this state13:50
dansmithsince we only write the config in devstack early, and we know the configs are getting created properly in other projects (and it's the same function that makes the url) I had assumed that if it was right in one run it was right in her config13:51
dansmithbut I guess maybe we haven't checked that specifically, now that I think about it13:52
dansmithand for log the actual thing, you mean log our CONF.connection separate from sqla processing it to see if we're loading it right and sqla is mangling it (or not)?13:52
zzzeekdansmith: well there's a chain of ownership here w/ that URL and somewhere it's beraking, so , log everything you can until you find where it breaks?13:53
zzzeekdansmith: like, I dont know a way that a correct URL can get into create_engine() and then somehow get corrupted like that13:53
zzzeekdansmith: i'd want to see, most likely, what's being passed to oslo.db create_engine13:54
dansmithright and I expect we're not doing anything with it other than passing it in, but maybe something is I'll go look13:54
dansmithI thought maybe since sqla is parsing the url (and we're not in most cases, AFAIK) that it was more likely something in sqla13:54
zzzeekeven if the bug is in SQLAlchemy, glance is doing *somehting* different13:54
dansmithbut I guess I need to go check for glance doing something to its url13:55
zzzeeksure, bug can be in SQLA but I need to see the function inputs13:55
dansmithsure13:55
zzzeekb.c. only one app has the issue13:55
dansmithif it always happened, it'd be one thing.. seems like a weird thing13:55
zzzeeklike, if glance has *other* plugin= tokens.  maybe it's triyng to concatenate them13:56
zzzeekor it does something w the query string internally13:56
dansmithzzzeek: presumably this is where we pass the config to oslo.do to get the connection right? https://github.com/openstack/glance/blob/bfcab95ff2d7e13afe05fed8835159949490afd8/glance/db/sqlalchemy/api.py#L85-L8513:58
dansmithso we'll log right before that, but grepping seems to turn up no other even examining of the connection url, fwiw13:59
zzzeekdansmith: the best logging would be here: https://github.com/openstack/oslo.db/blob/3f889d5b6e4def3259e46a5ffe23c1350b4c10bf/oslo_db/sqlalchemy/engines.py#L18714:00
zzzeekdansmith: oslo.db has some logic that can "extend the URL paramters" that uses some function written by someone named zzzeek to append new paramters14:01
dansmithzzzeek: and is url there stringifyable?14:01
zzzeekURL is alwys stringable sure14:01
dansmithack14:01
zzzeekthe URL object is a named tuple now14:01
zzzeekliek a bug in url.update_query_string() seems more likely , which would still be on me to fix14:02
dansmithack, well, hopefully it'll be clearer when she's up and can throw some debug in there14:07
dansmiththanks!14:07
*** whoami-rajat__ is now known as whoami-rajat14:43
*** jpena is now known as jpena|off16:15
melwittdansmith, zzzeek: I unfortunately no longer have the env :(  because I believed I couldn't repro the behavior outside of the devstack run. if it happens again I will keep it17:59
zzzeekmelwitt: ok!17:59
dansmithack18:05

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