Saturday, 2018-03-31

*** salv-orlando has joined #openstack-nova00:00
*** salv-orlando has quit IRC00:05
*** esberglu has quit IRC00:14
*** gyee has quit IRC00:18
*** fragatina has quit IRC00:25
openstackgerritEric Fried proposed openstack/nova master: WIP: Return anchor providers in a_r and p_s  https://review.openstack.org/55801400:27
fried_bunnyleakypipes: tetsuro: ^00:27
*** harlowja has quit IRC00:28
openstackgerritMatt Riedemann proposed openstack/nova master: Add "bind_ports_to_host" neutron API method  https://review.openstack.org/52360400:28
openstackgerritMatt Riedemann proposed openstack/nova master: Add VIFMigrateData object for live migration  https://review.openstack.org/51542300:28
openstackgerritMatt Riedemann proposed openstack/nova master: WIP: libvirt: use dest host vif migrate details for live migration  https://review.openstack.org/55137000:28
openstackgerritMatt Riedemann proposed openstack/nova master: Add "delete_port_binding" network API method  https://review.openstack.org/55217000:28
openstackgerritMatt Riedemann proposed openstack/nova master: Add "activate_port_binding" neutron API method  https://review.openstack.org/55594700:28
openstackgerritMatt Riedemann proposed openstack/nova master: Delete port bindings in setup_networks_on_host if teardown=True  https://review.openstack.org/55633300:28
openstackgerritMatt Riedemann proposed openstack/nova master: Implement migrate_instance_start method for neutron  https://review.openstack.org/55633400:28
openstackgerritMatt Riedemann proposed openstack/nova master: WIP: compute: use port binding extended API during live migration  https://review.openstack.org/55137100:28
openstackgerritMatt Riedemann proposed openstack/nova master: WIP: Port binding based on events during live migration  https://review.openstack.org/43487000:28
openstackgerritMatt Riedemann proposed openstack/nova master: conductor: use port binding extended API in during live migrate  https://review.openstack.org/52253700:28
*** itlinux has joined #openstack-nova00:31
*** claudiub|2 has quit IRC00:32
*** _ix_ has quit IRC00:34
*** Sukhdev has quit IRC00:38
*** tetsuro has joined #openstack-nova00:39
*** andreas_s has joined #openstack-nova00:41
*** markvoelker has quit IRC00:41
tetsuro@fried_bunny: Thank you! Let me look into that on Monday.00:45
tetsuroIt's already Saturday here. I should go to see the cherry blossoms today :)00:45
*** andreas_s has quit IRC00:46
*** yamamoto has joined #openstack-nova00:46
*** fragatina has joined #openstack-nova00:49
*** yangyapeng has quit IRC00:50
*** armaan has quit IRC00:51
*** yangyapeng has joined #openstack-nova00:51
*** odyssey4me has quit IRC00:51
*** odyssey4me has joined #openstack-nova00:51
*** edmondsw has joined #openstack-nova00:51
*** yamamoto has quit IRC00:52
openstackgerritMerged openstack/nova stable/pike: compute: Cleans up allocations after failed resize  https://review.openstack.org/54858400:53
*** fragatina has quit IRC00:54
*** yangyapeng has quit IRC00:55
*** edmondsw has quit IRC00:56
*** tetsuro has quit IRC00:58
Spaz-HomeCherry blossumes starting to bloom in Korea01:07
Spaz-HomeI wish I could head into the mountains01:07
*** Sukhdev has joined #openstack-nova01:14
*** owalsh_ has joined #openstack-nova01:16
*** owalsh has quit IRC01:20
*** owalsh_ is now known as owalsh01:20
*** yangyapeng has joined #openstack-nova01:21
*** yangyapeng has quit IRC01:25
*** Sukhdev has quit IRC01:30
*** itlinux has quit IRC01:35
*** Zames has joined #openstack-nova01:39
*** andreas_s has joined #openstack-nova01:39
*** Zames has quit IRC01:43
*** yamamoto has joined #openstack-nova01:46
*** Spaz-Work has joined #openstack-nova01:51
*** Spazmotic has quit IRC01:51
*** andreas_s has quit IRC01:54
*** yangyapeng has joined #openstack-nova01:58
*** yangyapeng has quit IRC02:03
*** itlinux has joined #openstack-nova02:09
*** Zames has joined #openstack-nova02:10
*** Zames has quit IRC02:13
*** yamahata has quit IRC02:32
*** fragatin_ has joined #openstack-nova02:39
*** yamamoto has quit IRC02:40
*** arvindn05 has joined #openstack-nova02:42
*** germs has quit IRC02:42
*** markvoelker has joined #openstack-nova02:42
*** germs has joined #openstack-nova02:43
*** germs has quit IRC02:43
*** germs has joined #openstack-nova02:43
*** yamamoto has joined #openstack-nova02:51
*** fragatin_ has quit IRC02:59
*** andreas_s has joined #openstack-nova03:01
*** sree has joined #openstack-nova03:03
*** harlowja has joined #openstack-nova03:05
*** andreas_s has quit IRC03:07
*** sree has quit IRC03:08
*** markvoelker has quit IRC03:16
*** dave-mccowan has quit IRC03:24
*** zhurong has joined #openstack-nova03:24
*** yangyapeng has joined #openstack-nova03:27
*** yangyapeng has quit IRC03:28
*** yangyapeng has joined #openstack-nova03:33
*** yangyapeng has quit IRC03:34
*** harlowja has quit IRC03:40
*** germs has quit IRC04:02
*** germs has joined #openstack-nova04:03
*** germs has quit IRC04:03
*** germs has joined #openstack-nova04:03
*** AlexeyAbashkin has joined #openstack-nova04:05
*** AlexeyAbashkin has quit IRC04:10
*** markvoelker has joined #openstack-nova04:13
*** nicolasbock has quit IRC04:21
*** itlinux has quit IRC04:34
*** fragatina has joined #openstack-nova04:38
*** andreas_s has joined #openstack-nova04:41
*** andreas_s has quit IRC04:46
*** markvoelker has quit IRC04:47
*** zhurong has quit IRC04:54
*** Zames has joined #openstack-nova05:06
*** Zames has quit IRC05:09
*** Kevin_Zheng has quit IRC05:25
*** moshele has joined #openstack-nova05:34
*** andreas_s has joined #openstack-nova05:41
*** Kumar has joined #openstack-nova05:43
*** markvoelker has joined #openstack-nova05:44
Kumarhello05:44
KumarI am finding difficulty on running guru meditation report while selinux mode set as enforcing05:45
Kumarhere is the trace:05:46
Kumarnova-api: return self._proc.ppid()05:46
Kumarnova-api: File "/usr/lib64/python2.7/site-packages/psutil/_pslinux.py", line 1092, in wrapper05:46
Kumarnova-api: raise AccessDenied(self.pid, self._name)05:46
Kumarnova-api: AccessDenied: psutil.AccessDenied (pid=1)05:46
Kumarnova-api: Unable to run Guru Meditation Report!05:46
Kumarany solution?05:46
*** andreas_s has quit IRC05:46
*** yamamoto has quit IRC05:59
*** moshele has quit IRC06:17
*** markvoelker has quit IRC06:18
*** psachin` has joined #openstack-nova06:22
*** vivsoni has quit IRC06:23
*** vivsoni has joined #openstack-nova06:23
*** licanwei has quit IRC06:23
*** vivsoni_ has joined #openstack-nova06:25
*** vivsoni has quit IRC06:25
*** Kumar has quit IRC06:35
*** Kumar has joined #openstack-nova06:36
*** Kumar has quit IRC06:41
*** vivsoni_ has quit IRC06:48
openstackgerritYikun Jiang (Kero) proposed openstack/nova master: Add microversion to support extra_specs in flavor API.  https://review.openstack.org/55415906:49
*** yamamoto has joined #openstack-nova07:00
openstackgerritOpenStack Proposal Bot proposed openstack/nova master: Imported Translations from Zanata  https://review.openstack.org/54877207:01
*** yamamoto has quit IRC07:06
*** tesseract has joined #openstack-nova07:11
*** armaan has joined #openstack-nova07:11
openstackgerritYikun Jiang (Kero) proposed openstack/nova master: Add host/hostId to instance action events API  https://review.openstack.org/55714507:27
*** fragatina has quit IRC07:35
*** avolkov has joined #openstack-nova07:38
*** zhurong has joined #openstack-nova07:44
*** yamamoto has joined #openstack-nova08:02
*** yamamoto has quit IRC08:08
*** markvoelker has joined #openstack-nova08:14
*** armaan has quit IRC08:24
*** andreas_s has joined #openstack-nova08:31
*** andreas_s has quit IRC08:35
*** edmondsw has joined #openstack-nova08:38
*** zhurong has quit IRC08:44
*** markvoelker has quit IRC08:48
*** yamamoto has joined #openstack-nova09:04
*** yamamoto has quit IRC09:09
*** kukacz has quit IRC09:13
*** kukacz has joined #openstack-nova09:14
*** yangyapeng has joined #openstack-nova09:32
*** psachin` has quit IRC09:39
openstackgerritTetsuro Nakamura proposed openstack/nova master: [placement] Add test for provider summaries  https://review.openstack.org/55804409:42
openstackgerritTetsuro Nakamura proposed openstack/nova master: Add unrequested resources to provider_summaries  https://review.openstack.org/55804509:42
*** tetsuro has joined #openstack-nova09:43
*** markvoelker has joined #openstack-nova09:45
*** tetsuro has left #openstack-nova09:51
*** edmondsw has quit IRC09:52
*** yingjun has joined #openstack-nova09:59
*** yamamoto has joined #openstack-nova10:05
*** yamamoto has quit IRC10:11
*** hoonetorg has quit IRC10:14
*** markvoelker has quit IRC10:18
*** hoonetorg has joined #openstack-nova10:31
*** yangyapeng has quit IRC10:32
*** yangyapeng has joined #openstack-nova10:33
*** yingjun has quit IRC10:38
*** yassine has joined #openstack-nova10:41
*** yangyapeng has quit IRC10:41
*** andreas_s has joined #openstack-nova10:42
*** andreas_s has quit IRC10:49
*** edmondsw has joined #openstack-nova10:57
*** edmondsw has quit IRC11:01
*** yamamoto has joined #openstack-nova11:07
*** yamamoto has quit IRC11:13
*** Zames has joined #openstack-nova11:22
*** Zames has quit IRC11:22
*** yamamoto has joined #openstack-nova11:30
*** tinwood has quit IRC11:35
*** tinwood has joined #openstack-nova11:36
*** markvoelker has joined #openstack-nova12:15
*** dave-mccowan has joined #openstack-nova12:42
*** odyssey4me has quit IRC12:44
*** odyssey4me has joined #openstack-nova12:44
*** edmondsw has joined #openstack-nova12:45
*** dave-mccowan has quit IRC12:45
*** markvoelker has quit IRC12:49
*** edmondsw has quit IRC12:49
*** vladikr has quit IRC12:55
*** yamamoto has quit IRC13:27
*** tbachman has quit IRC13:28
*** yamamoto has joined #openstack-nova13:29
*** tbachman has joined #openstack-nova13:29
*** yamamoto has quit IRC13:34
*** Tom-Tom has joined #openstack-nova13:36
*** yingjun has joined #openstack-nova13:37
*** yingjun has quit IRC13:38
*** yingjun has joined #openstack-nova13:39
*** dave-mccowan has joined #openstack-nova13:40
*** Tom-Tom has quit IRC13:40
*** yamamoto has joined #openstack-nova13:44
*** yangyapeng has joined #openstack-nova13:46
*** yamamoto has quit IRC13:49
*** Spaz-Work has quit IRC13:49
*** Spaz-Work has joined #openstack-nova13:52
*** yingjun has quit IRC13:54
*** yamamoto has joined #openstack-nova13:59
*** yangyapeng has quit IRC13:59
*** yangyapeng has joined #openstack-nova14:02
*** yassine has quit IRC14:02
*** yangyapeng has quit IRC14:03
*** yamamoto has quit IRC14:04
*** yamamoto has joined #openstack-nova14:14
*** dave-mccowan has quit IRC14:15
*** yamamoto has quit IRC14:19
*** imacdonn has quit IRC14:28
*** yamamoto has joined #openstack-nova14:29
openstackgerritMatt Riedemann proposed openstack/nova master: Fix cancel_all_events event name parsing  https://review.openstack.org/55805914:30
*** edmondsw has joined #openstack-nova14:33
*** yamamoto has quit IRC14:34
*** edmondsw has quit IRC14:38
*** Kumar has joined #openstack-nova14:40
*** yamamoto has joined #openstack-nova14:44
*** moshele has joined #openstack-nova14:46
*** markvoelker has joined #openstack-nova14:46
*** yamamoto has quit IRC14:49
*** germs has quit IRC14:56
*** germs has joined #openstack-nova14:57
*** andreas_s has joined #openstack-nova14:57
*** yamamoto has joined #openstack-nova14:59
*** andreas_s has quit IRC15:02
*** yamamoto has quit IRC15:04
*** moshele has quit IRC15:09
*** r-daneel has joined #openstack-nova15:14
*** yamamoto has joined #openstack-nova15:14
*** yamamoto has quit IRC15:19
*** markvoelker has quit IRC15:19
openstackgerritMatt Riedemann proposed openstack/nova master: Delete port bindings in setup_networks_on_host if teardown=True  https://review.openstack.org/55633315:25
openstackgerritMatt Riedemann proposed openstack/nova master: Implement migrate_instance_start method for neutron  https://review.openstack.org/55633415:25
openstackgerritMatt Riedemann proposed openstack/nova master: WIP: compute: use port binding extended API during live migration  https://review.openstack.org/55137115:25
openstackgerritMatt Riedemann proposed openstack/nova master: WIP: Port binding based on events during live migration  https://review.openstack.org/43487015:25
openstackgerritMatt Riedemann proposed openstack/nova master: conductor: use port binding extended API in during live migrate  https://review.openstack.org/52253715:25
*** yamamoto has joined #openstack-nova15:29
*** yamamoto has quit IRC15:34
*** lbragstad has joined #openstack-nova15:35
*** yamamoto has joined #openstack-nova15:44
*** yamamoto has quit IRC15:49
*** yamamoto has joined #openstack-nova15:59
*** yikun_jiang has joined #openstack-nova16:02
*** yikun has quit IRC16:03
*** yamamoto has quit IRC16:04
*** liusheng has quit IRC16:05
*** liusheng has joined #openstack-nova16:05
*** lbragstad has quit IRC16:10
*** liusheng has quit IRC16:12
*** liusheng has joined #openstack-nova16:12
*** yamamoto has joined #openstack-nova16:14
*** markvoelker has joined #openstack-nova16:17
*** tesseract has quit IRC16:17
*** mvk has joined #openstack-nova16:19
fried_bunnycdent: here's one for ya: https://bugs.launchpad.net/nova/+bug/176032216:20
openstackLaunchpad bug 1760322 in OpenStack Compute (nova) "Traits not synced if first retrieval fails" [Undecided,New]16:20
*** edmondsw has joined #openstack-nova16:22
*** yamamoto has quit IRC16:22
*** yikun_jiang has quit IRC16:23
*** yikun_jiang has joined #openstack-nova16:23
*** edmondsw has quit IRC16:26
*** Yikun has joined #openstack-nova16:27
*** hongbin has joined #openstack-nova16:29
openstackgerritEric Fried proposed openstack/nova master: Test case: traits don't sync if first access fails  https://review.openstack.org/55806616:29
fried_bunnycdent: There's the test case ^16:29
*** yikun_jiang has quit IRC16:29
*** tbachman has quit IRC16:33
*** r-daneel has quit IRC16:40
*** armaan has joined #openstack-nova16:41
openstackgerritMerged openstack/nova master: Fix allocation_candidates not to ignore shared RPs  https://review.openstack.org/53339616:44
openstackgerritEric Fried proposed openstack/nova master: Don't declare traits synced if they ain't  https://review.openstack.org/55806816:48
fried_bunnycdent: And a (wrong) fix ^16:48
fried_bunnyleakypipes: I'm sure you know how to do this right (see commit message)16:48
*** markvoelker has quit IRC16:49
*** Kumar__ has joined #openstack-nova16:51
*** Kumar has quit IRC16:55
*** hongbin has quit IRC17:01
*** voelzmo has joined #openstack-nova17:12
*** voelzmo has quit IRC17:15
*** fragatina has joined #openstack-nova17:15
*** yamamoto has joined #openstack-nova17:18
*** voelzmo has joined #openstack-nova17:20
*** yamamoto has quit IRC17:24
*** voelzmo has quit IRC17:26
*** imacdonn has joined #openstack-nova17:33
*** voelzmo has joined #openstack-nova17:34
*** voelzmo has quit IRC17:39
*** voelzmo has joined #openstack-nova17:40
*** andreas_s has joined #openstack-nova17:41
*** voelzmo has quit IRC17:45
*** andreas_s has quit IRC17:45
*** markvoelker has joined #openstack-nova17:46
*** Kumar__ has quit IRC17:59
*** armaan has quit IRC18:01
*** itlinux has joined #openstack-nova18:01
*** armaan has joined #openstack-nova18:01
*** yamamoto has joined #openstack-nova18:20
*** markvoelker has quit IRC18:21
*** avolkov has quit IRC18:21
*** yamamoto has quit IRC18:26
openstackgerritEric Berglund proposed openstack/nova master: PowerVM Driver: vSCSI volume driver  https://review.openstack.org/52609418:27
openstackgerritEric Fried proposed openstack/nova master: [placement] Add test for provider summaries  https://review.openstack.org/55804418:29
openstackgerritEric Fried proposed openstack/nova master: Add unrequested resources to provider_summaries  https://review.openstack.org/55804518:29
openstackgerritEric Fried proposed openstack/nova master: Test alloc_cands with indirectly sharing RPs  https://review.openstack.org/51960118:29
openstackgerritEric Fried proposed openstack/nova master: Support relay RP for allocation candidates  https://review.openstack.org/53343718:29
openstackgerritEric Fried proposed openstack/nova master: Return anchor providers in a_r and p_s  https://review.openstack.org/55801418:29
imacdonnfried_bunny: you around ?18:33
fried_bunnyimacdonn: Yeaux18:33
fried_bunnyyou admining my placement hacking?18:34
fried_bunnyheh, admiring18:34
fried_bunnyNot sure what admining is.  But it sounds profitable.18:34
imacdonnadmining is a thankless task ... if it has sys- as a prefix, at least18:34
fried_bunnyoh, as in "doing admin things".  I read it as "ad mining"18:35
fried_bunnyI agree admin-ing doesn't sound as profitable18:35
imacdonnand it may actually be a real word! https://english.stackexchange.com/questions/115422/administrating-vs-admining18:36
imacdonner anyway, I was poking at the unit tests for this placement-is-configured check thing18:36
imacdonnall the tests that create a compute service as a fixture are failing18:37
fried_bunny(article declaims NOT a real word - slang only)18:37
imacdonnI don't know much about fixtures18:37
fried_bunnyHave you posted anything on gerrit yet that I can have a gander at?18:37
imacdonnnegative .. wanted to get it to pass tox first18:38
imacdonnsimple test case where it fails.... http://paste.openstack.org/show/718086/18:38
imacdonnI don't know how to mock things in a fixture, if that even makes sense18:38
fried_bunnyyeah, okay; it must be getting mocked out *somewhere* or a shit ton of the other tests would be failing previously.  I wonder if we're just mocking out the report client everywhere.18:41
fried_bunnyHow many failures are you seeing when you run the world?18:42
imacdonnthere are like 26 other tests that fail .. I just picked that one because it's really simple18:42
fried_bunnyHow many different files/classes are the failures in?18:43
imacdonnat least 618:43
*** hongbin has joined #openstack-nova18:43
imacdonnyou just sparked a thought, though ... now looking for mentions of reportclient under tests/18:44
imacdonnlike ... nova/tests/unit/compute/test_compute_mgr.py:        @mock.patch.object(self.compute, 'reportclient')18:44
imacdonnnot sure if any use fixtures, though18:44
fried_bunnyThey wouldn't need to, if they all mock the reportclient.  A fixture is basically a way to make a complicated mock/mock.patch.18:45
fried_bunnyDo all of the failures have self.start_service('compute') in the stack trace?18:45
imacdonncertainly the majority of them do18:46
imacdonnthe nova.tests.unit.api.openstack.compute.test_services.ServicesTestV253 are a bit different18:47
fried_bunnyWell, just to try things out, find nova.test.TestCase.start_service18:48
imacdonnactually scratch that .. it just looks different in the trace due to multi-line18:48
fried_bunnyand under the name == 'compute' conditional, add:18:48
fried_bunny            self.useFixture(nova_fixtures.PlacementFixture())18:50
imacdonnI thought about something like that ... but I also don't know where the fixture gets its config from18:50
fried_bunnyIt uses the conf patcher :)18:50
fried_bunny...which is instantiated further down the line.18:51
imacdonnok, but where does that get its config from :)18:51
fried_bunnyIt's *possible* it gets layered.18:52
fried_bunnyWhich is kinda cool.18:52
*** itlinux has quit IRC18:52
fried_bunnyI think you make conf changes in tests via self.flags18:52
imacdonnbut that wouldn't be the config for the fixture (?)18:54
imacdonnseems like it'd have to be passed through start_service() somehow18:56
fried_bunnyIt is, because the fixture is basically mocking conf entirely.  I think.18:56
fried_bunnyIf you look at nova.tests.unit.conf_fixture.ConfFixture, it's setting a veritable plethora of things.18:57
imacdonnyes, but in that case, the fixture itself is the code being tested18:58
fried_bunnyeh?18:58
fried_bunnyYou mean in the case you're trying to write?18:59
imacdonnin that case "self" is a fixture ... in the other cases, they create fixtures, but "self" is not the fixture. so "self.conf" wouldn't help .. I think18:59
fried_bunny(no, cause you took out the conf checking)18:59
*** moshele has joined #openstack-nova18:59
fried_bunnyOkay, let's back up.  Why do you think you care about conf for this test?19:00
imacdonnbecause the compute service fixture needs to have the auth_method (etc.) set, otherwise it'll throw that MissingPlugin19:00
imacdonnMissingAuthPlugin*19:01
fried_bunnyWill it?  Even with the PlacementFixture in place?19:01
imacdonnI think so .. it's not failing because the service is not there .. it's failing because of that MissingAuthPlugin19:02
imacdonnI assume we need to fix both19:02
fried_bunnyIt's only getting that far because you're not mocking out the service.19:02
imacdonnI guess I'm looking at it the other way around19:03
imacdonnfrom my perspective, it's not getting far enough to actually try to use the service, because ksa is kicking back that MissingAuthPlugin, because it's not configured19:04
fried_bunnyokay, I think I see what you're getting at.  But actually, I suspect MissingAuthPlugin is only happening *after* (and *because*) ksa already retrieved the version document.19:05
fried_bunnyHumor me and try that useFixture I mentioned above.  You don't have to run the whole world with it - just try one suite19:07
imacdonnhuh .. interesting .. I guess I don't know enough about how ksa works19:07
fried_bunnynobody does.19:07
fried_bunnynobody.19:07
imacdonnI already humo[u]red .. and it seems to work19:07
imacdonnheh19:07
fried_bunnyexcellent.  Now, I don't think that's what we want to do here anyway; it's a bit of a big hammer.  But it's good to know we're looking under the right rock.19:08
imacdonnit does seem like the right thing to do (to have the tests need the placement service to be there)19:09
fried_bunnyor, actually... maybe it's not so bad.  Let me take a closer look at that fixture.19:09
imacdonntrying a full set of tests now .. just did that one simple one before19:09
imacdonnso now failing on 6 .. better than 2719:10
*** tbachman has joined #openstack-nova19:10
fried_bunnyshow19:12
imacdonnhttp://paste.openstack.org/show/718087/19:15
*** spotz has quit IRC19:16
*** armaan has quit IRC19:16
imacdonnin start_service(), the conditional is ... if name == 'compute' and self.USES_DB:19:17
fried_bunnyah19:17
*** armaan has joined #openstack-nova19:17
imacdonnnot sure what self.USES_DB is .... may need to move my fixture to aseparate conditional19:17
*** markvoelker has joined #openstack-nova19:17
imacdonnthat fixed one of the 6, at least19:18
fried_bunnyThe rest are in test_compute_mgr - you can just use that same line to instantiate the fixture in the setUp of that guy19:18
imacdonnbut not the second :)19:18
imacdonnok19:19
fried_bunny...which is bypassing start_service cause it actually wants to test the stuff the service fixture mocks out19:19
*** moshele has quit IRC19:21
imacdonnyeah, that makes sense19:21
*** yamamoto has joined #openstack-nova19:22
imacdonnok, now down to 1 failing under test_compute_mgr .. I suspect that there's a specific test for the old-style config check19:22
imacdonnactually no, it's failing differently19:22
imacdonnhttp://paste.openstack.org/show/718088/ - haven't studied yet19:22
fried_bunnywell, that's the exact test case you're gonna want to tweak for your change.19:24
imacdonnoh yeah, duh... I was kinda right the first time19:24
fried_bunnyand that exception is happening waaaay later than you want to let that sucker go.19:24
imacdonnI was focused on the exception, and not the test it came from19:25
fried_bunnyThat's the point at which you want to mock that .get to do horrible things and then assert that you raise PlacementNotConfigured.19:25
fried_bunnyNow19:25
imacdonnright19:25
fried_bunnyyou may wish to put the fixture into an instance var in your setUp19:25
fried_bunnyso that you can shove your mock side effect right into that guy.19:25
*** itlinux has joined #openstack-nova19:26
fried_bunnyOr you could just @mock.patch('....SchedulerReportClient.get') on your test method.19:26
fried_bunnybut19:26
fried_bunnyI'm not sure the latter will work because the PlacementFixture is monkey patching that guy.19:26
fried_bunnyStill might work19:26
*** armaan has quit IRC19:27
fried_bunnyactually probably will, because otherwise those other tests doing same would be failing.  Unless they're all doing mock.patch.object.  Which actually - do whatever they're doing, and it should work.19:27
*** armaan has joined #openstack-nova19:27
*** itlinux has quit IRC19:27
*** yamamoto has quit IRC19:27
imacdonnk, looking into that ... mock stuff is far from intuitive for me, so usually need to plagiarise ;)19:28
*** lyan has joined #openstack-nova19:29
*** lyan is now known as Guest5218119:29
fried_bunnyusing the right bit of the fixture is the proper way to do it, but it can be a pain to figure out what that is.19:30
fried_bunnyIn this case you should just be able to decorate your test method with19:31
fried_bunny@mock.patch('nova.scheduler.client.report.SchedulerReportClient.get')19:31
fried_bunnydef test_whatever(self, mock_get):19:31
fried_bunny    mock_get.side_effect = ...MissingAuthPlugin19:31
fried_bunny    self.assertRaises(PlacementNotConfigured, self.init_host)19:31
fried_bunnykind of thing.19:31
fried_bunnya mock.patch.object would be a lil more elegant I guess.  For that you might have to use a context manager.19:32
*** fragatina has quit IRC19:34
*** hamzy has quit IRC19:43
*** itlinux has joined #openstack-nova19:44
imacdonnk, I guess I have it working with mock.patch19:49
*** markvoelker has quit IRC19:51
*** Zames has joined #openstack-nova19:52
*** Zames has quit IRC19:55
openstackgerritEric Fried proposed openstack/nova master: Return anchor providers in a_r and p_s  https://review.openstack.org/55801419:56
fried_bunnygood deal.19:57
fried_bunnyYou 'bout ready to post that puppy?19:57
imacdonnhave one more test to fix (not looked at it yet) .. and also pondering what to do with test_init_host_placement_ensures_default_config_is_unset19:57
*** edmondsw has joined #openstack-nova19:58
fried_bunnykill it.19:58
imacdonnit's related, but ... sort of different19:58
*** itlinux has quit IRC19:58
imacdonnyou think I should just whack it in this change, or separately?19:58
fried_bunnylooking...19:58
fried_bunnyoh, kill it.19:59
fried_bunnyin fact...19:59
imacdonnwondering if it has/had any other purpose19:59
fried_bunnyhttps://review.openstack.org/#/c/557086/ -- I thought that was touching that test case, but no.20:00
imacdonnyeah, I was also surprised that https://review.openstack.org/#/c/554759/ didn't at least touch it20:00
imacdonnso Im going to nuke it, on the assumption that its only purpose was to ensure the validity of the following test20:01
*** edmondsw has quit IRC20:02
fried_bunnyprobably just overlooked tbh20:04
imacdonnyeah20:05
fried_bunnyon that note, you can look around and remove all the places we set placement.[os_]region_name now.20:05
fried_bunny...in the test suites.20:05
imacdonnnot actually seeing any (others)20:07
imacdonnwell, there's this... nova/tests/unit/conf_fixture.py:        self.conf.set_default('region_name', 'RegionOne', group='placement')20:08
fried_bunnyyup, don't need that anymore.20:13
imacdonnagreed ... removed it already, and running all tests again20:14
imacdonnd'you think we need comments at all the places where we made the placement fixtures, explaining why ?20:15
fried_bunnyIt sure wouldn't hurt.20:15
imacdonnright ... all tests are passing now ... I think I'll grab lunch, then work up some comments and a commit message20:19
fried_bunnynice20:19
imacdonnthanks very much for your help and patience!20:20
fried_bunnyimacdonn: Thank you very much for taking this on.20:22
imacdonnnp!20:22
fried_bunnyooo, your first nova patch?20:23
*** yamamoto has joined #openstack-nova20:23
imacdonnprobably, yeah20:27
imacdonnhave done a few cinder/os-brick ones20:28
*** yamamoto has quit IRC20:29
*** sapd__ has joined #openstack-nova20:31
*** sapd_ has quit IRC20:31
openstackgerritEric Berglund proposed openstack/nova master: PowerVM Driver: Snapshot  https://review.openstack.org/54302320:38
*** markvoelker has joined #openstack-nova20:48
openstackgerritEric Berglund proposed openstack/nova master: PowerVM Driver: DiskAdapter parent class  https://review.openstack.org/54905321:02
*** edmondsw has joined #openstack-nova21:03
openstackgerritEric Fried proposed openstack/nova master: Fix unit tests to work with new oslo.config  https://review.openstack.org/55808421:03
fried_bunnydhellmann ^21:03
*** edmondsw has quit IRC21:07
openstackgerritEric Berglund proposed openstack/nova master: PowerVM Driver: DiskAdapter parent class  https://review.openstack.org/54905321:08
openstackgerritEric Berglund proposed openstack/nova master: PowerVM Driver: Localdisk  https://review.openstack.org/54930021:09
openstackgerritEric Fried proposed openstack/nova master: Add unrequested resources to provider_summaries  https://review.openstack.org/55804521:20
openstackgerritEric Fried proposed openstack/nova master: Test alloc_cands with indirectly sharing RPs  https://review.openstack.org/51960121:20
openstackgerritEric Fried proposed openstack/nova master: Support relay RP for allocation candidates  https://review.openstack.org/53343721:20
openstackgerritEric Fried proposed openstack/nova master: Return anchor providers in a_r and p_s  https://review.openstack.org/55801421:20
*** markvoelker has quit IRC21:21
*** yamamoto has joined #openstack-nova21:25
fried_bunnyimacdonn: Aha, I knew that sounded familiar: https://review.openstack.org/#/c/554759/1/nova/tests/unit/compute/test_compute_mgr.py@370821:28
*** yamamoto has quit IRC21:31
openstackgerritEric Fried proposed openstack/nova master: Remove deprecated [placement] opts  https://review.openstack.org/55708621:33
*** Tom-Tom has joined #openstack-nova21:37
*** andreas_s has joined #openstack-nova21:41
*** Tom-Tom has quit IRC21:41
imacdonnfrickler: ahh, so I guess you decided to leave it alone that time ;)21:42
imacdonnoops that was meant for fried_bunny ... grr, bad tab-completion21:42
*** andreas_s_ has joined #openstack-nova21:42
*** Guest52181 has quit IRC21:43
imacdonnzoiks ... nova could use some pep8 love ;)21:44
*** andreas_s has quit IRC21:46
*** cz2 has quit IRC21:48
*** andreas_s_ has quit IRC21:49
fried_bunnyimacdonn: Yeah, well, I was taking over someone else's patch, and kind of in a hurry, didn't want to get too involved.21:59
fried_bunnyWhat about pep8?21:59
imacdonnI thought I'd have to pass pep8 with my change, but when I run it, I barfs on a ton of other stuff22:00
fried_bunnyHow are you running it?22:00
imacdonnjust pep8 on the files I touched22:00
imacdonnTrying to do it under tox instead now22:00
openstackgerritEric Berglund proposed openstack/nova master: PowerVM Driver: Localdisk  https://review.openstack.org/54930022:02
*** cz2 has joined #openstack-nova22:03
fried_bunnyimacdonn: FYI, I use this:22:04
fried_bunnyefried@efried-ThinkPad-W520:~/Neo/nova$ type pep22:04
fried_bunnypep is a function22:04
fried_bunnypep ()22:04
fried_bunny{22:04
fried_bunny    ( . .tox/pep8/bin/activate || return;22:04
fried_bunny    num=${1:-1};22:04
fried_bunny    echo "Running flake8 on files changed in the last $num commit(s)";22:04
fried_bunny    git diff --name-only HEAD~$num | grep '\.py$' | xargs flake8 )22:04
fried_bunny}22:04
imacdonnah, neat .. I'll steal that - thanks ;)22:04
imacdonn./nova/tests/unit/compute/test_compute_mgr.py:21:1: H306  imports not in alphabetical order (keystoneauth1.exceptions, cinderclient.exceptions)22:06
imacdonnwow .. pickyyyyy22:06
*** hamzy has joined #openstack-nova22:16
openstackgerritEric Berglund proposed openstack/nova master: WIP: Resize  https://review.openstack.org/55358322:18
*** markvoelker has joined #openstack-nova22:18
*** yamamoto has joined #openstack-nova22:27
*** yamamoto has quit IRC22:33
openstackgerritiain MacDonnell proposed openstack/nova master: Update check to ensure compute is using placement  https://review.openstack.org/55808922:34
*** yangyapeng has joined #openstack-nova22:34
*** yangyapeng has quit IRC22:38
*** leakypipes is now known as jaypipes22:42
*** idlemind has quit IRC22:47
*** idlemind has joined #openstack-nova22:49
*** edmondsw has joined #openstack-nova22:51
*** markvoelker has quit IRC22:51
openstackgerritEric Fried proposed openstack/nova master: update_provider_tree devref and docstring updates  https://review.openstack.org/55347622:52
*** edmondsw has quit IRC22:56
*** hemna_ has joined #openstack-nova22:59
*** hemna_ has quit IRC23:00
openstackgerritEric Fried proposed openstack/nova master: Remove deprecated [placement] opts  https://review.openstack.org/55708623:02
fried_bunnyWell, that's quite enough for today.23:12
* fried_bunny waves23:12
*** yamamoto has joined #openstack-nova23:29
*** yamamoto has quit IRC23:33
*** hongbin has quit IRC23:34
*** markvoelker has joined #openstack-nova23:48

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