Thursday, 2025-09-18

*** haleyb is now known as haleyb|out00:31
opendevreviewMerged openstack/nova stable/2024.2: hypervisors: Optimize uptime retrieval for better performance  https://review.opendev.org/c/openstack/nova/+/96041000:45
opendevreviewmelanie witt proposed openstack/nova-specs master: Re-propose vTPM live migration  https://review.opendev.org/c/openstack/nova-specs/+/96156401:08
opendevreviewyangjianfeng proposed openstack/nova master: Support reusing existing port binding during instance live-migration  https://review.opendev.org/c/openstack/nova/+/96159306:29
opendevreviewyangjianfeng proposed openstack/nova master: Support reusing existing port binding during instance live-migration  https://review.opendev.org/c/openstack/nova/+/96159306:50
opendevreviewJulien LE JEUNE proposed openstack/nova stable/2025.1: Adds regression test for bug LP#2044235  https://review.opendev.org/c/openstack/nova/+/96160107:42
opendevreviewJulien LE JEUNE proposed openstack/nova stable/2024.2: Adds regression test for bug LP#2044235  https://review.opendev.org/c/openstack/nova/+/96160207:43
opendevreviewJulien LE JEUNE proposed openstack/nova stable/2024.1: Adds regression test for bug LP#2044235  https://review.opendev.org/c/openstack/nova/+/96160307:47
*** EugenMayer4401809 is now known as EugenMayer44018008:23
opendevreviewMerged openstack/nova stable/2024.1: hypervisors: Optimize uptime retrieval for better performance  https://review.opendev.org/c/openstack/nova/+/96041108:49
opendevreviewSylvain Bauza proposed openstack/nova master: Regression test for ImagePropsWeigher due to missing context  https://review.opendev.org/c/openstack/nova/+/96161510:12
*** ykarel_ is now known as ykarel11:43
opendevreviewPavlo Shchelokovskyy proposed openstack/nova master: Mention socket in pci numa affinity extra spec help  https://review.opendev.org/c/openstack/nova/+/96163411:57
opendevreviewJosephine Seifert proposed openstack/nova stable/2024.2: Add hw_mem_encryption_model image property  https://review.opendev.org/c/openstack/nova/+/96165513:23
bauzasdansmith: ping, if you are free of meetings :)14:03
dansmithbauzas: just a sec14:04
bauzascool14:04
dansmithbauzas: so, fill_faults() and fill_metadata() are operations on the list object, just like .save() on an instance or anything else14:05
dansmiththey expect to use the context that the object maintains14:06
bauzasI see, those are not getters 14:06
dansmithsince you're sort of yanking InstanceList into existence (and not getting one as the result of a DB query), you don't have a context set on the object itself14:06
dansmithit's not wrong, it's just not the intended workflow14:06
dansmithso just create the list like insts = InstanceList(context, ...) and then it will have it internally14:07
bauzassure, but then I wonder which context to pass14:07
dansmithbut you need to use an admin context, not the one for the current boot request, since that one won't be able to read all the instances you're going to survey14:07
bauzascontext for others, we speak about https://bugs.launchpad.net/nova/+bug/212505214:07
bauzasyup, I figured it, so I probably need to instantiate a fully new admin context14:08
bauzaswe have the user request context stored in the requestspec, but as you said, that can't work14:08
bauzasokay, I think I have everything I need14:09
bauzasI'll write the bugfix14:09
dansmithyup14:09
dansmithI also definitely think it makes sense to have this enabled in nova-next, if not more of the weighers14:10
bauzasdansmith: fancy question, is it better to hydrate a list of instances by passing the context in InstanceList creator or do exactly liek https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L339 ?14:10
dansmitheven if they're simple, if we're not running them we're not testing them14:10
dansmithpass it on create, IIRC.. that other usage is likely very old (or misguided)14:10
bauzasdansmith: I don't disagree but if so, we need to find the right weigher configs in order to have predictable and easy-to-understand scheduling14:11
dansmithI surely hope that the weighers won't change the behavior in a way that makes the tests not work, especially on single-node jobs :)14:12
opendevreviewSylvain Bauza proposed openstack/nova master: Regression test for ImagePropsWeigher due to missing context  https://review.opendev.org/c/openstack/nova/+/96161514:31
opendevreviewSylvain Bauza proposed openstack/nova master: Add admin context when filling metadata on ImagePropsWeigher  https://review.opendev.org/c/openstack/nova/+/96167314:31
bauzasgibi: dansmith: given you still have context about the bug (oh oh oh, pun intended), reviews would be appreciated before we all forget https://review.opendev.org/c/openstack/nova/+/96167314:47
dansmithalready did?14:47
bauzaswell, that's a one-liner addition, right?14:53
bauzasthe regression suite was written this morning14:54
dansmithwhat?14:54
bauzasthe functional test I meant14:56
dansmithI'm not sure what you're saying14:57
dansmithI already +2d the regression and left a comment on the other one14:57
bauzaslet me rephrase: my morning, I investigated the cause of the bug and I tried to reproduce it using a functional test, which I uploaded15:03
bauzasthat's why it only took me 10 mins to upload the fix itself15:03
bauzas(I was just replying to to 'already did ?')15:04
dansmithweren't you asking for review?15:04
dansmiththat's what I was responding to: "already did...review"15:04
bauzasoh sorry about the misunderstanding then :)15:09
gibiI'm +2 on the first patch and the second looks good too I will +2 once Dan's comment is fixed15:18
bauzascool, lemme provide a new patchset then15:22
opendevreviewSylvain Bauza proposed openstack/nova master: Add admin context when filling metadata on ImagePropsWeigher  https://review.opendev.org/c/openstack/nova/+/96167315:25
opendevreviewMerged openstack/nova master: Regression test for ImagePropsWeigher due to missing context  https://review.opendev.org/c/openstack/nova/+/96161516:09
opendevreviewmelanie witt proposed openstack/nova master: Add functional reproducer for bug 2125030  https://review.opendev.org/c/openstack/nova/+/96173419:03
opendevreviewmelanie witt proposed openstack/nova master: Add functional reproducer for bug 2125030  https://review.opendev.org/c/openstack/nova/+/96173419:07
opendevreviewMerged openstack/nova stable/2024.1: hardware: Fix image_meta.id within get_mem_encryption_constraint  https://review.opendev.org/c/openstack/nova/+/96005020:01

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