Tuesday, 2022-03-01

*** bhagyashris is now known as bhagyashris|ruck11:30
opendevreviewErno Kuvaja proposed openstack/glance master: Sync example configs for Yoga  https://review.opendev.org/c/openstack/glance/+/83136812:41
opendevreviewMerged openstack/glance master: Yoga RC-1 release notes  https://review.opendev.org/c/openstack/glance/+/83083413:12
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef resource types  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80279213:36
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef properties  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80279413:36
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef tags  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80279513:36
opendevreviewBrian Rosmaita proposed openstack/glance master: Change default value for [wsgi]/python_interpreter  https://review.opendev.org/c/openstack/glance/+/83138114:17
rosmaitadansmith: need your input on ^^14:18
dansmithrosmaita: hmm, definitely seems bad to have to not have a sane default there just because of how we generate our config14:44
dansmithrosmaita: I think I'd rather use a static string of 14:46
dansmith'/usr/bin/python3' than just None and override it anywhere we need to use it14:46
dansmithI know it should be minimal, but :/14:46
rosmaitai guess i'm ok with the static string if we think there's a sensible one (which '/usr/bin/python3' seems to be)15:00
rosmaitadansmith: ^^15:00
dansmithit's far from ideal, IMHO, but better than None15:01
dansmithI'd also like to ask gmann if he has any ideas, but he's in the board meeting and I'm trying to resolve something else.. can we circle back in a few hours?15:01
rosmaitadansmith: left a reply on the patch15:41
rosmaitaand yeah, i'll be here all day15:42
dansmithis that the only place that gets used?15:43
dansmithit's been a while since i looked at it but I thought we had a couple places just in glance15:43
dansmith...because I thought we had to set it for devstack15:44
dansmithit's set in .zuul, so if you're right we should be able to remove that and have the wsgi jobs still work15:45
dansmithah, actually this is coming back to me now15:47
dansmithin any real wsgi environment, the sys.executable will be something like /usr/bin/uwsgi, which is why taking the default doesn't actually work15:48
dansmithand why we have to override it in our own jobs15:48
dansmithso maybe I was just conflating that with it not being right at runtime for normal stuff either15:48
dansmithso I guess if None triggers the behavior we had before I added that for not-real-wsgi environments, then that's fine15:49
dansmithrosmaita: replied, sorry for the distraction15:53
rosmaitanp, i think that's right (None triggers the behavior we had before), but i definitely needed some eyes on this15:55
dansmiththere's coverage both directions on this in zuul, so the test report will help confirm all that15:57
rosmaitacool15:58
opendevreviewErno Kuvaja proposed openstack/glance master: Sync example configs for Yoga  https://review.opendev.org/c/openstack/glance/+/83136816:14
dansmithrosmaita: I think your recheck of that thing missed this: https://zuul.opendev.org/t/openstack/build/9c4fbdb6743c4af4a877f56dddd9696e/log/controller/logs/screen-g-api.txt#51416:25
dansmithcomplaining about None being passed to processutils.execute, which is your change16:26
rosmaitawell, that sucks16:26
dansmithrosmaita: passing None there doesn't trigger that defaulting behavior,16:27
dansmithbecause we pop None from the kwargs, which means it never takes the default arg from the .get()16:27
dansmithif you're okay with it, I'll fix it up and will write a test16:31
rosmaitai am certainly ok with that16:34
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef resource types  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80279216:37
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef properties  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80279416:37
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef tags  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80279516:37
opendevreviewDan Smith proposed openstack/glance master: Change default value for [wsgi]/python_interpreter  https://review.opendev.org/c/openstack/glance/+/83138116:37
dansmithrosmaita: ^16:37
dansmithdon't love it, but alas16:37
*** bhagyashris_ is now known as bhagyashris|ruck16:43
rosmaitayeah, i think processutils should have "python_exec = kwargs.pop('python_exec', None) or sys.executable"   ...  because what' the use case for python_exec to be None inside the execute function?16:45
dansmithyeah it'd be ideal if it did, but that's a whole thing16:45
rosmaitaright, in the absence of that, i think your change is the best we can do16:46
dansmithyeah16:46
rosmaitai'll file a oslo bug, because that's pretty counterintuitive16:46
dansmithI really thought we had to use this in more than one place in glance, but it clearly isn't the case at the moment16:46
dansmithso I must be remembering something other than the final situation16:47
dansmithrosmaita: ++16:47
gmanndansmith: rosmaita just read the logs and comment in review. static string might go wrong in few place if people does not notice the default change. I agree on None as best way. 16:55
gmann+1 on fixing oslo on that16:55
gmannrosmaita: dansmith and good to add release notes for default change?16:55
dansmithgmann: is there any option to override how the default is generated in the config generator or something?16:55
rosmaitagmann: ok, i will file a bug and add a patch for oslo.concurrency16:56
dansmithbecause it would be a lot better if we could keep the conf default correct, IMHO16:56
dansmithI'm not sure we need a reno because the default hasn't actually changed, just where we apply the default16:56
dansmithbut obviously renos are cheap, if others think it's important16:57
gmanndansmith: afaik, if we override the default via set_defaults then only config generator take that. but that will be not just for config generator but for all code base16:58
dansmithwell, I just hope that if we have to add any other cases of execute() we'll refactor this into a helper (and remember to use that instead of the actual conf value)16:59
rosmaitai think a reno might be more confusing than helpful16:59
dansmithanyone writing a plugin that uses execute() will have to do the same16:59
gmanndansmith: one way is explicitly setting here which can control it in glance side https://github.com/openstack/glance/blob/a693e066b3a713e0cc76389837593cde472cb9c8/glance/common/config.py#L75817:04
gmannhttps://docs.openstack.org/oslo.config/latest/cli/generator.html#modifying-defaults-from-other-namespaces17:05
dansmiththat's kinda manipulating the defaults at runtime though right?17:05
gmannyeah17:05
dansmithyeah, that's pretty :(17:06
dansmithI'd rather something that modified the generator code than the runtime code, so if that's not a thing, then what we're doing is probably better17:06
dansmithI just wonder if the generator could be augmented to allow for some overrides only during generation,17:06
dansmithlike "wsgi.interpreter should be overridden with this string"17:07
dansmithbut this might be the only use-case, so not worth a whole big dust-up just for this17:07
dansmithI know that also kinda defeats the point of defaults in code, but.. the default in code at runtime seems better than the default in code for the generator17:07
dansmithI dunno17:07
gmannyeah, its both way. but if runtime is always taken as priority then override during generation can also be supported. but it may lead to error when both are done without knowing it :)17:10
gmannsame as legacy quotas :) many of us still struggle to understand which one take priority and what the last I set :). thanks to unified limit :)17:12
dansmithheh17:18
opendevreviewGhanshyam proposed openstack/glance master: Add grenade-skip-level irrelevant-files config  https://review.opendev.org/c/openstack/glance/+/83143719:09
gmanndansmith: ^^19:11
* dansmith nods19:12
*** dtantsur_ is now known as dtantsur20:24

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