Thursday, 2024-09-26

cardoehttps://review.opendev.org/c/openstack/networking-baremetal/+/929650 here or neutron?02:37
cardoeJayF: what's openstack-exporter? The gophercloud folks are pretty good to work with. I've submitted a bunch of changes and redesigned a few APIs. Though they're now locked in on being stable on v2 for a bit. Feel free to ping me on the auth side, I honestly don't know Go but what I can Google but I actually wrote the current auth plugin interface so you can do stuff like keystoneauth.02:38
JayFhttps://github.com/openstack-exporter/openstack-exporter -> it basically does API queries to pull information to send over prometheus02:39
TheJuliacardoe: here, I  am confused, guess I need more context and not a migraine.02:40
cardoeSo I blew it up somewhere in the pool_listener cause I derped.02:42
cardoeSorry. I blew it up somewhere in pool_listener.start() in the start()02:43
cardoeAnd it called stop(). But there's no self.heartbeat yet. so stop() got mad.02:43
cardoeMy RabbitMQ config line was bad.02:44
cardoeJayF: ah awesome it's late and totally forgot.02:44
cardoehttps://github.com/gophercloud/gophercloud/blob/master/openstack/baremetal/noauth/doc.go02:51
cardoeJayF: ^02:51
JayFoh, lame, so openstack exporter has to update how it's using it, it doesn't just work off clouds.yaml :(02:52
JayFadamcarthur5: ^ fyi I linked that in the issue and closed it02:53
JayFadamcarthur5: even if we want to improve it clearly we gotta understand that part better first02:53
* JayF &02:53
cardoeWhat's a noauth clouds.yaml look like?02:56
adamcarthur5JayF ah okay. Thanks cardoe. 02:59
TheJuliacardoe: ask me tomorrow, I think bifrost can generate that and I can point you to it… if I am reminded. In a car at the moment and will be walking the corgi and crashing once I’m back to my bus03:01
cardoeWill do.03:13
cardoeadamcarthur5: I got pretty good at coming up with handling the inflexible auth bits and they ultimately took my suggestion for gophercloud 2.0.0. So as long as openstack-exporter is using 2.0.0 I bet we can make it work. So you basically you can provide your own keystoneauth plugin like surface in your binary. I see that noauth bit hasn't been updated in 5+ years so it's probably not wired in correctly.03:17
cardoeYou can probably carry a little struct externally and just rebase it away if they merge it in.03:18
adamcarthur5cardoe sadly openstack-exporter doesn't use 1.0, but I have done a partial migration of ironic to 2.0, so it's technically possible 03:19
cardoeNo I mean gophercloud03:22
cardoegithub.com/gophercloud/gophercloud v1.14.0 yeah sad03:23
JayFcardoe: I linked to the dock for python ironic client that shows you what it looks like in that GitHub issue. I'm on mobile so I can't grab it right now03:28
JayF**doc03:28
JayFThe one I'm assuming you saw in gophercloud03:29
cardoeokay so it's a little bit tricky.03:31
cardoehttps://github.com/gophercloud/utils/blob/80377eca5d56d1f07d0ebdd4c2a5ae000a66a90e/openstack/clientconfig/requests.go#L24-L42 those are the valid auth types. Which "none" isn't valid for.03:31
cardoeI can see openstack-exporter has to do the same fun workarounds gophercloud... set the env var for your clouds.yaml. Cause gophercloud doesn't let you provide an absolute path.03:33
cardoeSo you can trick this all out via https://github.com/openstack-exporter/openstack-exporter/blob/4eaf89ce0293ed5994446ac502f063bd4a1101f8/cache/utils.go#L4503:35
cardoeInstead of LoadCloudsYaml(), you call https://github.com/gophercloud/utils/blob/80377eca5d56d1f07d0ebdd4c2a5ae000a66a90e/openstack/clientconfig/requests.go#L18603:36
cardoeoh sorry, you're trying to load the whole thing You have to call FindAndReadCloudsYAML() yourself and unmarshal it.03:38
cardoeChange this one line to give you more control. Provide your own LoadCloudsYaml() which changes auth_type = none to auth_type = "password" and the auth_url to something like noauth:// https://github.com/openstack-exporter/openstack-exporter/blob/4eaf89ce0293ed5994446ac502f063bd4a1101f8/exporters/exporter.go#L19803:58
cardoeThen https://github.com/openstack-exporter/openstack-exporter/blob/4eaf89ce0293ed5994446ac502f063bd4a1101f8/exporters/utils.go#L83 make that conditional if you're connecting to noauth:// to skip it and just create yourself a blank openstack.ProviderClient03:59
cardoehttps://github.com/openstack-exporter/openstack-exporter/blob/4eaf89ce0293ed5994446ac502f063bd4a1101f8/exporters/utils.go#L106 fix that line up to actually copy in the endpoint_override04:00
rpittaugood morning ironic! o/07:05
ciddtantsur: When you can, can you drop a few lines of feedback on this change https://review.opendev.org/c/openstack/ironic/+/918303.09:00
cidPossibly, even how we can test it out in Devstack.09:00
dtantsurputting on my queue09:17
opendevreviewVerification of a change to openstack/networking-generic-switch master failed: cumulus_nvue: Use generic netmiko device as base  https://review.opendev.org/c/openstack/networking-generic-switch/+/92848809:25
opendevreviewDmitry Tantsur proposed openstack/ironic master: trivial: fix http result code on ImageInvalid  https://review.opendev.org/c/openstack/ironic/+/92957409:25
opendevreviewMerged openstack/metalsmith master: Update master for stable/2024.2  https://review.opendev.org/c/openstack/metalsmith/+/92836509:29
opendevreviewMerged openstack/bifrost stable/2024.2: Update TOX_CONSTRAINTS_FILE for stable/2024.2  https://review.opendev.org/c/openstack/bifrost/+/93003209:55
opendevreviewMerged openstack/metalsmith stable/2024.2: Update .gitreview for stable/2024.2  https://review.opendev.org/c/openstack/metalsmith/+/92836110:50
opendevreviewMerged openstack/metalsmith stable/2024.2: Update TOX_CONSTRAINTS_FILE for stable/2024.2  https://review.opendev.org/c/openstack/metalsmith/+/92836210:50
iurygregorygood morning Ironic11:28
tkajinamdtantsur, thanks for reviewing/merging these changes. honestly speaking I wasn't aware it's unused now and don't need a new release soon, but I guess we can create one after adding deprecation note (so that it also appears in pypi).11:59
tkajinamif that makes sense I'll propose a change to add deprecation warning 12:00
opendevreviewAdam Rozman proposed openstack/ironic bugfix/26.0: implement custom reboot support  https://review.opendev.org/c/openstack/ironic/+/93056512:17
tkajinamproposed https://review.opendev.org/c/openstack/python-dracclient/+/930572 fyi...12:38
ciddtantsur: thanks 12:47
rpittaucid: that looks good at a glance, can you please add a release note?13:00
TheJuliagood morning13:08
rpittauhey TheJulia :)13:08
cidrpittau: noted.13:25
opendevreviewAdam Rozman proposed openstack/ironic master: implement custom reboot support  https://review.opendev.org/c/openstack/ironic/+/92570313:34
opendevreviewAdam Rozman proposed openstack/ironic master: implement custom reboot support  https://review.opendev.org/c/openstack/ironic/+/92570313:38
TheJuliaso it looks like I need to spend time making 4k block devices a first-class thing13:46
TheJuliaI'm going to add another topic to the PTG because configuration of such machines makes me nervous13:46
rpittaumoaaarrr topics13:48
TheJuliayuuuup13:50
TheJuliasorry13:50
TheJuliacardoe: so looking at bifrost, I'm not sure we enerated it, but we functioanlly would set the auth_type to None in python and auth would only have "endpoint" which points to ironic's api url14:26
cardoeyeah that makes sense.14:26
TheJuliaI think that was the happy path we came up with ages ago, but it implied special meaning as a generalize override14:27
TheJuliato basically say "I've got nothing here, but here is your general override"14:27
cardoenone is just not valid in the version of gophercloud that openstack-exporter uses. That version is considered EOL so they won't patch it.14:27
TheJuliain bifrost, playbooks/roles/bifrost-cloud-config/tasks/main.yml14:27
TheJuliayeah14:27
TheJulia... I thought they did something, but maybe they added basic auth at some point/14:28
TheJulia?14:28
JayFcardoe: What I suggested to adamcarthur5 (it's ultimately up to him), is that we punt on worrying about standalone/basic auth until we have more of the ironic stuff hooked up to the exporter (which should mean more of it using v2, I think)14:31
JayFhonestly the impetus for hooking it up now() was to make local api a reasonable path for dev14:31
cardoeThey did add basic auth but its a totally different entrypoint to instantiate it.14:32
cardoebasically you build up an AuthOptions struct. It can be from getopt style build up, they have a built in helper to read the OS_ env vars to build one. They also have one that reads clouds.yaml and makes AuthOptions.14:33
TheJuliarpittau: so dialed back the item I added, looks like my patch from last august does the needful, but it might not work in some cases, really don't know  :(14:58
JayFcardoe: yeah, tbh I think it'd be nice to get the clouds.yaml stuff we have documented around supported in more places, but it's somewhat low on my list15:10
JayFcardoe: I don't currently have use cases for standalone ironic beyond 'it makes development of some things easier'; but investing in it to hedge for long term is something we're doing too15:11
JayFso we want the story to be better overall but there's no specific rush or impetus beyond trying to clean things up where we find it and it's time-efficient15:11
rpittauTheJulia: maybe we need more eyes, or just a quick discussion, it's ok to have the topic there 15:42
TheJuliayeah, I think there is an underlying question we need to ask ourselves and then see if there are directions we shoudl be trying to steer in15:43
TheJuliaVMs are super insulated from this stuff, where as we're painfull aware15:43
TheJuliaso... if we want to see change/evolution, we're going to need to drive for it15:43
JayFTheJulia: are you seeing a particular brand or style of gear/raid cards doing this?15:49
TheJuliaDell PERCs16:06
TheJuliaThe newest generation stuffs16:06
JayFthank you16:35
JayFI'm currently executing the permissions changes required for us to officially be VMT managed17:03
JayFit appears on launchpad.net/networking-baremetal that vsaienko has special access17:04
JayFis that intentional or still needed? should it be removed?17:04
JayFsimilarly for NGS17:05
dtantsurI think he hasn't been active for a long time, so his access can be removed regardless of the initial intention17:08
JayFthat was my assumption, but just didn't want to take action alone/in the dark :D 17:19
JayFwill fix both NBM + NGS now17:19
JayFhttps://launchpad.net/~ironic-coresec also has some bonus access17:20
JayFI suggest we update the membership? Remove Ruby, add me+Riccardo? 17:20
JayFdtantsur would have to execute any changes there as the leader of the group17:21
JayFalternatively I can replace all references to that group in lp configs with ironic-drivers17:21
JayFbut editing the group membership would save me doing a foreach bugtracker against a launchpad that is very slow this morning :D17:21
TheJuliaJayF: seems reasonable to me17:58
JayFI just discovered something unfortunate https://github.com/openstack/ironic/commit/c996aafa6d2fb7cb90da6f6126bf385635cdf32e references CVE-2024-44982 but the actual number is https://nvd.nist.gov/vuln/detail/CVE-2024-4408221:58
JayFcan't be fixed now, but I'll ensure the related docs are using the correct number21:58
TheJuliaYeah, I spotted it when it was too late too.21:58
JayFyeah can confirm only place it's wrong is the commit message21:58
TheJuliaOh well!21:59
JayFI just saw it linked when I was showing someone this as an example (someone was claiming less code == more secure, and smoeone pointed out that's almost always inversely true, and that fix is an A++ example)21:59
JayFwe're going to /really/ confuse someone if they come looking for the linux kernel fix in the ironic repo :D 21:59
TheJuliaI’ll add confusion maker to my job title22:00
TheJuliaWe have three weapons! Cats! confusion! And a cute corgi who rolls around on the bed.22:00
opendevreviewJulia Kreger proposed openstack/ironic master: CI: Enable the ability to have test VMs with different block sizes  https://review.opendev.org/c/openstack/ironic/+/92828523:49
opendevreviewJulia Kreger proposed openstack/ironic master: WIP: Add a 4k disk CI job  https://review.opendev.org/c/openstack/ironic/+/93065523:49
TheJuliacrossing fingers!23:49
opendevreviewJulia Kreger proposed openstack/ironic master: WIP: Add a 4k disk CI job  https://review.opendev.org/c/openstack/ironic/+/93065523:57

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