Thursday, 2024-03-14

iurygregoryoh perfect, tox -e py3 complains about psycopg2 .-.00:53
iurygregoryin py3.10 and py 3.11...00:53
opendevreviewWinicius Allan Bezerra da Silva proposed openstack/ironic master: Allow usage of virtual media via System  https://review.opendev.org/c/openstack/ironic/+/91233601:03
iurygregory\o/01:09
TheJuliaiurygregory: Postgres support right?01:11
iurygregorynot 100% sure, it's when trying to run unit tests locally01:11
iurygregorysince we pull requirements, for 3.10 and 3.11 my OS complains, 3.9 is fine01:11
opendevreviewJacob Anders proposed openstack/sushy-tools master: [DNM] - testing CI  https://review.opendev.org/c/openstack/sushy-tools/+/91283201:30
*** jroll05 is now known as jroll005:22
rpittaugood morning ironic! o/09:18
rpittauiurygregory: I had a similar issue, since py3.10 dependencies installation slightly change, you need to double-check that you have all system dev libraries correctly installed and in the library path09:23
rpittauwhen someone is available please check https://review.opendev.org/c/openstack/ironic/+/912785 to unblock CI09:35
opendevreviewMohammed Boukhalfa proposed openstack/sushy-tools master: Add fake_ipa inspection, lookup and heartbeater to fake system  https://review.opendev.org/c/openstack/sushy-tools/+/87536610:08
dtantsurrpittau: done10:11
rpittaudtantsur: thanks!10:11
iurygregorymorning Ironic11:14
iurygregoryrpittau, ack I will double check11:14
iurygregorymetalsmith is still blocking our CI right? just saw it failed in https://review.opendev.org/c/openstack/ironic/+/91233611:15
opendevreviewOpenStack Release Bot proposed openstack/bifrost master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/bifrost/+/91291411:16
opendevreviewOpenStack Release Bot proposed openstack/ironic-inspector master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-inspector/+/91291611:17
opendevreviewOpenStack Release Bot proposed openstack/ironic-prometheus-exporter master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-prometheus-exporter/+/91291911:17
opendevreviewOpenStack Release Bot proposed openstack/ironic-python-agent master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-python-agent/+/91292111:18
opendevreviewOpenStack Release Bot proposed openstack/ironic-ui master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-ui/+/91292311:18
opendevreviewOpenStack Release Bot proposed openstack/ironic master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic/+/91292511:19
opendevreviewOpenStack Release Bot proposed openstack/metalsmith master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/metalsmith/+/91292711:19
opendevreviewOpenStack Release Bot proposed openstack/networking-baremetal master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/networking-baremetal/+/91292911:19
opendevreviewOpenStack Release Bot proposed openstack/networking-generic-switch stable/victoria: Update .gitreview for stable/victoria  https://review.opendev.org/c/openstack/networking-generic-switch/+/91293011:19
opendevreviewOpenStack Release Bot proposed openstack/networking-generic-switch stable/victoria: Update TOX_CONSTRAINTS_FILE for stable/victoria  https://review.opendev.org/c/openstack/networking-generic-switch/+/91293111:19
opendevreviewOpenStack Release Bot proposed openstack/networking-generic-switch master: Update master for stable/victoria  https://review.opendev.org/c/openstack/networking-generic-switch/+/91293211:19
opendevreviewOpenStack Release Bot proposed openstack/python-ironic-inspector-client master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/python-ironic-inspector-client/+/91293411:20
opendevreviewOpenStack Release Bot proposed openstack/python-ironicclient stable/victoria: Update .gitreview for stable/victoria  https://review.opendev.org/c/openstack/python-ironicclient/+/91293511:20
dtantsurNGS changes look very wrong11:20
opendevreviewOpenStack Release Bot proposed openstack/python-ironicclient stable/victoria: Update TOX_CONSTRAINTS_FILE for stable/victoria  https://review.opendev.org/c/openstack/python-ironicclient/+/91293611:20
opendevreviewOpenStack Release Bot proposed openstack/python-ironicclient master: Update master for stable/victoria  https://review.opendev.org/c/openstack/python-ironicclient/+/91293711:20
opendevreviewOpenStack Release Bot proposed openstack/sushy master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/sushy/+/91293911:20
opendevreviewOpenStack Release Bot proposed openstack/bifrost master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/bifrost/+/91294111:21
opendevreviewOpenStack Release Bot proposed openstack/ironic-inspector master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-inspector/+/91294311:21
opendevreviewOpenStack Release Bot proposed openstack/ironic-prometheus-exporter master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-prometheus-exporter/+/91294611:21
opendevreviewOpenStack Release Bot proposed openstack/ironic-python-agent-builder master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/91294811:22
opendevreviewOpenStack Release Bot proposed openstack/ironic-python-agent master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-python-agent/+/91295011:22
opendevreviewOpenStack Release Bot proposed openstack/ironic-ui master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-ui/+/91295211:22
opendevreviewMerged openstack/ironic master: Temporary move metalsmith legacy CI job to non-voting  https://review.opendev.org/c/openstack/ironic/+/91278511:23
opendevreviewOpenStack Release Bot proposed openstack/ironic master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic/+/91295411:23
opendevreviewOpenStack Release Bot proposed openstack/metalsmith master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/metalsmith/+/91295611:23
opendevreviewOpenStack Release Bot proposed openstack/networking-baremetal master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/networking-baremetal/+/91295811:24
opendevreviewOpenStack Release Bot proposed openstack/networking-generic-switch stable/wallaby: Update .gitreview for stable/wallaby  https://review.opendev.org/c/openstack/networking-generic-switch/+/91295911:24
opendevreviewOpenStack Release Bot proposed openstack/networking-generic-switch stable/wallaby: Update TOX_CONSTRAINTS_FILE for stable/wallaby  https://review.opendev.org/c/openstack/networking-generic-switch/+/91296011:24
opendevreviewOpenStack Release Bot proposed openstack/networking-generic-switch master: Update master for stable/wallaby  https://review.opendev.org/c/openstack/networking-generic-switch/+/91296111:24
opendevreviewOpenStack Release Bot proposed openstack/python-ironic-inspector-client master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/python-ironic-inspector-client/+/91296311:24
opendevreviewOpenStack Release Bot proposed openstack/python-ironicclient stable/wallaby: Update .gitreview for stable/wallaby  https://review.opendev.org/c/openstack/python-ironicclient/+/91296411:24
opendevreviewOpenStack Release Bot proposed openstack/python-ironicclient stable/wallaby: Update TOX_CONSTRAINTS_FILE for stable/wallaby  https://review.opendev.org/c/openstack/python-ironicclient/+/91296511:24
opendevreviewOpenStack Release Bot proposed openstack/python-ironicclient master: Update master for stable/wallaby  https://review.opendev.org/c/openstack/python-ironicclient/+/91296611:24
opendevreviewOpenStack Release Bot proposed openstack/sushy master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/sushy/+/91296811:25
opendevreviewOpenStack Release Bot proposed openstack/bifrost master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/bifrost/+/91297011:25
opendevreviewOpenStack Release Bot proposed openstack/ironic-inspector master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-inspector/+/91297211:25
opendevreviewOpenStack Release Bot proposed openstack/ironic-prometheus-exporter master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-prometheus-exporter/+/91297611:26
opendevreviewOpenStack Release Bot proposed openstack/ironic-python-agent-builder master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/91297811:26
opendevreviewOpenStack Release Bot proposed openstack/ironic-python-agent master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-python-agent/+/91298011:27
opendevreviewOpenStack Release Bot proposed openstack/ironic-ui master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-ui/+/91298211:27
opendevreviewOpenStack Release Bot proposed openstack/ironic master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic/+/91298411:28
opendevreviewOpenStack Release Bot proposed openstack/metalsmith master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/metalsmith/+/91298611:28
opendevreviewOpenStack Release Bot proposed openstack/networking-baremetal master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/networking-baremetal/+/91298811:28
opendevreviewOpenStack Release Bot proposed openstack/python-ironic-inspector-client master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/python-ironic-inspector-client/+/91299011:28
opendevreviewOpenStack Release Bot proposed openstack/sushy master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/sushy/+/91299211:29
* dtantsur has approved all valid reno changes11:42
dtantsurPlease don't approve the invalid ones (resurrecting stable/wallaby), the release team has been notified11:42
opendevreviewMerged openstack/ironic-python-agent-builder master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/91294811:45
iurygregoryjesus11:46
iurygregoryI went to grab another coffee and this is what I see on irc11:46
opendevreviewMerged openstack/networking-baremetal master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/networking-baremetal/+/91292911:47
opendevreviewMerged openstack/python-ironic-inspector-client master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/python-ironic-inspector-client/+/91293411:48
opendevreviewMerged openstack/sushy master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/sushy/+/91293911:50
iurygregoryrpittau, fyi you probably want to check https://review.opendev.org/c/openstack/ironic/+/912336 11:51
opendevreviewMerged openstack/ironic-inspector master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-inspector/+/91291611:51
opendevreviewMerged openstack/bifrost master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/bifrost/+/91291411:53
opendevreviewMerged openstack/ironic-ui master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-ui/+/91292311:53
opendevreviewMerged openstack/ironic-ui master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-ui/+/91298211:56
opendevreviewMerged openstack/ironic-prometheus-exporter master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-prometheus-exporter/+/91291911:56
opendevreviewMerged openstack/ironic-prometheus-exporter master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-prometheus-exporter/+/91297611:56
opendevreviewMerged openstack/ironic-prometheus-exporter master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-prometheus-exporter/+/91294611:56
opendevreviewMerged openstack/bifrost master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/bifrost/+/91297011:57
opendevreviewMerged openstack/networking-baremetal master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/networking-baremetal/+/91295811:57
opendevreviewMerged openstack/metalsmith master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/metalsmith/+/91292711:57
opendevreviewMerged openstack/ironic-python-agent master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-python-agent/+/91298011:57
opendevreviewMerged openstack/ironic-inspector master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-inspector/+/91294311:57
opendevreviewMerged openstack/ironic-python-agent-builder master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/91297811:57
opendevreviewMerged openstack/python-ironic-inspector-client master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/python-ironic-inspector-client/+/91296311:58
opendevreviewMerged openstack/ironic-python-agent master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-python-agent/+/91295012:00
opendevreviewMerged openstack/metalsmith master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/metalsmith/+/91298612:02
opendevreviewMerged openstack/networking-baremetal master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/networking-baremetal/+/91298812:02
opendevreviewMerged openstack/bifrost master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/bifrost/+/91294112:03
opendevreviewMerged openstack/ironic-python-agent master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic-python-agent/+/91292112:05
opendevreviewMerged openstack/python-ironic-inspector-client master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/python-ironic-inspector-client/+/91299012:09
opendevreviewMerged openstack/ironic master: reno: Update master for unmaintained/victoria  https://review.opendev.org/c/openstack/ironic/+/91292512:09
opendevreviewMerged openstack/ironic master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic/+/91295412:09
opendevreviewMerged openstack/sushy master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/sushy/+/91296812:10
opendevreviewMerged openstack/sushy master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/sushy/+/91299212:10
opendevreviewMerged openstack/ironic-inspector master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic-inspector/+/91297212:13
opendevreviewMerged openstack/metalsmith master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/metalsmith/+/91295612:17
opendevreviewMerged openstack/ironic master: reno: Update master for unmaintained/xena  https://review.opendev.org/c/openstack/ironic/+/91298412:17
opendevreviewMerged openstack/ironic-ui master: reno: Update master for unmaintained/wallaby  https://review.opendev.org/c/openstack/ironic-ui/+/91295212:20
*** dking is now known as Guest274912:49
*** Guest2749 is now known as dking12:55
dkingI think that I need to ask some questions about the ironic-python-agent unit testing. It seems that calling `dispatch_to_managers` hits utils.execute, which throws an error. It also seems that no part of that is generally mocked. Does anybody know the best practice on having a method call dispatch_to_managers for the unit testing?12:58
Nisha_Agarwalrpittau, i have replied on the patch. Please have a look. 13:18
rpittauNisha_Agarwal: I checked there and I can confirm that working pyasn1-lextudio versions were removed from pypi, so that looks good, thanks13:18
Nisha_Agarwalrpittau, thnaks13:19
Nisha_Agarwalrpittau, TheJulia in this context the pinning done in driver-requirements.txt in stable branches can be removed13:20
Nisha_AgarwalNow proliantutils version 2.16.1 is already released and the installation doesnt fail13:20
rpittauNisha_Agarwal: we usually don't touch requirements from stable branches, need to see if we can make an exception here considering the reason behind that13:22
Nisha_Agarwalit is already done because of this issue...thats why just to revert back the change13:23
dtantsurdking: dispatch_to_managers does not directly execute() anything, but the actual call behind it might13:40
rpittauNisha_Agarwal: I'm going to bump proliantutils version in master, then we can discuss about the stable branches13:40
opendevreviewRiccardo Pittau proposed openstack/ironic master: Move back to plain pyasn1  https://review.opendev.org/c/openstack/ironic/+/91034213:41
rpittaupyasn1-lextudio does not exist anymore so moving back to pyasn1 now ^ :/13:42
dtantsurwow13:42
Nisha_Agarwalrpittau, ok13:42
rpittauyeah, quite bad13:42
dkingdtantsur: Yeah. I suppose that I should dig into it deeper. Do you, or does anybody know if there's something better I should be doing? Essentially, it looks like the unit tests assume that nothing called in most of the code is going to be calling dispatch_to_managers, which is unfortunate if something calls that is called by a lot of things.13:46
dkingIt feels to me like something should be mocked for all or most of the tests.13:47
dtantsurdking: while we do tend to mock dispatch_to_managers most of the time, it depends on what you're trying to do?13:47
dtantsurIf you're testing your hardware manager addition, why not test it directly? If it needs to call dispatch_to_managers, you may mock it or most the manager call being invoked or even let it be sometimes (although most real calls will execute())13:48
dkingdtantsur: I put in a feature request: https://bugs.launchpad.net/ironic-python-agent/+bug/2057668 What I am wanting to do is to make a hook that allows users with custom hardware managers to be able to programmatically add block devices to the skip list to not be cleaned.13:51
dkingdtantsur: For my own code, it is mocked. However, I'm replacing (wrapping) `get_skip_list_from_node` which gets called by a lot of other methods, which means that anything which currently calls `get_skip_list_from_node` will end up calling dispatch_to_managers, and so all of those places would need to mock something.13:53
dtantsuryeah, probably dispatch_to_managers is the thing to mock13:54
dkingThe problem, though, is that means a lot of adding on patches to test methods, which I suspect will start to get ugly.13:55
dkingIMHO, dispatch_to_managers should probably mocked a bit more intelligently, but I might need help from somebody more familiar with the existing unit tests.13:56
dkingIf it were me on my own code, I would probably write a full fake class to handle it, including perhaps some ways to add in test methods to fake calling, and then use that as the mock globally.13:58
dtantsurThat's not a bad idea, but you probably don't want to test this responsibility :)13:58
dkingCorrect. It's a hard call, and probably something a little beyond what I would want to decide by myself, especially on my first edit directly to this particular file.14:00
TheJuliagood morning14:12
dkingTheJulia: o/ Good morning14:14
samcat116Do folks here generally only deploy qcows when deploying with ironic? Wondering what the fastest/most efficient format for deploying here is14:38
TheJuliasamcat116: generally qcows, but it sort of depends on the exact use case14:40
TheJuliasamcat116: fastest is a ramdisk style deploy, but your not actually writing to a disk at that point.14:40
TheJuliaqcows are generally fairly quick as long as they have been compressed and whitespace removed14:40
samcat116yeah I have some folks trying to deploy 60G raws... which is causing issues14:41
TheJuliaouch, yeah14:41
TheJuliaqcow2 will somewhat inherently handle that if you make the conversion14:41
TheJulianow, if they have 60G of data in those raw images, eek14:44
TheJuliaThere are still paths there, but that is a ton to move over a wire14:44
samcat116The ironic stack that im building now is replacing one that still uses ISCSI deploy, so I am hoping that moving to direct deploy means the overhead of unpacking the qcow moves from the conductor to the actual baremetal host14:44
Sandzwerg[m]We have vmdks but mostly because the VMs run vmware. But we also have nodes with much ram (usually >1TB), so the time to write the image itself does not really matter when the boot alone is 5-10mins14:45
samcat116Only thing that sucks is that Qcows aren't really optimal for ceph backed nova, so we end up with the same image as a raw and qcow in glance14:46
TheJuliasamcat116: You can use raw, and depending on your config it can still stream through the conductor. tl;dr the conductor will download the file, and then the http service for the conductor *can* have compression enabled. It wouldn't be a cure-all, but it could address/speed the overall transfer and write out to the disk. The challenge with iscsi is, basically, zeros would still get written across the wire14:50
dkingWho on the team would be most familiar with the ironic-python-agent unit tests?15:18
dkingOh, TheJulia, it looks like you have the most lines in. Would I be able to get your thoughts on it, to know if I'm going in the right direction?15:21
TheJuliaHeh, rutro15:22
TheJuliawhat is going on?15:22
dkingTheJulia: Nothing really bad, but I'm wanting to make some changes and I realized that things are getting dirty in the unit testing, so I want to get some thoughts on the best way to proceed. Specifically, with regard to dispatch_to_manages.15:23
dkingIt seems like the way that the unit testing is handled, it seems like there may be an expectation that dispatch_to_managers is called fairly high up and rarely. I have a change that I want to make which calls dispatch_to_managers, and in the places where I use the code directly, it's fine as I can easily mock_dispatch. However, when I add my method to things which get called a lot deeper down (get_skip_list_from_node), then ver15:26
dkingy many (about 13?) tests fail because somewhere in the process dispatch_to_managers calls utils.execute.15:26
TheJuliahmm15:28
dkingTheJulia: So, I'm either 1) doing something very wrong and need to rethink what I'm doing, 2) will need to mock dispatch_to_managers in a lot of tests, or 3) perhaps do something more clever with dispatch_to_managers which mocks it more or less globally in the unit test, or 4) there's something better I'm missing.15:28
TheJuliaI think I've actually hit this before as well15:28
TheJuliaI think in the cases I hit it, my mocks were wrong to begin with and depending on what is being done, since you are explicitly triggering a dispatch_to_managers it sounds like you'll need to mock out everything that is not what you want to execute (and maybe some further calls)....15:29
TheJuliaSince it is trying to to the thing across the board15:29
TheJuliawithout having code in front of me it is a little hard to picture/visualize, but I hope what I just typed makes sense?!?15:30
JayFThat is a good way to explain it, I think. You gotta mock out *all the things* dispatch_to_managers would call15:32
dkingThat may be the case, but it looks like it might mean adding a mock to 13 different tests, none of which call the new method directly. That's fine and probably the quick and dirty way to do it. However, the next time somebody wants to add code that calls dispatch_to_managers, then that new code will have to be mocked in a bunch of places also. That is, of course, if anybody ever really modifies that code or adds in a new hook.15:33
TheJuliaYeah, that is kind of the side effect since dispatch_to_managers tries to call everything loaded15:35
TheJuliaI suspect we're fast approaching the need to look at code though15:35
TheJulia(and my mind is on policy-ish words at the moment)15:35
dkingIn my personal unit testing, I would likely do something like add a helper class to the test which allows for adding and removing dispatched methods on the fly and then mock the whole method globally to use something from that class. We can't really know what potential custom hardware managers will do, and we don't really assume that there would even be any. This would allow the initial assumption to be that there aren't any cu15:35
dkingstom hardware managers, and then allow specific tests for what overrides they end up using.15:35
JayFThat'15:36
JayFHmm.15:36
JayFYou'd almost need to replace dispatch_to_managers itself with a mocked version that fed it a list of HWMs to test15:36
TheJuliayeah, you would need to15:37
TheJulia.. and truth be told, I think at least a couple tests in IPA *do* just replace dispatch_to_managers15:37
TheJuliafor the purpose of mocking15:37
JayFhttps://opendev.org/openstack/ironic-python-agent/src/branch/master/ironic_python_agent/hardware.py#L325915:37
TheJuliaIt has been a while since I've looked15:37
JayFnope, it's even easier15:37
JayFreplace get_managers()15:37
dkingYes, but not really needing a list of HWMs, just add or remove methods as you need to test them. Since it's mocked, it wouldn't really need a whole HWM behind it.15:37
TheJuliabahahahah, yeah, get_managers15:37
JayFdking: you'll need to mock out get_managers with a version of it that only returns the HWM under test15:38
JayFdking: I'm not 100% sure how to do that, but I suspect you can load an extension from stevedore by name 15:38
dkingIs get_managers what ends up calling utils.execute() under the hood?15:38
JayFSo you gotta step back a little and look at a bigger picture15:39
JayFif you draw out the map of what's happening; dispatch to managers: 1) gets a list of all possible managers 2) tries to execute [dispatched method] on those in prio order15:39
JayFthe execute is coming from $thing_you_dont_care_about being dispatched to15:40
JayFif you hijack step #1 though, to only return *the manager under test*15:40
JayFyou're only going to dispatch to the manager you're testing, and if *that* calls an execute you'll have to mock it out15:40
JayFbut basically we're saying "short circuit it higher up the stack"15:40
dkingBTW, I'm not looking at testing HWMs. I'm just currently interested in things which call dispatch_to_managers under the hood, presumably just getting GenericHardwareManager. Currently, I don't think there's any testing going on for custom HWMs.15:40
JayFI don't think that's a correct statement15:41
JayFwe test dispatch to managers dispatches across all of them, and each custom hwm has items under test separately15:41
dkingNothing added at the moment calls an execute. It seems to only be something that happens from the call to dispatch_to_managers directly. And I'm not worried about testing any specific HWM. So there's no manger under test (except the GenericHardwareManger).15:43
dkingI may not be explaining myself fully. Is that making sense? The tests for things I'm adding directly work as expected and I can mock and test the dispatch fine. For the most part, the dispatch just returns an empty list from the GenericHardwareManager that doesn't really get into the code. However, there is a wrapper function which makes that call and that replaces an existing method (really, just returning the same thing that 15:48
dkingthe original method returned), but since that gets called in a lot of places, all of those places end up having to call dispatch_to_managers.15:48
dkingI have some code, but I'm not entirely sure where I could upload it. The tests fail, of course, once the wrapper is used.15:49
JayFI think to get further you'd have to get that code somewhere, with CI results we could examine15:51
iurygregorymetal3-integration failed .-. Error response from daemon: received unexpected HTTP status: 502 Bad Gateway15:51
iurygregorynice start for Thursday15:51
rpittauiurygregory: which patch ?15:52
iurygregoryhttps://review.opendev.org/c/openstack/ironic/+/91233615:52
dkingJayF: I could probably fork the repo into my personal Github. Give me just a bit.15:52
iurygregoryit was green in the run where metalsmith failed, I'm following the recheck status https://zuul.opendev.org/t/openstack/build/dc4e801fcbf445cc8c12fdb7cdf3215a15:52
JayFdking: if it's an IPA change, just push it up to gerrit?15:53
JayFdking: that way CI will run. If it's a custom HWM, it's not super useful to see the code without the unit test failure output alongside, so without CI it'll be tough15:53
rpittauiurygregory: it's an error from quay.io when trying to get the metal3-io ironic-client image, I would check if it works locally and just recheck the test15:54
iurygregoryyeah15:54
dtantsurmmm, the dnsmasq patch has been backported all the way to Zed, right TheJulia?15:56
TheJuliadtantsur: huh, what, 15:56
dtantsur sudo dpkg -r dnsmasq-base15:57
JayFthe force-install of the older version has been merged quite a ways back15:57
dkingJayF: Okay. It feels a bit dirty to push a known-failing commit, but that's probably most efficient.15:57
TheJuliayeah, they put the breaking change all the way down through focal by just updating the package version15:57
JayFdking: it's not a big deal, if you need to revise it multiple times, you can go into zuul.d/project.yaml and disable all the tests except unit tests (just make sure you comment them outta both check and gate)15:57
TheJuliaso if we want to run unit tests, we had to put in place changes15:58
dtantsurI wonder why the gophercloud CI only started failing now..15:58
TheJuliaon stable branches? I think we disabled it15:58
TheJuliaoh, gophercloud!15:58
TheJuliathey mostly started landing the end of last week/early this week15:59
TheJuliaonly now sort of blocked due to branch renames15:59
JayFit's in everything but xena, I think?15:59
TheJuliaxena/wallaby15:59
JayFit landed in wallaby15:59
TheJuliaoh, yeha16:00
TheJuliawell, I ahve a list of patches16:00
JayFthat's part of why they were WTF'ing in release, it landed in violation of stable policy before the rest16:00
dtantsurwell, everything up to yoga is gone now, so it's not my concern :)16:00
JayFwhich usually doesn't matter for us but ...yeah16:00
TheJuliayeah, there is a high horse there, and a topic one doesn't want to get on a call and discuss with me right now :)16:00
* TheJulia gets off the soapbox and goes back to writing an example commit message for a policy16:00
JayFI don't care where the horse is, or who is riding it, I just try to go with the current because it's easier than swimming up or cross stream ;)16:01
TheJulia++16:01
opendevreviewMerged openstack/ironic master: Move back to plain pyasn1  https://review.opendev.org/c/openstack/ironic/+/91034216:09
JayF I'm looking at Ironic master now, seeing if we're good to cut a release16:10
JayFYour "no wait, X needs to land" comments would be appropriate now ;)16:11
iurygregoryhttps://review.opendev.org/c/openstack/ironic/+/912336 needs to land =)16:11
iurygregoryI can take care of the release if you want JayF =)16:11
dtantsurand https://review.opendev.org/c/openstack/ironic/+/91251616:11
JayFI was expecting that to be on the list lol16:11
iurygregorywe mentioned on monday I think16:12
JayFiurygregory: you're welcome to, but we need to cut it today16:12
JayFer16:12
JayFthis week16:12
JayFso today or tomorrow16:12
iurygregoryyeah, CI was miss behaving a bit I would say16:12
iurygregorywe only landed the nv for metalsmith today16:12
JayFmy concern is that it happens16:13
JayFif you want to babysit patches and comb thru the open reviews for things that should land or can land please do :)16:13
JayFI'll go audit release notes instead, which needs doing too16:13
iurygregory++16:13
JayFugh16:14
JayFcodespell isn't in :( 16:14
JayFhttps://review.opendev.org/c/openstack/ironic/+/906807 someone wanna approve this and the "Adding CI target for..." patch?16:15
rpittauapproved, I thought I approved all of them but that was updated16:15
JayFyeah it's all good, I didn't notice until I wanted to spell check release notes lol16:16
rpittau:D16:16
* JayF adds a line item for PTG: get consensus on getting codepsell voting16:16
rpittauoh yeah, wanted to add that too16:16
JayFadamcarthur5: fyi https://etherpad.opendev.org/p/ironic-ptg-april-2024 I added codespell voting ci, line 14916:17
JayFAlso, just introducing Dave Welsch from Expert Support to the community (he's Reverbverbverb ) -- he's working on a report with some actionable bugs to help improve the organization of Ironic docs.16:20
JayFPlease treat him kindly by reporting all docs bugs to him personally /s (JUST KIDDING) :D 16:20
rpittauJayF: sounds good to me :D16:21
JayFas I've said before, the wheels grind but they grind slow, I said we'd try to get this going at last ptg16:21
JayFand right now we're targetting the report being done for being presented at the ptg16:21
rpittauawesome16:22
TheJuliahmm, scheduling? https://ce240375b9fb134f8b36-edfb11d7c283f3d767689d2badcfe4a2.ssl.cf5.rackcdn.com/912516/5/check/ironic-tempest-uefi-redfish-vmedia/edca7e7/testr_results.html16:32
iurygregoryTheJulia, I think I saw the same error on janders patch on sushy-tools  https://review.opendev.org/c/openstack/sushy-tools/+/909487  https://693ae3b551562860f1e3-7b446e9d0ed6b9dfc63ac80c2f10e41b.ssl.cf2.rackcdn.com/909487/7/check/sushy-tools-tempest-uefi-redfish-vmedia/c6febf7/testr_results.html16:53
iurygregorybut after recheck the job went green16:54
TheJuliaI guess we will see since riccardo already rechecked dmitry's patch16:55
rpittauI rechecked mine too https://review.opendev.org/c/openstack/ironic/+/91251616:57
rpittausee ya tomorrow! o/16:57
TheJuliasame patch :)16:58
opendevreviewMerged openstack/ironic master: [codespell] Fixing Spelling Mistakes  https://review.opendev.org/c/openstack/ironic/+/90680617:13
opendevreviewMerged openstack/ironic master: [codespell] Adding Tox Target for Codespell  https://review.opendev.org/c/openstack/ironic/+/90680717:13
JayFwell, something-CI is happy at least :D 17:14
TheJuliaDid we give it cookies while convincing it to come to the dark side?17:14
opendevreviewDaniel King proposed openstack/ironic-python-agent master: Add get_additional_skip_list and get_skip_list  https://review.opendev.org/c/openstack/ironic-python-agent/+/91320217:18
opendevreviewDaniel King proposed openstack/ironic-python-agent master: Cause failures by adding get_skip_list  https://review.opendev.org/c/openstack/ironic-python-agent/+/91320317:18
dkingJayF: That last one is the one that is giving me the errors. It should show the problem in the unit tests.17:21
JayFack; it's not useful to look at until the unit tests failed upstream17:22
JayFso if you see zuul has commented later, ping again and I'll look?17:22
JayFI'm not so good at remembering :D 17:23
dkingJayF: Sounds good! I imagine that will be a while, so I'm going to step away for a bit.17:23
opendevreviewMerged openstack/ironic master: [codespell] Adding CI target for Tox Codespell  https://review.opendev.org/c/openstack/ironic/+/90680817:38
Reverbverbverbjayf: This is why I never let anyone stand behind me when a bus is approaching. :D17:40
ReverbverbverbSeriously though, if anyone has high-level suggestions for Ironic doc improvement or wants to be involved in the analysis discussion, I'd love to hear from you17:41
* TheJulia feels like she should go start up the diesel engine of the bus17:44
iurygregoryrpittau, dtantsur or any other core https://review.opendev.org/c/openstack/ironic/+/912336 is green \o/17:49
dkingJayF, TheJulia: Here's the failure: https://zuul.opendev.org/t/openstack/build/fb416b12698b4106b74aece2bafef76f18:07
dtantsuriurygregory: approved18:26
JayFdking: >       File "/home/zuul/src/opendev.org/openstack/ironic-python-agent/ironic_python_agent/hardware_managers/cna.py", line 78, in evaluate_hardware_support18:33
JayFso you'll have to mock out the CNA hwm or prevent it from loading by mocking out get_managers as mentioned earlier18:33
dkingJayF: Should that be mocked out for the whole test_hardware.py? And if so, my bigger question is, shouldn't we then think about just mocking dispatch_to_managers and/or get_managers?19:09
dkingI mean, for the whole file19:10
JayFI would suggest finding a version of that change that gets your test to pass with his little modification of the other code AS possible, and if it looks like at that point we could do something to improve the tests overall, that would be a separate change imo19:11
JayF**with as little modification of other code as possible19:11
dkingIn this case, "as little as possible" is probably going to be the global mocking. There's 7 failures here, two more in the next change, and then probably a few more for the third. Meaning that a single mock might be better. However, if it's better to make it dirty before cleaning it, then I can go through with that.19:14
iurygregorydtantsur, ty!19:14
JayFdking: more of a general practice of "don't mix a refactor and a feature" :) You could do them in opposite order, but that gives you a longer runway to the piece you care about19:17
dkingFair. I usually do the refactor first, when it's something that's generally good, but I get the point.19:18
dkingI'm thinking that I will just mock get_managers, once I check over the method.19:18
JayFI think that's the best route tbh19:19
opendevreviewVerification of a change to openstack/ironic master failed: Allow usage of virtual media via System  https://review.opendev.org/c/openstack/ironic/+/91233619:32
iurygregoryTheJulia, same error in the vmedia job test_baremetal_server_ops_partition_image19:36
opendevreviewVerification of a change to openstack/ironic master failed: Allow usage of virtual media via System  https://review.opendev.org/c/openstack/ironic/+/91233619:53
opendevreviewJay Faulkner proposed openstack/ironic master: Fix new codespell issues; tweak config  https://review.opendev.org/c/openstack/ironic/+/91326519:58
opendevreviewJay Faulkner proposed openstack/ironic master: Codespell voting in CI  https://review.opendev.org/c/openstack/ironic/+/91326619:58
JayF913265 is an easy review, 913266 might be more controversial :D 19:59
opendevreviewJay Faulkner proposed openstack/ironic master: Release notes prelude for 2024.1/24.1  https://review.opendev.org/c/openstack/ironic/+/91267920:08
JayFI'm happy with release notes once the prelude lands20:08
opendevreviewJay Faulkner proposed openstack/ironic master: Release notes prelude for 2024.1/24.1  https://review.opendev.org/c/openstack/ironic/+/91267920:12
TheJuliaiurygregory: so the issue is the partition image20:50
TheJuliahttps://www.irccloud.com/pastebin/rlRYaGbL/20:54
iurygregoryyeah20:55
iurygregoryouch =O20:56
TheJuliaso, my guess is the instance image is tinycore based20:56
iurygregoryyou mean the instance where devstack is running?20:57
TheJuliahttps://dd930d07009d7df5be20-ea76e3e710a8219c6c723d407750283e.ssl.cf5.rackcdn.com/912336/2/gate/ironic-tempest-uefi-redfish-vmedia/2dfb615/controller/logs/ironic-bm-logs/node-0_console_2024-03-14-19%3A01%3A26_log.txt20:57
iurygregorybecause we always used tinycore in some jobs no? 20:57
TheJuliaThe image it is trying to write20:57
TheJuliaoh20:58
TheJulia0df539ba-1442-42f1-9f71-84ef23af3c59 is cirros 6.120:58
TheJuliathat error is expected20:58
iurygregoryin cirros 6.1?21:00
iurygregorydon't we have a var that sets the min cirros version we will use?21:00
TheJulia... why is this suddenly fatal21:01
iurygregoryyup, before everything was working without problems21:02
iurygregoryoh ovn-uefi-ipmi-pxe job failed https://zuul.opendev.org/t/openstack/build/76202771eb2447a9830d99109949251b21:02
iurygregoryI only saw now21:02
JayFis this one of the jobs whose name got changed? and do we ever match on job name for that stuff?21:03
iurygregorytest_baremetal_server_ops_partition_image \o/ yay21:03
JayFre: ovn-uefi-ipmi-pxe21:03
iurygregoryJayF, not 100% sure atm (need more coffee to think about the issues lol)21:04
iurygregoryfirst failure for ironic-tempest-uefi-redfish-vmedia was on Mar 1121:07
TheJuliaso I think we should just force the job on to "wholedisk" only21:16
iurygregory+1 to that21:16
iurygregory:D21:16
TheJuliaThe source image appears to be unchanged21:16
TheJuliasomething about the image build appears to be failing, and unfortuantely that is in a legitimate way21:16
TheJuliaI wonder if it is disk latency or soemthing with that build process, I think i have a general idea of what is being done, I just don't knwo how it ever knows when it is "done"21:17
iurygregoryI was wondering if can be related to the Cloud provider...21:19
TheJulialatency could do it21:19
TheJuliabasically it boots a vm to extract the contents21:19
TheJuliaif you just want to post a change to lock CI to the one test, I'll +2+A it21:21
iurygregoryshould we do in the tempest plugin and just add a skip on it ?21:26
TheJuliaset the test regex so it is just the wholedisk job21:26
iurygregoryoh right21:26
iurygregoryshould I also change for ironic-tempest-ovn-uefi-ipmi-pxe ?21:30
TheJuliaonly if you've seen it fail21:30
iurygregoryyeah I saw the same failure on it21:34
TheJuliaokay21:35
iurygregoryhttps://zuul.opendev.org/t/openstack/build/76202771eb2447a9830d99109949251b21:35
TheJuliafiled https://bugs.launchpad.net/ironic/+bug/205797221:37
opendevreviewIury Gregory Melo Ferreira proposed openstack/ironic master: Tempest test with only wholedisk for some jobs  https://review.opendev.org/c/openstack/ironic/+/91327021:38
iurygregorylet me add in the commit for reference21:38
opendevreviewMerged openstack/ironic master: Implement generic redfish vmedia attach detach  https://review.opendev.org/c/openstack/ironic/+/91251621:39
opendevreviewIury Gregory Melo Ferreira proposed openstack/ironic master: Tempest test with only wholedisk for some jobs  https://review.opendev.org/c/openstack/ironic/+/91327021:40
iurygregoryTheJulia, sorry D: I added Related-Bug in the commit message21:41
TheJuliaI think I'm going to call it a day, I'm feeling super tired21:57
iurygregorysame here22:02
opendevreviewMerged openstack/ironic master: Allow usage of virtual media via System  https://review.opendev.org/c/openstack/ironic/+/91233622:14

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