)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c27e22bd2b376ac57e6ef6e21dd4d4f561705c11","unresolved":false,"context_lines":[{"line_number":13,"context_line":"update_device_up and update_device_down are the RPC calls"},{"line_number":14,"context_line":"used by the L2 agent to notify the plugin that"},{"line_number":15,"context_line":"a device is up or down. These calls accept only one device."},{"line_number":16,"context_line":"update_device_list accepts a list of devices that will"},{"line_number":17,"context_line":"be put up or down and returns a list of devices for which"},{"line_number":18,"context_line":"the operation failed."},{"line_number":19,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"9af37de9_aff63ad5","line":16,"updated":"2015-05-11 15:35:49.000000000","message":"Is _list needed? How about update_devices, update_state_of_devices?","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c486488ed93ae3768066c51b4d02a1df327fa420","unresolved":false,"context_lines":[{"line_number":13,"context_line":"update_device_up and update_device_down are the RPC calls"},{"line_number":14,"context_line":"used by the L2 agent to notify the plugin that"},{"line_number":15,"context_line":"a device is up or down. These calls accept only one device."},{"line_number":16,"context_line":"update_device_list accepts a list of devices that will"},{"line_number":17,"context_line":"be put up or down and returns a list of devices for which"},{"line_number":18,"context_line":"the operation failed."},{"line_number":19,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"9a0c5dc1_514de83c","line":16,"in_reply_to":"9af37de9_aff63ad5","updated":"2015-05-13 23:18:46.000000000","message":"not needed, it\u0027s just to differentiate the new call for the old ones, update_device_up and update_device_down","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c27e22bd2b376ac57e6ef6e21dd4d4f561705c11","unresolved":false,"context_lines":[{"line_number":17,"context_line":"be put up or down and returns a list of devices for which"},{"line_number":18,"context_line":"the operation failed."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"get_devices_details_list_and_failed_devices is a new RPC"},{"line_number":21,"context_line":"call that returns a list of devices details and a list of"},{"line_number":22,"context_line":"devices for which it was not possible to retrieve the"},{"line_number":23,"context_line":"details."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"9af37de9_0f58a6f9","line":20,"updated":"2015-05-11 15:35:49.000000000","message":"I have to admit that the _and_failed_devices is a bit awkward. Why not just get_devices_details or get details_for_devices?","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c486488ed93ae3768066c51b4d02a1df327fa420","unresolved":false,"context_lines":[{"line_number":17,"context_line":"be put up or down and returns a list of devices for which"},{"line_number":18,"context_line":"the operation failed."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"get_devices_details_list_and_failed_devices is a new RPC"},{"line_number":21,"context_line":"call that returns a list of devices details and a list of"},{"line_number":22,"context_line":"devices for which it was not possible to retrieve the"},{"line_number":23,"context_line":"details."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"9a0c5dc1_31da7479","line":20,"in_reply_to":"9af37de9_0f58a6f9","updated":"2015-05-13 23:18:46.000000000","message":"because there\u0027s another call that has that name: get_devices_details","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c27e22bd2b376ac57e6ef6e21dd4d4f561705c11","unresolved":false,"context_lines":[{"line_number":23,"context_line":"details."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Thanks to these new calls, the agent will be able to update"},{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"9af37de9_2f3c8a92","line":26,"updated":"2015-05-11 15:35:49.000000000","message":"status -\u003e status of","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c486488ed93ae3768066c51b4d02a1df327fa420","unresolved":false,"context_lines":[{"line_number":23,"context_line":"details."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Thanks to these new calls, the agent will be able to update"},{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"9a0c5dc1_31c15481","line":26,"in_reply_to":"9af37de9_2f3c8a92","updated":"2015-05-13 23:18:46.000000000","message":"Thanks","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"4527eb8851e139309e6fa82d34297de6799b93d5","unresolved":false,"context_lines":[{"line_number":23,"context_line":"details."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Thanks to these new calls, the agent will be able to update"},{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"7a016987_dba3869d","line":26,"updated":"2015-05-14 14:17:30.000000000","message":"nit: status -\u003e status of","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a08aba6891063b2697374172a07129d135b294d1","unresolved":false,"context_lines":[{"line_number":23,"context_line":"details."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Thanks to these new calls, the agent will be able to update"},{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"7a016987_2f8677db","line":26,"in_reply_to":"7a016987_dba3869d","updated":"2015-05-28 12:28:46.000000000","message":"Thanks!","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e9b0d9f7b541be3539defab7a1035e44f96a6e54","unresolved":false,"context_lines":[{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"This patch introduces the new calls only for the OVS agent."},{"line_number":32,"context_line":"A following patch will take care of the other L2 agents."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"7a016987_84a15096","line":29,"updated":"2015-05-25 02:52:44.000000000","message":"\"This\" means the retry part?","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a08aba6891063b2697374172a07129d135b294d1","unresolved":false,"context_lines":[{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"This patch introduces the new calls only for the OVS agent."},{"line_number":32,"context_line":"A following patch will take care of the other L2 agents."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"7a016987_6f7c6feb","line":29,"in_reply_to":"7a016987_84a15096","updated":"2015-05-28 12:28:46.000000000","message":"Yes","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"84b663736c75a1b997347c125a5eedad0f2e91f8","unresolved":false,"context_lines":[{"line_number":23,"context_line":"details."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Thanks to these new calls, the agent will be able to update"},{"line_number":26,"context_line":"the status several devices using one RPC call"},{"line_number":27,"context_line":"and to retry the operation only for the devices that failed"},{"line_number":28,"context_line":"instead of performing a full resync."},{"line_number":29,"context_line":"This will be implemented in another patch."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":18,"id":"7a016987_3a0c773a","line":26,"updated":"2015-05-28 12:33:05.000000000","message":"nit from PS17: status -\u003e status of","commit_id":"323d8382c5048da9033de644abdb61dce9d03131"}],"neutron/agent/rpc.py":[{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def update_device_list_down(self, context, devices, agent_id, host\u003dNone):"},{"line_number":117,"context_line":"        try:"},{"line_number":118,"context_line":"            cctxt \u003d self.client.prepare(version\u003d\u00271.4\u0027)"},{"line_number":119,"context_line":"            res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"},{"line_number":120,"context_line":"                             devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":121,"context_line":"        except messaging.UnsupportedVersion:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_23f07d66","line":118,"updated":"2015-02-04 21:57:15.000000000","message":"makes any sense to cache if 1.4 is supported?  Maybe make \u00271.4\u0027 a var?","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def update_device_list_down(self, context, devices, agent_id, host\u003dNone):"},{"line_number":117,"context_line":"        try:"},{"line_number":118,"context_line":"            cctxt \u003d self.client.prepare(version\u003d\u00271.4\u0027)"},{"line_number":119,"context_line":"            res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"},{"line_number":120,"context_line":"                             devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":121,"context_line":"        except messaging.UnsupportedVersion:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_0283bc56","line":118,"in_reply_to":"da86d52c_23f07d66","updated":"2015-02-10 11:04:57.000000000","message":"Read next comment please.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"877ed993126ca4a5481a3838b4bfca0d83d5da6b","unresolved":false,"context_lines":[{"line_number":118,"context_line":"            cctxt \u003d self.client.prepare(version\u003d\u00271.4\u0027)"},{"line_number":119,"context_line":"            res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"},{"line_number":120,"context_line":"                             devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":121,"context_line":"        except messaging.UnsupportedVersion:"},{"line_number":122,"context_line":"            res \u003d ["},{"line_number":123,"context_line":"                self.update_device_down(context, device, agent_id, host)"},{"line_number":124,"context_line":"                for device in devices"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_3be23101","line":121,"updated":"2015-01-16 13:59:53.000000000","message":"Is it worth it marking the server as not supporting this particular method to avoid calling to unavailable method in the future? That\u0027s more of a question than a suggestion.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":118,"context_line":"            cctxt \u003d self.client.prepare(version\u003d\u00271.4\u0027)"},{"line_number":119,"context_line":"            res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"},{"line_number":120,"context_line":"                             devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":121,"context_line":"        except messaging.UnsupportedVersion:"},{"line_number":122,"context_line":"            res \u003d ["},{"line_number":123,"context_line":"                self.update_device_down(context, device, agent_id, host)"},{"line_number":124,"context_line":"                for device in devices"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_e2b4e836","line":121,"in_reply_to":"3a961159_3be23101","updated":"2015-02-10 11:04:57.000000000","message":"The server can be updated and the client should check from time to time to see if the server now supports the new version. For sure the current behaviour can be improved and the client could avoid to check every time, maybe one every 2? Not sure how much it would benefit the users, I think most people update server and client almost at the same time. Anyway it\u0027s worth thinking about it :)","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cc02cbf76afde5c06c1bf321589498711843153d","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            res \u003d ["},{"line_number":123,"context_line":"                self.update_device_down(context, device, agent_id, host)"},{"line_number":124,"context_line":"                for device in devices"},{"line_number":125,"context_line":"            ]"},{"line_number":126,"context_line":"        return res"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def update_device_up(self, context, device, agent_id, host\u003dNone):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_e08d83d5","line":125,"updated":"2015-01-15 12:42:07.000000000","message":"+1 for backwards compatibility.\n+1 for clean code :)","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        cctxt \u003d self.client.prepare()"},{"line_number":122,"context_line":"        return cctxt.call(context, \u0027update_device_down\u0027, device\u003ddevice,"},{"line_number":123,"context_line":"                          agent_id\u003dagent_id, host\u003dhost)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    def update_device_list_down(self, context, devices, agent_id, host\u003dNone):"},{"line_number":126,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":127,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_9de548aa","line":124,"updated":"2015-03-02 14:49:17.000000000","message":"Why is the host parameter optional? I see that it\u0027s optional for update_device_down/up for no good reason, from the method\u0027s implementation on the server side it looks like the host parameter is pretty much required.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        cctxt \u003d self.client.prepare()"},{"line_number":122,"context_line":"        return cctxt.call(context, \u0027update_device_down\u0027, device\u003ddevice,"},{"line_number":123,"context_line":"                          agent_id\u003dagent_id, host\u003dhost)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    def update_device_list_down(self, context, devices, agent_id, host\u003dNone):"},{"line_number":126,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":127,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_972ad08e","line":124,"in_reply_to":"ba7be1f8_9de548aa","updated":"2015-03-17 12:02:50.000000000","message":"Will modify it","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":144,"context_line":"            res \u003d cctxt.call(context, \u0027tunnel_sync\u0027, tunnel_ip\u003dtunnel_ip,"},{"line_number":145,"context_line":"                             tunnel_type\u003dtunnel_type)"},{"line_number":146,"context_line":"        return res"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def update_device_list_up(self, context, devices, agent_id, host\u003dNone):"},{"line_number":149,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":150,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_up\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_1de95880","line":147,"updated":"2015-03-02 14:49:17.000000000","message":"Same comment about host parameter. Also, could you move this function below update_device_up and above tunnel_sync?","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":144,"context_line":"            res \u003d cctxt.call(context, \u0027tunnel_sync\u0027, tunnel_ip\u003dtunnel_ip,"},{"line_number":145,"context_line":"                             tunnel_type\u003dtunnel_type)"},{"line_number":146,"context_line":"        return res"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def update_device_list_up(self, context, devices, agent_id, host\u003dNone):"},{"line_number":149,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":150,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_up\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_7232caf3","line":147,"in_reply_to":"ba7be1f8_1de95880","updated":"2015-03-17 12:02:50.000000000","message":"Done","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def update_device_list_down(self, context, devices, agent_id, host):"},{"line_number":127,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":128,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"},{"line_number":129,"context_line":"                         devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":130,"context_line":"        return res"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_39c45291","line":128,"updated":"2015-03-19 03:18:21.000000000","message":"not sure I can appreciate the use of this temp variable...","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def update_device_list_down(self, context, devices, agent_id, host):"},{"line_number":127,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":128,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_down\u0027,"},{"line_number":129,"context_line":"                         devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":130,"context_line":"        return res"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_38dfe33b","line":128,"in_reply_to":"9a80dd14_39c45291","updated":"2015-03-19 18:27:23.000000000","message":"Done","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":139,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_up\u0027,"},{"line_number":140,"context_line":"                         devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":141,"context_line":"        return res"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"    def tunnel_sync(self, context, tunnel_ip, tunnel_type\u003dNone, host\u003dNone):"},{"line_number":144,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_59c1067f","line":141,"updated":"2015-03-19 03:18:21.000000000","message":"and here...","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":139,"context_line":"        res \u003d cctxt.call(context, \u0027update_device_list_up\u0027,"},{"line_number":140,"context_line":"                         devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":141,"context_line":"        return res"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"    def tunnel_sync(self, context, tunnel_ip, tunnel_type\u003dNone, host\u003dNone):"},{"line_number":144,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_58e73712","line":141,"in_reply_to":"9a80dd14_59c1067f","updated":"2015-03-19 18:27:23.000000000","message":"Done","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"671f906c864d537bc4977be9331effb7d215012e","unresolved":false,"context_lines":[{"line_number":119,"context_line":"            ]"},{"line_number":120,"context_line":"        return res"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def get_devices_details_list_and_failed_devices(self, context, devices,"},{"line_number":123,"context_line":"                                                    agent_id, host\u003dNone):"},{"line_number":124,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":125,"context_line":"        return cctxt.call(context,"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_3d5583f9","line":122,"updated":"2015-06-09 08:42:39.000000000","message":"_and_failed_devices can be treated in different ways, I\u0027d add a docstring here and on server side. However please see my suggestion in next file.","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d91e6632c9f62f23305611c52f8e0c74876477be","unresolved":false,"context_lines":[{"line_number":119,"context_line":"            ]"},{"line_number":120,"context_line":"        return res"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def get_devices_details_list_and_failed_devices(self, context, devices,"},{"line_number":123,"context_line":"                                                    agent_id, host\u003dNone):"},{"line_number":124,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":125,"context_line":"        return cctxt.call(context,"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_d19d3367","line":122,"in_reply_to":"3afb71cf_3d5583f9","updated":"2015-06-09 11:10:18.000000000","message":"Done","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"671f906c864d537bc4977be9331effb7d215012e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def get_devices_details_list_and_failed_devices(self, context, devices,"},{"line_number":123,"context_line":"                                                    agent_id, host\u003dNone):"},{"line_number":124,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":125,"context_line":"        return cctxt.call(context,"},{"line_number":126,"context_line":"                          \u0027get_devices_details_list_and_failed_devices\u0027,"},{"line_number":127,"context_line":"                          devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_9a535d39","line":125,"updated":"2015-06-09 08:42:39.000000000","message":"Is it possible to use fallback mechanism as at #110?","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d91e6632c9f62f23305611c52f8e0c74876477be","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def get_devices_details_list_and_failed_devices(self, context, devices,"},{"line_number":123,"context_line":"                                                    agent_id, host\u003dNone):"},{"line_number":124,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":125,"context_line":"        return cctxt.call(context,"},{"line_number":126,"context_line":"                          \u0027get_devices_details_list_and_failed_devices\u0027,"},{"line_number":127,"context_line":"                          devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_3b290838","line":125,"in_reply_to":"3afb71cf_9a535d39","updated":"2015-06-09 11:10:18.000000000","message":"Done","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"671f906c864d537bc4977be9331effb7d215012e","unresolved":false,"context_lines":[{"line_number":139,"context_line":"    def update_device_list(self, context, devices_up, devices_down,"},{"line_number":140,"context_line":"                           agent_id, host):"},{"line_number":141,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":142,"context_line":"        return cctxt.call(context, \u0027update_device_list\u0027,"},{"line_number":143,"context_line":"                          devices_up\u003ddevices_up, devices_down\u003ddevices_down,"},{"line_number":144,"context_line":"                          agent_id\u003dagent_id, host\u003dhost)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_9a2a3d8f","line":142,"updated":"2015-06-09 08:42:39.000000000","message":"ditto","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d91e6632c9f62f23305611c52f8e0c74876477be","unresolved":false,"context_lines":[{"line_number":139,"context_line":"    def update_device_list(self, context, devices_up, devices_down,"},{"line_number":140,"context_line":"                           agent_id, host):"},{"line_number":141,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":142,"context_line":"        return cctxt.call(context, \u0027update_device_list\u0027,"},{"line_number":143,"context_line":"                          devices_up\u003ddevices_up, devices_down\u003ddevices_down,"},{"line_number":144,"context_line":"                          agent_id\u003dagent_id, host\u003dhost)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_fb1ff005","line":142,"in_reply_to":"3afb71cf_9a2a3d8f","updated":"2015-06-09 11:10:18.000000000","message":"Done","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"2ea9a1fb33e602311d4ada4aa54f5e3f37dea4a4","unresolved":false,"context_lines":[{"line_number":123,"context_line":"                                                    agent_id, host\u003dNone):"},{"line_number":124,"context_line":"        \"\"\"Get devices details and the list of devices that failed."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        This method return the device details. If an error is thrown when"},{"line_number":127,"context_line":"        retrieving the device details, the device is put in a list of"},{"line_number":128,"context_line":"        failed devices."},{"line_number":129,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_c5989fc2","line":126,"updated":"2015-06-10 07:49:44.000000000","message":"nit: device-\u003edevices","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"477989d10e34845ff31cfa19e13e3676a11eb330","unresolved":false,"context_lines":[{"line_number":123,"context_line":"                                                    agent_id, host\u003dNone):"},{"line_number":124,"context_line":"        \"\"\"Get devices details and the list of devices that failed."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        This method return the device details. If an error is thrown when"},{"line_number":127,"context_line":"        retrieving the device details, the device is put in a list of"},{"line_number":128,"context_line":"        failed devices."},{"line_number":129,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_3f5e1013","line":126,"in_reply_to":"3afb71cf_c5989fc2","updated":"2015-06-11 17:40:28.000000000","message":"Done","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"2ea9a1fb33e602311d4ada4aa54f5e3f37dea4a4","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        failed devices."},{"line_number":129,"context_line":"        \"\"\""},{"line_number":130,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":131,"context_line":"        return cctxt.call(context,"},{"line_number":132,"context_line":"                          \u0027get_devices_details_list_and_failed_devices\u0027,"},{"line_number":133,"context_line":"                          devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_85b74739","line":131,"updated":"2015-06-10 07:49:44.000000000","message":"so no fallback here?","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"477989d10e34845ff31cfa19e13e3676a11eb330","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        failed devices."},{"line_number":129,"context_line":"        \"\"\""},{"line_number":130,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.5\u0027)"},{"line_number":131,"context_line":"        return cctxt.call(context,"},{"line_number":132,"context_line":"                          \u0027get_devices_details_list_and_failed_devices\u0027,"},{"line_number":133,"context_line":"                          devices\u003ddevices, agent_id\u003dagent_id, host\u003dhost)"},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_1f9a34c6","line":131,"in_reply_to":"3afb71cf_85b74739","updated":"2015-06-11 17:40:28.000000000","message":"ooops","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"2ed4ba8020d0f1910db3e3b7ce302dbdba99324b","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            except Exception:"},{"line_number":160,"context_line":"                failed_devices.append(device)"},{"line_number":161,"context_line":"            else:"},{"line_number":162,"context_line":"                succedeed_devices.append(device)"},{"line_number":163,"context_line":"        return {\u0027devices\u0027: succedeed_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def update_device_list(self, context, devices_up, devices_down,"}],"source_content_type":"text/x-python","patch_set":23,"id":"1af86dd1_9e861fb8","line":162,"updated":"2015-06-12 09:56:13.000000000","message":"in case of update_device_down and get_device_details,\nthis should be return values from rpc_call.","commit_id":"34b05912447777857386f6f4e4da4fdedeb6a628"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"9874de0df56ba01a20cc2ed5cd2a46473be8b3ef","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            except Exception:"},{"line_number":160,"context_line":"                failed_devices.append(device)"},{"line_number":161,"context_line":"            else:"},{"line_number":162,"context_line":"                succedeed_devices.append(device)"},{"line_number":163,"context_line":"        return {\u0027devices\u0027: succedeed_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def update_device_list(self, context, devices_up, devices_down,"}],"source_content_type":"text/x-python","patch_set":23,"id":"1af86dd1_29eed78b","line":162,"in_reply_to":"1af86dd1_9e861fb8","updated":"2015-06-12 10:19:19.000000000","message":"you are totally right, good catch","commit_id":"34b05912447777857386f6f4e4da4fdedeb6a628"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ba9137515270e1d5057045bc0555490d890eecfd","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                failed_devices.append(device)"},{"line_number":162,"context_line":"            else:"},{"line_number":163,"context_line":"                # update_device_up doesn\u0027t return the device"},{"line_number":164,"context_line":"                succedeed_dev \u003d device if is_set_device_up else rpc_device"},{"line_number":165,"context_line":"                succedeed_devices.append(succedeed_dev)"},{"line_number":166,"context_line":"        return {\u0027devices\u0027: succedeed_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"1af86dd1_1eb6aa8a","line":164,"updated":"2015-06-12 12:30:29.000000000","message":"super nit: succeeded , you have an extra \"e\" :)","commit_id":"8ffe36fed279292efbed3da56b704b457c679c7b"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"24fe55ff14e9699d8a892df12193a6ea9f6c1a7b","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                failed_devices.append(device)"},{"line_number":162,"context_line":"            else:"},{"line_number":163,"context_line":"                # update_device_up doesn\u0027t return the device"},{"line_number":164,"context_line":"                succedeed_dev \u003d device if is_set_device_up else rpc_device"},{"line_number":165,"context_line":"                succedeed_devices.append(succedeed_dev)"},{"line_number":166,"context_line":"        return {\u0027devices\u0027: succedeed_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"fa32b979_d9ba5bc0","line":164,"in_reply_to":"1af86dd1_1eb6aa8a","updated":"2015-06-16 10:35:16.000000000","message":"sorry I missed that, I will address this if I respin","commit_id":"8ffe36fed279292efbed3da56b704b457c679c7b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"064771b9f11a3c387b16f53fca8c4c1aac2b3b7e","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    def _device_list_rpc_call_with_failed_dev(self, rpc_call, context,"},{"line_number":153,"context_line":"                                              agent_id, host, devices,"},{"line_number":154,"context_line":"                                              is_set_device_up\u003dFalse):"},{"line_number":155,"context_line":"        succedeed_devices \u003d []"},{"line_number":156,"context_line":"        failed_devices \u003d []"},{"line_number":157,"context_line":"        for device in devices:"},{"line_number":158,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_d64e9dc0","line":155,"updated":"2015-06-23 03:32:19.000000000","message":"nit:  *succeeded_devices","commit_id":"9eb6f69d223735b54fe22a96b2a9da09644178f1"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"2924c478f702b260a2a6c399feb2741a8d3e8529","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    def _device_list_rpc_call_with_failed_dev(self, rpc_call, context,"},{"line_number":153,"context_line":"                                              agent_id, host, devices,"},{"line_number":154,"context_line":"                                              is_set_device_up\u003dFalse):"},{"line_number":155,"context_line":"        succedeed_devices \u003d []"},{"line_number":156,"context_line":"        failed_devices \u003d []"},{"line_number":157,"context_line":"        for device in devices:"},{"line_number":158,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_dc7f50dd","line":155,"in_reply_to":"fa32b979_d64e9dc0","updated":"2015-06-24 14:01:48.000000000","message":":)","commit_id":"9eb6f69d223735b54fe22a96b2a9da09644178f1"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"74d4a2f67e3863dc6ce8aae2d3b87cc1ddfe6263","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        failed_devices \u003d []"},{"line_number":157,"context_line":"        for device in devices:"},{"line_number":158,"context_line":"            try:"},{"line_number":159,"context_line":"                rpc_device \u003d rpc_call(context, agent_id, host)"},{"line_number":160,"context_line":"            except Exception:"},{"line_number":161,"context_line":"                failed_devices.append(device)"},{"line_number":162,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_eb5ec178","line":159,"updated":"2015-06-19 10:01:25.000000000","message":"seems \u0027device\u0027 parameter should also be passed here","commit_id":"9eb6f69d223735b54fe22a96b2a9da09644178f1"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"2924c478f702b260a2a6c399feb2741a8d3e8529","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        failed_devices \u003d []"},{"line_number":157,"context_line":"        for device in devices:"},{"line_number":158,"context_line":"            try:"},{"line_number":159,"context_line":"                rpc_device \u003d rpc_call(context, agent_id, host)"},{"line_number":160,"context_line":"            except Exception:"},{"line_number":161,"context_line":"                failed_devices.append(device)"},{"line_number":162,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_7c1ac4c7","line":159,"in_reply_to":"fa32b979_eb5ec178","updated":"2015-06-24 14:01:48.000000000","message":"indeed, thanks","commit_id":"9eb6f69d223735b54fe22a96b2a9da09644178f1"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"74d4a2f67e3863dc6ce8aae2d3b87cc1ddfe6263","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                failed_devices.append(device)"},{"line_number":162,"context_line":"            else:"},{"line_number":163,"context_line":"                # update_device_up doesn\u0027t return the device"},{"line_number":164,"context_line":"                succedeed_dev \u003d device if is_set_device_up else rpc_device"},{"line_number":165,"context_line":"                succedeed_devices.append(succedeed_dev)"},{"line_number":166,"context_line":"        return {\u0027devices\u0027: succedeed_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_cba2dd4b","line":164,"updated":"2015-06-19 10:01:25.000000000","message":"\u0027succeded_dev \u003d rpc_device or device\u0027 and no need for extra is_set_device_up parameter?","commit_id":"9eb6f69d223735b54fe22a96b2a9da09644178f1"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"2924c478f702b260a2a6c399feb2741a8d3e8529","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                failed_devices.append(device)"},{"line_number":162,"context_line":"            else:"},{"line_number":163,"context_line":"                # update_device_up doesn\u0027t return the device"},{"line_number":164,"context_line":"                succedeed_dev \u003d device if is_set_device_up else rpc_device"},{"line_number":165,"context_line":"                succedeed_devices.append(succedeed_dev)"},{"line_number":166,"context_line":"        return {\u0027devices\u0027: succedeed_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_3c7f5ce1","line":164,"in_reply_to":"fa32b979_cba2dd4b","updated":"2015-06-24 14:01:48.000000000","message":"thanks","commit_id":"9eb6f69d223735b54fe22a96b2a9da09644178f1"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e4e9379c496babc2a9e1360f7334115816b06cf6","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _device_list_rpc_call_with_failed_dev(self, rpc_call, context,"},{"line_number":153,"context_line":"                                              agent_id, host, devices):"},{"line_number":154,"context_line":"        succeded_devices \u003d []"},{"line_number":155,"context_line":"        failed_devices \u003d []"},{"line_number":156,"context_line":"        for device in devices:"},{"line_number":157,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":26,"id":"fa32b979_f47fbda8","line":154,"updated":"2015-06-24 18:22:49.000000000","message":"Actually it should be: succeeded_devices but it\u0027s ok :)","commit_id":"2a64a83232b4780a16358446053d1c5fa6c8a243"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a04de720b1a952c127486cf51e38ad2ebfb2cb56","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _device_list_rpc_call_with_failed_dev(self, rpc_call, context,"},{"line_number":153,"context_line":"                                              agent_id, host, devices):"},{"line_number":154,"context_line":"        succeded_devices \u003d []"},{"line_number":155,"context_line":"        failed_devices \u003d []"},{"line_number":156,"context_line":"        for device in devices:"},{"line_number":157,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":26,"id":"fa32b979_2f2db5fd","line":154,"in_reply_to":"fa32b979_f47fbda8","updated":"2015-06-25 08:58:38.000000000","message":"epic failure, I misspelled it twice. I will fix it if I have to respin.","commit_id":"2a64a83232b4780a16358446053d1c5fa6c8a243"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e4e9379c496babc2a9e1360f7334115816b06cf6","unresolved":false,"context_lines":[{"line_number":160,"context_line":"                failed_devices.append(device)"},{"line_number":161,"context_line":"            else:"},{"line_number":162,"context_line":"                # update_device_up doesn\u0027t return the device"},{"line_number":163,"context_line":"                succeded_dev \u003d rpc_device or device"},{"line_number":164,"context_line":"                succeded_devices.append(succeded_dev)"},{"line_number":165,"context_line":"        return {\u0027devices\u0027: succeded_devices, \u0027failed_devices\u0027: failed_devices}"},{"line_number":166,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"fa32b979_b4337513","line":163,"updated":"2015-06-24 18:22:49.000000000","message":"succeeded_device","commit_id":"2a64a83232b4780a16358446053d1c5fa6c8a243"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"52113eaafc79888ab97d487adc940dcfa08398ef","unresolved":false,"context_lines":[{"line_number":1375,"context_line":"                                         port_info.get(\u0027updated\u0027, set()))"},{"line_number":1376,"context_line":"        self._bind_devices(need_binding_devices)"},{"line_number":1377,"context_line":""},{"line_number":1378,"context_line":"        if \u0027removed\u0027 in port_info and port_info[\u0027removed\u0027]:"},{"line_number":1379,"context_line":"            start \u003d time.time()"},{"line_number":1380,"context_line":"            resync_b \u003d self.treat_devices_removed(port_info[\u0027removed\u0027])"},{"line_number":1381,"context_line":"            LOG.debug(\"process_network_ports - iteration:%(iter_num)d - \""}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_5374fb9a","line":1378,"updated":"2015-07-07 05:04:57.000000000","message":"if port_info.get(\u0027removed\u0027): is simpler.","commit_id":"aaeb3cdeebedd34bad331ef12a83b2c291d7d589"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"52113eaafc79888ab97d487adc940dcfa08398ef","unresolved":false,"context_lines":[{"line_number":1388,"context_line":"    def process_ancillary_network_ports(self, port_info):"},{"line_number":1389,"context_line":"        resync_a \u003d False"},{"line_number":1390,"context_line":"        resync_b \u003d False"},{"line_number":1391,"context_line":"        if \u0027added\u0027 in port_info and port_info[\u0027added\u0027]:"},{"line_number":1392,"context_line":"            start \u003d time.time()"},{"line_number":1393,"context_line":"            try:"},{"line_number":1394,"context_line":"                self.treat_ancillary_devices_added(port_info[\u0027added\u0027])"}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_7377bf9f","line":1391,"updated":"2015-07-07 05:04:57.000000000","message":"ditto","commit_id":"aaeb3cdeebedd34bad331ef12a83b2c291d7d589"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"52113eaafc79888ab97d487adc940dcfa08398ef","unresolved":false,"context_lines":[{"line_number":1404,"context_line":"                                  \"iteration:%d - failure while retrieving \""},{"line_number":1405,"context_line":"                                  \"port details from server\"), self.iter_num)"},{"line_number":1406,"context_line":"                resync_a \u003d True"},{"line_number":1407,"context_line":"        if \u0027removed\u0027 in port_info and port_info[\u0027removed\u0027]:"},{"line_number":1408,"context_line":"            start \u003d time.time()"},{"line_number":1409,"context_line":"            resync_b \u003d self.treat_ancillary_devices_removed("},{"line_number":1410,"context_line":"                port_info[\u0027removed\u0027])"}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_136e73c9","line":1407,"updated":"2015-07-07 05:04:57.000000000","message":"ditto","commit_id":"aaeb3cdeebedd34bad331ef12a83b2c291d7d589"}],"neutron/plugins/ml2/rpc.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cc02cbf76afde5c06c1bf321589498711843153d","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            )"},{"line_number":153,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":154,"context_line":"        ]"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def update_device_up(self, rpc_context, **kwargs):"},{"line_number":157,"context_line":"        \"\"\"Device is up on agent.\"\"\""},{"line_number":158,"context_line":"        agent_id \u003d kwargs.get(\u0027agent_id\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_bb11ec54","line":155,"updated":"2015-01-15 12:42:07.000000000","message":"I wonder if one fails in the middle.\n\nsome of them would be done, some of them wouldn\u0027t.\n\nNext step could be optimizing the query if we have lots and lots of this.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            )"},{"line_number":153,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":154,"context_line":"        ]"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def update_device_up(self, rpc_context, **kwargs):"},{"line_number":157,"context_line":"        \"\"\"Device is up on agent.\"\"\""},{"line_number":158,"context_line":"        agent_id \u003d kwargs.get(\u0027agent_id\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_e3b744f3","line":155,"in_reply_to":"3a961159_bb11ec54","updated":"2015-02-04 21:57:15.000000000","message":"Ditto.  Also, It\u0027ll be nice to see some optimization here so that the bulk becomes the special case for single device case and not the other way round (for d in devices: call-single-device-case() is straight-fwd but prbly we can do better).  Ideally plugin change to support bulk update would be great!","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            )"},{"line_number":153,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":154,"context_line":"        ]"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def update_device_up(self, rpc_context, **kwargs):"},{"line_number":157,"context_line":"        \"\"\"Device is up on agent.\"\"\""},{"line_number":158,"context_line":"        agent_id \u003d kwargs.get(\u0027agent_id\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_d12a288f","line":155,"in_reply_to":"3a961159_bb11ec54","updated":"2015-02-10 11:04:57.000000000","message":"If one fails in the middle...the behaviour will be the same as the current code. The OVS agent right now updates the devices one by one, if one fails in the middle, it will trigger a resync. The same will happen with this change. For sure we need to improve the way failure is handled, it\u0027s gonna be tacked in following patches.\n\nRegarding optimizing the query, I\u0027d love so. It\u0027s not easy since the code for update_port_status is pretty complex. I\u0027d leave it for later, anyway if anyone wants to chime in and take care of that I\u0027d be happy :)","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        return {\u0027device\u0027: device,"},{"line_number":150,"context_line":"                \u0027exists\u0027: port_exists}"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def update_device_list_down(self, rpc_context, **kwargs):"},{"line_number":153,"context_line":"        devices \u003d []"},{"line_number":154,"context_line":"        failed_devices \u003d []"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_d888ae24","line":151,"updated":"2015-03-02 14:49:17.000000000","message":"It looks like there\u0027s coverage for the agent side of the RPC methods but no test coverage for these two methods? I would expect test additions to RpcCallbacksTestCase.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        return {\u0027device\u0027: device,"},{"line_number":150,"context_line":"                \u0027exists\u0027: port_exists}"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def update_device_list_down(self, rpc_context, **kwargs):"},{"line_number":153,"context_line":"        devices \u003d []"},{"line_number":154,"context_line":"        failed_devices \u003d []"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_52914699","line":151,"in_reply_to":"ba7be1f8_d888ae24","updated":"2015-03-17 12:02:50.000000000","message":"I didn\u0027t add any at the beginning because it\u0027s just a bulk call. Anyway the logic of failed devices should be tested. Will add more UTs!","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                               rpc_context,"},{"line_number":159,"context_line":"                               device\u003ddevice,"},{"line_number":160,"context_line":"                               **kwargs))"},{"line_number":161,"context_line":"            except Exception:"},{"line_number":162,"context_line":"                failed_devices.append(device)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        return {\u0027devices\u0027: devices,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_98fc7640","line":161,"updated":"2015-03-02 14:49:17.000000000","message":"Is there any logging you\u0027d like to do here?\n\nWhat kind of failures / type of exceptions are you expecting?","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                               rpc_context,"},{"line_number":159,"context_line":"                               device\u003ddevice,"},{"line_number":160,"context_line":"                               **kwargs))"},{"line_number":161,"context_line":"            except Exception:"},{"line_number":162,"context_line":"                failed_devices.append(device)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        return {\u0027devices\u0027: devices,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_f23f9a85","line":161,"in_reply_to":"ba7be1f8_98fc7640","updated":"2015-03-17 12:02:50.000000000","message":"We can log here. I want to except anything that could fail in update_device_down, it\u0027s mostly exception related to the DB.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":197,"context_line":"    def update_device_list_up(self, rpc_context, **kwargs):"},{"line_number":198,"context_line":"        failed_devices \u003d []"},{"line_number":199,"context_line":"        for device in kwargs.pop(\u0027devices\u0027, []):"},{"line_number":200,"context_line":"            try:"},{"line_number":201,"context_line":"                self.update_device_up("},{"line_number":202,"context_line":"                    rpc_context,"},{"line_number":203,"context_line":"                    device\u003ddevice,"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_7d07b41d","line":200,"updated":"2015-03-02 14:49:17.000000000","message":"There\u0027s several DB operations that could be optimized (get_port_binding_host can be made similar to get_sg_ids_grouped_by_port for example) if we wouldn\u0027t throw away the knowledge that this is essentially a bulk operation. For your consideration.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":197,"context_line":"    def update_device_list_up(self, rpc_context, **kwargs):"},{"line_number":198,"context_line":"        failed_devices \u003d []"},{"line_number":199,"context_line":"        for device in kwargs.pop(\u0027devices\u0027, []):"},{"line_number":200,"context_line":"            try:"},{"line_number":201,"context_line":"                self.update_device_up("},{"line_number":202,"context_line":"                    rpc_context,"},{"line_number":203,"context_line":"                    device\u003ddevice,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_b229a2f4","line":200,"in_reply_to":"ba7be1f8_7d07b41d","updated":"2015-03-17 12:02:50.000000000","message":"Yep, let\u0027s leave it for another patch","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                    rpc_context,"},{"line_number":203,"context_line":"                    device\u003ddevice,"},{"line_number":204,"context_line":"                    **kwargs)"},{"line_number":205,"context_line":"            except Exception:"},{"line_number":206,"context_line":"                failed_devices.append(device)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        return failed_devices"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_989396f9","line":205,"updated":"2015-03-02 14:49:17.000000000","message":"Same comment about exception handling.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                    rpc_context,"},{"line_number":203,"context_line":"                    device\u003ddevice,"},{"line_number":204,"context_line":"                    **kwargs)"},{"line_number":205,"context_line":"            except Exception:"},{"line_number":206,"context_line":"                failed_devices.append(device)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        return failed_devices"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_d22e16fa","line":205,"in_reply_to":"ba7be1f8_989396f9","updated":"2015-03-17 12:02:50.000000000","message":"Done","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":204,"context_line":"                    **kwargs)"},{"line_number":205,"context_line":"            except Exception:"},{"line_number":206,"context_line":"                failed_devices.append(device)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        return failed_devices"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_180de690","line":207,"updated":"2015-03-02 14:49:17.000000000","message":"How come update_device_list_up and down have a different return value (Dict vs list)? I understand that you don\u0027t need the devices that were successfully updated but the inconsistency is surprising / non-intuitive.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":204,"context_line":"                    **kwargs)"},{"line_number":205,"context_line":"            except Exception:"},{"line_number":206,"context_line":"                failed_devices.append(device)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"        return failed_devices"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_72472abd","line":207,"in_reply_to":"ba7be1f8_180de690","updated":"2015-03-17 12:02:50.000000000","message":"I went back and forth with this. I will make it consistent","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        return {\u0027device\u0027: device,"},{"line_number":163,"context_line":"                \u0027exists\u0027: port_exists}"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def update_device_list_down(self, rpc_context, **kwargs):"},{"line_number":166,"context_line":"        devices \u003d []"},{"line_number":167,"context_line":"        failed_devices \u003d []"},{"line_number":168,"context_line":"        for device in kwargs.pop(\u0027devices\u0027, []):"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_f93d5a8f","line":165,"updated":"2015-03-19 03:18:21.000000000","message":"docstrings would be nice; that aside, have you considered the possibility of implementing a cleverer version for the bulk version, that didn\u0027t simply enumerate over?","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        return {\u0027device\u0027: device,"},{"line_number":163,"context_line":"                \u0027exists\u0027: port_exists}"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def update_device_list_down(self, rpc_context, **kwargs):"},{"line_number":166,"context_line":"        devices \u003d []"},{"line_number":167,"context_line":"        failed_devices \u003d []"},{"line_number":168,"context_line":"        for device in kwargs.pop(\u0027devices\u0027, []):"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_38ea8374","line":165,"in_reply_to":"9a80dd14_f93d5a8f","updated":"2015-03-19 18:27:23.000000000","message":"Yes I have considered that, it\u0027s on my list. It\u0027s not trivial to do, I\u0027d leave it for later.","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5b47d34bef280dd576f83bf831a5f29a758ba7da","unresolved":false,"context_lines":[{"line_number":173,"context_line":"                               **kwargs))"},{"line_number":174,"context_line":"            except Exception:"},{"line_number":175,"context_line":"                failed_devices.append(device)"},{"line_number":176,"context_line":"                LOG.error(_LE(\"Failed to update device %s down\") % device)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        return {\u0027devices\u0027: devices,"},{"line_number":179,"context_line":"                \u0027failed_devices\u0027: failed_devices}"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_2a00a801","line":176,"updated":"2015-03-18 07:22:08.000000000","message":"LOG.error(_LE(\"Failed to update device %s down\"), device)","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":173,"context_line":"                               **kwargs))"},{"line_number":174,"context_line":"            except Exception:"},{"line_number":175,"context_line":"                failed_devices.append(device)"},{"line_number":176,"context_line":"                LOG.error(_LE(\"Failed to update device %s down\") % device)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        return {\u0027devices\u0027: devices,"},{"line_number":179,"context_line":"                \u0027failed_devices\u0027: failed_devices}"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_d93c1696","line":176,"in_reply_to":"9a80dd14_2a00a801","updated":"2015-03-19 03:18:21.000000000","message":"+1","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":176,"context_line":"                LOG.error(_LE(\"Failed to update device %s down\") % device)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        return {\u0027devices\u0027: devices,"},{"line_number":179,"context_line":"                \u0027failed_devices\u0027: failed_devices}"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    def update_device_up(self, rpc_context, **kwargs):"},{"line_number":182,"context_line":"        \"\"\"Device is up on agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_59ce665b","line":179,"updated":"2015-03-19 03:18:21.000000000","message":"I wonder if we could go the extra mile and provide a method that looks like:\n\ndef update_device_list(self, rpc_context, devices_up, devices_down)\n\n  for devices in devices_up:\n    do_update_devices_up\n\n  for devices in devices_down:\n    do_update_devices_down\n\n\nthis can be useful in one of the sync-up methods of the agent.","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":176,"context_line":"                LOG.error(_LE(\"Failed to update device %s down\") % device)"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        return {\u0027devices\u0027: devices,"},{"line_number":179,"context_line":"                \u0027failed_devices\u0027: failed_devices}"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    def update_device_up(self, rpc_context, **kwargs):"},{"line_number":182,"context_line":"        \"\"\"Device is up on agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_d2ba230a","line":179,"in_reply_to":"9a80dd14_59ce665b","updated":"2015-03-19 18:27:23.000000000","message":"OK let\u0027s do that!","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5b47d34bef280dd576f83bf831a5f29a758ba7da","unresolved":false,"context_lines":[{"line_number":225,"context_line":"                devices.append(device)"},{"line_number":226,"context_line":"            except Exception:"},{"line_number":227,"context_line":"                failed_devices.append(device)"},{"line_number":228,"context_line":"                LOG.error(_LE(\"Failed to update device %s up\") % device)"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"        return {\u0027devices\u0027: devices,"},{"line_number":231,"context_line":"                \u0027failed_devices\u0027: failed_devices}"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_8d08ce29","line":228,"updated":"2015-03-18 07:22:08.000000000","message":"LOG.error(_LE(\"Failed to update device %s up\"), device)","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":225,"context_line":"                devices.append(device)"},{"line_number":226,"context_line":"            except Exception:"},{"line_number":227,"context_line":"                failed_devices.append(device)"},{"line_number":228,"context_line":"                LOG.error(_LE(\"Failed to update device %s up\") % device)"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"        return {\u0027devices\u0027: devices,"},{"line_number":231,"context_line":"                \u0027failed_devices\u0027: failed_devices}"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_c7533a6a","line":228,"in_reply_to":"9a80dd14_8d08ce29","updated":"2015-03-19 18:27:23.000000000","message":"Done","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ed2cfc1df2968ea0ed12e5e6b85215fa5842bd14","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            registry.notify("},{"line_number":220,"context_line":"                resources.PORT, events.AFTER_UPDATE, plugin, **kwargs)"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    def update_device_list(self, rpc_context, **kwargs):"},{"line_number":223,"context_line":"        devices_up \u003d []"},{"line_number":224,"context_line":"        failed_devices_up \u003d []"},{"line_number":225,"context_line":"        devices_down \u003d []"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a80dd14_1d8f48ce","line":222,"updated":"2015-03-19 22:44:50.000000000","message":"it sounds like this could do with a util method, but I\u0027d be willing to take a punt on this.","commit_id":"b9d6971d79cbbc5ad5b308b1251c39c92fd68d90"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d9d6ce5b36478f11595b760e922ba6b95b6e704d","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            registry.notify("},{"line_number":220,"context_line":"                resources.PORT, events.AFTER_UPDATE, plugin, **kwargs)"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    def update_device_list(self, rpc_context, **kwargs):"},{"line_number":223,"context_line":"        devices_up \u003d []"},{"line_number":224,"context_line":"        failed_devices_up \u003d []"},{"line_number":225,"context_line":"        devices_down \u003d []"}],"source_content_type":"text/x-python","patch_set":10,"id":"baa041b7_111e68ba","line":222,"in_reply_to":"9a80dd14_1d8f48ce","updated":"2015-04-02 15:13:07.000000000","message":"Armando, what are you suggesting exactly?","commit_id":"b9d6971d79cbbc5ad5b308b1251c39c92fd68d90"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"f0b73428c673549d8c70c5439761987e33ea555c","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                               cached_networks\u003dcached_networks,"},{"line_number":150,"context_line":"                               **kwargs))"},{"line_number":151,"context_line":"            except Exception:"},{"line_number":152,"context_line":"                LOG.error(_LE(\"Failed to get details for device %s up\"),"},{"line_number":153,"context_line":"                          device)"},{"line_number":154,"context_line":"                failed_devices.append(device)"},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"3ab451fb_ac1764ec","line":152,"updated":"2015-04-17 22:09:54.000000000","message":"Is the word \"up\" at the end an artifact of copying this message from L239?  I\u0027m not sure it makes sense in this context.","commit_id":"53b827f515b0fc0ffb5954bbcda93760f29e685e"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"9ab8a3c34e9b5f2ed87777c83fd5bbe2fafffc1c","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                               cached_networks\u003dcached_networks,"},{"line_number":150,"context_line":"                               **kwargs))"},{"line_number":151,"context_line":"            except Exception:"},{"line_number":152,"context_line":"                LOG.error(_LE(\"Failed to get details for device %s up\"),"},{"line_number":153,"context_line":"                          device)"},{"line_number":154,"context_line":"                failed_devices.append(device)"},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9abe1de1_9902ce3d","line":152,"in_reply_to":"3ab451fb_ac1764ec","updated":"2015-04-27 12:53:07.000000000","message":"Thanks, Done!","commit_id":"53b827f515b0fc0ffb5954bbcda93760f29e685e"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"b220e689e28e3056a73bc69f2491d953736ff2a9","unresolved":false,"context_lines":[{"line_number":235,"context_line":"                    device\u003ddevice,"},{"line_number":236,"context_line":"                    **kwargs)"},{"line_number":237,"context_line":"                devices_up.append(device)"},{"line_number":238,"context_line":"            except Exception:"},{"line_number":239,"context_line":"                failed_devices_up.append(device)"},{"line_number":240,"context_line":"                LOG.error(_LE(\"Failed to update device %s up\"), device)"},{"line_number":241,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"7ad32947_61260fbc","line":238,"updated":"2015-04-28 03:25:33.000000000","message":"nit: could we catch remote error or what ever exception we expect update_device_up() to throw instead of catching everything here (and below).\n\nnit: also could add else: devices_up.append(device); to remove that out of the except block as well.","commit_id":"64d2c58c41d8dbcc7fd9ce4a40fcb3adf9a79a56"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"35b6df6f5267d430eda49aebfaf2cc6fe704962d","unresolved":false,"context_lines":[{"line_number":235,"context_line":"                    device\u003ddevice,"},{"line_number":236,"context_line":"                    **kwargs)"},{"line_number":237,"context_line":"                devices_up.append(device)"},{"line_number":238,"context_line":"            except Exception:"},{"line_number":239,"context_line":"                failed_devices_up.append(device)"},{"line_number":240,"context_line":"                LOG.error(_LE(\"Failed to update device %s up\"), device)"},{"line_number":241,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1aca2d91_76857cab","line":238,"in_reply_to":"7ad32947_61260fbc","updated":"2015-05-07 16:57:19.000000000","message":"regarding the first nit, the idea is to catch everything so that the agent doesn\u0027t have to care about handling the exception. If you look at the OVSNeutronAgent code the try/except block surrounding these rpc calls  catches Exception, nothing specific. I think it\u0027s consistent here to keep the same behaviour.\nRegarding the second nit, yes thanks!","commit_id":"64d2c58c41d8dbcc7fd9ce4a40fcb3adf9a79a56"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":239,"context_line":"                failed_devices_up.append(device)"},{"line_number":240,"context_line":"                LOG.error(_LE(\"Failed to update device %s up\"), device)"},{"line_number":241,"context_line":"            else:"},{"line_number":242,"context_line":"                devices_up.append(device)"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"        devices_down \u003d kwargs.get(\u0027devices_down\u0027, [])"},{"line_number":245,"context_line":"        for device in devices_down:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_61375ae4","line":242,"updated":"2015-05-12 05:59:34.000000000","message":"i guess this devices_up is meant to be a different list from the argument.","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":239,"context_line":"                failed_devices_up.append(device)"},{"line_number":240,"context_line":"                LOG.error(_LE(\"Failed to update device %s up\"), device)"},{"line_number":241,"context_line":"            else:"},{"line_number":242,"context_line":"                devices_up.append(device)"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"        devices_down \u003d kwargs.get(\u0027devices_down\u0027, [])"},{"line_number":245,"context_line":"        for device in devices_down:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_4620d09b","line":242,"in_reply_to":"9a0c5dc1_61375ae4","updated":"2015-05-12 16:11:11.000000000","message":"oh yes, I just found that testing it, thanks!","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":252,"context_line":"                failed_devices_down.append(device)"},{"line_number":253,"context_line":"                LOG.error(_LE(\"Failed to update device %s down\"), device)"},{"line_number":254,"context_line":"            else:"},{"line_number":255,"context_line":"                devices_down.append(dev)"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"        return {\u0027devices_up\u0027: devices_up,"},{"line_number":258,"context_line":"                \u0027failed_devices_up\u0027: failed_devices_up,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_e1510a10","line":255,"updated":"2015-05-12 05:59:34.000000000","message":"ditto","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"671f906c864d537bc4977be9331effb7d215012e","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":137,"context_line":"        ]"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def get_devices_details_list_and_failed_devices(self,"},{"line_number":140,"context_line":"                                                    rpc_context,"},{"line_number":141,"context_line":"                                                    **kwargs):"},{"line_number":142,"context_line":"        devices \u003d []"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_bd9df367","line":139,"updated":"2015-06-09 08:42:39.000000000","message":"I think this method is good for optimisation of agent-server interactions and agent performance. However in fact it doesn\u0027t differ much from the one above. I\u0027d just update existing and check return value on client side being able to handle both versions for backward compatibility. Can also add TODO to remove compatibility hook in M release. That will reduce code duplication and make RPC interface more clear IMO.","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"3c3476ced21bfac8d168b01a8f2bbfb6337380df","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":137,"context_line":"        ]"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def get_devices_details_list_and_failed_devices(self,"},{"line_number":140,"context_line":"                                                    rpc_context,"},{"line_number":141,"context_line":"                                                    **kwargs):"},{"line_number":142,"context_line":"        devices \u003d []"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_6ac8c8a8","line":139,"in_reply_to":"3afb71cf_1beaccdb","updated":"2015-06-09 12:16:05.000000000","message":"Indeed, that\u0027s a valid concern, I missed it. Probably there is a way to determine what version client requests for on server side? Will check it.","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0c5427a32c69471b3d5ef2a65f0eb10fdce12139","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":137,"context_line":"        ]"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def get_devices_details_list_and_failed_devices(self,"},{"line_number":140,"context_line":"                                                    rpc_context,"},{"line_number":141,"context_line":"                                                    **kwargs):"},{"line_number":142,"context_line":"        devices \u003d []"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_a0d25f5a","line":139,"in_reply_to":"3afb71cf_6ac8c8a8","updated":"2015-06-09 12:42:23.000000000","message":"Can rpc_context have such info?","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"ef30f643202fbfa4c90720a426c75608946b04d2","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":137,"context_line":"        ]"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def get_devices_details_list_and_failed_devices(self,"},{"line_number":140,"context_line":"                                                    rpc_context,"},{"line_number":141,"context_line":"                                                    **kwargs):"},{"line_number":142,"context_line":"        devices \u003d []"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_c16cc5d2","line":139,"in_reply_to":"3afb71cf_a0d25f5a","updated":"2015-06-11 16:58:46.000000000","message":"Nope that\u0027s the NeutronContext passed","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d91e6632c9f62f23305611c52f8e0c74876477be","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            for device in kwargs.pop(\u0027devices\u0027, [])"},{"line_number":137,"context_line":"        ]"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def get_devices_details_list_and_failed_devices(self,"},{"line_number":140,"context_line":"                                                    rpc_context,"},{"line_number":141,"context_line":"                                                    **kwargs):"},{"line_number":142,"context_line":"        devices \u003d []"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_1beaccdb","line":139,"in_reply_to":"3afb71cf_bd9df367","updated":"2015-06-09 11:10:18.000000000","message":"Thanks Oleg, the problem is that changing the return value of the rpc call can\u0027t be backward compatible even if I add some code on the client side. Imagine an older client that gets the updated version of \"get_devices_details_list\" and gets a list of {\u0027devices\u0027: devices,\t \u0027failed_devices\u0027: failed_devices} , it doesn\u0027t know how to handle it. Am I missing something?\nI can add a TODO to remove \"get_devices_details_list\" in M when the Liberty clients will use only \"get_devices_details_list_and_failed_devices\"","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cc02cbf76afde5c06c1bf321589498711843153d","unresolved":false,"context_lines":[{"line_number":1132,"context_line":"                # FIXME(salv-orlando): Failures while updating device status"},{"line_number":1133,"context_line":"                # must be handled appropriately. Otherwise this might prevent"},{"line_number":1134,"context_line":"                # neutron server from sending network-vif-* events to the nova"},{"line_number":1135,"context_line":"                # API server, thus possibly preventing instance spawn."},{"line_number":1136,"context_line":"                if details.get(\u0027admin_state_up\u0027):"},{"line_number":1137,"context_line":"                    LOG.debug(\"Setting status for %s to UP\", device)"},{"line_number":1138,"context_line":"                    devices_up.append(device)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_fb2e148c","line":1135,"updated":"2015-01-15 12:42:07.000000000","message":"^ related to my comment on the previous file.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1132,"context_line":"                # FIXME(salv-orlando): Failures while updating device status"},{"line_number":1133,"context_line":"                # must be handled appropriately. Otherwise this might prevent"},{"line_number":1134,"context_line":"                # neutron server from sending network-vif-* events to the nova"},{"line_number":1135,"context_line":"                # API server, thus possibly preventing instance spawn."},{"line_number":1136,"context_line":"                if details.get(\u0027admin_state_up\u0027):"},{"line_number":1137,"context_line":"                    LOG.debug(\"Setting status for %s to UP\", device)"},{"line_number":1138,"context_line":"                    devices_up.append(device)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_e3858407","line":1135,"in_reply_to":"3a961159_2c5dc4ec","updated":"2015-02-04 21:57:15.000000000","message":"cool.  looking forward to the updated patch.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"766485cb993364849ab9a55c8fdbc6a327b63c32","unresolved":false,"context_lines":[{"line_number":1132,"context_line":"                # FIXME(salv-orlando): Failures while updating device status"},{"line_number":1133,"context_line":"                # must be handled appropriately. Otherwise this might prevent"},{"line_number":1134,"context_line":"                # neutron server from sending network-vif-* events to the nova"},{"line_number":1135,"context_line":"                # API server, thus possibly preventing instance spawn."},{"line_number":1136,"context_line":"                if details.get(\u0027admin_state_up\u0027):"},{"line_number":1137,"context_line":"                    LOG.debug(\"Setting status for %s to UP\", device)"},{"line_number":1138,"context_line":"                    devices_up.append(device)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_2c5dc4ec","line":1135,"in_reply_to":"3a961159_fb2e148c","updated":"2015-01-15 13:57:14.000000000","message":"Good point! Improving the why failures are handled is another goal of the blueprint, I was planning to do that in a following patch, I should have set this one to WIP and should have added a comment. Thanks for pointing this out!","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1137,"context_line":"                    LOG.debug(\"Setting status for %s to UP\", device)"},{"line_number":1138,"context_line":"                    devices_up.append(device)"},{"line_number":1139,"context_line":"                else:"},{"line_number":1140,"context_line":"                    LOG.debug(\"Setting status for %s to DOWN\", device)"},{"line_number":1141,"context_line":"                    devices_down.append(device)"},{"line_number":1142,"context_line":"                LOG.info(_LI(\"Configuration for device %s completed.\"), device)"},{"line_number":1143,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_03dd38e0","line":1140,"updated":"2015-02-04 21:57:15.000000000","message":"perhaps move this down.  see below.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":1137,"context_line":"                    LOG.debug(\"Setting status for %s to UP\", device)"},{"line_number":1138,"context_line":"                    devices_up.append(device)"},{"line_number":1139,"context_line":"                else:"},{"line_number":1140,"context_line":"                    LOG.debug(\"Setting status for %s to DOWN\", device)"},{"line_number":1141,"context_line":"                    devices_down.append(device)"},{"line_number":1142,"context_line":"                LOG.info(_LI(\"Configuration for device %s completed.\"), device)"},{"line_number":1143,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_42e854b4","line":1140,"in_reply_to":"da86d52c_03dd38e0","updated":"2015-02-10 11:04:57.000000000","message":"I think it\u0027s OK here, in the original code the log is before the rcp call","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1139,"context_line":"                else:"},{"line_number":1140,"context_line":"                    LOG.debug(\"Setting status for %s to DOWN\", device)"},{"line_number":1141,"context_line":"                    devices_down.append(device)"},{"line_number":1142,"context_line":"                LOG.info(_LI(\"Configuration for device %s completed.\"), device)"},{"line_number":1143,"context_line":"            else:"},{"line_number":1144,"context_line":"                LOG.warn(_LW(\"Device %s not defined on plugin\"), device)"},{"line_number":1145,"context_line":"                if (port and port.ofport !\u003d -1):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_c358808c","line":1142,"updated":"2015-02-04 21:57:15.000000000","message":"This log isn\u0027t valid - config isn\u0027t complete yet.  You should move this until after L1153","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":1139,"context_line":"                else:"},{"line_number":1140,"context_line":"                    LOG.debug(\"Setting status for %s to DOWN\", device)"},{"line_number":1141,"context_line":"                    devices_down.append(device)"},{"line_number":1142,"context_line":"                LOG.info(_LI(\"Configuration for device %s completed.\"), device)"},{"line_number":1143,"context_line":"            else:"},{"line_number":1144,"context_line":"                LOG.warn(_LW(\"Device %s not defined on plugin\"), device)"},{"line_number":1145,"context_line":"                if (port and port.ofport !\u003d -1):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_82d16cfd","line":1142,"in_reply_to":"da86d52c_c358808c","updated":"2015-02-10 11:04:57.000000000","message":"OK","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1150,"context_line":"        if devices_down:"},{"line_number":1151,"context_line":"            self.plugin_rpc.update_device_list_down("},{"line_number":1152,"context_line":"                self.context, devices_down, self.agent_id, cfg.CONF.host)"},{"line_number":1153,"context_line":""},{"line_number":1154,"context_line":"        return skipped_devices"},{"line_number":1155,"context_line":""},{"line_number":1156,"context_line":"    def treat_ancillary_devices_added(self, devices):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_a39c6c10","line":1153,"updated":"2015-02-04 21:57:15.000000000","message":"Once you\u0027ve added logic to figure out which devices were successfully configured and which weren\u0027t failed, you should may log status individually (i.e. move the logs from the loop above to down here after the real status is known).","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1170,"context_line":"        self.plugin_rpc.update_device_list_up(self.context,"},{"line_number":1171,"context_line":"                                              devices_added,"},{"line_number":1172,"context_line":"                                              self.agent_id,"},{"line_number":1173,"context_line":"                                              cfg.CONF.host)"},{"line_number":1174,"context_line":""},{"line_number":1175,"context_line":"    def treat_devices_removed(self, devices):"},{"line_number":1176,"context_line":"        self.sg_agent.remove_devices_filter(devices)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_23af9c2b","line":1173,"updated":"2015-02-04 21:57:15.000000000","message":"same comment about handling failures - looks like you are already working on it based on your comment above.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1174,"context_line":""},{"line_number":1175,"context_line":"    def treat_devices_removed(self, devices):"},{"line_number":1176,"context_line":"        self.sg_agent.remove_devices_filter(devices)"},{"line_number":1177,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1178,"context_line":"        try:"},{"line_number":1179,"context_line":"            self.plugin_rpc.update_device_list_down(self.context,"},{"line_number":1180,"context_line":"                                                    devices,"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_8333e812","line":1177,"updated":"2015-02-04 21:57:15.000000000","message":"I\u0027m not sure why this log is here (even in original) as compared to after it\u0027s removed.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":1174,"context_line":""},{"line_number":1175,"context_line":"    def treat_devices_removed(self, devices):"},{"line_number":1176,"context_line":"        self.sg_agent.remove_devices_filter(devices)"},{"line_number":1177,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1178,"context_line":"        try:"},{"line_number":1179,"context_line":"            self.plugin_rpc.update_device_list_down(self.context,"},{"line_number":1180,"context_line":"                                                    devices,"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_82f88c7d","line":1177,"in_reply_to":"da86d52c_8333e812","updated":"2015-02-10 11:04:57.000000000","message":"I will leave it as it is to be consistent with the original code","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1183,"context_line":"        except Exception as e:"},{"line_number":1184,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1185,"context_line":"                      {\u0027devices\u0027: devices, \u0027e\u0027: e})"},{"line_number":1186,"context_line":"            return True"},{"line_number":1187,"context_line":""},{"line_number":1188,"context_line":"        for device in devices:"},{"line_number":1189,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_a67b9a8a","line":1186,"updated":"2015-02-04 21:57:15.000000000","message":"I think this is problematic.  The original code is still going ahead with cleanup of local data structures even if exception is thrown.  Here, I don\u0027t know if the exception is due to handling some of the devices or all the devices, etc.  In either case, returning here doesn\u0027t seem like the right thing to do.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":1183,"context_line":"        except Exception as e:"},{"line_number":1184,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1185,"context_line":"                      {\u0027devices\u0027: devices, \u0027e\u0027: e})"},{"line_number":1186,"context_line":"            return True"},{"line_number":1187,"context_line":""},{"line_number":1188,"context_line":"        for device in devices:"},{"line_number":1189,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_a26d909b","line":1186,"in_reply_to":"da86d52c_a67b9a8a","updated":"2015-02-10 11:04:57.000000000","message":"I don\u0027t understand your comment. We have to return here because now we are updating the devices all in one shot, so there\u0027s no point in leaving the \u0027continue\u0027. self.port_unbound is called only for devices that were successfully updated, in this case we consider that no device was update correctly. The resync will fix inconsistencies.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"877ed993126ca4a5481a3838b4bfca0d83d5da6b","unresolved":false,"context_lines":[{"line_number":1197,"context_line":"                                                              self.agent_id,"},{"line_number":1198,"context_line":"                                                              cfg.CONF.host)"},{"line_number":1199,"context_line":"        except Exception as e:"},{"line_number":1200,"context_line":"            LOG.debug(\"port_removed failed for %(device)s: %(e)s\","},{"line_number":1201,"context_line":"                      {\u0027device\u0027: devices, \u0027e\u0027: e})"},{"line_number":1202,"context_line":"            return True"},{"line_number":1203,"context_line":"        for detail in details:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_7b6e792d","line":1200,"updated":"2015-01-16 13:59:53.000000000","message":"I guess you want to rename your substitution placement into devices. Even better, we could move the try:except: part into another method and reuse it from here and above.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":1197,"context_line":"                                                              self.agent_id,"},{"line_number":1198,"context_line":"                                                              cfg.CONF.host)"},{"line_number":1199,"context_line":"        except Exception as e:"},{"line_number":1200,"context_line":"            LOG.debug(\"port_removed failed for %(device)s: %(e)s\","},{"line_number":1201,"context_line":"                      {\u0027device\u0027: devices, \u0027e\u0027: e})"},{"line_number":1202,"context_line":"            return True"},{"line_number":1203,"context_line":"        for detail in details:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_5cdf2f69","line":1200,"in_reply_to":"3a961159_7b6e792d","updated":"2015-02-10 11:04:57.000000000","message":"It would be nice to clean up but I\u0027ll leave it for another patch. Renaming done!","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8792,"name":"Manish Godara","email":"manishg@yahoo-inc.com","username":"manishg"},"change_message_id":"5e26482a13927a14f7397af0080757b1d1f6e90c","unresolved":false,"context_lines":[{"line_number":1199,"context_line":"        except Exception as e:"},{"line_number":1200,"context_line":"            LOG.debug(\"port_removed failed for %(device)s: %(e)s\","},{"line_number":1201,"context_line":"                      {\u0027device\u0027: devices, \u0027e\u0027: e})"},{"line_number":1202,"context_line":"            return True"},{"line_number":1203,"context_line":"        for detail in details:"},{"line_number":1204,"context_line":"            if details[\u0027exists\u0027]:"},{"line_number":1205,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_e6a832dd","line":1202,"updated":"2015-02-04 21:57:15.000000000","message":"same comment about return.","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":1199,"context_line":"        except Exception as e:"},{"line_number":1200,"context_line":"            LOG.debug(\"port_removed failed for %(device)s: %(e)s\","},{"line_number":1201,"context_line":"                      {\u0027device\u0027: devices, \u0027e\u0027: e})"},{"line_number":1202,"context_line":"            return True"},{"line_number":1203,"context_line":"        for detail in details:"},{"line_number":1204,"context_line":"            if details[\u0027exists\u0027]:"},{"line_number":1205,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_42369453","line":1202,"in_reply_to":"da86d52c_e6a832dd","updated":"2015-02-10 11:04:57.000000000","message":"ditto","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":1182,"context_line":"                self.context, devices_up, self.agent_id, cfg.CONF.host))"},{"line_number":1183,"context_line":"        if devices_down:"},{"line_number":1184,"context_line":"            devices_set_down \u003d self.plugin_rpc.update_device_list_down("},{"line_number":1185,"context_line":"                self.context, devices_down, self.agent_id, cfg.CONF.host)"},{"line_number":1186,"context_line":"            failed_devices.extend(devices_set_down.get(\u0027failed_devices\u0027))"},{"line_number":1187,"context_line":"        if failed_devices:"},{"line_number":1188,"context_line":"            LOG.error(_LE(\"Configuration for devices %s failed!\"),"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_b853fa37","line":1185,"updated":"2015-03-02 14:49:17.000000000","message":"Hmm isn\u0027t the default value supposed to be [] and not None? This shows that there\u0027s no test coverage for the case where no devices failed to update, please address that.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":1182,"context_line":"                self.context, devices_up, self.agent_id, cfg.CONF.host))"},{"line_number":1183,"context_line":"        if devices_down:"},{"line_number":1184,"context_line":"            devices_set_down \u003d self.plugin_rpc.update_device_list_down("},{"line_number":1185,"context_line":"                self.context, devices_down, self.agent_id, cfg.CONF.host)"},{"line_number":1186,"context_line":"            failed_devices.extend(devices_set_down.get(\u0027failed_devices\u0027))"},{"line_number":1187,"context_line":"        if failed_devices:"},{"line_number":1188,"context_line":"            LOG.error(_LE(\"Configuration for devices %s failed!\"),"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_5259465a","line":1185,"in_reply_to":"ba7be1f8_b853fa37","updated":"2015-03-17 12:02:50.000000000","message":"The default value is supposed to be []","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":1188,"context_line":""},{"line_number":1189,"context_line":"        failed_devices \u003d []"},{"line_number":1190,"context_line":"        if devices_up:"},{"line_number":1191,"context_line":"            devices_set_up \u003d self.plugin_rpc.update_device_list_up("},{"line_number":1192,"context_line":"                self.context, devices_up, self.agent_id, cfg.CONF.host)"},{"line_number":1193,"context_line":"            failed_devices.extend(devices_set_up.get(\u0027failed_devices\u0027))"},{"line_number":1194,"context_line":"        if devices_down:"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_b92cc24b","line":1191,"updated":"2015-03-19 03:18:21.000000000","message":"shouldn\u0027t we make the agent fall back on the simpler version, should the server be pre 1.5? In other words, does this prevent us from having a newer agent work with an older server? I know that the typical upgrade involves the server being renewed first, but forcing the order is a bit evil.\n\nThis is also making the method longer than it needs to be so I wonder if we could break this out.","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":1188,"context_line":""},{"line_number":1189,"context_line":"        failed_devices \u003d []"},{"line_number":1190,"context_line":"        if devices_up:"},{"line_number":1191,"context_line":"            devices_set_up \u003d self.plugin_rpc.update_device_list_up("},{"line_number":1192,"context_line":"                self.context, devices_up, self.agent_id, cfg.CONF.host)"},{"line_number":1193,"context_line":"            failed_devices.extend(devices_set_up.get(\u0027failed_devices\u0027))"},{"line_number":1194,"context_line":"        if devices_down:"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_1f3752b1","line":1191,"in_reply_to":"9a80dd14_b92cc24b","updated":"2015-03-19 18:27:23.000000000","message":"Armando now the method looks a bit shorter. I would avoid to support a version \u003c 1.5 because as you say the server is updated first and also because I want to use the failed devices info to avoid resyncing all the time. Supporting older version would make the code more complex. Let me know if you still feel it would be a good idea to do that.","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56c1f260c8cc29b7fb429068fb90598bd1b80f29","unresolved":false,"context_lines":[{"line_number":1196,"context_line":"                self.context, devices_down, self.agent_id, cfg.CONF.host)"},{"line_number":1197,"context_line":"            failed_devices.extend(devices_set_down.get(\u0027failed_devices\u0027))"},{"line_number":1198,"context_line":"        if failed_devices:"},{"line_number":1199,"context_line":"            LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":1200,"context_line":"                      failed_devices)"},{"line_number":1201,"context_line":"            #TODO(rossella_s) handle better the resync in next patches,"},{"line_number":1202,"context_line":"            # this is just to preserve the current behavior"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_b904c27e","line":1199,"updated":"2015-03-19 03:18:21.000000000","message":"here you could use the bulkier version :)","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6b6cbf5836824db80501e2f1b4c0fe0fb5d4e804","unresolved":false,"context_lines":[{"line_number":1196,"context_line":"                self.context, devices_down, self.agent_id, cfg.CONF.host)"},{"line_number":1197,"context_line":"            failed_devices.extend(devices_set_down.get(\u0027failed_devices\u0027))"},{"line_number":1198,"context_line":"        if failed_devices:"},{"line_number":1199,"context_line":"            LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":1200,"context_line":"                      failed_devices)"},{"line_number":1201,"context_line":"            #TODO(rossella_s) handle better the resync in next patches,"},{"line_number":1202,"context_line":"            # this is just to preserve the current behavior"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_b2d84ff0","line":1199,"in_reply_to":"9a80dd14_b904c27e","updated":"2015-03-19 18:27:23.000000000","message":"yes :)","commit_id":"c7a82016bdb0bd200965a67790735f5423f0560d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ed2cfc1df2968ea0ed12e5e6b85215fa5842bd14","unresolved":false,"context_lines":[{"line_number":1254,"context_line":"        resync \u003d False"},{"line_number":1255,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1256,"context_line":"        details \u003d self.plugin_rpc.update_device_list(self.context,"},{"line_number":1257,"context_line":"                                                     [],"},{"line_number":1258,"context_line":"                                                     devices,"},{"line_number":1259,"context_line":"                                                     self.agent_id,"},{"line_number":1260,"context_line":"                                                     cfg.CONF.host)"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a80dd14_dd24d0c7","line":1257,"updated":"2015-03-19 22:44:50.000000000","message":"You could have passed None here, the plugin seems like it\u0027s handling that correctly, no?","commit_id":"b9d6971d79cbbc5ad5b308b1251c39c92fd68d90"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d9d6ce5b36478f11595b760e922ba6b95b6e704d","unresolved":false,"context_lines":[{"line_number":1254,"context_line":"        resync \u003d False"},{"line_number":1255,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1256,"context_line":"        details \u003d self.plugin_rpc.update_device_list(self.context,"},{"line_number":1257,"context_line":"                                                     [],"},{"line_number":1258,"context_line":"                                                     devices,"},{"line_number":1259,"context_line":"                                                     self.agent_id,"},{"line_number":1260,"context_line":"                                                     cfg.CONF.host)"}],"source_content_type":"text/x-python","patch_set":10,"id":"baa041b7_d16800f8","line":1257,"in_reply_to":"9a80dd14_dd24d0c7","updated":"2015-04-02 15:13:07.000000000","message":"Yes, I could have. I can replace it.","commit_id":"b9d6971d79cbbc5ad5b308b1251c39c92fd68d90"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":766,"context_line":"                    self.context, devices_up, devices_down, self.agent_id,"},{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if (failed_devices):"},{"line_number":771,"context_line":"                LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":772,"context_line":"                          failed_devices)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_56d89aef","line":769,"updated":"2015-05-12 05:59:34.000000000","message":"why to use get()?","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"22a5e4e0e9c7390803c3772bdf765933cc53d0f3","unresolved":false,"context_lines":[{"line_number":766,"context_line":"                    self.context, devices_up, devices_down, self.agent_id,"},{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if (failed_devices):"},{"line_number":771,"context_line":"                LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":772,"context_line":"                          failed_devices)"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a016987_2b7528f9","line":769,"in_reply_to":"9a0c5dc1_26f83ce5","updated":"2015-05-29 06:09:06.000000000","message":"because devices_set[\u0027failed_devices_up\u0027] is simpler.","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":766,"context_line":"                    self.context, devices_up, devices_down, self.agent_id,"},{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if (failed_devices):"},{"line_number":771,"context_line":"                LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":772,"context_line":"                          failed_devices)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_26f83ce5","line":769,"in_reply_to":"9a0c5dc1_56d89aef","updated":"2015-05-12 16:11:11.000000000","message":"why not?","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if (failed_devices):"},{"line_number":771,"context_line":"                LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":772,"context_line":"                          failed_devices)"},{"line_number":773,"context_line":"                #TODO(rossella_s) handle better the resync in next patches,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_d6cb6a1d","line":770,"updated":"2015-05-12 05:59:34.000000000","message":"unnecessary parens.","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if (failed_devices):"},{"line_number":771,"context_line":"                LOG.error(_LE(\"Configuration for devices %s failed!\"),"},{"line_number":772,"context_line":"                          failed_devices)"},{"line_number":773,"context_line":"                #TODO(rossella_s) handle better the resync in next patches,"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_06de586d","line":770,"in_reply_to":"9a0c5dc1_d6cb6a1d","updated":"2015-05-12 16:11:11.000000000","message":"Done","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c27e22bd2b376ac57e6ef6e21dd4d4f561705c11","unresolved":false,"context_lines":[{"line_number":1356,"context_line":"            #TODO(rossella_s) handle better the resync in next patches,"},{"line_number":1357,"context_line":"            # this is just to preserve the current behavior"},{"line_number":1358,"context_line":"            raise DeviceListRetrievalError(devices\u003ddevices)"},{"line_number":1359,"context_line":"        devices_added \u003d []"},{"line_number":1360,"context_line":"        for details in devices_details_list.get(\u0027devices\u0027):"},{"line_number":1361,"context_line":"            devices_added.append(details[\u0027device\u0027])"},{"line_number":1362,"context_line":"        LOG.info(_LI(\"Ancillary Ports %s added\"), devices_added)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9af37de9_2fe24ad6","line":1359,"updated":"2015-05-11 15:35:49.000000000","message":"Could use a list comprehension for L1359-1361:\n\n    devices_added \u003d [d[\u0027device\u0027] for d in devices_details_list.get(\u0027devices\u0027)]","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":1356,"context_line":"            #TODO(rossella_s) handle better the resync in next patches,"},{"line_number":1357,"context_line":"            # this is just to preserve the current behavior"},{"line_number":1358,"context_line":"            raise DeviceListRetrievalError(devices\u003ddevices)"},{"line_number":1359,"context_line":"        devices_added \u003d []"},{"line_number":1360,"context_line":"        for details in devices_details_list.get(\u0027devices\u0027):"},{"line_number":1361,"context_line":"            devices_added.append(details[\u0027device\u0027])"},{"line_number":1362,"context_line":"        LOG.info(_LI(\"Ancillary Ports %s added\"), devices_added)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_064c1841","line":1359,"in_reply_to":"9af37de9_2fe24ad6","updated":"2015-05-12 16:11:11.000000000","message":"thanks, done!","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c27e22bd2b376ac57e6ef6e21dd4d4f561705c11","unresolved":false,"context_lines":[{"line_number":1401,"context_line":"                                                     self.agent_id,"},{"line_number":1402,"context_line":"                                                     cfg.CONF.host)"},{"line_number":1403,"context_line":"        failed_devices \u003d details.get(\u0027failed_devices_down\u0027)"},{"line_number":1404,"context_line":"        devices \u003d details.get(\u0027devices\u0027)"},{"line_number":1405,"context_line":"        if failed_devices:"},{"line_number":1406,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1407,"context_line":"                      {\u0027devices\u0027: failed_devices})"}],"source_content_type":"text/x-python","patch_set":15,"id":"9af37de9_8f4ed6bf","line":1404,"updated":"2015-05-11 15:35:49.000000000","message":"Could eliminate this and just use details.get(\u0027devices\u0027) on L1409 as devices isn\u0027t used elsewhere (and it would be nearer to use).","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":1401,"context_line":"                                                     self.agent_id,"},{"line_number":1402,"context_line":"                                                     cfg.CONF.host)"},{"line_number":1403,"context_line":"        failed_devices \u003d details.get(\u0027failed_devices_down\u0027)"},{"line_number":1404,"context_line":"        devices \u003d details.get(\u0027devices\u0027)"},{"line_number":1405,"context_line":"        if failed_devices:"},{"line_number":1406,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1407,"context_line":"                      {\u0027devices\u0027: failed_devices})"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_660ab4d4","line":1404,"in_reply_to":"9a0c5dc1_7625dec0","updated":"2015-05-12 16:11:11.000000000","message":"yes, done!","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":1401,"context_line":"                                                     self.agent_id,"},{"line_number":1402,"context_line":"                                                     cfg.CONF.host)"},{"line_number":1403,"context_line":"        failed_devices \u003d details.get(\u0027failed_devices_down\u0027)"},{"line_number":1404,"context_line":"        devices \u003d details.get(\u0027devices\u0027)"},{"line_number":1405,"context_line":"        if failed_devices:"},{"line_number":1406,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1407,"context_line":"                      {\u0027devices\u0027: failed_devices})"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_7625dec0","line":1404,"in_reply_to":"9af37de9_8f4ed6bf","updated":"2015-05-12 05:59:34.000000000","message":"\u0027devices_down\u0027 is meant here?","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":1407,"context_line":"                      {\u0027devices\u0027: failed_devices})"},{"line_number":1408,"context_line":"            resync \u003d True"},{"line_number":1409,"context_line":"        for detail in devices:"},{"line_number":1410,"context_line":"            if details[\u0027exists\u0027]:"},{"line_number":1411,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"},{"line_number":1412,"context_line":"                # Nothing to do regarding local networking"},{"line_number":1413,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_5609ba30","line":1410,"updated":"2015-05-12 05:59:34.000000000","message":"s/details/detail/ ?","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":1407,"context_line":"                      {\u0027devices\u0027: failed_devices})"},{"line_number":1408,"context_line":"            resync \u003d True"},{"line_number":1409,"context_line":"        for detail in devices:"},{"line_number":1410,"context_line":"            if details[\u0027exists\u0027]:"},{"line_number":1411,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"},{"line_number":1412,"context_line":"                # Nothing to do regarding local networking"},{"line_number":1413,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_06e898e1","line":1410,"in_reply_to":"9a0c5dc1_5609ba30","updated":"2015-05-12 16:11:11.000000000","message":"thanks","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":1408,"context_line":"            resync \u003d True"},{"line_number":1409,"context_line":"        for detail in devices:"},{"line_number":1410,"context_line":"            if details[\u0027exists\u0027]:"},{"line_number":1411,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"},{"line_number":1412,"context_line":"                # Nothing to do regarding local networking"},{"line_number":1413,"context_line":"            else:"},{"line_number":1414,"context_line":"                LOG.debug(\"Device %s not defined on plugin\", details[\u0027device\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_36064621","line":1411,"updated":"2015-05-12 05:59:34.000000000","message":"ditto","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":1408,"context_line":"            resync \u003d True"},{"line_number":1409,"context_line":"        for detail in devices:"},{"line_number":1410,"context_line":"            if details[\u0027exists\u0027]:"},{"line_number":1411,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"},{"line_number":1412,"context_line":"                # Nothing to do regarding local networking"},{"line_number":1413,"context_line":"            else:"},{"line_number":1414,"context_line":"                LOG.debug(\"Device %s not defined on plugin\", details[\u0027device\u0027])"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_a6ee6cea","line":1411,"in_reply_to":"9a0c5dc1_36064621","updated":"2015-05-12 16:11:11.000000000","message":"thanks","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6a31b28ebfe097e97f4b2db8c28702429ce7b867","unresolved":false,"context_lines":[{"line_number":1411,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"},{"line_number":1412,"context_line":"                # Nothing to do regarding local networking"},{"line_number":1413,"context_line":"            else:"},{"line_number":1414,"context_line":"                LOG.debug(\"Device %s not defined on plugin\", details[\u0027device\u0027])"},{"line_number":1415,"context_line":"        return resync"},{"line_number":1416,"context_line":""},{"line_number":1417,"context_line":"    def process_network_ports(self, port_info, ovs_restarted):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_16034211","line":1414,"updated":"2015-05-12 05:59:34.000000000","message":"ditto","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":1411,"context_line":"                LOG.info(_LI(\"Port %s updated.\"), details[\u0027device\u0027])"},{"line_number":1412,"context_line":"                # Nothing to do regarding local networking"},{"line_number":1413,"context_line":"            else:"},{"line_number":1414,"context_line":"                LOG.debug(\"Device %s not defined on plugin\", details[\u0027device\u0027])"},{"line_number":1415,"context_line":"        return resync"},{"line_number":1416,"context_line":""},{"line_number":1417,"context_line":"    def process_network_ports(self, port_info, ovs_restarted):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_26b95cea","line":1414,"in_reply_to":"9a0c5dc1_16034211","updated":"2015-05-12 16:11:11.000000000","message":"thanks!","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"c27e22bd2b376ac57e6ef6e21dd4d4f561705c11","unresolved":false,"context_lines":[{"line_number":1482,"context_line":"                LOG.debug(\"process_ancillary_network_ports - iteration: \""},{"line_number":1483,"context_line":"                          \"%(iter_num)d - treat_ancillary_devices_added \""},{"line_number":1484,"context_line":"                          \"completed in %(elapsed).3f\","},{"line_number":1485,"context_line":"                         {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1486,"context_line":"                         \u0027elapsed\u0027: time.time() - start})"},{"line_number":1487,"context_line":"            except DeviceListRetrievalError:"},{"line_number":1488,"context_line":"                # Need to resync as there was an error with server"}],"source_content_type":"text/x-python","patch_set":15,"id":"9af37de9_2f680af5","line":1485,"updated":"2015-05-11 15:35:49.000000000","message":"Is it just gerrit display? open bracket should align with double quote on line above (+1 space), and the single quote on the next line should align with the single quote on this line (+2 spaces).","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"347f031b483867eff0c379ad0cf45d51bb6b29ee","unresolved":false,"context_lines":[{"line_number":1482,"context_line":"                LOG.debug(\"process_ancillary_network_ports - iteration: \""},{"line_number":1483,"context_line":"                          \"%(iter_num)d - treat_ancillary_devices_added \""},{"line_number":1484,"context_line":"                          \"completed in %(elapsed).3f\","},{"line_number":1485,"context_line":"                         {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1486,"context_line":"                         \u0027elapsed\u0027: time.time() - start})"},{"line_number":1487,"context_line":"            except DeviceListRetrievalError:"},{"line_number":1488,"context_line":"                # Need to resync as there was an error with server"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a0c5dc1_06a418a4","line":1485,"in_reply_to":"9af37de9_2f680af5","updated":"2015-05-12 16:11:11.000000000","message":"right, thanks","commit_id":"14834363cc48407d3b2ba2ed1ae6e67d952eabf3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e9b0d9f7b541be3539defab7a1035e44f96a6e54","unresolved":false,"context_lines":[{"line_number":764,"context_line":"            if devices_up or devices_down:"},{"line_number":765,"context_line":"                devices_set \u003d self.plugin_rpc.update_device_list("},{"line_number":766,"context_line":"                    self.context, devices_up, devices_down, self.agent_id,"},{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if failed_devices:"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_04956031","line":767,"updated":"2015-05-25 02:52:44.000000000","message":"you still seem to issue update_device_list for every single devices.  is it intentional?","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a08aba6891063b2697374172a07129d135b294d1","unresolved":false,"context_lines":[{"line_number":764,"context_line":"            if devices_up or devices_down:"},{"line_number":765,"context_line":"                devices_set \u003d self.plugin_rpc.update_device_list("},{"line_number":766,"context_line":"                    self.context, devices_up, devices_down, self.agent_id,"},{"line_number":767,"context_line":"                    cfg.CONF.host)"},{"line_number":768,"context_line":"                failed_devices \u003d (devices_set.get(\u0027failed_devices_up\u0027) +"},{"line_number":769,"context_line":"                    devices_set.get(\u0027failed_devices_down\u0027))"},{"line_number":770,"context_line":"            if failed_devices:"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_ef685f23","line":767,"in_reply_to":"7a016987_04956031","updated":"2015-05-28 12:28:46.000000000","message":"Good point, I resolved the merge conflict in a silly way.","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e9b0d9f7b541be3539defab7a1035e44f96a6e54","unresolved":false,"context_lines":[{"line_number":1364,"context_line":"        devices_set_up \u003d ("},{"line_number":1365,"context_line":"            self.plugin_rpc.update_device_list(self.context,"},{"line_number":1366,"context_line":"                                               devices_added,"},{"line_number":1367,"context_line":"                                               None,"},{"line_number":1368,"context_line":"                                               self.agent_id,"},{"line_number":1369,"context_line":"                                               cfg.CONF.host))"},{"line_number":1370,"context_line":"        if devices_set_up.get(\u0027failed_devices_up\u0027):"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_09b3460b","line":1367,"updated":"2015-05-25 02:52:44.000000000","message":"why to use None instead of [] ?","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a08aba6891063b2697374172a07129d135b294d1","unresolved":false,"context_lines":[{"line_number":1364,"context_line":"        devices_set_up \u003d ("},{"line_number":1365,"context_line":"            self.plugin_rpc.update_device_list(self.context,"},{"line_number":1366,"context_line":"                                               devices_added,"},{"line_number":1367,"context_line":"                                               None,"},{"line_number":1368,"context_line":"                                               self.agent_id,"},{"line_number":1369,"context_line":"                                               cfg.CONF.host))"},{"line_number":1370,"context_line":"        if devices_set_up.get(\u0027failed_devices_up\u0027):"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_da3443df","line":1367,"in_reply_to":"7a016987_09b3460b","updated":"2015-05-28 12:28:46.000000000","message":"Armando suggested that in PS10","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e9b0d9f7b541be3539defab7a1035e44f96a6e54","unresolved":false,"context_lines":[{"line_number":1481,"context_line":"                          \"%(iter_num)d - treat_ancillary_devices_added \""},{"line_number":1482,"context_line":"                          \"completed in %(elapsed).3f\","},{"line_number":1483,"context_line":"                          {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1484,"context_line":"                           \u0027elapsed\u0027: time.time() - start})"},{"line_number":1485,"context_line":"            except DeviceListRetrievalError:"},{"line_number":1486,"context_line":"                # Need to resync as there was an error with server"},{"line_number":1487,"context_line":"                # communication."}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_29d96257","line":1484,"updated":"2015-05-25 02:52:44.000000000","message":"unrelated change?","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a08aba6891063b2697374172a07129d135b294d1","unresolved":false,"context_lines":[{"line_number":1481,"context_line":"                          \"%(iter_num)d - treat_ancillary_devices_added \""},{"line_number":1482,"context_line":"                          \"completed in %(elapsed).3f\","},{"line_number":1483,"context_line":"                          {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1484,"context_line":"                           \u0027elapsed\u0027: time.time() - start})"},{"line_number":1485,"context_line":"            except DeviceListRetrievalError:"},{"line_number":1486,"context_line":"                # Need to resync as there was an error with server"},{"line_number":1487,"context_line":"                # communication."}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_0f261bce","line":1484,"in_reply_to":"7a016987_29d96257","updated":"2015-05-28 12:28:46.000000000","message":"yes but it fixed the indentation","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f5b9ef37bdcf50b5b2cfa7bcf672f81f8f818210","unresolved":false,"context_lines":[{"line_number":1260,"context_line":"            None,"},{"line_number":1261,"context_line":"            devices,"},{"line_number":1262,"context_line":"            self.agent_id,"},{"line_number":1263,"context_line":"            cfg.CONF.host)"},{"line_number":1264,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1265,"context_line":"        if failed_devices:"},{"line_number":1266,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","}],"source_content_type":"text/x-python","patch_set":19,"id":"7a016987_2ba8881f","line":1263,"updated":"2015-05-29 06:08:44.000000000","message":"can you use the consistent var names and indentation with treat_ancillary_devices_removed?","commit_id":"3fa50d3a196ae4309f844cb4f12944608db71078"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a860ef94d489b0839e3c39a03d2560f5d18ad88c","unresolved":false,"context_lines":[{"line_number":1260,"context_line":"            None,"},{"line_number":1261,"context_line":"            devices,"},{"line_number":1262,"context_line":"            self.agent_id,"},{"line_number":1263,"context_line":"            cfg.CONF.host)"},{"line_number":1264,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1265,"context_line":"        if failed_devices:"},{"line_number":1266,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","}],"source_content_type":"text/x-python","patch_set":19,"id":"5afe65bd_97deb83d","line":1263,"in_reply_to":"7a016987_2ba8881f","updated":"2015-06-08 13:47:07.000000000","message":"Done","commit_id":"3fa50d3a196ae4309f844cb4f12944608db71078"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"671f906c864d537bc4977be9331effb7d215012e","unresolved":false,"context_lines":[{"line_number":775,"context_line":"            # this is just to preserve the current behavior"},{"line_number":776,"context_line":"            raise DeviceListRetrievalError(devices\u003dfailed_devices)"},{"line_number":777,"context_line":"        LOG.info(_LI(\"Configuration for devices %s completed.\"),"},{"line_number":778,"context_line":"                 need_binding_ports)"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    @staticmethod"},{"line_number":781,"context_line":"    def setup_arp_spoofing_protection(bridge, vif, port_details):"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_1d5d2779","line":778,"updated":"2015-06-09 08:42:39.000000000","message":"this was logging just port_detail[\u0027device\u0027], now the whole dicts which may be not easy/needed to read..","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d91e6632c9f62f23305611c52f8e0c74876477be","unresolved":false,"context_lines":[{"line_number":775,"context_line":"            # this is just to preserve the current behavior"},{"line_number":776,"context_line":"            raise DeviceListRetrievalError(devices\u003dfailed_devices)"},{"line_number":777,"context_line":"        LOG.info(_LI(\"Configuration for devices %s completed.\"),"},{"line_number":778,"context_line":"                 need_binding_ports)"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    @staticmethod"},{"line_number":781,"context_line":"    def setup_arp_spoofing_protection(bridge, vif, port_details):"}],"source_content_type":"text/x-python","patch_set":21,"id":"3afb71cf_db9d5467","line":778,"in_reply_to":"3afb71cf_1d5d2779","updated":"2015-06-09 11:10:18.000000000","message":"Done","commit_id":"cef0b6ede7b585cb9d5b4aacc746c93a7a152c47"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"98e4fa5c84b588009f928d6fc550641f139b2d5f","unresolved":false,"context_lines":[{"line_number":1278,"context_line":"    def treat_devices_removed(self, devices):"},{"line_number":1279,"context_line":"        resync \u003d False"},{"line_number":1280,"context_line":"        self.sg_agent.remove_devices_filter(devices)"},{"line_number":1281,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1282,"context_line":"        devices_down \u003d self.plugin_rpc.update_device_list(self.context,"},{"line_number":1283,"context_line":"                                                          None,"},{"line_number":1284,"context_line":"                                                          devices,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_0318e573","line":1281,"updated":"2015-06-10 12:39:24.000000000","message":"Attachments -\u003e Ports?","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"aac9b2878cdf6e9f3c8cd6a6733f8166f58805bc","unresolved":false,"context_lines":[{"line_number":1278,"context_line":"    def treat_devices_removed(self, devices):"},{"line_number":1279,"context_line":"        resync \u003d False"},{"line_number":1280,"context_line":"        self.sg_agent.remove_devices_filter(devices)"},{"line_number":1281,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1282,"context_line":"        devices_down \u003d self.plugin_rpc.update_device_list(self.context,"},{"line_number":1283,"context_line":"                                                          None,"},{"line_number":1284,"context_line":"                                                          devices,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_41057512","line":1281,"in_reply_to":"3afb71cf_0318e573","updated":"2015-06-11 17:18:00.000000000","message":"Done","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"98e4fa5c84b588009f928d6fc550641f139b2d5f","unresolved":false,"context_lines":[{"line_number":1286,"context_line":"                                                          cfg.CONF.host)"},{"line_number":1287,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1288,"context_line":"        if failed_devices:"},{"line_number":1289,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1290,"context_line":"                      {\u0027devices\u0027: failed_devices})"},{"line_number":1291,"context_line":"            resync \u003d True"},{"line_number":1292,"context_line":"        for device in devices:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_11938efb","line":1289,"updated":"2015-06-10 12:39:24.000000000","message":"port_removed -\u003e Port removal?\n\n%(e)s no longer needed. Since only one arg, could use %s for devices and remove dict.","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"aac9b2878cdf6e9f3c8cd6a6733f8166f58805bc","unresolved":false,"context_lines":[{"line_number":1286,"context_line":"                                                          cfg.CONF.host)"},{"line_number":1287,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1288,"context_line":"        if failed_devices:"},{"line_number":1289,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1290,"context_line":"                      {\u0027devices\u0027: failed_devices})"},{"line_number":1291,"context_line":"            resync \u003d True"},{"line_number":1292,"context_line":"        for device in devices:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_441c636a","line":1289,"in_reply_to":"3afb71cf_11938efb","updated":"2015-06-11 17:18:00.000000000","message":"Done","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"98e4fa5c84b588009f928d6fc550641f139b2d5f","unresolved":false,"context_lines":[{"line_number":1295,"context_line":""},{"line_number":1296,"context_line":"    def treat_ancillary_devices_removed(self, devices):"},{"line_number":1297,"context_line":"        resync \u003d False"},{"line_number":1298,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1299,"context_line":"        devices_down \u003d self.plugin_rpc.update_device_list(self.context,"},{"line_number":1300,"context_line":"                                                          None,"},{"line_number":1301,"context_line":"                                                          devices,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_c3a1adf9","line":1298,"updated":"2015-06-10 12:39:24.000000000","message":"Attachments -\u003e Ancillary ports?","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"aac9b2878cdf6e9f3c8cd6a6733f8166f58805bc","unresolved":false,"context_lines":[{"line_number":1295,"context_line":""},{"line_number":1296,"context_line":"    def treat_ancillary_devices_removed(self, devices):"},{"line_number":1297,"context_line":"        resync \u003d False"},{"line_number":1298,"context_line":"        LOG.info(_LI(\"Attachments %s removed\"), devices)"},{"line_number":1299,"context_line":"        devices_down \u003d self.plugin_rpc.update_device_list(self.context,"},{"line_number":1300,"context_line":"                                                          None,"},{"line_number":1301,"context_line":"                                                          devices,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_04254bad","line":1298,"in_reply_to":"3afb71cf_c3a1adf9","updated":"2015-06-11 17:18:00.000000000","message":"Done","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"98e4fa5c84b588009f928d6fc550641f139b2d5f","unresolved":false,"context_lines":[{"line_number":1303,"context_line":"                                                          cfg.CONF.host)"},{"line_number":1304,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1305,"context_line":"        if failed_devices:"},{"line_number":1306,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1307,"context_line":"                      {\u0027devices\u0027: failed_devices})"},{"line_number":1308,"context_line":"            resync \u003d True"},{"line_number":1309,"context_line":"        for detail in devices_down.get(\u0027devices_down\u0027):"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_11582e55","line":1306,"updated":"2015-06-10 12:39:24.000000000","message":"Same comment on port_removed, %(e)s, and dict.","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"aac9b2878cdf6e9f3c8cd6a6733f8166f58805bc","unresolved":false,"context_lines":[{"line_number":1303,"context_line":"                                                          cfg.CONF.host)"},{"line_number":1304,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1305,"context_line":"        if failed_devices:"},{"line_number":1306,"context_line":"            LOG.debug(\"port_removed failed for %(devices)s: %(e)s\","},{"line_number":1307,"context_line":"                      {\u0027devices\u0027: failed_devices})"},{"line_number":1308,"context_line":"            resync \u003d True"},{"line_number":1309,"context_line":"        for detail in devices_down.get(\u0027devices_down\u0027):"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_84401b37","line":1306,"in_reply_to":"3afb71cf_11582e55","updated":"2015-06-11 17:18:00.000000000","message":"Paul your comments are not related to the code that I added but since I am modifying these lines I will address them","commit_id":"988f8f86f54dfd0cf9c57e9e0e2dacc3e478c513"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"ef3b0106db6320bfcd103c68aed3eb2a75e272e0","unresolved":false,"context_lines":[{"line_number":1286,"context_line":"                                                          cfg.CONF.host)"},{"line_number":1287,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1288,"context_line":"        if failed_devices:"},{"line_number":1289,"context_line":"            LOG.debug(\"Port removal failed for %(devices)s: \", failed_devices)"},{"line_number":1290,"context_line":"            resync \u003d True"},{"line_number":1291,"context_line":"        for device in devices:"},{"line_number":1292,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":24,"id":"1af86dd1_74e49f3a","line":1289,"updated":"2015-06-12 13:01:05.000000000","message":"nit. Don\u0027t need \": \" at end of string here and L1305","commit_id":"8ffe36fed279292efbed3da56b704b457c679c7b"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"24fe55ff14e9699d8a892df12193a6ea9f6c1a7b","unresolved":false,"context_lines":[{"line_number":1286,"context_line":"                                                          cfg.CONF.host)"},{"line_number":1287,"context_line":"        failed_devices \u003d devices_down.get(\u0027failed_devices_down\u0027)"},{"line_number":1288,"context_line":"        if failed_devices:"},{"line_number":1289,"context_line":"            LOG.debug(\"Port removal failed for %(devices)s: \", failed_devices)"},{"line_number":1290,"context_line":"            resync \u003d True"},{"line_number":1291,"context_line":"        for device in devices:"},{"line_number":1292,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa32b979_39d34706","line":1289,"in_reply_to":"1af86dd1_74e49f3a","updated":"2015-06-16 10:35:16.000000000","message":"will address this when I respin, sorry forgot to do that.","commit_id":"8ffe36fed279292efbed3da56b704b457c679c7b"}],"neutron/tests/functional/agent/test_l2_ovs_agent.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6cd54218a7cd336a8c5508a18f07271d5b2f123f","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        for port in [self.patch_tun, self.patch_int]:"},{"line_number":203,"context_line":"            self.assertTrue(self.ovs.port_exists(port))"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    def assert_no_vlan_tags(self, ports, agent):"},{"line_number":206,"context_line":"        for port in ports:"},{"line_number":207,"context_line":"            res \u003d agent.int_br.db_get_val(\u0027Port\u0027, port.get(\u0027vif_name\u0027), \u0027tag\u0027)"},{"line_number":208,"context_line":"            self.assertEqual([], res)"}],"source_content_type":"text/x-python","patch_set":29,"id":"3a50d1a3_7d17aca3","side":"PARENT","line":205,"updated":"2015-07-20 14:51:40.000000000","message":"not sure I got why is this deleted in scope of rpc optimization patch","commit_id":"8e3dda9d77ab00b70b1cb8b8e086586e45e06be7"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c3a5318fec99c08abe2797640be550c17db31897","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        for port in [self.patch_tun, self.patch_int]:"},{"line_number":203,"context_line":"            self.assertTrue(self.ovs.port_exists(port))"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    def assert_no_vlan_tags(self, ports, agent):"},{"line_number":206,"context_line":"        for port in ports:"},{"line_number":207,"context_line":"            res \u003d agent.int_br.db_get_val(\u0027Port\u0027, port.get(\u0027vif_name\u0027), \u0027tag\u0027)"},{"line_number":208,"context_line":"            self.assertEqual([], res)"}],"source_content_type":"text/x-python","patch_set":29,"id":"3a50d1a3_ca6351db","side":"PARENT","line":205,"in_reply_to":"3a50d1a3_7d17aca3","updated":"2015-07-21 16:12:23.000000000","message":"this is not used anymore since I modified test_port_vlan_tags","commit_id":"8e3dda9d77ab00b70b1cb8b8e086586e45e06be7"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6cd54218a7cd336a8c5508a18f07271d5b2f123f","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"class TestOVSAgent(OVSAgentTestFramework):"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"    def _expected_plugin_rpc_call(self, call, expected_devices, isUp\u003dTrue):"},{"line_number":214,"context_line":"        \"\"\"Helper to check expected rpc call are received"},{"line_number":215,"context_line":"        :param call: The call to check"},{"line_number":216,"context_line":"        :param expected_devices The device for which call is expected"}],"source_content_type":"text/x-python","patch_set":29,"id":"3a50d1a3_fd65fce0","line":213,"updated":"2015-07-20 14:51:40.000000000","message":"nit: is_up is_more_pythonic","commit_id":"776a76e0c9c33adc81e66c6c8fbbafd57a558d96"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c3a5318fec99c08abe2797640be550c17db31897","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"class TestOVSAgent(OVSAgentTestFramework):"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"    def _expected_plugin_rpc_call(self, call, expected_devices, isUp\u003dTrue):"},{"line_number":214,"context_line":"        \"\"\"Helper to check expected rpc call are received"},{"line_number":215,"context_line":"        :param call: The call to check"},{"line_number":216,"context_line":"        :param expected_devices The device for which call is expected"}],"source_content_type":"text/x-python","patch_set":29,"id":"3a50d1a3_448657ba","line":213,"in_reply_to":"3a50d1a3_fd65fce0","updated":"2015-07-21 16:12:23.000000000","message":":)","commit_id":"776a76e0c9c33adc81e66c6c8fbbafd57a558d96"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6cd54218a7cd336a8c5508a18f07271d5b2f123f","unresolved":false,"context_lines":[{"line_number":213,"context_line":"    def _expected_plugin_rpc_call(self, call, expected_devices, isUp\u003dTrue):"},{"line_number":214,"context_line":"        \"\"\"Helper to check expected rpc call are received"},{"line_number":215,"context_line":"        :param call: The call to check"},{"line_number":216,"context_line":"        :param expected_devices The device for which call is expected"},{"line_number":217,"context_line":"        \"\"\""},{"line_number":218,"context_line":"        if isUp:"},{"line_number":219,"context_line":"            rpc_devices \u003d ["}],"source_content_type":"text/x-python","patch_set":29,"id":"3a50d1a3_5d3750b0","line":216,"updated":"2015-07-20 14:51:40.000000000","message":"please add description for added parameter to the docstring","commit_id":"776a76e0c9c33adc81e66c6c8fbbafd57a558d96"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c3a5318fec99c08abe2797640be550c17db31897","unresolved":false,"context_lines":[{"line_number":213,"context_line":"    def _expected_plugin_rpc_call(self, call, expected_devices, isUp\u003dTrue):"},{"line_number":214,"context_line":"        \"\"\"Helper to check expected rpc call are received"},{"line_number":215,"context_line":"        :param call: The call to check"},{"line_number":216,"context_line":"        :param expected_devices The device for which call is expected"},{"line_number":217,"context_line":"        \"\"\""},{"line_number":218,"context_line":"        if isUp:"},{"line_number":219,"context_line":"            rpc_devices \u003d ["}],"source_content_type":"text/x-python","patch_set":29,"id":"3a50d1a3_8a4ea96d","line":216,"in_reply_to":"3a50d1a3_5d3750b0","updated":"2015-07-21 16:12:23.000000000","message":"Done","commit_id":"776a76e0c9c33adc81e66c6c8fbbafd57a558d96"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"af2d61644ffafbe8a950be5524244090a3420997","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        ports \u003d self._create_ports(network, agent)"},{"line_number":306,"context_line":"        ports_ids \u003d [p[\u0027id\u0027] for p in ports]"},{"line_number":307,"context_line":"        self._plug_ports(network, ports, agent)"},{"line_number":308,"context_line":"        agent_utils.wait_until_true("},{"line_number":309,"context_line":"            lambda: self._expected_plugin_rpc_call("},{"line_number":310,"context_line":"                agent.plugin_rpc.update_device_list, ports_ids))"},{"line_number":311,"context_line":"        self.assert_vlan_tags(ports, agent)"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_3d6c1607","line":308,"updated":"2015-07-23 08:50:36.000000000","message":"So the patch is to optimize agent-server RPC communications, it should not change agent logic much, right? Not sure how these are equivalent changes then, can you please explain why no need to provision_local_vlan, assert_no_vlan_tags and _bind_ports in the test?","commit_id":"6cbc604050221779c905eef6c80893603202126a"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f8d88c8a3a98a7479c3f83ce8d0b92a154f71313","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        ports \u003d self._create_ports(network, agent)"},{"line_number":306,"context_line":"        ports_ids \u003d [p[\u0027id\u0027] for p in ports]"},{"line_number":307,"context_line":"        self._plug_ports(network, ports, agent)"},{"line_number":308,"context_line":"        agent_utils.wait_until_true("},{"line_number":309,"context_line":"            lambda: self._expected_plugin_rpc_call("},{"line_number":310,"context_line":"                agent.plugin_rpc.update_device_list, ports_ids))"},{"line_number":311,"context_line":"        self.assert_vlan_tags(ports, agent)"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_ebfea837","line":308,"in_reply_to":"3a50d1a3_3d6c1607","updated":"2015-07-24 09:22:42.000000000","message":"That\u0027s what the test was doing before:\n\n1) create ports\n2) check that no vlan tag was  assigned to the ports before port binding\n3) check that vlan id are present after binding\n\nAs you see the test was calling manually some agent methods \"provision_local_vlan\" and \"_bind_devices\" called inside \"_bind_ports\"\n\nWith this change I mock the RPC calls (it\u0027s done in _create_ports) so there\u0027s no need to call explicitly agent\u0027s methods, the agent will call those methods when it processes the ports. I removed the assert_no_vlan_tags because to make sense this method needs to be called after port creation but before the binding and the way the test it\u0027s written now since it\u0027s the agent that does all the processing not the test that it\u0027s calling some agent methods, it\u0027s hard to know the moment before the binding. In the end since the ports are created in this test, we can assume that they don\u0027t have any vlan id assigned, that\u0027s why I removed the check. Hope it makes sense now.","commit_id":"6cbc604050221779c905eef6c80893603202126a"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"88a6610d8be46341a60983659fd172c6ff249013","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        ports \u003d self._create_ports(network, agent)"},{"line_number":306,"context_line":"        ports_ids \u003d [p[\u0027id\u0027] for p in ports]"},{"line_number":307,"context_line":"        self._plug_ports(network, ports, agent)"},{"line_number":308,"context_line":"        agent_utils.wait_until_true("},{"line_number":309,"context_line":"            lambda: self._expected_plugin_rpc_call("},{"line_number":310,"context_line":"                agent.plugin_rpc.update_device_list, ports_ids))"},{"line_number":311,"context_line":"        self.assert_vlan_tags(ports, agent)"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_49e80417","line":308,"in_reply_to":"3a50d1a3_6e786690","updated":"2015-07-24 09:50:34.000000000","message":"Thank you for the fast review!","commit_id":"6cbc604050221779c905eef6c80893603202126a"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6e0cc9cb7b6283ff97bb6ad614901afa43c7c8f2","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        ports \u003d self._create_ports(network, agent)"},{"line_number":306,"context_line":"        ports_ids \u003d [p[\u0027id\u0027] for p in ports]"},{"line_number":307,"context_line":"        self._plug_ports(network, ports, agent)"},{"line_number":308,"context_line":"        agent_utils.wait_until_true("},{"line_number":309,"context_line":"            lambda: self._expected_plugin_rpc_call("},{"line_number":310,"context_line":"                agent.plugin_rpc.update_device_list, ports_ids))"},{"line_number":311,"context_line":"        self.assert_vlan_tags(ports, agent)"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_6e786690","line":308,"in_reply_to":"3a50d1a3_ebfea837","updated":"2015-07-24 09:27:30.000000000","message":"Thanks for detailed clarification Rossella!","commit_id":"6cbc604050221779c905eef6c80893603202126a"}],"neutron/tests/unit/ml2/test_rpcapi.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cc02cbf76afde5c06c1bf321589498711843153d","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                           devices\u003d[\u0027fake_device1\u0027, \u0027fake_device2\u0027],"},{"line_number":283,"context_line":"                           agent_id\u003d\u0027fake_agent_id\u0027,"},{"line_number":284,"context_line":"                           host\u003d\u0027fake_host\u0027,"},{"line_number":285,"context_line":"                           version\u003d\u00271.4\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_fb8a9463","line":285,"updated":"2015-01-15 12:42:07.000000000","message":"Can we force/mock somehow the backwards compatible code path? in two extra tests?","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"63ad80925d93b639b04a48664954130a3b19d585","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                           devices\u003d[\u0027fake_device1\u0027, \u0027fake_device2\u0027],"},{"line_number":283,"context_line":"                           agent_id\u003d\u0027fake_agent_id\u0027,"},{"line_number":284,"context_line":"                           host\u003d\u0027fake_host\u0027,"},{"line_number":285,"context_line":"                           version\u003d\u00271.4\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_c249a4d1","line":285,"in_reply_to":"3a961159_fb8a9463","updated":"2015-02-10 11:04:57.000000000","message":"ok :)","commit_id":"83a3fdca3b7cdfe16b14614f6ffaa95ced2c79d6"}],"neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":313,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list_up\u0027,"},{"line_number":314,"context_line":"                              return_value\u003d[]),"},{"line_number":315,"context_line":"            mock.patch.object("},{"line_number":316,"context_line":"                self.agent.plugin_rpc, \u0027update_device_list_down\u0027,"},{"line_number":317,"context_line":"                return_value\u003d{\u0027devices\u0027: details, \u0027failed_devices\u0027: None}),"},{"line_number":318,"context_line":"            mock.patch.object(self.agent, func_name)"},{"line_number":319,"context_line":"        ) as (get_dev_fn, get_vif_func, upd_dev_up, upd_dev_down, func):"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_fe571b00","line":316,"updated":"2015-03-02 14:49:17.000000000","message":"failed_devices should be mocked to [] in this case, not None. The method itself cannot return None for failed_devices.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":313,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list_up\u0027,"},{"line_number":314,"context_line":"                              return_value\u003d[]),"},{"line_number":315,"context_line":"            mock.patch.object("},{"line_number":316,"context_line":"                self.agent.plugin_rpc, \u0027update_device_list_down\u0027,"},{"line_number":317,"context_line":"                return_value\u003d{\u0027devices\u0027: details, \u0027failed_devices\u0027: None}),"},{"line_number":318,"context_line":"            mock.patch.object(self.agent, func_name)"},{"line_number":319,"context_line":"        ) as (get_dev_fn, get_vif_func, upd_dev_up, upd_dev_down, func):"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_5d687721","line":316,"in_reply_to":"ba7be1f8_fe571b00","updated":"2015-03-17 12:02:50.000000000","message":"Done","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":357,"context_line":"                              return_value\u003d[dev_mock]),"},{"line_number":358,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":359,"context_line":"                              return_value\u003dNone),"},{"line_number":360,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list_up\u0027,"},{"line_number":361,"context_line":"                              return_value\u003d{\u0027devices\u0027: [dev_mock],"},{"line_number":362,"context_line":"                                            \u0027failed_devices\u0027: []}),"},{"line_number":363,"context_line":"            mock.patch.object("}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_3e68d3b9","line":360,"updated":"2015-03-02 14:49:17.000000000","message":"update_device_list_up returns a list in this PS, not a dict.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":357,"context_line":"                              return_value\u003d[dev_mock]),"},{"line_number":358,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":359,"context_line":"                              return_value\u003dNone),"},{"line_number":360,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list_up\u0027,"},{"line_number":361,"context_line":"                              return_value\u003d{\u0027devices\u0027: [dev_mock],"},{"line_number":362,"context_line":"                                            \u0027failed_devices\u0027: []}),"},{"line_number":363,"context_line":"            mock.patch.object("}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_7d4c5bc9","line":360,"in_reply_to":"ba7be1f8_3e68d3b9","updated":"2015-03-17 12:02:50.000000000","message":"I changed the implementation of the method","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3d0896f35fa283888e57a1899017b2452d0226bb","unresolved":false,"context_lines":[{"line_number":393,"context_line":"                              return_value\u003d[fake_details_dict]),"},{"line_number":394,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":395,"context_line":"                              return_value\u003dmock.MagicMock()),"},{"line_number":396,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list_up\u0027,"},{"line_number":397,"context_line":"                              return_value\u003d{\u0027devices\u0027: [fake_details_dict],"},{"line_number":398,"context_line":"                                            \u0027failed_devices\u0027: []}),"},{"line_number":399,"context_line":"            mock.patch.object("}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_9e5d3f18","line":396,"updated":"2015-03-02 14:49:17.000000000","message":"Same comment as line 360.","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0094fdc95c3fe0c6bfdee3c81161a262017b0123","unresolved":false,"context_lines":[{"line_number":393,"context_line":"                              return_value\u003d[fake_details_dict]),"},{"line_number":394,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":395,"context_line":"                              return_value\u003dmock.MagicMock()),"},{"line_number":396,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list_up\u0027,"},{"line_number":397,"context_line":"                              return_value\u003d{\u0027devices\u0027: [fake_details_dict],"},{"line_number":398,"context_line":"                                            \u0027failed_devices\u0027: []}),"},{"line_number":399,"context_line":"            mock.patch.object("}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_3dd903f5","line":396,"in_reply_to":"ba7be1f8_9e5d3f18","updated":"2015-03-17 12:02:50.000000000","message":"ditto","commit_id":"06ab13c4296f887293f55f4fe7008982c89c157c"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"08e71acab6f8a4f7ce5cae15ca9063cbd7ba63ce","unresolved":false,"context_lines":[{"line_number":1289,"context_line":"                           return_value\u003d\u002700:00:00:00:00:01\u0027),\\"},{"line_number":1290,"context_line":"                mock.patch("},{"line_number":1291,"context_line":"                    \u0027neutron.agent.common.ovs_lib.BaseOVS.get_bridges\u0027),\\"},{"line_number":1292,"context_line":"                mock.patch(\u0027neutron.openstack.common.loopingcall.\u0027"},{"line_number":1293,"context_line":"                           \u0027FixedIntervalLoopingCall\u0027,"},{"line_number":1294,"context_line":"                           new\u003dMockFixedIntervalLoopingCall),\\"},{"line_number":1295,"context_line":"                mock.patch("}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_8cd0d3f7","line":1292,"updated":"2015-07-01 20:46:00.000000000","message":"Unrelated to the change-set... You probably will have to rebase to pick up the change here to use oslo_service. I got bit by it in a VPN commit.","commit_id":"8b767c2055d7783a5f61f33c0a09c4a56e3e1d0a"}],"neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e9b0d9f7b541be3539defab7a1035e44f96a6e54","unresolved":false,"context_lines":[{"line_number":375,"context_line":"                              return_value\u003dNone),"},{"line_number":376,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":377,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":378,"context_line":"                                            \u0027devices_up\u0027: [dev_mock],"},{"line_number":379,"context_line":"                                            \u0027failed_devices_up\u0027: [],"},{"line_number":380,"context_line":"                                            \u0027failed_devices_down\u0027: []}),"},{"line_number":381,"context_line":"            mock.patch.object(self.agent, \u0027treat_vif_port\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_04e320da","line":378,"updated":"2015-05-25 02:52:44.000000000","message":"devices_down?","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a08aba6891063b2697374172a07129d135b294d1","unresolved":false,"context_lines":[{"line_number":375,"context_line":"                              return_value\u003dNone),"},{"line_number":376,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":377,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":378,"context_line":"                                            \u0027devices_up\u0027: [dev_mock],"},{"line_number":379,"context_line":"                                            \u0027failed_devices_up\u0027: [],"},{"line_number":380,"context_line":"                                            \u0027failed_devices_down\u0027: []}),"},{"line_number":381,"context_line":"            mock.patch.object(self.agent, \u0027treat_vif_port\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"7a016987_ba46274d","line":378,"in_reply_to":"7a016987_04e320da","updated":"2015-05-28 12:28:46.000000000","message":"thanks","commit_id":"30f581aabfb14b8be1a4a4e36888a7d1885ad364"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"84b663736c75a1b997347c125a5eedad0f2e91f8","unresolved":false,"context_lines":[{"line_number":361,"context_line":"                              return_value\u003dNone),"},{"line_number":362,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":363,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":364,"context_line":"                                            \u0027devices_up\u0027: [dev_mock],"},{"line_number":365,"context_line":"                                            \u0027failed_devices_up\u0027: [],"},{"line_number":366,"context_line":"                                            \u0027failed_devices_down\u0027: []}),"},{"line_number":367,"context_line":"            mock.patch.object(self.agent, \u0027treat_vif_port\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"7a016987_3acd97b7","line":364,"updated":"2015-05-28 12:33:05.000000000","message":"See YAMAMOTO\u0027s comments from PS17...","commit_id":"323d8382c5048da9033de644abdb61dce9d03131"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f5b9ef37bdcf50b5b2cfa7bcf672f81f8f818210","unresolved":false,"context_lines":[{"line_number":359,"context_line":"                                            \u0027failed_devices\u0027: None}),"},{"line_number":360,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":361,"context_line":"                              return_value\u003dNone),"},{"line_number":362,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":363,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":364,"context_line":"                                            \u0027devices_down\u0027: [dev_mock],"},{"line_number":365,"context_line":"                                            \u0027failed_devices_up\u0027: [],"}],"source_content_type":"text/x-python","patch_set":19,"id":"7a016987_cec0e252","line":362,"updated":"2015-05-29 06:08:44.000000000","message":"why you need to mock this?\ni guess it\u0027s a rebase botch after change I90b4d2485e3e491f496dfb7bdee03d57f393be35 .\ncan you add a case to cover _bind_devices?","commit_id":"3fa50d3a196ae4309f844cb4f12944608db71078"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a860ef94d489b0839e3c39a03d2560f5d18ad88c","unresolved":false,"context_lines":[{"line_number":359,"context_line":"                                            \u0027failed_devices\u0027: None}),"},{"line_number":360,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":361,"context_line":"                              return_value\u003dNone),"},{"line_number":362,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":363,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":364,"context_line":"                                            \u0027devices_down\u0027: [dev_mock],"},{"line_number":365,"context_line":"                                            \u0027failed_devices_up\u0027: [],"}],"source_content_type":"text/x-python","patch_set":19,"id":"5afe65bd_f49baa70","line":362,"in_reply_to":"7a016987_cec0e252","updated":"2015-06-08 13:47:07.000000000","message":"it\u0027s a rebase error, sorry.\nRegarding an unit test for _bind_devices the only test I can think of is to mock most of the stuff and check that","commit_id":"3fa50d3a196ae4309f844cb4f12944608db71078"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f5b9ef37bdcf50b5b2cfa7bcf672f81f8f818210","unresolved":false,"context_lines":[{"line_number":361,"context_line":"                              return_value\u003dNone),"},{"line_number":362,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":363,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":364,"context_line":"                                            \u0027devices_down\u0027: [dev_mock],"},{"line_number":365,"context_line":"                                            \u0027failed_devices_up\u0027: [],"},{"line_number":366,"context_line":"                                            \u0027failed_devices_down\u0027: []}),"},{"line_number":367,"context_line":"            mock.patch.object(self.agent, \u0027treat_vif_port\u0027)"}],"source_content_type":"text/x-python","patch_set":19,"id":"7a016987_ae0c86ec","line":364,"updated":"2015-05-29 06:08:44.000000000","message":"having a device in both of up/down lists seems weird.","commit_id":"3fa50d3a196ae4309f844cb4f12944608db71078"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"59a2c605beff366d7df15f112d118966806c67ec","unresolved":false,"context_lines":[{"line_number":361,"context_line":"                              return_value\u003dNone),"},{"line_number":362,"context_line":"            mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":363,"context_line":"                              return_value\u003d{\u0027devices_up\u0027: [dev_mock],"},{"line_number":364,"context_line":"                                            \u0027devices_down\u0027: [dev_mock],"},{"line_number":365,"context_line":"                                            \u0027failed_devices_up\u0027: [],"},{"line_number":366,"context_line":"                                            \u0027failed_devices_down\u0027: []}),"},{"line_number":367,"context_line":"            mock.patch.object(self.agent, \u0027treat_vif_port\u0027)"}],"source_content_type":"text/x-python","patch_set":19,"id":"7a016987_1a751197","line":364,"in_reply_to":"7a016987_ae0c86ec","updated":"2015-05-29 10:13:16.000000000","message":"+1","commit_id":"3fa50d3a196ae4309f844cb4f12944608db71078"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c6b6f5312721040d416a39f1a0a65da9c53162aa","unresolved":false,"context_lines":[{"line_number":324,"context_line":"             \u0027device\u0027: devices_up[0],"},{"line_number":325,"context_line":"             \u0027admin_state_up\u0027: True},"},{"line_number":326,"context_line":"            {\u0027network_id\u0027: \u0027net1\u0027, \u0027vif_port\u0027: mock.Mock(),"},{"line_number":327,"context_line":"             \u0027device\u0027: devices_down[0]}]"},{"line_number":328,"context_line":"        with mock.patch.object("},{"line_number":329,"context_line":"            self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":330,"context_line":"            return_value\u003d{\u0027devices_up\u0027: devices_up,"}],"source_content_type":"text/x-python","patch_set":20,"id":"3afb71cf_39edbeef","line":327,"updated":"2015-06-08 14:10:29.000000000","message":"an actual \"details\" would have \"\u0027admin_state_up\u0027: False\"","commit_id":"0d8122650f09b78ab701296968b99e899d38def6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a8dcd4b00540775b48007fbdabbf390d26b65428","unresolved":false,"context_lines":[{"line_number":324,"context_line":"             \u0027device\u0027: devices_up[0],"},{"line_number":325,"context_line":"             \u0027admin_state_up\u0027: True},"},{"line_number":326,"context_line":"            {\u0027network_id\u0027: \u0027net1\u0027, \u0027vif_port\u0027: mock.Mock(),"},{"line_number":327,"context_line":"             \u0027device\u0027: devices_down[0]}]"},{"line_number":328,"context_line":"        with mock.patch.object("},{"line_number":329,"context_line":"            self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":330,"context_line":"            return_value\u003d{\u0027devices_up\u0027: devices_up,"}],"source_content_type":"text/x-python","patch_set":20,"id":"3afb71cf_76ce9cb5","line":327,"in_reply_to":"3afb71cf_39edbeef","updated":"2015-06-08 15:45:58.000000000","message":"and lots of other fields that are not used in this test. Anyway I\u0027ll add \"admin_state_up\" since it\u0027s present in the previous device","commit_id":"0d8122650f09b78ab701296968b99e899d38def6"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c6b6f5312721040d416a39f1a0a65da9c53162aa","unresolved":false,"context_lines":[{"line_number":1655,"context_line":"                mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":1656,"context_line":"                                  return_value\u003d{"},{"line_number":1657,"context_line":"                                      \u0027devices_up\u0027: [],"},{"line_number":1658,"context_line":"                                      \u0027devices_down\u0027: [],"},{"line_number":1659,"context_line":"                                      \u0027failed_devices_up\u0027: [],"},{"line_number":1660,"context_line":"                                      \u0027failed_devices_down\u0027: []}),\\"},{"line_number":1661,"context_line":"                mock.patch.object(self.agent, \u0027int_br\u0027, new\u003dint_br),\\"}],"source_content_type":"text/x-python","patch_set":20,"id":"3afb71cf_7921f6b3","line":1658,"updated":"2015-06-08 14:10:29.000000000","message":"this should be [self._port.vif_id] ?","commit_id":"0d8122650f09b78ab701296968b99e899d38def6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a8dcd4b00540775b48007fbdabbf390d26b65428","unresolved":false,"context_lines":[{"line_number":1655,"context_line":"                mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":1656,"context_line":"                                  return_value\u003d{"},{"line_number":1657,"context_line":"                                      \u0027devices_up\u0027: [],"},{"line_number":1658,"context_line":"                                      \u0027devices_down\u0027: [],"},{"line_number":1659,"context_line":"                                      \u0027failed_devices_up\u0027: [],"},{"line_number":1660,"context_line":"                                      \u0027failed_devices_down\u0027: []}),\\"},{"line_number":1661,"context_line":"                mock.patch.object(self.agent, \u0027int_br\u0027, new\u003dint_br),\\"}],"source_content_type":"text/x-python","patch_set":20,"id":"3afb71cf_53605201","line":1658,"in_reply_to":"3afb71cf_7921f6b3","updated":"2015-06-08 15:45:58.000000000","message":"the test is not really using this value anyway for correctness I will modify it","commit_id":"0d8122650f09b78ab701296968b99e899d38def6"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c6b6f5312721040d416a39f1a0a65da9c53162aa","unresolved":false,"context_lines":[{"line_number":1760,"context_line":"                mock.patch.object(self.agent.plugin_rpc, \u0027update_device_list\u0027,"},{"line_number":1761,"context_line":"                                  return_value\u003d{"},{"line_number":1762,"context_line":"                                      \u0027devices_up\u0027: [],"},{"line_number":1763,"context_line":"                                      \u0027devices_down\u0027: [],"},{"line_number":1764,"context_line":"                                      \u0027failed_devices_up\u0027: [],"},{"line_number":1765,"context_line":"                                      \u0027failed_devices_down\u0027: []}),\\"},{"line_number":1766,"context_line":"                mock.patch.object(self.agent, \u0027int_br\u0027, new\u003dint_br),\\"}],"source_content_type":"text/x-python","patch_set":20,"id":"3afb71cf_59075a1c","line":1763,"updated":"2015-06-08 14:10:29.000000000","message":"this should be [self._compute_port.vif_id] ?","commit_id":"0d8122650f09b78ab701296968b99e899d38def6"}]}
