Wednesday, 2024-01-24

rpittaugood morning ironic! o/08:52
masgharGood morning!09:15
songwenping_tkajinam, iurygregory, morning :), i am sorry i always offline, but like this case with min_microversion 1.28: ironic_tempest_plugin.tests.api.admin.test_nodes.TestNodesVif#test_vif_on_portgroup, is it skipped for victroy branch job?10:14
iurygregorygood morning Ironic11:47
iurygregorysongwenping_, do you have a link so I can take a look?11:47
iurygregorysongwenping_, so, `tests.api` are only run in the ironic-tempest-functional-python3 jobs,  by victory branch I think you wanted to say victoria right? (We don't run functional tests in this release since is Unmaintained)12:08
dtantsuriurygregory: hi, could you maybe check https://review.opendev.org/c/openstack/bifrost/+/896925/ today?13:34
iurygregorydtantsur, it's on my list =)13:34
iurygregoryI will prioritize this one13:35
dtantsurthx13:37
iurygregorytks for the review in the tests, I totally forgot to update to use the constant /facepalm13:38
opendevreviewIury Gregory Melo Ferreira proposed openstack/ironic master: RedfishFirmwareInterface - Unit Tests & More logs  https://review.opendev.org/c/openstack/ironic/+/90337913:45
dtantsurTheJulia: JFYI (no urgency) https://github.com/metal3-io/metal3-docs/pull/373/files14:20
opendevreviewJulia Kreger proposed openstack/ironic-tempest-plugin master: DNM/WIP: Detect misconfig and navigate  https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/90643215:08
opendevreviewVerification of a change to openstack/bifrost master failed: Configure the new inspection implementation  https://review.opendev.org/c/openstack/bifrost/+/89692515:14
dtantsurTheJulia: hey, is it possible that your rbac changes broke bifrost? https://c040fcb6b9079c7be14d-364fef5d0294fafc2826805b949e4cc6.ssl.cf5.rackcdn.com/896925/6/gate/bifrost-integration-tinyipa-keystone-ubuntu-jammy/bc22acd/job-output.txt15:16
dtantsur"\"baremetal:conductor:get\": \"(role:reader and system_scope:all) or (role:service and system_scope:all)\" requires a scope of ['system'], request was made with project scope. (HTTP 500)"15:16
TheJuliayup, bifrost needs to use system scope to get insight into conductors15:17
dtantsurany ideas on how to fix that?15:17
dtantsurrbac is the most foreign part of ironic for me :)15:17
TheJuliayeah, uhhhh15:17
TheJuliado you know where we write out cloud config?15:17
dtantsurcan find, one sec15:18
dtantsurTheJulia: you mean https://opendev.org/openstack/bifrost/src/branch/master/playbooks/roles/bifrost-keystone-client-config/templates/clouds.yaml.j2 ?15:18
TheJuliahttps://opendev.org/openstack/bifrost/src/branch/master/playbooks/roles/bifrost-keystone-client-config/templates/clouds.yaml.j2#L11-L14 needs to be changed so it is not using a project15:19
TheJuliain other words add "system_scope: all", and remove the project/domain settings15:20
dtantsurTheJulia: just drop project name and domain_id? or there is more to that?15:20
dtantsurah gotcha15:20
TheJuliayeah, that *should* do it as long as the system scope password is the same and I think bifrost uses the same password for that bootstrap15:20
* dtantsur looking15:21
dtantsuryeah, seems so15:21
TheJuliaif your up for it to just author a quick patch, by all means, if not I'm going to finish writing this bug first.15:21
dtantsurTheJulia: what's the environment variable? OS_SYSTEM_SCOPE?15:25
TheJuliaI believe so15:26
TheJuliaalthough env vars really shouldn't be used these days15:26
dtantsuryeah, but we do..15:26
TheJuliayes, OS_SYSTEM_SCOPE15:26
dtantsurWe also use the service user, I wonder how well THAT works15:27
TheJuliaservice role?15:27
dtantsurwellll... however the 'ironic' user is created15:28
TheJuliaeh, that doesn't really matter as much15:28
TheJuliahttps://opendev.org/openstack/bifrost/src/branch/master/playbooks/roles/bifrost-keystone-client-config/templates/openrc.j2#L15-L17 needs to be changed as well15:29
dtantsurtrue15:29
opendevreviewDmitry Tantsur proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652815:31
dtantsurTheJulia: something along these lines ^^?15:31
TheJuliayou can't have the user_domain_id15:32
dtantsurso, it's even across domains?15:32
TheJuliacommented on the change, in that state it will fail because it will continue to attempt to use project scope15:33
TheJuliasystem scope is the system itself15:33
TheJuliait is stacked as:    System | Domain | Project15:33
dtantsurOkay. I hope we create users in a compatible way...15:34
TheJulialooking15:34
opendevreviewDmitry Tantsur proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652815:34
TheJuliabootstrap looks right15:36
TheJuliahmmmmm15:39
TheJuliaso the user created *should* only give a user credentials to access ironic, ideally it has a service role which grants it elevated access, but I'm not sure there is a way to set it and we don't setup the service with admin15:40
TheJuliaoh, nevmd15:40
TheJuliait is later down15:40
TheJuliaideally https://opendev.org/openstack/bifrost/src/branch/master/playbooks/roles/bifrost-ironic-install/tasks/keystone_setup.yml#L72-L80 would also be done for the service role, but as is, I suspect everything should just work without it15:41
dtantsurokay, let's see15:43
TheJuliathe direction pivot of openstack didn't really help us in general since we didn't loosen everything across our API, we kept a lot of stuff tightly restricted15:43
TheJuliain large part because most of those endpoints are either "blissfully unaware" *OR* users really shouldn't be leveraging in any context outside of interacting with the system itself.15:44
* TheJulia wants to become blissfully unaware of rbac15:45
dtantsur:D15:45
TheJulia(and for us to get this far and keep *all* of the issues to relatively minor, is still damn impressive)15:46
dtantsur++15:46
TheJuliaI do need to fix our default state for tempest tests15:46
TheJulia... should have changed them a long time ago :(15:47
opendevreviewJulia Kreger proposed openstack/ironic-tempest-plugin master: Ensure scope logic is enforced  https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/90643415:51
TheJuliarelated!15:51
dtantsurTheJulia: "Expecting to find domain in user. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-fb6be639-e8f0-44ec-8d87-e15af99b8d1e)"15:53
TheJuliaouch15:53
dtantsurhttps://b81053bdfdc4dbc88f2c-c7d993eea60b4734415017f4886af138.ssl.cf1.rackcdn.com/906528/2/check/bifrost-keystone-collections-src/b658855/job-output.txt15:53
TheJuliawhere did that...15:53
* TheJulia looks15:53
TheJuliakeystone validation error15:57
TheJuliahmmmmmmm15:57
opendevreviewDmitry Tantsur proposed openstack/bifrost master: WIP try reordering things  https://review.opendev.org/c/openstack/bifrost/+/90653415:58
dtantsura bit hacky, may work ^^^15:58
TheJuliaoh, you've got project and region in that one15:59
TheJuliawhat was done with the env vars *should* have worked, unless the module has an issue with system scope auth or starts to make weird assumptions16:00
* TheJulia looks at the keystone code and blinks16:02
TheJuliathis is bizzare16:05
TheJuliait has to be something on the input16:05
TheJuliaso, worst comes to worst, I'm fine reverting the change on ironic while we try and get bifrost fully switched over, my worry right now is something bifrost is dependent upon doesn't comprehend or makes assumptions about use/access16:06
dtantsuryeah, unfortunately it may come to a revert.. but it's not critical yet, so we can keep looking16:06
dtantsurif we need to fix openstacksdk or ansible-collections, then a revert may be unavoidable16:07
TheJuliaI almost want to sniff what the request is between the ansible module and keystone at this point because something is very not right16:08
TheJuliawhat is the best OS to run bifrost on for dev/test these days?16:09
dtantsurTheJulia: I'm using CS916:09
TheJuliaeeek, a 9GB ISO image16:09
dtantsurI use a script that I wrote for myself https://github.com/dtantsur/config/blob/master/virt-install.sh16:11
* dtantsur is rebuilding his 2nd bifrost VM16:12
TheJuliaI'm going to build an environment to try and reproduce and dig further locally since we never saw anything like this with local commands being executed, which makes me *very* worried16:12
TheJuliasomehow we're falling into a keystone code path where it assumes there is a domain16:13
TheJuliawhich is not right16:13
TheJuliabut if the input says "you have it", then obviously it is  not going to go right16:13
TheJuliaat least the ISO is downloading with an okay speed16:14
TheJulia~20% 16:15
* dtantsur ./bifrost-cli install --testenv --develop --enable-keystone16:15
* TheJulia waits while ISO downloads, and wonders why the 3d printer is off16:16
TheJulia40% \o/16:22
* dtantsur stuck on "Download via GIT"16:26
opendevreviewKyrylo Romanenko proposed openstack/python-ironicclient master: Add functional tests for VIFs in OSC plugin  https://review.opendev.org/c/openstack/python-ironicclient/+/43090416:27
TheJulia75%16:29
dtantsuraha, I've reproduced the failure16:35
* dtantsur reruns with --debug16:46
TheJulia\o/16:47
TheJuliainstalling now16:47
TheJuliawell, centos16:47
dtantsurheh, that's why I always keep 2 bifrost VMs, one main and one stand-by for cases like this16:49
TheJulia... I oom'ed since an ubuntu VM I have refused to shut down16:50
dtantsur:(16:50
TheJulia.... interestingly enough, the ATSC tuner it was connected to is still initialized. 16:50
dtantsurTheJulia: http://192.168.122.1:5000/v3/auth/tokens {'json': {'auth': {'identity': {'methods': ['password'], 'password': {'user': {'password': 'HCMBd5pSX3LSVy470PIE', 'name': 'ironic'}}}}}, 'headers':16:56
dtantsur{'Accept': 'application/json'}, 'authenticated': False, 'log': False}16:56
dtantsurno traces of scope16:57
TheJuliaand well, that would do it16:57
dtantsurhold on, my bad16:57
dtantsurTheJulia: {'json': {'auth': {'identity': {'methods': ['password'], 'password': {'user': {'password': 'HCMBd5pSX3LSVy470PIE', 'name': 'ironic'}}}, 'scope': {'sy16:57
dtantsurstem': {'all': True}}}}, 'headers': {'Accept': 'application/json'}, 'authenticated': False, 'log': False} 16:57
dtantsurso yeah, scope included, still HTTP 40016:57
TheJuliaumm.. that seems like a weird definition of it16:58
TheJuliabut I'd need to consult the api16:58
dtantsurThe only difference with the example is user ID vs name16:59
dtantsurTried with a user ID, got HTTP 401 instead \o/17:01
dtantsurTheJulia: User fcdfaeef4ef041d79b6a5d78503ca7fa has no access to the system17:01
dtantsurso yeah, we need to use user ID (bad, we don't have access to that) and probably not the service user too17:01
TheJuliathat actually makes sense17:01
TheJuliabecause we create the user in a project today17:02
TheJuliaand that user account is being re-used for other activities17:02
dtantsurThat's the lesser of my concerns. I don't know what to do about the ID17:04
dtantsurThe requirements of using an ID is quite bad (also outside of bifrost)17:04
dtantsurTheJulia: hah, I think you got it wrong: a user domain ID must be provided. Then stuff works.17:06
TheJuliaThat, itself, doesn't make sense unless the request formatting is doing something weird, because we've successfully passed names in for cross-service communication17:06
dtantsurOS_SYSTEM_SCOPE=all OS_AUTH_TYPE=password OS_AUTH_URL=http://192.168.122.1:5000/v3 OS_USERNAME=admin OS_PASSWORD=$(cat ~/.config/bifrost/admin_password) OS_USER_DOMAIN_ID=default baremetal --debug conductor list17:06
dtantsurthis works ^^^17:06
TheJulia...17:06
* TheJulia wonders if there is a bug which is requiring it somewhere17:07
TheJuliaanyway, I guess time to retry with the domain id set17:07
rpittaugood night! o/17:07
JayFo/17:07
TheJuliagoodnight17:08
TheJuliagood morning JayF 17:08
JayFI've been reading with some interest17:08
opendevreviewDmitry Tantsur proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652817:08
dtantsurretrying ^^17:08
JayFwhile asynchronously plotting with arne_wiebalck to have a bm sig at cern in june :)17:08
dtantsurhi JayF 17:08
TheJuliaI guess I should consider discussing with the wife if she is up for a trip to the EU in June17:09
JayFto be clear, it's pretty much 100% that I'm going end of may / early June17:10
JayFUK and CERN17:10
JayFmaybe a weekend in Paris in the middle17:10
iurygregorynice JayF =D17:10
dtantsurIf you end up publishing a nice information page with a rough schedule, it may help us a lot17:10
dtantsurat least those of us in Europe17:10
JayFdtantsur: that was one of the things I included in the email; that getting something more detailed online was a crucial step in allowing upstream folks to get travel approved17:11
iurygregoryI can join virtual if possible lol =P17:11
dtantsur++17:11
JayF(including about the OIF days themselves)17:11
dtantsurI'm puzzled why OIF is so low key about these days17:12
JayFKristin, the marketing director, got laid off at the top of the year.17:13
JayFI imagine some of the low-noise is possibly as a result of that.17:13
dtantsurthat would do it :(17:13
TheJuliaThere dynamic/model has also changed and there is some expectation that local folks would be helping craft/drive the messaging17:13
dtantsurI mean, for the event in Berlin they'll probably get enough people anyway.. but if they want them *regional*, it's not that easy any more17:14
TheJuliadownside of smaller more local events, is the further away you are, the far less info there also is17:14
JayFYeah, like for instance: this CERN trip *is my openinfra travel* for 202417:14
JayFI will not be at the regional summit in SK17:14
JayF(GR-OSS may send someone; but it won't be me)17:15
dtantsurMy kubecon talk was not accepted, so I may have a reason to ask for another travel :)17:21
opendevreviewDmitry Tantsur proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652817:45
TheJuliahmmm17:54
opendevreviewDmitry Tantsur proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652818:15
TheJuliaheh, nice to see you just posted what I just saved locally18:16
dtantsurlol18:16
dtantsurI'll see if it works tomorrow - have a good night18:16
TheJuliagoodnight!18:17
TheJuliayeah, we're going to need to combine things, basically we're trying to use the service catalog credentials to query but we can't authenticate with that18:24
opendevreviewJulia Kreger proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652818:45
TheJuliaanother try \o/18:45
opendevreviewJulia Kreger proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652819:08
TheJuliathat *should* do it19:09
* TheJulia crossses fingers19:10
TheJulianope19:20
opendevreviewJulia Kreger proposed openstack/bifrost master: WIP fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652819:24
opendevreviewJulia Kreger proposed openstack/bifrost master: fix keystone auth scope  https://review.opendev.org/c/openstack/bifrost/+/90652821:09
TheJuliaI tagged https://review.opendev.org/c/openstack/bifrost/+/906528 as ironic-week-prio. It appears good at this point.21:10
JayFrpittau: re: 890408; I've never seen `if which commandname` used as a construct before in a shell script. That's neat. 21:18
* JayF usually does something more like CMD=`which commandname`; if [[ -x $CMD ]] or similar, which is more explicit but less cool21:19
iurygregoryJayF, great catch in https://review.opendev.org/c/openstack/ironic/+/903379/7/ironic/drivers/modules/redfish/utils.py =) (bad copy/paste XD) 21:38
JayFI'm not a human rubber stamp, and I need those comments, what am I supposed to do, read the code to figure out what it does?! That's what I pay the python interpreter to do for me! /s :D 21:39
iurygregory:D21:40
opendevreviewIury Gregory Melo Ferreira proposed openstack/ironic master: RedfishFirmwareInterface - Unit Tests & More logs  https://review.opendev.org/c/openstack/ironic/+/90337921:41
iurygregorydone =)21:41
TheJuliahttps://review.opendev.org/c/openstack/ironic-tempest-plugin/+/906434 <-- a quick review would be awesome21:47
iurygregoryTheJulia, will look after finish reviewing https://review.opendev.org/c/openstack/bifrost/+/906528 =)21:47
TheJuliaack, thanks21:48
TheJuliaJayF: at some point, if you want to discuss self-service-templates, I'm available21:49
JayFlets just put time on a calendar in the future21:50
iurygregoryindeed is a quick review lol two edits21:50
TheJuliaok21:50
JayFI am trying to work harder to plan my work out and have fewer interrupts (to very little success so far) because longer-form projects keep getting bumped by a thousand tiny things21:50
JayFTheJulia: tomorrow or fri afternoon?21:51
TheJuliaFriday if that works for you21:53
JayFsure, noon-1ish would be ideal21:54
JayFbut anytime between 11a-4p is doable (4p is my scheduled end-of-day)21:54
TheJuliaThat works for me21:54
TheJulianoon-1ish on Friday21:55
JayFinvite heading your way21:55
JayFto the RH email?21:55
TheJuliacool cool21:55
JayFapparently don't have the RH email in my gr-oss.io email, so sent it to your gmail21:56
TheJuliathis is fine21:56
opendevreviewKyrylo Romanenko proposed openstack/python-ironicclient master: Add functional tests for VIFs in OSC plugin  https://review.opendev.org/c/openstack/python-ironicclient/+/43090422:06
opendevreviewVerification of a change to openstack/bifrost master failed: Collect lshw output in json format  https://review.opendev.org/c/openstack/bifrost/+/89040822:27
opendevreviewMerged openstack/ironic-tempest-plugin master: Add negative tests for VIF attach/detach operations  https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/90607822:52
opendevreviewMerged openstack/ironic-tempest-plugin master: Ensure scope logic is enforced  https://review.opendev.org/c/openstack/ironic-tempest-plugin/+/90643423:13
opendevreviewKyrylo Romanenko proposed openstack/python-ironicclient master: Tests for OSC baremetal node create command with options  https://review.opendev.org/c/openstack/python-ironicclient/+/38235223:24

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