Thursday, 2024-07-04

cardoeSo maybe something for the docs since I know you're working on it. I'm not terribly familiar with gerrit and the flows but I don't know how to propose a patch as a backport to a stable branch.00:22
cardoeOverall honestly though you guys should be proud. Ironic has some of the best docs of OpenStack projects.00:24
JayFIf you can link the patch here, when I get to a computer I'll take a look at backporting it for you and find the stable docs for you.00:52
cardoeWell my point is I don’t wanna ask you to do it. I wanna do it. I already cherry-picked it locally and am using that.04:06
rpittaugood morning ironic! o/06:21
opendevreviewMerged openstack/sushy-tools master: Python 3.12: do not use ssl.wrap_socket  https://review.opendev.org/c/openstack/sushy-tools/+/92344210:04
iurygregorygood morning Ironic12:05
opendevreviewJacob Anders proposed openstack/ironic master: [WIP] add Targets to firmware.update on multi system BMCs  https://review.opendev.org/c/openstack/ironic/+/92243812:44
*** iurygregory_ is now known as iurygregory13:02
opendevreviewDerek Higgins proposed openstack/sushy master: Provide vmedia username and password if required  https://review.opendev.org/c/openstack/sushy/+/92352414:25
rpittaugood night! o/15:50
opendevreviewDerek Higgins proposed openstack/sushy master: Provide vmedia username and password if required  https://review.opendev.org/c/openstack/sushy/+/92352415:52
opendevreviewDerek Higgins proposed openstack/sushy master: Provide vmedia username and password if required  https://review.opendev.org/c/openstack/sushy/+/92352416:11
JayFiurygregory: I think you missed https://review.opendev.org/c/openstack/ironic-lib/+/923205 when approving earlier16:33
JayFwould love for https://review.opendev.org/c/openstack/ironic/+/922612 to land too, I have some follow-up ideas for it16:36
JayFsimilarly https://review.opendev.org/c/openstack/ironic/+/92248416:36
iurygregoryJayF, yeah I totally missed that, tks!16:38
iurygregoryI will look at this two later today16:39
JayFawesome16:40
opendevreviewMerged openstack/networking-baremetal master: Update to match latest development cycle  https://review.opendev.org/c/openstack/networking-baremetal/+/92320416:42
opendevreviewMerged openstack/virtualbmc master: Update to match latest development cycle  https://review.opendev.org/c/openstack/virtualbmc/+/92258916:43
opendevreviewMerged openstack/networking-generic-switch master: Update to match latest development cycle  https://review.opendev.org/c/openstack/networking-generic-switch/+/92320216:47
JayFAlso I know cid and I were looking for outside perspectives about the shape of the config option here: https://review.opendev.org/c/openstack/ironic/+/922243 -- if you're rushed don't even need a full review, just a second/third opinion on the shape of that config opt17:13
cid++17:14
opendevreviewMerged openstack/ironic-lib master: Update to match latest development cycle  https://review.opendev.org/c/openstack/ironic-lib/+/92320517:14
opendevreviewMerged openstack/ironic master: Fix rendering of Redfish properties in the documentation  https://review.opendev.org/c/openstack/ironic/+/92248217:27
mnaserhi folks, I think there was a regression in the ironic nova driver17:35
mnaserhttps://github.com/openstack/nova/commit/6309013283e37e2cc259473af05413e01a0101af17:35
mnaserthe issue with this is I dont think it forces the request to be sent using a new enough micro version which includes portgroup_id17:35
mnaserso instances with bonds fail to go up with caracal17:36
JayFCan you put the details in a bug filed against Ironic + Nova?17:37
mnaseryeah im just making sure it's not something I've missed17:37
mnaserI'm just trying to figure out where the microversion used gets decided for there17:38
JayFI'm 99% sure it's negotiated17:38
JayFwhich is why I'm a little confused17:38
mnaseryeah im running a tcpdump now to see how that gets captured17:41
JayFmnaser: can you point me to *exactly where* we need portgroup_id and it's not being sent?17:43
JayFand/or a traceback, something?17:43
JayFI haven't done much at the Ironic<>Nova<>Neutron boundary so I'm flying mildly blind17:44
mnaseressentially cloud-init is failing because pg_ports is empty here https://github.com/openstack/nova/blob/c39a425ba733474816e40f6633de5658468c2a87/nova/virt/ironic/driver.py#L1087-L109617:44
mnaserwhich comes from https://github.com/openstack/nova/blob/c39a425ba733474816e40f6633de5658468c2a87/nova/virt/ironic/driver.py#L107117:45
mnaserI figured it was maybe an old micro version but unfortunately.. nope, I see the response coming in with 1.88 ironic api and the port group is there17:45
JayFhttps://github.com/openstack/nova/blob/master/nova/virt/ironic/driver.py#L1053 ?17:45
mnaserso it must be something else.. ill try hacking more17:45
mnaserright yeah, so then technically it should get the ports that are part of that port group and add them .. however17:46
JayFhey so I was looking in the right place17:46
JayFthat's nice, at least17:46
mnaserI end up with an empty iface list https://usercontent.irccloud-cdn.com/file/XH6Nznut/image.png17:46
mnasersee bond_links: []17:46
JayFif you have metadata service up, can you see what you get there?17:46
JayFit's calculated a different way that might point to if it's ironic-driver-level or somewhere else17:47
JayFjust a nice data point17:47
mnaserI dont in this case, im relying on configdrive because bonding and no network connectivity at that point17:47
mnaserfwiw this worked perfectly fine in an older cloud, when we got to caracal, it borked17:47
JayFyeah, makes sense17:47
JayFassuming you're using NGS?17:48
JayFand that all services went to caracal together?17:48
mnaserand looking at the git blame and that code being changed I had my suspects, so im trying now to replicate manually in run time17:48
JayF(meaning: it could be a bug somewhere else, potentially)17:48
mnasereverything is caramel and nope, just flat17:48
JayFcaramel :D 17:48
mnaseryeah, it could be, but the network_data.json is generated in that specific part, and the bond_links are empty there specifically17:48
mnaserlool17:48
JayFyou're running sugarstack!17:48
JayFany patches in play here?17:50
TheJuliaJust thinking outloud, not working today, but Iv'e been wondering if ironic should read the network data and re-write given we have a better view of hardware reality17:56
JayFIronic driver writes network_data.json in nova17:56
JayFit's already an "ironic" codepath17:56
JayFin fact it's extra-gross because metadata service returns different network data than Ironic17:57
mnaserok I can reproduce this with an external piece of code17:57
mnaserhttps://paste.opendev.org/show/bgRiGWDtstBplwPVJ4pd/ gives me no bond_links17:58
mnasertime to dive deeper :)17:58
JayFone thing to ponder on17:59
JayFand I think this may be the issue17:59
JayFI *think* we get a generator of sorts from the SDK17:59
JayFand if we iterate ports more than once I suspect it may be empty the second time thru17:59
JayFI'm very curious if you did list() around the initial ports / port_groups fetch if it'd make this issue disappear17:59
mnaserlol thats actually what's happening18:00
mnaserthats exactly it18:00
JayFhey, I do know how this code works \o/ 18:00
JayFlol18:00
mnasershould I wrap both with a list18:00
JayFI would, yeah.18:00
JayFTradeoff of ram for correctness is not terrible18:01
JayFports/port_groups for a node are phyiscally constrained18:01
JayFI'm about to step away for a bit, but if you wanna patch this awesome; it'd be great to have a unit test that breaks before the fix, too. If you go this route, link me the patch and I will solicit for reviews. 18:03
mnaseryeah I'll push it real quick now18:03
JayFOtherwise, file a bug and I'd consider it a very high priority to fix18:03
mnaserwe've been blocked at this for 2 days now18:03
mnaser:'(18:03
JayFsorry :( 18:03
JayFFeel free to rope in upstream sooner next time18:03
JayFand very explicitly: thank you for finding this, it would've bitten my downstream when we bumped up our ironic driver/ironic version to caracal in a few months18:04
mnaserhttps://bugs.launchpad.net/ironic/+bug/207197218:06
mnaserpatch incoming18:06
mnaserJayF: https://review.opendev.org/c/openstack/nova/+/923530 Fix port group network metadata generation18:11
mnasergonna cherry pick it locally and see how it goes18:11
opendevreviewMerged openstack/bifrost master: Remove CentOS Stream 8 leftovers  https://review.opendev.org/c/openstack/bifrost/+/92278918:22
cido/20:07

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