Tuesday, 2022-11-22

opendevreviewJacob Anders proposed openstack/sushy master: Fix setting boot related attributes  https://review.opendev.org/c/openstack/sushy/+/85659700:30
janders^ finally this one should be good to go - fixed up the final tests00:32
janders(thank you for the +2 earlier TheJulia - have another look if you have time :)00:32
*** tkajinam is now known as Guest216202:04
*** tkajinam is now known as Guest217403:28
*** tkajinam is now known as Guest217905:36
opendevreviewMerged openstack/ironic master: Change boot_interface order of iRMC driver  https://review.opendev.org/c/openstack/ironic/+/86261605:54
arne_wiebalckGood morning, Ironic!07:22
kubajjGood morning arne_wiebalck and Ironic!07:55
rpittaugood morning ironic! o/08:16
arne_wiebalckhey rpittau and kubajj o/08:31
rpittauhey arne_wiebalck :)08:31
opendevreviewMerged openstack/sushy master: Fix setting boot related attributes  https://review.opendev.org/c/openstack/sushy/+/85659709:20
opendevreviewkamlesh chauvhan proposed openstack/sushy master: Fix volume deletion on newer iDRACs  https://review.opendev.org/c/openstack/sushy/+/86484509:24
janders^ \o/ took a while but the SettingsURI/Lenovo fix has merged. Thank you to all involved!09:36
opendevreviewMerged openstack/ironic master: Add ports statistics to tools/benchmark scripts  https://review.opendev.org/c/openstack/ironic/+/86476209:52
opendevreviewVerification of a change to openstack/ironic bugfix/19.0 failed: Add SNMPv3 authentication functionality  https://review.opendev.org/c/openstack/ironic/+/86446510:06
opendevreviewVerification of a change to openstack/ironic bugfix/18.1 failed: Add SNMPv3 authentication functionality  https://review.opendev.org/c/openstack/ironic/+/86446610:13
opendevreviewMerged openstack/ironic stable/xena: Add SNMPv3 authentication functionality  https://review.opendev.org/c/openstack/ironic/+/85055410:44
opendevreviewMerged openstack/ironic stable/wallaby: Add SNMPv3 authentication functionality  https://review.opendev.org/c/openstack/ironic/+/85070710:48
opendevreviewMerged openstack/ironic stable/wallaby: Remove un-needed tabs from script  https://review.opendev.org/c/openstack/ironic/+/86519210:48
opendevreviewHarald Jensås proposed openstack/ironic master: benchmark: Create chassis, set chassis_id for node  https://review.opendev.org/c/openstack/ironic/+/86527012:04
opendevreviewDmitry Tantsur proposed openstack/ironic master: [WIP] [PoC] A metal3 CI job  https://review.opendev.org/c/openstack/ironic/+/86387313:38
*** hjensas is now known as hjensas|afk16:57
opendevreviewJulia Kreger proposed openstack/ironic-lib master: Provide an interface to store metrics  https://review.opendev.org/c/openstack/ironic-lib/+/86531116:59
TheJuliaJayF: ^ might interest you17:00
JayFack17:00
TheJuliaiurygregory: so, steve and I are pondering hijacking the prometheus exporter to get more metrics data out of ironic, and I think ^ is our avenue to use the ye olde metrics framework17:00
TheJuliaideally get things like a gauge counter of nodes in maintenance, number of tasks launched, etc17:08
iurygregoryTheJulia, that would be awesome17:09
iurygregoryif you need help let me know17:09
TheJuliaI don't think so, it seems like a relatively easy thing to do with some additional metrics hooks needing to be added to the conducotr17:10
TheJuliaultimately, a first ironic_lib review would be appreciated17:10
iurygregoryack, I will add to my list17:10
iurygregorythe one above right?17:11
TheJuliayes please17:11
TheJuliaits the first step, since we need to save the data somehow to be able to get it back out17:12
kubajjTheJulia: Is it possible to mock the node_inventory object for testing in https://review.opendev.org/c/openstack/ironic/+/864057/ ?17:15
dtantsurI think it's not unreasonable for something called ironic-prometheus-exporter to also export ironic-native stuff17:15
kubajjor dtantsur, I didn't know that you were still around17:15
TheJuliakubajj: should be, any reason not to use the base object, just not saved to the db yet?17:15
dtantsurkubajj: you can mock nearly anything in python, but you also just let the temporary database take it17:15
* dtantsur had a driving lesson in the morning, so staying a bit later17:16
kubajjThis is the particular test I am trying to fix: https://paste.opendev.org/show/blOXcn4lz7TatMAj5vFy/17:17
dtantsurkubajj: it's hinting you that mock_gate_data.return_value is a Mock, not a dict17:17
dtantsurso you cannot use it as a dict17:18
dtantsuryou only need to drop mock.Mock from line 8 and let it be a real dict17:18
rpittaugood night! o/17:18
* dtantsur is trying to understand what mock.Mock{some dict}) actually does17:19
dtantsurkubajj: aha. when you do mock.Mock({..}) you don't get what you think you do. what you do get is a completely mocked object that just happens to have the same methods as a dict.17:20
dtantsurat least that's what I can deduce from a short experiment17:21
dtantsurtl;dr just use a real dict for return_value17:21
TheJuliadtantsur: that matches my understanding, fwiw17:21
kubajjdtantsur: I see. Interesting17:21
dtantsurkubajj: generally, if you end up doing some_mock.return_value = mock.Mock(..), you may be doing it wrong17:21
dtantsurany Mock's return_value is a Mock by default, unless you set it to something else17:21
dtantsurhence this is absolutely valid code:17:22
dtantsur>>> mock.Mock()()()()()()17:22
dtantsur<Mock name='mock()()()()()' id='139807865347840'>17:22
dtantsur>>> mock.Mock()().banana()(answer=42)()().STOP_IT17:22
dtantsur<Mock name='mock().banana()()()().STOP_IT' id='139807865351200'>17:22
dtantsuryou get the idea :)17:22
dtantsuronce you pass something to Mock(), this something becomes a *spec*, i.e. the object that this Mock resembles17:23
dtantsurresembles == has the same method, but completely mocked17:23
* dtantsur hopes he didn't scare kubajj away with his examples :)17:30
kubajjdtantsur: definitely not, I am just trying to figure out another error 😀17:31
opendevreviewJakub Jelinek proposed openstack/ironic master: WIP: Get inventory from Inspector  https://review.opendev.org/c/openstack/ironic/+/86405717:35
kubajjdtantsur: I think this line is causing an issue: https://review.opendev.org/c/openstack/ironic/+/864057/3/ironic/drivers/modules/inspector.py#37017:36
dtantsurkubajj: it may be your testing data. in the paste above, inventory is a string "cpu"17:38
dtantsuryou cannot serialize that to a JSON dict17:38
dtantsurprobably a typo17:38
kubajjdtantsur: yes, that was the issue. Thanks17:40
opendevreviewJakub Jelinek proposed openstack/ironic master: WIP: Get inventory from Inspector  https://review.opendev.org/c/openstack/ironic/+/86405717:58
kubajjdtantsur: TheJulia: would something like this be enough for the testing of this change?17:59
*** dmellado_ is now known as dmellado18:01
*** dmellado_ is now known as dmellado18:04
dtantsurkubajj: you also need to load the created record from the database and check that it matches the fake data18:20
* dtantsur is calling it a day, chat with you tomorrow18:20
opendevreviewJakub Jelinek proposed openstack/ironic master: Get inventory from Inspector  https://review.opendev.org/c/openstack/ironic/+/86405718:38
stevebaker[m]good morning19:34
TheJuliao/20:22
JayFHey all; I'm out in the next hour or two until next Monday (11/28). If you need me; say so quickly :D 22:01

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