*** ukaynar has quit IRC | 00:49 | |
*** tmckay has quit IRC | 01:17 | |
*** tmckay has joined #openstack-sahara | 01:42 | |
*** tmckay has quit IRC | 02:09 | |
*** tellesnobrega has quit IRC | 03:33 | |
*** tellesnobrega has joined #openstack-sahara | 03:41 | |
*** links has joined #openstack-sahara | 03:46 | |
*** ukaynar has joined #openstack-sahara | 03:54 | |
openstackgerrit | zhuli proposed openstack/sahara master: Bad request exception for unsupported content type https://review.openstack.org/486479 | 04:00 |
---|---|---|
openstackgerrit | Merged openstack/puppet-sahara master: Update URLs in documents according to document migration https://review.openstack.org/483645 | 04:36 |
*** ukaynar has quit IRC | 04:44 | |
*** pgadiya has joined #openstack-sahara | 05:14 | |
*** anshul has joined #openstack-sahara | 05:22 | |
*** Poornima_K has joined #openstack-sahara | 05:27 | |
*** Poornima_K has quit IRC | 06:00 | |
*** rcernin has joined #openstack-sahara | 06:23 | |
*** tuanluong has joined #openstack-sahara | 06:32 | |
*** esikachev has joined #openstack-sahara | 07:07 | |
*** akuznetsov has joined #openstack-sahara | 08:18 | |
*** iwonka has joined #openstack-sahara | 08:21 | |
*** akuznetsov has quit IRC | 08:33 | |
*** zemuvier has joined #openstack-sahara | 08:35 | |
*** iwonka has quit IRC | 09:43 | |
*** Poornima_K has joined #openstack-sahara | 09:51 | |
*** tuanluong has quit IRC | 10:02 | |
openstackgerrit | Evgeny Sikachev proposed openstack/sahara-image-elements master: Add support to create CDH 5.12 images https://review.openstack.org/486022 | 10:17 |
*** Poornima_K has quit IRC | 10:35 | |
*** Poornima_K has joined #openstack-sahara | 10:38 | |
*** Poornima_K has quit IRC | 10:55 | |
*** Poornima_K has joined #openstack-sahara | 10:57 | |
*** Poornima_K has quit IRC | 11:02 | |
*** esikachev has quit IRC | 11:18 | |
*** pgadiya has quit IRC | 12:17 | |
*** chlong has joined #openstack-sahara | 12:53 | |
*** iwonka has joined #openstack-sahara | 12:57 | |
tellesnobrega | iwonka, ping | 12:58 |
iwonka | tellesnobrega: pong | 12:58 |
tellesnobrega | iwonka, how is everything? | 12:58 |
iwonka | umm, working on test | 12:58 |
iwonka | i don't know how to add a test to sahara | 12:58 |
iwonka | because the other functions test things from level, where i just use get | 12:59 |
tellesnobrega | sahara has tests under sahara/tests/units/ something | 12:59 |
iwonka | yeah, i saw them | 12:59 |
tellesnobrega | what exactly are you trying to test now? export or import? | 12:59 |
iwonka | export now | 13:00 |
iwonka | want to be done with it | 13:00 |
tellesnobrega | ok, lets try to speed it up | 13:00 |
iwonka | ok | 13:00 |
iwonka | sahara/tests/unit/conductormanager/test_templates.py was the file i was looking at | 13:01 |
iwonka | but i just use get from conductor | 13:01 |
iwonka | so nothing new to test there | 13:01 |
tellesnobrega | Ok, so we might not even need to add a test here | 13:02 |
iwonka | ok | 13:02 |
iwonka | so saharaclient next | 13:02 |
tellesnobrega | ok | 13:02 |
iwonka | saharaclient/tests/unit/node_group_templates.py is the file i'm working with currently | 13:03 |
iwonka | is it ok? | 13:03 |
tellesnobrega | sounds right | 13:03 |
*** tmckay has joined #openstack-sahara | 13:05 | |
iwonka | tellesnobrega: i'm getting bdbquit when i'm trying to run tests with pdb inside | 13:07 |
iwonka | any ideas what's wrong? | 13:07 |
tellesnobrega | hmm, I've seen that before, not sure what it is | 13:08 |
tellesnobrega | something you can do for a quicker view is add prints and force the test to fail and it will print values | 13:08 |
tellesnobrega | how are you running the tests? | 13:10 |
iwonka | tox -e py27 | 13:11 |
*** lucasxu has joined #openstack-sahara | 13:11 | |
iwonka | i can write to file (that's what i'm doing)… | 13:11 |
tellesnobrega | ok | 13:11 |
tellesnobrega | cool, let me check here, I believe there is a way so we can run only the test we want | 13:14 |
*** jeremyfreudberg has joined #openstack-sahara | 13:16 | |
*** links has quit IRC | 13:20 | |
jeremyfreudberg | tellesnobrega, iwonka, did you figure out the pdb thing? | 13:21 |
tellesnobrega | jeremyfreudberg, didn't try | 13:21 |
tellesnobrega | do you happen to know what the problem is? | 13:21 |
*** Poornima has joined #openstack-sahara | 13:21 | |
jeremyfreudberg | yeah, tox -e pyXX uses ostestr which doesn't support it see https://bugs.launchpad.net/testrepository/+bug/902881 , but there is another way | 13:22 |
openstack | Launchpad bug 902881 in Testrepository "no way to drop into a debugger safely" [Wishlist,Triaged] | 13:22 |
jeremyfreudberg | use python -m testtools.run | 13:22 |
jeremyfreudberg | so if you are in saharaclient folder | 13:22 |
jeremyfreudberg | use python -m testtools.run tests.unit.<module name> | 13:23 |
tellesnobrega | cool | 13:23 |
tellesnobrega | thanks jeremyfreudberg | 13:23 |
jeremyfreudberg | no problem | 13:24 |
iwonka | so i should do python -m testtools.run tests.unit.py27 ? | 13:24 |
tellesnobrega | to run a subset of a subset of tests using tox we can run with tox -e py27 tests.unit.<module> as well? | 13:24 |
jeremyfreudberg | iwonka, tests.unit.test_node_group_templates | 13:25 |
tellesnobrega | iwonka, in this case it would be python -m testtools.run tests.unit.test_node_group_templates | 13:25 |
jeremyfreudberg | or whatever file you want | 13:25 |
openstackgerrit | Merged openstack/sahara master: Updated from global requirements https://review.openstack.org/486403 | 13:25 |
iwonka | ok, got it, thanks | 13:26 |
*** Poornima has quit IRC | 13:27 | |
*** Poornima has joined #openstack-sahara | 13:29 | |
iwonka | ping tellesnobrega | 13:37 |
tellesnobrega | pong | 13:37 |
iwonka | i have self.assertFields(self.body, resp.__dict__[u'node_group_template']) | 13:37 |
iwonka | and it throws an error | 13:38 |
iwonka | but in pdb p self.body==resp.__dict__[u'node_group_template'] is True | 13:38 |
iwonka | the error says that "'dict' object has no attribute 'volume_mount_prefix'" | 13:38 |
iwonka | (things i'm comparing are both dicts) | 13:39 |
tellesnobrega | can you paste self.body and resp.__dict__? | 13:39 |
iwonka | they both have 'volume_mount_prefix' field | 13:39 |
iwonka | self.body: {'volume_mount_prefix': '/volumes/disk', 'volumes_size': '4', 'node_processes': ['datanode'], 'name': 'name', 'use_autoconfig': True, 'volumes_per_node': '3', 'description': 'description', 'hadoop_version': '1', 'plugin_name': 'plugin', 'flavor_id': '2'} | 13:39 |
iwonka | resp.__dict__['node_group_template']: {u'flavor_id': u'2', u'name': u'name', u'volume_mount_prefix': u'/volumes/disk', u'plugin_name': u'plugin', u'volumes_size': u'4', u'node_processes': [u'datanode'], u'use_autoconfig': True, u'volumes_per_node': u'3', u'hadoop_version': u'1', u'description': u'description'} | 13:40 |
iwonka | entire resp.__dict__ is a bit longer | 13:41 |
tellesnobrega | ok | 13:41 |
tellesnobrega | this should be enough | 13:41 |
openstackgerrit | Merged openstack/python-saharaclient master: Updated from global requirements https://review.openstack.org/486340 | 13:44 |
*** zemuvier has quit IRC | 13:45 | |
jeremyfreudberg | iwonka, can you paste the whole test? paste.openstack.org if it's long | 13:45 |
*** Poornima has quit IRC | 13:47 | |
iwonka | jeremyfreudberg: http://paste.openstack.org/show/616305/ | 13:47 |
iwonka | almost the same as for get | 13:47 |
jeremyfreudberg | hmmm, that looks like it should have worked fine | 13:49 |
jeremyfreudberg | iwonka, what about without the __dict__, since none of the other tests use that? | 13:54 |
iwonka | ummm | 13:54 |
iwonka | then the data is not the same | 13:54 |
iwonka | i mean | 13:54 |
iwonka | resp is saharaclient.api.node_group_templates.NodeGroupTemplate | 13:55 |
iwonka | and it has the data in __dict__ | 13:55 |
jeremyfreudberg | yeah, i see that | 13:55 |
jeremyfreudberg | but somehow the tests for get work anyway | 13:55 |
jeremyfreudberg | https://github.com/openstack/python-saharaclient/blob/master/saharaclient/tests/unit/base.py#L34 | 13:56 |
jeremyfreudberg | looking at how assertFields works will help you here, it's designed to be comparing a dict with some other kind of object | 13:56 |
jeremyfreudberg | but you could write your own helper if you want | 13:56 |
jeremyfreudberg | ^ iwonka | 13:56 |
iwonka | i think it would work if i had to compare self.body and resp.__dict__ | 13:58 |
jeremyfreudberg | getattr on a dict is not what you want | 13:59 |
jeremyfreudberg | that's doing dict.something and not dict['something'] | 13:59 |
jeremyfreudberg | so your probably want to write a new helper which can compare two dicts the way you want to | 13:59 |
iwonka | ok, i'll do that | 13:59 |
jeremyfreudberg | cool | 14:00 |
openstackgerrit | Iwona Kotlarska proposed openstack/python-saharaclient master: Add export of node group templates https://review.openstack.org/485210 | 14:07 |
iwonka | jeremyfreudberg: worked, thanks :) | 14:08 |
jeremyfreudberg | iwonka, no problem | 14:08 |
jeremyfreudberg | btw, you pushed the code with the pdb statement still in it | 14:09 |
openstackgerrit | Iwona Kotlarska proposed openstack/python-saharaclient master: Add export of node group templates https://review.openstack.org/485210 | 14:11 |
iwonka | indeed, sorry | 14:11 |
jeremyfreudberg | iwonka, no problem :) | 14:11 |
tellesnobrega | thanks jeremyfreudberg | 14:12 |
jeremyfreudberg | tellesnobrega: always happy to help | 14:12 |
iwonka | yes, thanks a lot | 14:12 |
openstackgerrit | Ritesh proposed openstack/sahara master: Replace six.iteritems() with .items() https://review.openstack.org/486628 | 14:15 |
tellesnobrega | iwonka, just commented on a quick fix | 14:16 |
iwonka | ummm | 14:16 |
iwonka | but if i had one loop and the second dict had a field that first one didn't it would say they are equal | 14:16 |
*** esikachev has joined #openstack-sahara | 14:17 | |
iwonka | while they wouldn't be | 14:17 |
jeremyfreudberg | I agree with iwonka | 14:17 |
tellesnobrega | oh, true | 14:18 |
tellesnobrega | there could be a more efficient way to do this | 14:19 |
tellesnobrega | but it sounds good for now | 14:19 |
iwonka | should i add tests to to sahara-dashboard? | 14:21 |
tellesnobrega | iwonka, let me check your patch on sahara dashboard | 14:21 |
iwonka | sure | 14:21 |
tellesnobrega | I guess we can pass without it for now | 14:25 |
tellesnobrega | so you can work more on import part | 14:25 |
jeremyfreudberg | i think it's ok too to pass on it | 14:25 |
iwonka | import? or cli? | 14:28 |
iwonka | i thiught i should add export to cli? | 14:28 |
iwonka | *thought | 14:29 |
tellesnobrega | right, export to cli first | 14:38 |
*** akuznetsov has joined #openstack-sahara | 14:51 | |
*** akuznetsov has quit IRC | 14:54 | |
*** esikache1 has joined #openstack-sahara | 14:57 | |
*** esikachev has quit IRC | 14:57 | |
*** lucasxu has quit IRC | 15:03 | |
*** chlong_ has joined #openstack-sahara | 15:21 | |
*** chlong has quit IRC | 15:24 | |
*** rcernin has quit IRC | 15:34 | |
*** rcernin has joined #openstack-sahara | 15:58 | |
*** chlong__ has joined #openstack-sahara | 16:12 | |
*** chlong_ has quit IRC | 16:13 | |
*** anshul has quit IRC | 16:27 | |
*** esikache1 has quit IRC | 16:34 | |
*** chlong_ has joined #openstack-sahara | 16:40 | |
*** chlong__ has quit IRC | 16:41 | |
*** chlong_ has quit IRC | 17:08 | |
*** chlong_ has joined #openstack-sahara | 17:10 | |
*** esikache1 has joined #openstack-sahara | 17:36 | |
*** esikache1 has quit IRC | 17:40 | |
iwonka | ping tellesnobrega | 17:54 |
tellesnobrega | pong iwonka | 17:55 |
iwonka | how should i make json downloadable? | 17:56 |
iwonka | i mean in cli | 17:56 |
iwonka | can i just create file and write it to file? | 17:56 |
tellesnobrega | iwonka, it is the way that I imagined yes | 17:56 |
iwonka | ok, thanks | 17:56 |
iwonka | should i add the code in new commit? | 18:08 |
tellesnobrega | do you already have a patch for the cli? | 18:08 |
iwonka | yes | 18:09 |
iwonka | not exactly | 18:09 |
tellesnobrega | you can write a new one then | 18:09 |
iwonka | i have a patch for python-saharaclient project | 18:09 |
tellesnobrega | write a new one | 18:09 |
iwonka | ok | 18:09 |
jeremyfreudberg | +1 to writing a new one | 18:09 |
iwonka | so, i have a new commit | 18:16 |
tellesnobrega | great | 18:16 |
iwonka | but it depends on and old one | 18:16 |
iwonka | and git review is asking me if i want to submit both commits | 18:16 |
*** rcernin has quit IRC | 18:16 | |
iwonka | but the first has already been submitted | 18:17 |
iwonka | what should i do? submit both commits? | 18:17 |
jeremyfreudberg | iwonka, what i do in that situation is clone the repo somewhere else, make the commit in that clone, git review it separately, then either use Depends-On in the commit message, or use rebase to refer to that change in the gerrit ui | 18:18 |
tellesnobrega | jeremyfreudberg, +1 | 18:18 |
jeremyfreudberg | to be honest, I have never tried the "submit both commits at the same time way" that git review is thinking of | 18:19 |
tellesnobrega | I've done once a long time ago | 18:19 |
iwonka | so git rebase <id_of_the_first_commit> and then git review will do the job? | 18:21 |
jeremyfreudberg | iwonka, i meant the rebase button in the gerrit ui | 18:21 |
jeremyfreudberg | with the change-id, i think | 18:21 |
iwonka | ok | 18:22 |
iwonka | thanks | 18:22 |
jeremyfreudberg | no problem | 18:22 |
openstackgerrit | Iwona Kotlarska proposed openstack/python-saharaclient master: Add export of node group templates to CLI https://review.openstack.org/486721 | 18:47 |
openstackgerrit | Iwona Kotlarska proposed openstack/python-saharaclient master: Add export of node group templates to CLI https://review.openstack.org/486721 | 18:49 |
iwonka | git is strange, but probably it's fine now | 18:50 |
jeremyfreudberg | i think that should be fine. in terms of git stuff, anyway | 18:50 |
openstackgerrit | Merged openstack/sahara-extra master: Add Hadoop native libs to common-artifacts https://review.openstack.org/486448 | 19:54 |
*** jeremyfreudberg_ has joined #openstack-sahara | 20:04 | |
*** jeremyfreudberg_ has quit IRC | 20:09 | |
*** jeremyfreudberg has quit IRC | 20:09 | |
openstackgerrit | Jeremy Freudberg proposed openstack/sahara-image-elements master: Change default link for Hadoop native libs https://review.openstack.org/486746 | 20:36 |
openstackgerrit | Evgeny Sikachev proposed openstack/sahara-image-elements master: Add support to create CDH 5.12 images https://review.openstack.org/486022 | 20:46 |
*** tmckay has quit IRC | 21:10 | |
*** esikache1 has joined #openstack-sahara | 21:31 | |
*** esikache1 has quit IRC | 21:35 | |
*** tmckay has joined #openstack-sahara | 22:46 | |
*** ukaynar has joined #openstack-sahara | 23:05 | |
*** chlong__ has joined #openstack-sahara | 23:36 | |
*** chlong_ has quit IRC | 23:37 | |
*** iwonka has quit IRC | 23:49 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!