)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"98fba8cf2694c74d853f9b115c54fd4953cc126d","unresolved":false,"context_lines":[{"line_number":19,"context_line":"responsibility of the server to check if they\u0027re changed or not."},{"line_number":20,"context_line":"No need for additional logic on agent side as well as special handling"},{"line_number":21,"context_line":"of agent revival on server side."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Closes-Bug: #1573843"},{"line_number":24,"context_line":"Change-Id: I5d94cc7bf4e7f80187a06bc5ba75079e876ef5ce"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_a680148c","line":22,"updated":"2016-05-23 14:50:36.000000000","message":"Questions:\n1. Does thie require the UpgradeImpact flag?\n2. Will one need to update their agents prior?","commit_id":"317cd61cf6ecb429acc66690a6a0f3c82e6c7de8"}],"neutron/db/agents_db.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"82f72bf43a21460e12852584227c4b913c4d9e02","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":"        cur_res_vers \u003d self._get_dict("},{"line_number":362,"context_line":"            agent_db, \u0027resource_versions\u0027, ignore_missing\u003dTrue)"},{"line_number":363,"context_line":"        new_res_vers \u003d agent_state.get(\u0027resource_versions\u0027)"},{"line_number":364,"context_line":"        if new_res_vers and (cur_res_vers !\u003d new_res_vers):"},{"line_number":365,"context_line":"            res[\u0027resource_versions\u0027] \u003d jsonutils.dumps(new_res_vers)"},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"        res[\u0027load\u0027] \u003d self._get_agent_load(agent_state)"},{"line_number":368,"context_line":"        current_time \u003d timeutils.utcnow()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_55d6454f","line":365,"range":{"start_line":363,"start_character":8,"end_line":365,"end_character":68},"updated":"2016-06-01 15:25:43.000000000","message":"This seems a bit duplicate with lines 357-359. Maybe we can streamline it to some sort of \"for opt in [\u0027configurations\u0027, \u0027resource_versions\u0027]\" loop?","commit_id":"d2905c842eac360396c0681aaf7f4bfd9097db98"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"abc408cf7cfca523efa5c01f4ab1ce8f96f68adb","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":"        cur_res_vers \u003d self._get_dict("},{"line_number":362,"context_line":"            agent_db, \u0027resource_versions\u0027, ignore_missing\u003dTrue)"},{"line_number":363,"context_line":"        new_res_vers \u003d agent_state.get(\u0027resource_versions\u0027)"},{"line_number":364,"context_line":"        if new_res_vers and (cur_res_vers !\u003d new_res_vers):"},{"line_number":365,"context_line":"            res[\u0027resource_versions\u0027] \u003d jsonutils.dumps(new_res_vers)"},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"        res[\u0027load\u0027] \u003d self._get_agent_load(agent_state)"},{"line_number":368,"context_line":"        current_time \u003d timeutils.utcnow()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_5320af9b","line":365,"range":{"start_line":363,"start_character":8,"end_line":365,"end_character":68},"in_reply_to":"9abb7d3a_10261dba","updated":"2016-06-03 08:49:14.000000000","message":"on a second thought it differs as resource_versions is not required in agent state, so I think better leave as is.","commit_id":"d2905c842eac360396c0681aaf7f4bfd9097db98"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"15b6ceddcd5aa6eac7c82cfb268f5a2fc3c544f7","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":"        cur_res_vers \u003d self._get_dict("},{"line_number":362,"context_line":"            agent_db, \u0027resource_versions\u0027, ignore_missing\u003dTrue)"},{"line_number":363,"context_line":"        new_res_vers \u003d agent_state.get(\u0027resource_versions\u0027)"},{"line_number":364,"context_line":"        if new_res_vers and (cur_res_vers !\u003d new_res_vers):"},{"line_number":365,"context_line":"            res[\u0027resource_versions\u0027] \u003d jsonutils.dumps(new_res_vers)"},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"        res[\u0027load\u0027] \u003d self._get_agent_load(agent_state)"},{"line_number":368,"context_line":"        current_time \u003d timeutils.utcnow()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_10261dba","line":365,"range":{"start_line":363,"start_character":8,"end_line":365,"end_character":68},"in_reply_to":"9abb7d3a_55d6454f","updated":"2016-06-03 08:31:48.000000000","message":"yep, makes sense, thanks","commit_id":"d2905c842eac360396c0681aaf7f4bfd9097db98"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"e7235fd527e0ecebc62603be62610cb18280a132","unresolved":false,"context_lines":[{"line_number":436,"context_line":"                \u0027resource_versions\u0027 not in agent_diff):"},{"line_number":437,"context_line":"            # we don\u0027t want further processing of resource_versions if"},{"line_number":438,"context_line":"            # it\u0027s not changed"},{"line_number":439,"context_line":"            #TODO(obondarev): move resource_versions processing here so"},{"line_number":440,"context_line":"            # we don\u0027t need this non-obvious agent_state modification"},{"line_number":441,"context_line":"            del agent_state[\u0027resource_versions\u0027]"},{"line_number":442,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_264fcabe","line":439,"updated":"2016-06-06 09:23:25.000000000","message":"Makes sense if we have RPC mandatory for agents (I wasn\u0027t sure if other plugins can have the agents extension but no RPC, this is why I had it on the other side)","commit_id":"fd5b09a6de8d556b1412373fcf10cbc26003cf6b"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"afea6c6fa98f23f4af8aca82f5c29441d7437175","unresolved":false,"context_lines":[{"line_number":436,"context_line":"                \u0027resource_versions\u0027 not in agent_diff):"},{"line_number":437,"context_line":"            # we don\u0027t want further processing of resource_versions if"},{"line_number":438,"context_line":"            # it\u0027s not changed"},{"line_number":439,"context_line":"            #TODO(obondarev): move resource_versions processing here so"},{"line_number":440,"context_line":"            # we don\u0027t need this non-obvious agent_state modification"},{"line_number":441,"context_line":"            del agent_state[\u0027resource_versions\u0027]"},{"line_number":442,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_9f78322d","line":439,"in_reply_to":"7aa08908_264fcabe","updated":"2016-06-07 13:25:24.000000000","message":"we can discuss in dependent patch ;)","commit_id":"fd5b09a6de8d556b1412373fcf10cbc26003cf6b"}],"neutron/plugins/ml2/drivers/agent/_common_agent.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"4679eb79d71ec6aa45992ce94bf2e5e3729de8aa","unresolved":false,"context_lines":[{"line_number":127,"context_line":"                         self.agent_type)"},{"line_number":128,"context_line":"                self.fullsync \u003d True"},{"line_number":129,"context_line":"            # we only want to update resource versions on startup"},{"line_number":130,"context_line":"            self.agent_state.pop(\u0027resource_versions\u0027, None)"},{"line_number":131,"context_line":"            self.agent_state.pop(\u0027start_flag\u0027, None)"},{"line_number":132,"context_line":"        except Exception:"},{"line_number":133,"context_line":"            LOG.exception(_LE(\"Failed reporting state!\"))"}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_46c136e4","side":"PARENT","line":130,"updated":"2016-06-06 09:25:35.000000000","message":"Oh true, we\u0027d get rid of the agent side optimization for this.\n\nBut having to de-serialize \u0026 check on the server-side also has cpu inpact.\n\nMay be we could keep this too.","commit_id":"88710bbc6b9b2ebf23d84b92bcc5349515f1eddd"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"afea6c6fa98f23f4af8aca82f5c29441d7437175","unresolved":false,"context_lines":[{"line_number":127,"context_line":"                         self.agent_type)"},{"line_number":128,"context_line":"                self.fullsync \u003d True"},{"line_number":129,"context_line":"            # we only want to update resource versions on startup"},{"line_number":130,"context_line":"            self.agent_state.pop(\u0027resource_versions\u0027, None)"},{"line_number":131,"context_line":"            self.agent_state.pop(\u0027start_flag\u0027, None)"},{"line_number":132,"context_line":"        except Exception:"},{"line_number":133,"context_line":"            LOG.exception(_LE(\"Failed reporting state!\"))"}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_ffdcd613","side":"PARENT","line":130,"in_reply_to":"7aa08908_46c136e4","updated":"2016-06-07 13:25:24.000000000","message":"makes sense","commit_id":"88710bbc6b9b2ebf23d84b92bcc5349515f1eddd"}],"neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"4679eb79d71ec6aa45992ce94bf2e5e3729de8aa","unresolved":false,"context_lines":[{"line_number":179,"context_line":"                                        self.agent_state)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"            # we only want to update resource versions on startup"},{"line_number":182,"context_line":"            self.agent_state.pop(\u0027resource_versions\u0027, None)"},{"line_number":183,"context_line":"            self.agent_state.pop(\u0027start_flag\u0027, None)"},{"line_number":184,"context_line":"        except Exception:"},{"line_number":185,"context_line":"            LOG.exception(_LE(\"Failed reporting state!\"))"}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_e6b0228e","side":"PARENT","line":182,"updated":"2016-06-06 09:25:35.000000000","message":"ditto.","commit_id":"88710bbc6b9b2ebf23d84b92bcc5349515f1eddd"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"4679eb79d71ec6aa45992ce94bf2e5e3729de8aa","unresolved":false,"context_lines":[{"line_number":329,"context_line":"                self.fullsync \u003d True"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"            # we only want to update resource versions on startup"},{"line_number":332,"context_line":"            self.agent_state.pop(\u0027resource_versions\u0027, None)"},{"line_number":333,"context_line":"            if self.agent_state.pop(\u0027start_flag\u0027, None):"},{"line_number":334,"context_line":"                # On initial start, we notify systemd after initialization"},{"line_number":335,"context_line":"                # is complete."}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_c6ad2633","side":"PARENT","line":332,"updated":"2016-06-06 09:25:35.000000000","message":"ditto.","commit_id":"88710bbc6b9b2ebf23d84b92bcc5349515f1eddd"}],"neutron/services/segments/db.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"f4d40d155c8d24de36a7e87fcc332355dff6362f","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    config \u003d agent.get(\u0027configurations\u0027, {})"},{"line_number":206,"context_line":"    phys_nets \u003d _get_phys_nets(config)"},{"line_number":207,"context_line":"    old_phys_nets \u003d _get_phys_nets(old_config)"},{"line_number":208,"context_line":"    if not phys_nets or phys_nets \u003d\u003d old_phys_nets:"},{"line_number":209,"context_line":"        return"},{"line_number":210,"context_line":"    segments \u003d get_segments_with_phys_nets(context, phys_nets)"},{"line_number":211,"context_line":"    current_segment_ids \u003d {"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_119bd173","line":208,"range":{"start_line":208,"start_character":24,"end_line":208,"end_character":51},"updated":"2016-06-16 08:23:27.000000000","message":"The phys_nets not changed doesn\u0027t mean segments will not change. For example, a new segment with the same physical network is created during agent down. When agent revival, it should have the mapping to the new segment.","commit_id":"592fd6b64a52a9862edd38c911059aabed3a92c3"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"e3c9d00ab1d6ffe665cde440c4abdd98873f9747","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    config \u003d agent.get(\u0027configurations\u0027, {})"},{"line_number":206,"context_line":"    phys_nets \u003d _get_phys_nets(config)"},{"line_number":207,"context_line":"    old_phys_nets \u003d _get_phys_nets(old_config)"},{"line_number":208,"context_line":"    if not phys_nets or phys_nets \u003d\u003d old_phys_nets:"},{"line_number":209,"context_line":"        return"},{"line_number":210,"context_line":"    segments \u003d get_segments_with_phys_nets(context, phys_nets)"},{"line_number":211,"context_line":"    current_segment_ids \u003d {"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_2a459614","line":208,"range":{"start_line":208,"start_character":24,"end_line":208,"end_character":51},"in_reply_to":"7aa08908_119bd173","updated":"2016-06-16 16:45:30.000000000","message":"Segment creation is handled by https://review.openstack.org/#/c/329309/ please check","commit_id":"592fd6b64a52a9862edd38c911059aabed3a92c3"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"00d35418c49b18b1961f80c74c223f9bf87bafdf","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    config \u003d agent.get(\u0027configurations\u0027, {})"},{"line_number":206,"context_line":"    phys_nets \u003d _get_phys_nets(config)"},{"line_number":207,"context_line":"    old_phys_nets \u003d _get_phys_nets(old_config)"},{"line_number":208,"context_line":"    if not phys_nets or phys_nets \u003d\u003d old_phys_nets:"},{"line_number":209,"context_line":"        return"},{"line_number":210,"context_line":"    segments \u003d get_segments_with_phys_nets(context, phys_nets)"},{"line_number":211,"context_line":"    current_segment_ids \u003d {"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_fb71910d","line":208,"range":{"start_line":208,"start_character":24,"end_line":208,"end_character":51},"in_reply_to":"7aa08908_2a459614","updated":"2016-06-17 01:18:46.000000000","message":"Yeah, I think that patch will handle the case, thanks.","commit_id":"592fd6b64a52a9862edd38c911059aabed3a92c3"}]}
