Thursday, 2025-02-27

opendevreviewDoug Goldstein proposed openstack/ironic master: anaconda: more flexible config_drive in kickstart  https://review.opendev.org/c/openstack/ironic/+/94284900:13
opendevreviewJulia Kreger proposed openstack/ironic-tempest-plugin master: CI: Dial back the non-voting jobs  https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/94284600:19
opendevreviewSatoshi Shirosaka proposed openstack/ironic-python-agent master: WIP Add ContainerHardwareManager  https://review.opendev.org/c/openstack/ironic-python-agent/+/94171400:26
opendevreviewVerification of a change to openstack/ironic-python-agent-builder master failed: More reliable TinyIPA builds with network retries  https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/94236903:51
opendevreviewMerged openstack/ironic master: ci: focus ironic-tempest-bios-ipmi-direct-tinyipa  https://review.opendev.org/c/openstack/ironic/+/94220405:27
fricklerhumm, so there is a unit test affected by the floppy defaults, will try to amend it07:10
opendevreviewVasyl Saienko proposed openstack/networking-generic-switch master: Add vlan aware VMs support  https://review.opendev.org/c/openstack/networking-generic-switch/+/92849007:12
opendevreviewDr. Jens Harbott proposed openstack/ironic master: Make floppy images more floppy  https://review.opendev.org/c/openstack/ironic/+/94278707:33
fricklerok, so the unit tests were actually helpful, because I had missed the cleanup call07:35
jssfraahh, the good ol' contribution cycle for projects with unit tests. (1) make stuff, works locally, be happy; (2) have CI fail some unittest, be annoyed, begrudgingly fix it; (3) find three edge cases along the way which you need to fix, be grateful for the tests, write some more.07:38
rpittaugood morning ironic! o/07:56
opendevreviewVerification of a change to openstack/ironic-python-agent-builder master failed: More reliable TinyIPA builds with network retries  https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/94236909:37
TheJuliagood morning14:24
mdfrHello :) 14:32
mdfrI'm pretty new to Ironic and I'm using the multi-tenancy node feature as described in the documentation. I have set ownership of the node to a new project_id and I'm granting the "member" role to a user which belongs to the related project_id. The user can manage the node and create a portgroup (according to the Ironic policies).14:36
mdfrThen I try to map the node's port to the portgroup and I get rejected because it tries to fetch the "cleaning_network" UUID, which is not accessible from the member role. (as expected)14:36
mdfr$ openstack baremetal port set c4c62010-f85b-4b1a-94cd-8204aca1690d --port-group dfad6a5f-7b52-456a-81b1-337ef82f9e58  14:36
mdfrcleaning_network with name or UUID <redacted> was not found (HTTP 400)  14:36
mdfrI'm not sure why it requires the cleaning_network to bind the node's port to a portgroup :(14:36
mdfrOf course, it works fine if I grant the admin role to the user, as they can see all networks. Am I missing something?14:36
mdfrIs it possible to let node owners configure ports without sharing the cleaning_network with every project_id?14:38
TheJuliagood morning mdfr 14:51
TheJuliamdfr: what is the provision state of the node?14:52
mdfrI tried at "available" + "maintenance mode true" and also in "manageable" state14:58
TheJuliasame error each time?14:58
mdfryes14:58
TheJuliahmm14:58
mdfrand it works everytime as admin :s14:58
TheJuliawhat is the network_interface set to?14:59
TheJuliafor the driver14:59
mdfrneutron14:59
TheJuliaokay14:59
TheJuliaoh, I think I see what is going on15:00
TheJuliayour making a structural change to the port, so it calls the network driver validate15:00
TheJuliathe inherited role/access from the requestor likely can't see the network15:01
mdfryes exactly15:01
TheJuliacan you confirm the cleaning_network is set to a project which is not the same project as the user15:01
mdfryes15:02
TheJuliayup, that is exactly it15:03
mdfrhttps://pastebin.com/BA3CUQLb15:03
TheJuliaCan you do me a favor and file a bug in launchpad? I need to wake up a little bit more first before I whip up a patch15:04
TheJulia(and also my corgi overlord demands his morning walk)15:04
mdfrI try to find a way in the codebase to skip the validation when it's a port mapping to a portgroup15:04
mdfrahah, sure :) Thank you 15:05
TheJuliaI'd check the request context and only go down that path fi the user is an admin from ironic/drivers/modules/neutron update_port all around the validate method's call around get_cleaning_network_uuid15:05
TheJuliaat least, that is the first pass idea15:05
mdfrok ! 15:06
TheJuliatask.context is a representation of ironic.common.context which is based upon oslo.context's RequestContext15:08
TheJuliathere should be a list of roles in there :)15:08
mdfrthat's incredible that you understood the context of the issue and found the root cause so quickly. I've been digging into this since yesterday15:10
TheJuliaThe alternative *might* be to remove validate. I don't think it makes sense to treat it as a formal RBAC rules since the front'end request for the update was already validated, this is the driver code trying to go the extra mile when it can't see the thing in glance15:10
TheJuliaerr15:10
TheJulianot glance, neutron15:10
TheJuliasee, I need more coffee15:10
mdfrahah !15:10
opendevreviewJulia Kreger proposed openstack/ironic master: WIP: hooking in an external network simulator  https://review.opendev.org/c/openstack/ironic/+/94229815:44
TheJuliapatch inbound16:07
mdfr:-O16:07
mdfrDo you know if I'd be able to reproduce the issue with devstack?16:08
TheJuliayou likely could16:08
TheJuliayou'd need to create a user and populate all the values16:08
mdfrok, thank you :)16:08
opendevreviewJulia Kreger proposed openstack/ironic master: Only try and do deep network config validate if admin  https://review.opendev.org/c/openstack/ironic/+/94292116:13
JayFNobodyCam: o/ you got a sec?16:18
TheJuliaJayF: he rarely looks at IRC and is also off this week. Need me to prod him?16:19
JayFTheJulia: mainly still looking for field reports on the MegaRAC BMCs based on openbmc, which I just discovered are shipped in NVIDIA servers16:19
TheJuliaheh, okay16:19
JayFI just filed an RFE; tl;dr automated cleaning via runbook : https://bugs.launchpad.net/ironic/+bug/2100545 16:32
JayF(think about the power of this when combined with satoshi's in-progress container hardware manager -- which he's working on an RFE bug for now that he's done a PoC)16:32
opendevreviewJulia Kreger proposed openstack/ironic master: WIP: hooking in an external network simulator  https://review.opendev.org/c/openstack/ironic/+/94229817:17
cardoeso https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/942369 keeps failing on the same test only in the verify +2 step with the same failure18:46
cardoeSo reading through the anaconda docs... it mentions the liveimg_url stuff which I don't really understand but I think "image_info" is wrong and its's "image_url" you need to set. But I needed to ask if "image_info" is a special field or "image_url" is a special field on instance_info or driver_info that gets mutated in anyway by other parts of Ironic.18:55
cardoeSo thinking on how to make this more generic... today we have the ipxe template with some hardcoded sections. I'm needing to replace the "boot_anaconda" for this to work. Should we have a way to have additional named sections and allowing a way for instance_info to select the correct one?19:11
opendevreviewJulia Kreger proposed openstack/networking-generic-switch master: WIP: Allow config of simulated switch  https://review.opendev.org/c/openstack/networking-generic-switch/+/94294219:45
iurygregorydoes anyone know if this year we will have a regional OpenInfra Summit like the one in Asia last year? <thinking>19:46
TheJuliaThere is discussion underway for one in Europe, for the fall specifically, but I don't know the status of it19:49
TheJuliacardoe: so liveimg_url is unrelated to image_url19:49
TheJuliait should be the stage2 image if I'm remembering correctly19:49
opendevreviewVerification of a change to openstack/ironic-python-agent master failed: Fix the way qemu-img is called with prlimits  https://review.opendev.org/c/openstack/ironic-python-agent/+/94269019:55
iurygregorytks TheJulia 20:09
opendevreviewVerification of a change to openstack/ironic-tempest-plugin master failed: CI: Dial back the non-voting jobs  https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/94284623:41

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