Wednesday, 2017-04-26

openstackgerritRosario Di Somma proposed openstack-infra/shade master: Use requests-mock for the volume backup tests  https://review.openstack.org/45989800:39
rods^^ last tests remained for cinder :)00:40
*** gkadam has joined #openstack-shade03:19
*** gouthamr has quit IRC04:02
*** slaweq has joined #openstack-shade05:01
*** slaweq has quit IRC05:02
*** slaweq has joined #openstack-shade05:26
*** yolanda has quit IRC05:28
*** slaweq has quit IRC05:28
*** gouthamr has joined #openstack-shade05:36
*** yolanda has joined #openstack-shade06:49
*** yolanda has quit IRC07:25
*** yolanda has joined #openstack-shade07:41
*** gouthamr has quit IRC07:47
*** yolanda has quit IRC08:24
*** gkadam is now known as gkadam-afk08:33
*** yolanda has joined #openstack-shade08:41
*** cdent has joined #openstack-shade09:20
*** yolanda has quit IRC09:26
*** yolanda has joined #openstack-shade09:43
*** slaweq has joined #openstack-shade10:29
*** gkadam-afk is now known as gkadam10:30
*** gkadam has quit IRC10:31
*** gkadam has joined #openstack-shade10:31
*** gkadam is now known as gkadam-afk10:31
*** slaweq has quit IRC10:34
*** yolanda has quit IRC11:19
*** gkadam-afk is now known as gkadam11:23
*** yolanda has joined #openstack-shade11:34
*** cdent has quit IRC11:45
*** yfried has joined #openstack-shade12:14
*** ioggstream has joined #openstack-shade12:55
mordredrods: awesome. while we're looking at that one, we should go ahead and make a _normalize_volume_backups method that we call from list_volume_backups13:06
*** yolanda has quit IRC13:06
rodsmordred ya, I'll fix it in a minute13:07
*** gkadam has quit IRC13:12
*** gouthamr has joined #openstack-shade13:22
*** yolanda has joined #openstack-shade13:23
openstackgerritMerged openstack-infra/shade master: Use requests-mock for the volume backup tests  https://review.openstack.org/45989813:48
openstackgerritMerged openstack-infra/shade master: Remove neutronclient mocks from router tests  https://review.openstack.org/45987213:49
openstackgerritMerged openstack-infra/shade master: Replace neutronclient with REST API calls in subnet commands  https://review.openstack.org/45965313:58
slaweq_mordred: ^^ neutronclient in subnet actions is now replaced with keystonauth114:00
slaweq_so neutron is moving forward slowly :)14:00
mordred:)14:00
mordredI was just looking to see how many neutronclient commands there are left ... it's getting closer!14:00
slaweq_there is still router, ports, floating_ips and security groups14:01
slaweq_I think that will be all14:01
slaweq_but I can be wrong14:01
mordredyup. I believe you're right - oh, and quota14:01
slaweq_yes, I have quota on my list also :)14:03
slaweq_but I forgot to mention it now14:03
*** slaweq has joined #openstack-shade14:30
*** iogg has joined #openstack-shade14:33
*** slaweq has quit IRC14:34
*** ioggstream has quit IRC14:34
openstackgerritRosario Di Somma proposed openstack-infra/shade master: Add a _normalize_volume_backups method  https://review.openstack.org/46012714:48
rodsmordred ^^ that should do it :)14:49
mordredrods: awesome - thanks. noted in review - but I think we can remove that whole line now actually14:52
*** yolanda has quit IRC15:31
*** slaweq has joined #openstack-shade15:32
*** jlk has quit IRC16:01
*** jlk has joined #openstack-shade16:02
*** jlk has quit IRC16:02
*** jlk has joined #openstack-shade16:02
*** slaweq has quit IRC16:04
*** yfried has quit IRC16:14
rodsmordred looks like list_volume_backups is returning a list of Munch objects, that's way I was using the object_to_dict for the assertEqual16:14
rodsdropping a pdb into the test looks like the conversion from BackupVolume to Munch happens here https://github.com/openstack-infra/shade/blob/master/shade/task_manager.py#L13116:15
*** jamielennox is now known as jamielennox|away16:31
mordredrods: yes - this is correct - so, what I think would be more correct is to call meta.obj_list_to_dict on [vol1, vol2] in your assertEqual - we should not need to transform the result from search_volume_backups - but transforming the raw fake dict for the equal check is definitely needed16:41
mordred(the thing you have there is technically correct, I just worry that it might mask list_volume_backups not performing the _normalize call16:42
rodsmordred yeah, I see16:55
openstackgerritRosario Di Somma proposed openstack-infra/shade master: Add a _normalize_volume_backups method  https://review.openstack.org/46012717:17
*** slaweq has joined #openstack-shade17:37
*** slaweq has quit IRC17:40
mordredrods: yes - looks perfect - thank you!17:57
rods:)17:58
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert test_role_assignments to requests mock  https://review.openstack.org/44831318:00
mordredmorgan: nice on the query string matching18:02
*** slaweq has joined #openstack-shade18:11
*** slaweq has quit IRC18:17
*** slaweq has joined #openstack-shade18:18
*** slaweq has quit IRC18:22
*** iogg has quit IRC18:53
openstackgerritMerged openstack-infra/shade master: Add a _normalize_volume_backups method  https://review.openstack.org/46012718:58
*** slaweq has joined #openstack-shade19:23
*** slaweq has quit IRC19:28
*** iogg has joined #openstack-shade19:28
*** jamielennox|away is now known as jamielennox19:52
*** iogg has quit IRC20:43
*** slaweq has joined #openstack-shade21:16
*** yolanda has joined #openstack-shade21:25
*** slaweq has quit IRC21:30
*** gouthamr has quit IRC21:59
*** slaweq has joined #openstack-shade22:31
rodsmordred you around?22:34
*** slaweq has quit IRC22:35
rodslooks like this GET here https://github.com/openstack-infra/shade/blob/master/shade/tests/unit/test_caching.py#L275 is an artifact of the cinder client which is not going to be needed once we switch to the REST api call.22:37
rodscreate_volume is making this POST here https://github.com/openstack-infra/shade/blob/master/shade/tests/unit/test_caching.py#L271 but then is calling get_volume(since wait=True) which in turn is calling search_volumes that calls list_volume22:40
rodslist_volume is making this GET https://github.com/openstack-infra/shade/blob/master/shade/tests/unit/test_caching.py#L279 skipping the GET on line 27522:42
rodsdon't love the idea to change a test while I'm changing the implementation but seems like in this case might be needed22:44
mordredrods: looking22:57
mordredoh - because cinder_client on the backend is just doing an extra get, but then we in our wait loop also do a get22:59
mordredyah - this has happened in a few other places too - there are these nice extra calls the client libs make for us that we don't need23:00
rodsI guess is fine changing the tests in this case, what do you think?23:00
mordredI think it's ok to remove the call in the case - I agree it's a thing we should always be careful about - but I do believe we can agree that the extra get is an impl detail of cinderclient23:00
mordredyah23:00
rodscool, thx23:01

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