Friday, 2023-12-29

iurygregorytks for sharing JayF o/11:35
iurygregorygood morning Ironic, happy last workday of the year lol11:36
samcat116It looks like enabling send_sensor_data enables it for drivers that don't support it. Is this something that can be configured per node?18:32
samcat116I have mostly snmp based nodes and so my conductor logs have a lot of errors in them18:32
JayFsamcat116: I'd consider that a bug if it's throwing errors, can you put the information into one and link it?18:44
JayFsamcat116: if there's already a solution I can point you to it there with the info inside, but I suspect we might have overlooked a thing18:44
samcat116Here ya go18:46
samcat116https://bugs.launchpad.net/ironic/+bug/204770918:46
JayFokay yeah that is a bug18:47
JayFone I might be able to patch real quick18:47
JayFwill you get the last piece of productive work out of me in 2023?!?18:47
samcat116🤞18:50
JayFYeah it's just a noisy log message18:56
JayFI looked at it, there are other routes to maybe take19:02
JayFbut I just s/warning/debug/ in my proposed patch19:02
JayFI think it's likely the best solution in this case and easily backportable if needed19:02
JayFsamcat116: what version you need this in? 19:02
samcat116this is bobcat19:03
JayFaight, it'll probably take a bit to get in b/c I think we're not at core-quorum this week19:03
JayFbut as long as it lands, should be a trivial backport19:03
samcat116sweet!19:03
samcat116thanks for the fast response 🥳19:04
opendevreviewJay Faulkner proposed openstack/ironic master: Do not log lack of metrics support at WARNING lvl  https://review.opendev.org/c/openstack/ironic/+/90445519:04
JayFtiming is everything, I just sat down after a break, opened IRC, your message is the first thing I saw :)19:04
JayFhappy to help especially when it doesn't even really cost an interrupt :)19:04
JayFsamcat116: ^ your review is appreciated if you're familiar w/gererit19:05
samcat116That looks like it'll remove the warning log, but that other exception seems like its something different?19:08
samcat116Yeah I'll do that19:08
JayFSo that second piece I *think* is a local config error for you19:10
JayFchecking tho19:10
JayFsamcat116: I think that means you don't have a metrics backend configured19:12
JayFand also that our check for that is not in the right place as well, potentially (?)19:12
JayFsamcat116: can you share [metrics] section of your conf?19:12
JayFredact hostnames, ofc19:12
JayFsamcat116: my belief is you have the default set here: https://github.com/openstack/ironic-lib/blob/master/ironic_lib/metrics_utils.py#L28 (noop) which leads you to this codepath when we call to send metrics: https://github.com/openstack/ironic-lib/blob/master/ironic_lib/metrics.py#L295 (NoopMetricLogger doesn't implement that method, so it bails to there)19:14
samcat116well there isn't one, so that would be the problem I guess19:14
JayFsamcat116: If you're using prometheus, I think that gets set to collector19:14
JayFsamcat116: if you're using statsd, there are great docs, IDK where the docs are for the prometheus stuff they are not in the same place19:14
samcat116I've got that under [oslo_messaging_notifications]19:15
samcat116driver = prometheus_exporter19:15
samcat116location = /var/lib/ironic/metrics19:15
JayFthose are different things19:15
JayFeven if both can output to prometheus 19:15
samcat116Yeah so then I have no metrics section setup19:16
JayFsamcat116: https://docs.openstack.org/ironic/latest/admin/metrics.html#transmission-to-the-message-bus-notifier19:16
JayFthere we go :D 19:16
JayFsamcat116: literally looks like you just need to set it to collector, which is going to plug it into the notifications backend w/prom exporter19:16
samcat116yep that did it19:18
samcat116I guess thats a bug for the kolla folks19:18
samcat116(I say that did it, the error is gone but I haven't started scraping here to check the actual metrics)19:19
JayFsamcat116: I have a bonus patch coming in, too19:21
JayFbasically: _msg_fmt = _("Metrics action is not supported. You may need to adjust the [metrics] section in ironic.conf.")19:21
opendevreviewJay Faulkner proposed openstack/ironic-lib master: Improve error message for wrong metrics backend  https://review.opendev.org/c/openstack/ironic-lib/+/90445719:22
JayFsamcat116: any more of these low hanging fruit for me?19:22
JayFdelicious juicy code pears 19:22
JayFlol19:22
JayFthat one will not likely be backported, fwiw, but you'll help out the next person in line :D 19:22
samcat116Hah, nothing right now but thank you19:23
JayFno problem :) these quality of life fixes are my favorite kind of thing19:23
samcat116I'm sure the new year will bring high hanging fruit from me though19:23
JayFleave those for taller people19:23
JayFI'm in a lounge chair over here, peel me another bug ticket will you /s19:23
JayFlol19:24
JayFReminder: I'm out through Thursday of next week; I'll be in email if anyone needs me urgently.22:05
opendevreviewMerged openstack/ironic-python-agent master: Reformat and update the section on injecting root credentials  https://review.opendev.org/c/openstack/ironic-python-agent/+/90375022:20
opendevreviewMerged openstack/ironic-specs master: Boot configuration API  https://review.opendev.org/c/openstack/ironic-specs/+/90257422:21
opendevreviewMerged openstack/ironic master: CI: use Swift for configdrive when available  https://review.opendev.org/c/openstack/ironic/+/90364223:31

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