Wednesday, 2018-10-31

*** chhagarw has joined #openstack-powervm04:42
*** chhagarw has quit IRC04:56
*** chhagarw has joined #openstack-powervm05:30
*** chhagarw has quit IRC11:19
openstackgerritMatthew Edmonds proposed openstack/nova-powervm master: Use tempfile for powervm config drive  https://review.openstack.org/61334214:11
openstackgerritMatthew Edmonds proposed openstack/nova-powervm master: Use tempfile for powervm config drive  https://review.openstack.org/61334214:21
openstackgerritMatthew Edmonds proposed openstack/nova-powervm master: Use tempfile for powervm config drive  https://review.openstack.org/61334214:25
edmondswefried mdrabe I think that's ready now ^14:26
efriedack14:26
efriededmondsw: Could you have left the unit tests alone?14:28
efriedI don't want to go crazy anal about this, but we're now missing coverage for the new method :(14:29
edmondswefried I could have left test_driver alone, but this is definitely an improvement there14:32
efriededmondsw: Improvement in factoring out the name gen method, yes. But a regression in test coverage.14:32
edmondswI thought about adding a UT for the new method, but I decided it wasn't really necessary... I'll look at it again14:33
edmondswI don't think there's any regression in test coverage... but looking14:33
edmondswefried you don't think the tests in test_media are sufficient for the new method?14:34
efriedPreviously the test boundary was at pypowervm; we were mocking the sanitize method. Now it's at the get_cfg_drv_name, and we have code (that method itself) that's not covered.14:35
efriedRephrase: now we have new code in nova-powervm that's not covered.14:36
edmondswthe new code is covered in test_crt_cfg_drv_vopt14:38
edmondswI can refactor so that its in a separate method14:38
efriedWhat I would actually like is to remove the mocking entirely, but that would be outside the scope of this patch.14:39
edmondswefried what mocking are you referring to?14:41
efriedmocking the sanitize method at all14:41
efriedI know we used to have a policy of "mock anything at the boundary of nova-powervm"14:42
efriedbut I've since been convinced that the policy should be "mock as little as possible"14:42
efriedlike I said, outside the scope of this patch.14:42
efriedWhen I revert the test_driver.py delta, the second test fails. Haven't dug in, but it seems like it shouldn't.14:43
efriedah14:44
efriedbecause you've actually changed the algorithm14:44
efriedyou're no longer using the instance name; now you're using the UUID.14:44
edmondswI think I did remove the sanitize mocking14:44
edmondswyes, I'm using the UUID14:45
efriedyou replaced it with mocking the name gen method. My point is, I would like to remove all of that.14:45
edmondswthat is a necessary part of the fix14:45
efriedbut again, unrelated, let's not get distracted14:45
edmondswsee the bug report for why we changed from name to uuid14:45
efriedright, that sounds familiar now.14:45
edmondswwill have a patch up in a minute to refactor the UT to explicitly cover the new method14:45
edmondswI do agree with mocking as little as possible _outside_ of nova-powervm14:46
openstackgerritMatthew Edmonds proposed openstack/nova-powervm master: Use tempfile for powervm config drive  https://review.openstack.org/61334214:51
edmondswefried ^14:51
efriededmondsw: +2. We need to add tests (in a separate patch) that walk the CONF.powervm.remove_vopt_media_on_boot condition.14:54
edmondswefried test_spawn_with_cfg does that14:55
edmondswwell, and it tests the True case and test_spawn_ops tests the False case14:56
efriededmondsw: Hm, then why didn't that test fail at PS3?14:57
edmondswbecause it was hardcoding 'cfg_' and '.iso' instead of using the constants14:58
edmondswI assume you're referring to the const issue14:58
edmondswoh, wait... hmmm14:58
efriedyeah14:58
efriedthe test was hardcoding, which is the right thing. But the source was referencing the consts. So we must not have been hitting that source line somehow.14:59
edmondswefried actually it did fail at PS314:59
edmondswhttp://logs.openstack.org/42/613342/3/check/openstack-tox-py27/ce95354/testr_results.html.gz14:59
edmondswthe odd thing to me is that zuul never ran on PS1... but I guess that happens sometimes15:01
edmondswmust have proposed while there was a zuul issue15:01
efriedokay, so we would have actually failed the gate on the +W'd patch set. That's good.15:03
edmondswyep15:05
efriedmdrabe: I'll wait for you to do the pvc sniff before approving.15:10
mdrabeYep I'll do that today15:11
efriedthank you sir15:17

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!