)]}'
{"networking_odl/journal/full_sync.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"39a892c3ebcaa0bcf2f6d38fc5abc08c09ce90ac","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"},{"line_number":119,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":120,"context_line":"    resources \u003d obj_getter(context) or []"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_48cd35b5","line":119,"range":{"start_line":119,"start_character":4,"end_line":119,"end_character":60},"updated":"2017-08-16 22:08:46.000000000","message":"In case of (lbaasv2, member) the accessor method looks like get_pool_members. not get_members.\nCan you please check it?","commit_id":"29a45f4683bb528c6b0a8863b7738c335bba7412"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"9183bf9b825b6979104ccac2825148b05f91b0b5","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"},{"line_number":119,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":120,"context_line":"    resources \u003d obj_getter(context) or []"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_aea5c4a0","line":119,"range":{"start_line":119,"start_character":4,"end_line":119,"end_character":60},"in_reply_to":"9f436f4f_48cd35b5","updated":"2017-08-17 07:07:26.000000000","message":"There is a method get_members at https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/services/loadbalancer/plugin.py#L1258. but it is not implemented.\n\nget_pool_member expect pool_id, we have been passing only context. Better thing is to implement get_members and extract pool id from the object and then call get_pool_member.","commit_id":"29a45f4683bb528c6b0a8863b7738c335bba7412"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"271fa866cc5d13bff2dd6c583528e356d5082fa4","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"},{"line_number":119,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":120,"context_line":"    resources \u003d obj_getter(context) or []"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_f89dc057","line":119,"range":{"start_line":119,"start_character":4,"end_line":119,"end_character":60},"in_reply_to":"9f436f4f_aea5c4a0","updated":"2017-08-17 17:34:41.000000000","message":"Okay, I checked the lbaasv2 api and the code in more detail.\nhttps://developer.openstack.org/api-ref/networking/v2/?expanded\u003dlist-members-detail\nAlso the api definition doesn\u0027t have a definitions for get_members.\nIt would make sense to remove get_member/get_members.\n\nget_members is for deprecated lbaasv1 api.\nThe code seems the leftover from v1api for some reasons.\nSo for lbaasv2driver case, we need to do something special\nwith get_pool_members().\n\nGiven that lbaasv2 isn\u0027t supported by ODL backend yet, so for pike we can just remove member part as work around with such comment.\nWhat do you think?","commit_id":"29a45f4683bb528c6b0a8863b7738c335bba7412"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"32ffe42a5ebdce4132428bb68c1233fe69b8bb6e","unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"},{"line_number":119,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":120,"context_line":"    resources \u003d obj_getter(context) or []"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    for resource in resources:"},{"line_number":123,"context_line":"        journal.record(context, object_type, resource[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_d62af67c","line":120,"updated":"2017-08-16 12:17:06.000000000","message":"1) Don\u0027t you want to add a unit test that will contemplate this scenario?\n\n2) This will only \"catch\" the case that obj_getter(context) returns None when we actually want to check if what it returns is iterable. This, of course, will depend on how much control we have over the plugin\u0027s behavior. If the plugins are out of our scope then we need to handle it here, if they are under our scope then we should add a test that makes sure that ALL plugins return an iterable and not None nor anything else.","commit_id":"29a45f4683bb528c6b0a8863b7738c335bba7412"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"b5073709b83403b880290c05dcb1b0725e48a8a4","unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"},{"line_number":119,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":120,"context_line":"    resources \u003d obj_getter(context) or []"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    for resource in resources:"},{"line_number":123,"context_line":"        journal.record(context, object_type, resource[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_9bd0ee55","line":120,"range":{"start_line":120,"start_character":4,"end_line":120,"end_character":41},"updated":"2017-08-17 18:13:22.000000000","message":"this is happening for qos because it calls plugin calls on get_objects from neutron to get the qos policies, but there are no filters passed here, instead of changing the type of expected result wouldn\u0027t it be better to pass an empty dictionary when it is policy ? I proposed a DNM: https://review.openstack.org/#/c/494663/","commit_id":"29a45f4683bb528c6b0a8863b7738c335bba7412"}]}
