Friday, 2022-10-28

opendevreviewJacob Anders proposed openstack/sushy stable/zed: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284601:17
opendevreviewJacob Anders proposed openstack/sushy stable/yoga: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284701:18
opendevreviewJacob Anders proposed openstack/sushy stable/xena: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284801:23
opendevreviewJacob Anders proposed openstack/sushy stable/wallaby: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284901:24
opendevreviewHarald Jensås proposed openstack/ironic master: [WIP] Use join to get node_uuid for ports  https://review.opendev.org/c/openstack/ironic/+/86285202:09
opendevreviewHarald Jensås proposed openstack/ironic master: [WIP] Use join to get node_uuid for ports  https://review.opendev.org/c/openstack/ironic/+/86285202:18
opendevreviewHarald Jensås proposed openstack/ironic master: [WIP] Use join to get node_uuid for ports  https://review.opendev.org/c/openstack/ironic/+/86285203:17
*** v1k0d3n_ is now known as v1k0d3n08:07
*** cstone5 is now known as cstone08:07
*** buhman_ is now known as buhman08:07
*** kubajj_ is now known as kubajj08:07
*** NobodyCam_ is now known as NobodyCam08:07
*** erbarr_ is now known as erbarr08:07
*** TheJulia_ is now known as TheJulia08:07
mnasiadka_Good morning09:47
mnasiadka_Is there a way to change deploy interface for nodes in active status somehow? (upgraded OpenStack to Xena and iscsi deploy interface is gone)09:47
mnasiadka_ok, solved with setting maintenance, changing, and going out of maintenance10:18
iurygregorygood morning12:06
opendevreviewAija Jauntēva proposed openstack/ironic master: Create 'redfish' driver Redfish Interop Profile  https://review.opendev.org/c/openstack/ironic/+/75406112:38
opendevreviewAija Jauntēva proposed openstack/ironic master: Create 'redfish' driver Redfish Interop Profile  https://review.opendev.org/c/openstack/ironic/+/75406112:38
opendevreviewHarald Jensås proposed openstack/ironic master: [WIP] Use join to get node_uuid for ports  https://review.opendev.org/c/openstack/ironic/+/86285212:45
hjensasgood morning12:57
hjensasTheJulia: ^ very, WIP but wdyt? 12:57
TheJuliagood morning!12:59
TheJuliamnasiadka_: That is the trick for *most* fields if your an admin and they are state restricted :)13:00
TheJuliahjensas: what does the db response object look like, out of curiosity?13:04
hjensasIt query.one() returns a tuple([models.Port, models.Node]), query.all returns [tuple([models.Port, models.Node]), tuple([models.Port, models.Node]), ...]13:06
TheJuliaDoes any of this hits sa.execute?13:19
hjensasironic/db/sqlalchemy/api.py:342 does session.execute13:25
TheJuliaokay, yeah13:26
TheJuliaI meant more about an orm query logic path being followed13:26
TheJuliaYou know... we could actually change the object definition...13:27
TheJuliafor an inherent node_uuid join13:28
TheJuliathat way we're not doing odd response manipulation13:28
hjensasyou mean add a second foreign key in the models?13:28
TheJuliano13:28
TheJuliauhhh13:28
TheJuliaone moment let me get an example13:29
* TheJulia just stumbled upon mapped expressions in sqlalchemy and has crazy bad ideas13:29
TheJuliaerr, not object13:30
TheJuliathe model13:30
TheJuliahttps://github.com/openstack/ironic/blob/master/ironic/db/sqlalchemy/models.py#L23213:31
TheJuliahttps://github.com/openstack/ironic/blob/master/ironic/db/sqlalchemy/models.py#L29813:32
TheJuliaThat way we can have sqlalchemy do the population itself, and we don't have to have any logic on it13:33
TheJuliaand if we do selectinload it won't have the chance of being an exploded thing requiring orm to do additional things (besides, auto-dedupe is going away on orm)13:34
TheJuliaso selectinload is likely the safest bet overall13:34
TheJuliaI guess it boils down to 2 is better than one and possibly having to do additional dedupe/object manipulation in my mind13:36
TheJuliaOverall, not bad!13:36
TheJuliaI'm super impressed you got a wip that quickly :)13:37
TheJuliaThis will mean though, if we go down the path of editing the model with a join, the object model will get a new field13:38
TheJuliaerr13:38
TheJuliathat could compound13:38
TheJuliahmmmm13:38
hjensask, I'll give that mapped relationship a go. It would be very good if we don't need to do the object manipulation.13:38
TheJuliawe may need more lower level logic though, since a normal joined response would be best for a single port13:39
TheJulia1 node, 1 port13:39
TheJuliamaybe normal joined response would be okay13:39
* TheJulia suspects we shouldn't need to so anything like NodeBase and Node that I did13:40
TheJulia(so you can get nodes, without the joins)13:40
TheJuliaJayF: we might need to think about benchmarking ports too.....13:42
TheJuliawhich I believe would make folks like rloo super happy13:42
rloo:D13:43
TheJuliaand... speed up networking-baremetal13:44
JayFgotta go fast13:57
JayFIf we do that; we should also try to run some py39 vs py311 benchmarks13:58
JayFapparently just going to py311 has stunning perf uplifts13:58
TheJuliaohhh ahhhh14:05
TheJuliadid they change the recompile pattern or something?14:05
JayFI do not know the source of the improvements; only that I've seen it confirmed multiple places :)14:07
TheJuliaInteresting!14:09
JayFhttps://docs.python.org/3.11/whatsnew/3.11.html#whatsnew311-faster-cpython14:09
JayFhonestly, given some of the things I've seen benchmarked14:10
JayFI'm really interesting to see if the type of data transformatinos and processing we do will be one of the more improved cases14:10
TheJuliayeah, they basically are freezing the imported code14:17
*** larsks_ii is now known as larsks16:02
opendevreviewHarald Jensås proposed openstack/ironic master: [WIP] Use ORM relationship for node_uuid for ports  https://review.opendev.org/c/openstack/ironic/+/86293316:13
hjensasTheJulia: ^ using association_proxy seems to work. But lot's of "parent instance ... is not bound to a Session" errors in unit tests.16:16
TheJuliaewww16:18
TheJuliaI'd check the relationship mapping docs16:21
opendevreviewMerged openstack/bifrost master: Move bifrost tests to Ubuntu Jammy  https://review.opendev.org/c/openstack/bifrost/+/84882816:34
opendevreviewMerged openstack/bifrost master: Upgrade from zed  https://review.opendev.org/c/openstack/bifrost/+/85907516:39
TheJuliawoot, I actually have a single inspector functional test working \o/16:48
TheJuliaand I'm finally to the pain that is the state machine in inspector17:01
* TheJulia thinks not today17:01
hjensas... association_proxy does weird stuff on create, back to the docs ;-E17:14
TheJulia:(17:14
opendevreviewJay Faulkner proposed openstack/ironic-specs master: Add Ironic work items for 2023.1  https://review.opendev.org/c/openstack/ironic-specs/+/86253821:06
opendevreviewMerged openstack/sushy stable/zed: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284621:14
opendevreviewMerged openstack/sushy stable/yoga: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284722:20
JayFsushy gates are butter 22:20
TheJuliaNice22:29
opendevreviewMerged openstack/sushy stable/xena: Improve resiliency of eTag handling  https://review.opendev.org/c/openstack/sushy/+/86284822:31
TheJulia\o/ 5 passing integration tests22:55

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