)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f80c963d472bb241604a6fa57c88497cb654a005","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessesManager class will watch over spawned external processes,"},{"line_number":10,"context_line":"taking the administrator configured action in the case of any"},{"line_number":11,"context_line":"of the external processes dying unexpectedly."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"It covers both the neutron-ns-metadata-proxy for isolated metadata"},{"line_number":14,"context_line":"and dnsmasq in the dnsmasq driver."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1abeadc6_21706e3f","line":11,"updated":"2014-08-28 14:46:22.000000000","message":"nit: dying -\u003e die","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"eb4c6df31ca4bc010c606491f4a5a8e4b0894ccd","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessesManager class will watch over spawned external processes,"},{"line_number":10,"context_line":"taking the administrator configured action in the case of any"},{"line_number":11,"context_line":"of the external processes dying unexpectedly."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"It covers both the neutron-ns-metadata-proxy for isolated metadata"},{"line_number":14,"context_line":"and dnsmasq in the dnsmasq driver."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1abeadc6_d5cc9d37","line":11,"in_reply_to":"1abeadc6_21706e3f","updated":"2014-08-29 14:32:53.000000000","message":"Done","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d45daf462ad49f32573618b7579074b4cf2664c7","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"It covers both the neutron-ns-metadata-proxy for isolated metadata"},{"line_number":14,"context_line":"and dnsmasq in the dnsmasq driver."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0a4a509b65aadf825799c98dfa48a655b123b403"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"fa98f980_d38b1866","line":15,"updated":"2014-09-03 09:20:05.000000000","message":"Blueprint link is required in the commit message.","commit_id":"adcc311fcb9faecb5870b9526a08da39d938e155"}],"etc/dhcp_agent.ini":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"094825facec52b8b88efa13cf101bf6d79667a00","unresolved":false,"context_lines":[{"line_number":94,"context_line":"#"},{"line_number":95,"context_line":"# check_child_processes \u003d False"},{"line_number":96,"context_line":"# check_child_processes_action \u003d respawn"},{"line_number":97,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-properties","patch_set":10,"id":"fa98f980_053f24d7","line":97,"updated":"2014-09-02 23:41:21.000000000","message":"it probably make sense that these options are specified in the agent conf file rather than neutron.conf","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":94,"context_line":"#"},{"line_number":95,"context_line":"# check_child_processes \u003d False"},{"line_number":96,"context_line":"# check_child_processes_action \u003d respawn"},{"line_number":97,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-properties","patch_set":10,"id":"fa98f980_38eb66b1","line":97,"in_reply_to":"fa98f980_053f24d7","updated":"2014-09-03 08:11:51.000000000","message":"I was thinking about this during the night,  and yes,  actually makes more sense to tie those per-agent.  Instead of having a global configuration.","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"38831d2d20afa5dab3bc9dc0eab2b5ffbe28d48d","unresolved":false,"context_lines":[{"line_number":90,"context_line":"# If the timeout expires, ovs commands will fail with ALARMCLOCK error."},{"line_number":91,"context_line":"# ovs_vsctl_timeout \u003d 10"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"# Configuration for the external processes monitor"},{"line_number":94,"context_line":"# Enable/disable the periodic check of all the spawned external processes,"},{"line_number":95,"context_line":"# in case of any of those dying unexpectedly the configured action will"},{"line_number":96,"context_line":"# be executed, it can be respawn or exit, 0 interval disables the feature."}],"source_content_type":"text/x-properties","patch_set":20,"id":"5a890539_a196b83c","line":93,"updated":"2014-12-05 14:11:37.000000000","message":"Reuse Henry\u0027s comments on the l3 agent patch.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b486ac92e4c7bd8a6caf3a411e7737fe6529bac4","unresolved":false,"context_lines":[{"line_number":96,"context_line":"# be executed, it can be respawn or exit, 0 interval disables the feature."},{"line_number":97,"context_line":"#"},{"line_number":98,"context_line":"# check_child_processes_action \u003d respawn"},{"line_number":99,"context_line":"# check_child_processes_interval \u003d 0"}],"source_content_type":"text/x-properties","patch_set":20,"id":"5a890539_57347149","line":99,"updated":"2014-11-14 11:49:38.000000000","message":"I need to set to 60, to enable by default.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"14409bdaab8cfaf8b7e7a234521b61d397ede1df","unresolved":false,"context_lines":[{"line_number":93,"context_line":"# Configuration for the external processes spawned by the dhcp agent"},{"line_number":94,"context_line":"# Enable/disable the periodic check of all spawned external processes."},{"line_number":95,"context_line":"# If any of them die unexpectedly the configured action will be taken."},{"line_number":96,"context_line":"# The action can be respawn (the external process) or exit (the agent)"},{"line_number":97,"context_line":"# An interval of 0 disables the feature."},{"line_number":98,"context_line":"#"},{"line_number":99,"context_line":"# check_child_processes_action \u003d respawn"}],"source_content_type":"text/x-properties","patch_set":36,"id":"3a961159_f5ab7c85","line":96,"updated":"2015-01-15 14:57:09.000000000","message":"I had to re-read this a few times before it made sense to me. But eventually, it did. Whew!","commit_id":"a5c02ca05e29f4d7c0196806ee6c8a98846ce8be"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c271b03aa1c060a907652f42ff18cc20ed4c057b","unresolved":false,"context_lines":[{"line_number":93,"context_line":"# Configuration for the external processes spawned by the dhcp agent"},{"line_number":94,"context_line":"# Enable/disable the periodic check of all spawned external processes."},{"line_number":95,"context_line":"# If any of them die unexpectedly the configured action will be taken."},{"line_number":96,"context_line":"# The action can be respawn (the external process) or exit (the agent)"},{"line_number":97,"context_line":"# An interval of 0 disables the feature."},{"line_number":98,"context_line":"#"},{"line_number":99,"context_line":"# check_child_processes_action \u003d respawn"}],"source_content_type":"text/x-properties","patch_set":36,"id":"3a961159_d7e019ce","line":96,"in_reply_to":"3a961159_37687db9","updated":"2015-01-16 17:09:32.000000000","message":"otherwiseguy / Terry Wilson suggestion sounds very good to me:\n\n  # Action to take when an external process spawned by the dhcp agent dies\n  # Values:\n  #   respawn - Respawns the external process\n  #   exit - Exits the agent\n  # check_child_processes_action \u003d respawn\n  # The interval to check external processes for failure in seconds (\n  # check_child_processes_interval \u003d 60","commit_id":"a5c02ca05e29f4d7c0196806ee6c8a98846ce8be"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a8637cf06aacc8f78aac2d742b3ebee4678d91c6","unresolved":false,"context_lines":[{"line_number":93,"context_line":"# Configuration for the external processes spawned by the dhcp agent"},{"line_number":94,"context_line":"# Enable/disable the periodic check of all spawned external processes."},{"line_number":95,"context_line":"# If any of them die unexpectedly the configured action will be taken."},{"line_number":96,"context_line":"# The action can be respawn (the external process) or exit (the agent)"},{"line_number":97,"context_line":"# An interval of 0 disables the feature."},{"line_number":98,"context_line":"#"},{"line_number":99,"context_line":"# check_child_processes_action \u003d respawn"}],"source_content_type":"text/x-properties","patch_set":36,"id":"3a961159_37687db9","line":96,"in_reply_to":"3a961159_f5ab7c85","updated":"2015-01-16 16:48:14.000000000","message":"I have been thinking about this, and I will try to explain both options separately, which may be more clear.","commit_id":"a5c02ca05e29f4d7c0196806ee6c8a98846ce8be"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"28e65990683abd60352a43229b8310666f8366ef","unresolved":false,"context_lines":[{"line_number":91,"context_line":"# ovs_vsctl_timeout \u003d 10"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"# The interval to check external processes for failure in seconds (0\u003ddisabled)"},{"line_number":94,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"# Action to take when an external process spawned by the dhcp agent dies"},{"line_number":97,"context_line":"# Values:"}],"source_content_type":"text/x-properties","patch_set":42,"id":"1a930d6b_423c1b30","line":94,"updated":"2015-01-21 23:50:58.000000000","message":"Just thinking out loud, wouldn\u0027t be better to have this in [1]? Is it really useful having this config set per-agent? What about metadata.ini, for instance?\n\n[1] https://github.com/openstack/neutron/blob/master/etc/neutron.conf#L576","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":91,"context_line":"# ovs_vsctl_timeout \u003d 10"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"# The interval to check external processes for failure in seconds (0\u003ddisabled)"},{"line_number":94,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"# Action to take when an external process spawned by the dhcp agent dies"},{"line_number":97,"context_line":"# Values:"}],"source_content_type":"text/x-properties","patch_set":42,"id":"1a930d6b_e32b3fe9","line":94,"in_reply_to":"1a930d6b_423c1b30","updated":"2015-01-22 09:42:12.000000000","message":"Sounds like a reasonable thing to me, we could then set a default setting from neutron.conf for all the agents in the right section, and agents could override it afterwards.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":91,"context_line":"# ovs_vsctl_timeout \u003d 10"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"# The interval to check external processes for failure in seconds (0\u003ddisabled)"},{"line_number":94,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"# Action to take when an external process spawned by the dhcp agent dies"},{"line_number":97,"context_line":"# Values:"}],"source_content_type":"text/x-properties","patch_set":42,"id":"1a930d6b_4cc0b62a","line":94,"in_reply_to":"1a930d6b_e32b3fe9","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"28e65990683abd60352a43229b8310666f8366ef","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"# Action to take when an external process spawned by the dhcp agent dies"},{"line_number":97,"context_line":"# Values:"},{"line_number":98,"context_line":"#   respawn - Respawns the external process"},{"line_number":99,"context_line":"#   exit - Exits the agent"},{"line_number":100,"context_line":"# check_child_processes_action \u003d respawn"}],"source_content_type":"text/x-properties","patch_set":42,"id":"1a930d6b_82e2839d","line":98,"updated":"2015-01-21 23:50:58.000000000","message":"This respawn operation is a bit dangerous if misused. What if some process have children processes that will survive the death of the parent, and at respawn the parent process is itself in charge of respawn children? Is this a remote possibility with the current codebase? The dhcp agent is smart enough to reload dnsmasq processes, what about the metadata agent one? Now it escapes me.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"# Action to take when an external process spawned by the dhcp agent dies"},{"line_number":97,"context_line":"# Values:"},{"line_number":98,"context_line":"#   respawn - Respawns the external process"},{"line_number":99,"context_line":"#   exit - Exits the agent"},{"line_number":100,"context_line":"# check_child_processes_action \u003d respawn"}],"source_content_type":"text/x-properties","patch_set":42,"id":"1a930d6b_a393f7f8","line":98,"in_reply_to":"1a930d6b_82e2839d","updated":"2015-01-22 09:42:12.000000000","message":"I agree, but at this moment is a feature we don\u0027t need yet. We don\u0027t spawn \"external processes\" doing such thing (dhcp: neutron-ns-metadata-proxy, dnsmasq,  l3: radvd, neutron-ns-metadata-proxy)\n\nAnd we don\u0027t spawn metadata-agent from this interface, that\u0027s up to the system itself.\n\nWhat we spawn from the ProcessMonitor interface is the \"neutron-ns-metadata-proxy\", the tiny agent that just forwards a port via a unix socket to the system metadata-proxy.\n\nIt is a good point, probably to add to documentation.\n\nWhen we face some process like this, we will need to evaluate, and may be add specific actions to monitoring specific process, like checking that respawn is safe, only logging, etc...","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"# Action to take when an external process spawned by the dhcp agent dies"},{"line_number":97,"context_line":"# Values:"},{"line_number":98,"context_line":"#   respawn - Respawns the external process"},{"line_number":99,"context_line":"#   exit - Exits the agent"},{"line_number":100,"context_line":"# check_child_processes_action \u003d respawn"}],"source_content_type":"text/x-properties","patch_set":42,"id":"1a930d6b_2c4a8ac5","line":98,"in_reply_to":"1a930d6b_a393f7f8","updated":"2015-01-22 15:37:54.000000000","message":"Just to clarify, the process monitor will take only effect where we explicitly port it from the ProcessManager to the ProcessMonitor higher level interface.\n\nSo your concerns could be evaluated on a case by case basis.\n\nAfter dhcp/l3, advanced services can be evaluated for process monitoring, but they needed a refactor as big or bigger than dhcp, because they were reimplementing external_process.py again :/","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"}],"neutron/agent/dhcp_agent.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f80c963d472bb241604a6fa57c88497cb654a005","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":93,"context_line":"        \"\"\"This is an exit handler for the ProcessesManager."},{"line_number":94,"context_line":"        It will be called if the administrator configured the exit action in"},{"line_number":95,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":96,"context_line":"        unexpectedly.\""},{"line_number":97,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_a1e9deb8","line":94,"updated":"2014-08-28 14:46:22.000000000","message":"nit: blank line between summary line and rest of docstring.","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"eb4c6df31ca4bc010c606491f4a5a8e4b0894ccd","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":93,"context_line":"        \"\"\"This is an exit handler for the ProcessesManager."},{"line_number":94,"context_line":"        It will be called if the administrator configured the exit action in"},{"line_number":95,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":96,"context_line":"        unexpectedly.\""},{"line_number":97,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_f50a7977","line":94,"in_reply_to":"1abeadc6_a1e9deb8","updated":"2014-08-29 14:32:53.000000000","message":"Done","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f80c963d472bb241604a6fa57c88497cb654a005","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        \"\"\"This is an exit handler for the ProcessesManager."},{"line_number":94,"context_line":"        It will be called if the administrator configured the exit action in"},{"line_number":95,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":96,"context_line":"        unexpectedly.\""},{"line_number":97,"context_line":"        \"\"\""},{"line_number":98,"context_line":"        LOG.error(_LE(\"exiting DhcpAgent because of service %(service)s \""},{"line_number":99,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_41056a78","line":96,"updated":"2014-08-28 14:46:22.000000000","message":"nit: remove quote at end of line","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"eb4c6df31ca4bc010c606491f4a5a8e4b0894ccd","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        \"\"\"This is an exit handler for the ProcessesManager."},{"line_number":94,"context_line":"        It will be called if the administrator configured the exit action in"},{"line_number":95,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":96,"context_line":"        unexpectedly.\""},{"line_number":97,"context_line":"        \"\"\""},{"line_number":98,"context_line":"        LOG.error(_LE(\"exiting DhcpAgent because of service %(service)s \""},{"line_number":99,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_150e158c","line":96,"in_reply_to":"1abeadc6_41056a78","updated":"2014-08-29 14:32:53.000000000","message":"Done","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f80c963d472bb241604a6fa57c88497cb654a005","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        LOG.error(_LE(\"exiting DhcpAgent because of service %(service)s \""},{"line_number":99,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":100,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":101,"context_line":"        sys.exit(1)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def _populate_networks_cache(self):"},{"line_number":104,"context_line":"        \"\"\"Populate the networks cache when the DHCP-agent starts.\"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_211a2ec6","line":101,"updated":"2014-08-28 14:46:22.000000000","message":"Use:  raise SystemExit(1).  with sys.exit(), if this is hit during tox, it will exit without reporting the failure.","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"eb4c6df31ca4bc010c606491f4a5a8e4b0894ccd","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        LOG.error(_LE(\"exiting DhcpAgent because of service %(service)s \""},{"line_number":99,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":100,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":101,"context_line":"        sys.exit(1)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def _populate_networks_cache(self):"},{"line_number":104,"context_line":"        \"\"\"Populate the networks cache when the DHCP-agent starts.\"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_352871e1","line":101,"in_reply_to":"1abeadc6_211a2ec6","updated":"2014-08-29 14:32:53.000000000","message":"Done","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b40c5c3c07d6f0483808b5486915c00d2e205efc","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            os.makedirs(dhcp_dir, 0o755)"},{"line_number":84,"context_line":"        self.dhcp_version \u003d self.dhcp_driver_cls.check_version()"},{"line_number":85,"context_line":"        self._populate_networks_cache()"},{"line_number":86,"context_line":"        self._ext_processes \u003d external_process.ProcessMonitor("},{"line_number":87,"context_line":"                             config \u003d self.conf,"},{"line_number":88,"context_line":"                             root_helper \u003d self.root_helper,"},{"line_number":89,"context_line":"                             resource_type \u003d \u0027dhcp\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa98f980_a4d216d0","line":86,"updated":"2014-09-01 23:28:31.000000000","message":"dhcp-agent itself is not aware of the implementation. It doesn\u0027t care the implemenation is based on a process like dnsmasq or an external program which run on a separate host. Why do you define a process monitor at the top level thing not in linux/dhcp? I think it is a part of ProcessBase.","commit_id":"5c4fd5e49c3ad31acf382aa65d9c135d4a56ced6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"28ca5c7aa59c35f7f2edda9b9a20b7b6a9ce6bd2","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            os.makedirs(dhcp_dir, 0o755)"},{"line_number":84,"context_line":"        self.dhcp_version \u003d self.dhcp_driver_cls.check_version()"},{"line_number":85,"context_line":"        self._populate_networks_cache()"},{"line_number":86,"context_line":"        self._ext_processes \u003d external_process.ProcessMonitor("},{"line_number":87,"context_line":"                             config \u003d self.conf,"},{"line_number":88,"context_line":"                             root_helper \u003d self.root_helper,"},{"line_number":89,"context_line":"                             resource_type \u003d \u0027dhcp\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa98f980_ca5e4076","line":86,"in_reply_to":"fa98f980_543039e8","updated":"2014-09-02 01:22:48.000000000","message":"Makes sense. Thanks.","commit_id":"5c4fd5e49c3ad31acf382aa65d9c135d4a56ced6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"08171d2ebb934be51f3e55e33bc0a3071439e66c","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            os.makedirs(dhcp_dir, 0o755)"},{"line_number":84,"context_line":"        self.dhcp_version \u003d self.dhcp_driver_cls.check_version()"},{"line_number":85,"context_line":"        self._populate_networks_cache()"},{"line_number":86,"context_line":"        self._ext_processes \u003d external_process.ProcessMonitor("},{"line_number":87,"context_line":"                             config \u003d self.conf,"},{"line_number":88,"context_line":"                             root_helper \u003d self.root_helper,"},{"line_number":89,"context_line":"                             resource_type \u003d \u0027dhcp\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa98f980_543039e8","line":86,"in_reply_to":"fa98f980_a4d216d0","updated":"2014-09-02 00:18:59.000000000","message":"The driver is recreated and destroyed on every call (see call_driver method). This way we provide a process monitor to the driver that the driver can use if he wants to spawn any process. \n\nIf the driver lives on another host, then it\u0027s this other host responsibility to take care of his processes.\n\nSo, the process monitor is an optional aid to the driver, as the root_helper is, for example.\n\nAlso isolated metadata is started locally by DhcpAgent, not the driver.\n\nDo I make sense?","commit_id":"5c4fd5e49c3ad31acf382aa65d9c135d4a56ced6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"094825facec52b8b88efa13cf101bf6d79667a00","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        LOG.error(_LE(\"exiting DhcpAgent because of service %(service)s \""},{"line_number":100,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":101,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":102,"context_line":"        raise SystemExit(1)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def _populate_networks_cache(self):"},{"line_number":105,"context_line":"        \"\"\"Populate the networks cache when the DHCP-agent starts.\"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_852a348e","line":102,"updated":"2014-09-02 23:41:21.000000000","message":"TODO: consolidate handlers among agents (L3 has a very similar one)","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        LOG.error(_LE(\"exiting DhcpAgent because of service %(service)s \""},{"line_number":100,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":101,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":102,"context_line":"        raise SystemExit(1)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def _populate_networks_cache(self):"},{"line_number":105,"context_line":"        \"\"\"Populate the networks cache when the DHCP-agent starts.\"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_b8ed96b9","line":102,"in_reply_to":"fa98f980_852a348e","updated":"2014-09-03 08:11:51.000000000","message":"+1 to providing a default exit handler in the process monitor.  I could do in a follow up patch If merged","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":98,"context_line":"        unexpectedly."},{"line_number":99,"context_line":"        \"\"\""},{"line_number":100,"context_line":"        LOG.error(_LE(\"exiting neutron-dhcp-agent because of service \""},{"line_number":101,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":102,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":103,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_eae01098","line":100,"updated":"2014-11-14 11:47:34.000000000","message":"Do we have any guidelines on e.g. starting all error messages with capital letter?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":98,"context_line":"        unexpectedly."},{"line_number":99,"context_line":"        \"\"\""},{"line_number":100,"context_line":"        LOG.error(_LE(\"exiting neutron-dhcp-agent because of service \""},{"line_number":101,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":102,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":103,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_fee2e9ff","line":100,"in_reply_to":"5a890539_ad6c6236","updated":"2014-12-09 15:36:43.000000000","message":"I haven\u0027t found guidelines for this, but most Log messages start by capital, so Done.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"765def9f19a18aa2fc8315ed58313bbe79912c5c","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":98,"context_line":"        unexpectedly."},{"line_number":99,"context_line":"        \"\"\""},{"line_number":100,"context_line":"        LOG.error(_LE(\"exiting neutron-dhcp-agent because of service \""},{"line_number":101,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":102,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":103,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_ad6c6236","line":100,"in_reply_to":"5a890539_eae01098","updated":"2014-11-14 11:58:34.000000000","message":"No idea, but I will check.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                                          self.root_helper,"},{"line_number":146,"context_line":"                                          self.dhcp_version,"},{"line_number":147,"context_line":"                                          self.plugin_rpc"},{"line_number":148,"context_line":"                                          )"},{"line_number":149,"context_line":"            getattr(driver, action)(**action_kwargs)"},{"line_number":150,"context_line":"            return True"},{"line_number":151,"context_line":"        except exceptions.Conflict:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_8a04ec4a","line":148,"updated":"2014-11-14 11:47:34.000000000","message":"nit: This trailing ) probably does not deserve a separate line.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"38831d2d20afa5dab3bc9dc0eab2b5ffbe28d48d","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                                          self.root_helper,"},{"line_number":146,"context_line":"                                          self.dhcp_version,"},{"line_number":147,"context_line":"                                          self.plugin_rpc"},{"line_number":148,"context_line":"                                          )"},{"line_number":149,"context_line":"            getattr(driver, action)(**action_kwargs)"},{"line_number":150,"context_line":"            return True"},{"line_number":151,"context_line":"        except exceptions.Conflict:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_c1b2e4e4","line":148,"in_reply_to":"5a890539_8a04ec4a","updated":"2014-12-05 14:11:37.000000000","message":":-)","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":405,"context_line":"            return proxy_cmd"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        self._ext_processes.enable(uuid\u003dnetwork.id,"},{"line_number":408,"context_line":"                                   cmd_callback\u003dcallback,"},{"line_number":409,"context_line":"                                   namespace\u003dnetwork.namespace)"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def disable_isolated_metadata_proxy(self, network):"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_392b8431","line":408,"updated":"2014-12-10 14:10:59.000000000","message":"Is it intentional that we don\u0027t pass service\u003d here?","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":405,"context_line":"            return proxy_cmd"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        self._ext_processes.enable(uuid\u003dnetwork.id,"},{"line_number":408,"context_line":"                                   cmd_callback\u003dcallback,"},{"line_number":409,"context_line":"                                   namespace\u003dnetwork.namespace)"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def disable_isolated_metadata_proxy(self, network):"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_3ac5338e","line":408,"in_reply_to":"3a961159_392b8431","updated":"2014-12-10 14:48:55.000000000","message":"It\u0027s intentional to preserve the original behavior, otherwise the pid file will be stored as \"pid.service-name\" instead of just \"pid\"\n\nThe metadata proxy was one of the first users of the external_process module, and at that time, there was only one process-per UUID, now you can have many as long as you specify the \"service\" parameter.\n\nWe could workaround via specific_pid_file parameter, but I think that\u0027s more twisted.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b8aa22d63515b6712eefe9bf4a5d9a00f4e3aef9","unresolved":false,"context_lines":[{"line_number":405,"context_line":"            return proxy_cmd"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        self._ext_processes.enable(uuid\u003dnetwork.id,"},{"line_number":408,"context_line":"                                   cmd_callback\u003dcallback,"},{"line_number":409,"context_line":"                                   namespace\u003dnetwork.namespace)"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def disable_isolated_metadata_proxy(self, network):"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_60d9cc82","line":408,"in_reply_to":"3a961159_3ac5338e","updated":"2014-12-10 14:57:36.000000000","message":"Thanks for explanation.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":409,"context_line":"                                   namespace\u003dnetwork.namespace)"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def disable_isolated_metadata_proxy(self, network):"},{"line_number":412,"context_line":"        self._ext_processes.disable(uuid\u003dnetwork.id,"},{"line_number":413,"context_line":"                                    namespace\u003dnetwork.namespace)"},{"line_number":414,"context_line":""},{"line_number":415,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_5921304c","line":412,"updated":"2014-12-10 14:10:59.000000000","message":"Same.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":409,"context_line":"                                   namespace\u003dnetwork.namespace)"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"    def disable_isolated_metadata_proxy(self, network):"},{"line_number":412,"context_line":"        self._ext_processes.disable(uuid\u003dnetwork.id,"},{"line_number":413,"context_line":"                                    namespace\u003dnetwork.namespace)"},{"line_number":414,"context_line":""},{"line_number":415,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_da3b4f9a","line":412,"in_reply_to":"3a961159_5921304c","updated":"2014-12-10 14:48:55.000000000","message":"Same thing.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6086b893486f3b485fdef4f02d3302eaa398a8a6","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            os.makedirs(dhcp_dir, 0o755)"},{"line_number":95,"context_line":"        self.dhcp_version \u003d self.dhcp_driver_cls.check_version()"},{"line_number":96,"context_line":"        self._populate_networks_cache()"},{"line_number":97,"context_line":"        self._ext_processes \u003d external_process.ProcessMonitor("},{"line_number":98,"context_line":"            config\u003dself.conf,"},{"line_number":99,"context_line":"            root_helper\u003dself.root_helper,"},{"line_number":100,"context_line":"            resource_type\u003d\u0027dhcp\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_7643c76a","line":97,"updated":"2015-01-19 09:35:59.000000000","message":"Nit: I think proc_monitor would have been a better local variable name. Any reason for picking _ext_processes?","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ed5167a4b09c14f40ea677bce704eb5868e908fd","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            os.makedirs(dhcp_dir, 0o755)"},{"line_number":95,"context_line":"        self.dhcp_version \u003d self.dhcp_driver_cls.check_version()"},{"line_number":96,"context_line":"        self._populate_networks_cache()"},{"line_number":97,"context_line":"        self._ext_processes \u003d external_process.ProcessMonitor("},{"line_number":98,"context_line":"            config\u003dself.conf,"},{"line_number":99,"context_line":"            root_helper\u003dself.root_helper,"},{"line_number":100,"context_line":"            resource_type\u003d\u0027dhcp\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_6c105b01","line":97,"in_reply_to":"3a961159_7643c76a","updated":"2015-01-19 09:56:50.000000000","message":"yes, probably _process_monitor is better (like for l3)","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":108,"context_line":"        unexpectedly."},{"line_number":109,"context_line":"        \"\"\""},{"line_number":110,"context_line":"        LOG.error(_LE(\"Exiting neutron-dhcp-agent because of service \""},{"line_number":111,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":112,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":113,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":41,"id":"3a961159_1fe41edf","line":110,"updated":"2015-01-21 00:46:56.000000000","message":"because of ... -\u003e because of a malfunction with the %(service)s process identified by uuid %(uuid)s.\n\n(No action required) \u0027neutron-dhcp-agent\u0027 occurs many times in this file - consider defining as a constant.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                cfg.CONF, \u0027neutron-ns-metadata-proxy-%s.log\u0027 % network.id))"},{"line_number":413,"context_line":"            return proxy_cmd"},{"line_number":414,"context_line":""},{"line_number":415,"context_line":"        self._process_monitor.enable(uuid\u003dnetwork.id,"},{"line_number":416,"context_line":"                                     cmd_callback\u003dcallback,"},{"line_number":417,"context_line":"                                     namespace\u003dnetwork.namespace)"},{"line_number":418,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_1aa1c1a9","line":415,"updated":"2015-01-21 00:46:56.000000000","message":"Is there not a reason that the \u0027service\u0027 parameter is not supplied to this call?  Unless I\u0027m mistaken, ProcessManager will use a default of \u0027default-service\u0027 and then _exit_handler() (if configured) will report that the \u0027default-service\u0027 has failed, which isn\u0027t terribly informative.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                cfg.CONF, \u0027neutron-ns-metadata-proxy-%s.log\u0027 % network.id))"},{"line_number":413,"context_line":"            return proxy_cmd"},{"line_number":414,"context_line":""},{"line_number":415,"context_line":"        self._process_monitor.enable(uuid\u003dnetwork.id,"},{"line_number":416,"context_line":"                                     cmd_callback\u003dcallback,"},{"line_number":417,"context_line":"                                     namespace\u003dnetwork.namespace)"},{"line_number":418,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_c03ae235","line":415,"in_reply_to":"1a930d6b_1aa1c1a9","updated":"2015-01-21 10:42:16.000000000","message":"Yes, service is used to control multiple types of \"services\" provides by the agent, down the line, it will change the pid file from \u003cuuid\u003e/pid to \u003cuuid\u003e/pid.service_name\n\nthus, if we make use of it, it will change the pid file location, and the upgrades between openstack versions.\n\nMay be this question points out that \"service\" is a bad name for this parameter, and we should make more explicit the purpose of it, probably splitting in two?\n\nA logical identifier which can be used for \"reporting\", and one related to the pid. I didn\u0027t want to expose the PID detail up here, but didn\u0027t find a better way of hidding, and keeping backwards compatibility at once.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"}],"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"094825facec52b8b88efa13cf101bf6d79667a00","unresolved":false,"context_lines":[{"line_number":547,"context_line":"        return addn_hosts"},{"line_number":548,"context_line":""},{"line_number":549,"context_line":"    def _get_addn_hosts_filename(self):"},{"line_number":550,"context_line":"        return self.get_conf_file_name(\u0027addn_hosts\u0027)"},{"line_number":551,"context_line":""},{"line_number":552,"context_line":"    def _output_opts_file(self):"},{"line_number":553,"context_line":"        \"\"\"Write a dnsmasq compatible options file.\"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_e81e775e","line":550,"updated":"2014-09-02 23:41:21.000000000","message":"this and the other method at line 526 are unrelated but it should be ok","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"86aad84702cb415a4aa4e63ca21c718009603f20","unresolved":false,"context_lines":[{"line_number":547,"context_line":"        return addn_hosts"},{"line_number":548,"context_line":""},{"line_number":549,"context_line":"    def _get_addn_hosts_filename(self):"},{"line_number":550,"context_line":"        return self.get_conf_file_name(\u0027addn_hosts\u0027)"},{"line_number":551,"context_line":""},{"line_number":552,"context_line":"    def _output_opts_file(self):"},{"line_number":553,"context_line":"        \"\"\"Write a dnsmasq compatible options file.\"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_2e107ca7","line":550,"in_reply_to":"fa98f980_d34cfba0","updated":"2014-09-03 08:39:50.000000000","message":"Hmm, I see what you mean now. Unrelated to the patch purpose, right?\n\nWell you\u0027re partly right, it\u0027s related to the change around line 332, \nbut that could be accomplished with a constant too.","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":547,"context_line":"        return addn_hosts"},{"line_number":548,"context_line":""},{"line_number":549,"context_line":"    def _get_addn_hosts_filename(self):"},{"line_number":550,"context_line":"        return self.get_conf_file_name(\u0027addn_hosts\u0027)"},{"line_number":551,"context_line":""},{"line_number":552,"context_line":"    def _output_opts_file(self):"},{"line_number":553,"context_line":"        \"\"\"Write a dnsmasq compatible options file.\"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_d34cfba0","line":550,"in_reply_to":"fa98f980_e81e775e","updated":"2014-09-03 08:11:51.000000000","message":"What do you mean? \n\nTo put them together?, or , that probably we could avoid adding an extra function here?. Probably a constant + get_conf_file_name could make sense too.","commit_id":"ed997f7fc14c58d15d36dcc2dc60f237d0a3a82b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0246be95f93149d0d14a79060555822f68916fdb","unresolved":false,"context_lines":[{"line_number":135,"context_line":"class DhcpBase(object):"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    def __init__(self, conf, network, root_helper\u003d\u0027sudo\u0027,"},{"line_number":138,"context_line":"                 version\u003dNone, plugin\u003dNone, process_monitor\u003dNone):"},{"line_number":139,"context_line":"        self.conf \u003d conf"},{"line_number":140,"context_line":"        self.network \u003d network"},{"line_number":141,"context_line":"        self.root_helper \u003d root_helper"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_60876f62","line":138,"updated":"2014-11-10 09:20:40.000000000","message":"You rely on proper process_manager being passed to the method (you unconditionally use it in .active()). So how about making the argument unconditional?","commit_id":"1341a16250d443c88a4fb2d4ce4b0d6fe1a89032"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"103186c7136d642dbb347b159fc4e51e8ff92334","unresolved":false,"context_lines":[{"line_number":135,"context_line":"class DhcpBase(object):"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    def __init__(self, conf, network, root_helper\u003d\u0027sudo\u0027,"},{"line_number":138,"context_line":"                 version\u003dNone, plugin\u003dNone, process_monitor\u003dNone):"},{"line_number":139,"context_line":"        self.conf \u003d conf"},{"line_number":140,"context_line":"        self.network \u003d network"},{"line_number":141,"context_line":"        self.root_helper \u003d root_helper"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_ff5f5e70","line":138,"in_reply_to":"5a890539_60876f62","updated":"2014-11-11 14:05:40.000000000","message":"You\u0027re totally right, that\u0027s actually breaking the netns cleanup :(","commit_id":"1341a16250d443c88a4fb2d4ce4b0d6fe1a89032"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3cce9ecffb81d910b0d8e32aa3f65e7ac311cb49","unresolved":false,"context_lines":[{"line_number":212,"context_line":"    def disable(self, retain_port\u003dFalse):"},{"line_number":213,"context_line":"        \"\"\"Disable DHCP for this network by killing the local process.\"\"\""},{"line_number":214,"context_line":"        pid \u003d self.process_monitor.get_pid(uuid\u003dself.network.id,"},{"line_number":215,"context_line":"                                           service\u003dDNSMASQ_SERVICE_NAME)"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"        pid_filename \u003d self.get_conf_file_name(\u0027pid\u0027)"},{"line_number":218,"context_line":"        self.process_monitor.disable(uuid\u003dself.network.id,"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a890539_5c93f64e","line":215,"updated":"2014-11-12 18:24:44.000000000","message":"hmmm probably this requires an specific_pid_file too, for the corner case where the network.id wasn\u0027t know to the process monitor, but the pid file actually existed.","commit_id":"e1ee45a64b1b2d86e798fdd370e4c70554caa861"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":222,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":223,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":224,"context_line":"        if pid and not retain_port:"},{"line_number":225,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_6d0d1a37","line":224,"updated":"2014-11-14 11:47:34.000000000","message":"I don\u0027t think I follow here. So if there was no pid found, we leave port intact. Is it intended behaviour? [Yes, I know it\u0027s not in your patch.]","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"38831d2d20afa5dab3bc9dc0eab2b5ffbe28d48d","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":222,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":223,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":224,"context_line":"        if pid and not retain_port:"},{"line_number":225,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_6176900e","line":224,"in_reply_to":"5a890539_37c973ac","updated":"2014-12-05 14:11:37.000000000","message":"hmmm, yes, there is something broken in the logic. I will submit a bug when I pass by here again for \"Done\".","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":222,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":223,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":224,"context_line":"        if pid and not retain_port:"},{"line_number":225,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_5e905d43","line":224,"in_reply_to":"5a890539_6176900e","updated":"2014-12-09 15:36:43.000000000","message":"Not modifying here, as, getting the pid seems the correct behaviour. Generally when the process dies by error, the pid file is left, therefore the check will be done.\n\nThere is an uncovered case in this code, it\u0027s when the port exists, but not the pid file (for some random reason).\n\nMay be a better implementation would be if port_exists... and not retain_port...\n\nOr just, try to kill the port one way or another and capture the exception when port doesn\u0027t exist...\n\nBut I believe this is out of scope for this patch.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"765def9f19a18aa2fc8315ed58313bbe79912c5c","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":222,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":223,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":224,"context_line":"        if pid and not retain_port:"},{"line_number":225,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_cd560e2a","line":224,"in_reply_to":"5a890539_6d0d1a37","updated":"2014-11-14 11:58:34.000000000","message":"I was trying not to modify the previous behavior in this patch, even if I found the original version a bit obscure too.\n\nretain_port is used at restart() method. I suppose the idea here is: \n\nif it was running before (pid!\u003dNone or False), we killed it .disable(...), and we don\u0027t want to retain the port, so we ask for port destroy...\n\nIt could be more readable if we change \npid var into: \"process_was_running\",  ? \n\nso... may be:\n\nprocess_was_active \u003d self.process_monitor.is_active(... blah...)\n\n\nif process_was_active and not retain_port:\n.... destroy the port\n\nWhich is a much more idiomatic.\n\nWhat do you think?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"933276636acfe5f2cebb4b8c826c11538805c69f","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":222,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":223,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":224,"context_line":"        if pid and not retain_port:"},{"line_number":225,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_37c973ac","line":224,"in_reply_to":"5a890539_cd560e2a","updated":"2014-11-25 11:36:50.000000000","message":"But what if pid is not returned but interface is still there. Does it mean we\u0027ll leave it intact?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":278,"context_line":"                                                      ensure_conf_dir\u003dTrue)"},{"line_number":279,"context_line":"        utils.replace_file(interface_file_path, value)"},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"    @property"},{"line_number":282,"context_line":"    def active(self):"},{"line_number":283,"context_line":"        pid_filename \u003d self.get_conf_file_name(\u0027pid\u0027)"},{"line_number":284,"context_line":"        return self.process_monitor.is_active(self.network.id,"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_8d432641","line":281,"updated":"2014-11-14 11:47:34.000000000","message":"nit: It would be better for review to leave the method in the original place.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":570,"context_line":"        utils.replace_file(addn_hosts, buf.getvalue())"},{"line_number":571,"context_line":"        return addn_hosts"},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"    def _get_addn_hosts_filename(self):"},{"line_number":574,"context_line":"        return self.get_conf_file_name(\u0027addn_hosts\u0027)"},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"    def _output_opts_file(self):"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_0dec9629","line":573,"updated":"2014-11-14 11:47:34.000000000","message":"Can we move those _gett_..._filename methods in single place maybe?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":223,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":224,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":225,"context_line":"        if pid and not retain_port:"},{"line_number":226,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_39ec64c7","line":225,"updated":"2014-12-10 14:10:59.000000000","message":"I really think that destroying the interface should not depend on pid being found. What if interface was created but pid file was not written? In that case it will hang there not cleaned up, won\u0027t it?\n\nI know that\u0027s not your code, so you can ignore the comment.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":223,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":224,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":225,"context_line":"        if pid and not retain_port:"},{"line_number":226,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_bad4c320","line":225,"in_reply_to":"3a961159_39ec64c7","updated":"2014-12-10 14:48:55.000000000","message":"Yes, I totally agree, but it\u0027s out of scope, we can work on it via a separate bug report, (is it actually a bug if nobody reported or hitted it?)\n\nhttps://bugs.launchpad.net/neutron/+bug/1401132","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b8aa22d63515b6712eefe9bf4a5d9a00f4e3aef9","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                                     namespace\u003dself.network.namespace,"},{"line_number":223,"context_line":"                                     service\u003dDNSMASQ_SERVICE_NAME,"},{"line_number":224,"context_line":"                                     specific_pid_file\u003dpid_filename)"},{"line_number":225,"context_line":"        if pid and not retain_port:"},{"line_number":226,"context_line":"            self.device_manager.destroy(self.network, self.interface_name)"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"        self._remove_config_files()"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_2046e423","line":225,"in_reply_to":"3a961159_bad4c320","updated":"2014-12-10 14:57:36.000000000","message":"Yes, there are bugs that are not hitted or reported. ;) Thanks!","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6086b893486f3b485fdef4f02d3302eaa398a8a6","unresolved":false,"context_lines":[{"line_number":425,"context_line":"        }"},{"line_number":426,"context_line":"        return env"},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    def spawn_process(self, reload_cfg\u003dFalse):"},{"line_number":429,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network.\"\"\""},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        self._output_config_files()"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_364dbf99","line":428,"updated":"2015-01-19 09:35:59.000000000","message":"I think now this method should be renamed. spawm_process gives developers the idea you\u0027re always spawning something here. Which is not the cause when you call this method for doing a kill -HUP (ie: reload allocations). The code works, but in order to figure it out I had to look at the ProcessMonitor and then find out in the ProcessManager that the process is not executed again if its status is active.\nPerhaps consider renaming it to launch_or_reload_dhcp","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ed5167a4b09c14f40ea677bce704eb5868e908fd","unresolved":false,"context_lines":[{"line_number":425,"context_line":"        }"},{"line_number":426,"context_line":"        return env"},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    def spawn_process(self, reload_cfg\u003dFalse):"},{"line_number":429,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network.\"\"\""},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        self._output_config_files()"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_8cc9077d","line":428,"in_reply_to":"3a961159_364dbf99","updated":"2015-01-19 09:56:50.000000000","message":"+1, what you\u0027re saying makes a lot of sense actually, I will change it.\n\nThank you salvatore.","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"e1699eaf38144be19e5b8b433b6778696fc4af8d","unresolved":false,"context_lines":[{"line_number":425,"context_line":"        }"},{"line_number":426,"context_line":"        return env"},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    def spawn_process(self, reload_cfg\u003dFalse):"},{"line_number":429,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network.\"\"\""},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        self._output_config_files()"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_1b00e768","line":428,"in_reply_to":"3a961159_8cc9077d","updated":"2015-01-19 12:44:07.000000000","message":"If you find it ok, I will stick to the term spawn instead of launch, and _process instead of dhcp: spawn_or_reload_process\n\nfor 2 reasons:\n\nspawn_*\n\nLot\u0027s of unit tests names test_spawn*, so we avoid a massive renaming in there (just for coherency).\n\n\n*_process\nThe parent class of this one is DhcpLocalProcess, which provides/calls the abstract method, so.. just to keep talking of \"processes\" and not \"dhcp\". Anyway, just a nit reason...","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6086b893486f3b485fdef4f02d3302eaa398a8a6","unresolved":false,"context_lines":[{"line_number":569,"context_line":"            self._release_lease(mac, ip)"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"    def _get_hosts_filename(self):"},{"line_number":572,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":573,"context_line":""},{"line_number":574,"context_line":"    def _output_addn_hosts_file(self):"},{"line_number":575,"context_line":"        \"\"\"Writes a dnsmasq compatible additional hosts file."}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_56408b5e","line":572,"updated":"2015-01-19 09:35:59.000000000","message":"nit: can you keep this method and the other two similar ones together. This is up to you, I will approve the patch regardless of where they are - as long as you keep them in this module!","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ed5167a4b09c14f40ea677bce704eb5868e908fd","unresolved":false,"context_lines":[{"line_number":569,"context_line":"            self._release_lease(mac, ip)"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"    def _get_hosts_filename(self):"},{"line_number":572,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":573,"context_line":""},{"line_number":574,"context_line":"    def _output_addn_hosts_file(self):"},{"line_number":575,"context_line":"        \"\"\"Writes a dnsmasq compatible additional hosts file."}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_8cc58740","line":572,"in_reply_to":"3a961159_56408b5e","updated":"2015-01-19 09:56:50.000000000","message":"+1 I will do. Thanks.","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"31f3c60dd5822de0b89809c7ddc20d932771fd3d","unresolved":false,"context_lines":[{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    def spawn_process(self):"},{"line_number":429,"context_line":"        \"\"\"Spawn the process, it it\u0027s not spawned already.\"\"\""},{"line_number":430,"context_line":"        self._spawn_or_reload_process(reload_with_HUP\u003dFalse)"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"    def _spawn_or_reload_process(self, reload_with_HUP):"},{"line_number":433,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network."}],"source_content_type":"text/x-python","patch_set":40,"id":"3a961159_8278e37f","line":430,"updated":"2015-01-19 16:14:39.000000000","message":"Ok, not exactly as you suggested @salvatore, but I made things more explicit, and I kept the DhcpLocalProcess.spawn_process abstract method untouched reducing the scope of the change.\n\nI hope it\u0027s acceptable now \u0027:)","commit_id":"26998c149dba4a4a04618459cb50dc43da23986c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"31f3c60dd5822de0b89809c7ddc20d932771fd3d","unresolved":false,"context_lines":[{"line_number":577,"context_line":"            self._release_lease(mac, ip)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def _get_hosts_filename(self):"},{"line_number":580,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":581,"context_line":""},{"line_number":582,"context_line":"    def _output_addn_hosts_file(self):"},{"line_number":583,"context_line":"        \"\"\"Writes a dnsmasq compatible additional hosts file."}],"source_content_type":"text/x-python","patch_set":40,"id":"3a961159_2289ef6f","line":580,"updated":"2015-01-19 16:14:39.000000000","message":"Good I\u0027m proofreading myself, I just discovered I\u0027m missing your suggestion of putting all those functions together ^","commit_id":"26998c149dba4a4a04618459cb50dc43da23986c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"361f385b42b943b959632433866542f7082e9b02","unresolved":false,"context_lines":[{"line_number":137,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":138,"context_line":"class DhcpBase(object):"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def __init__(self, conf, network, process_monitor, root_helper\u003d\u0027sudo\u0027,"},{"line_number":141,"context_line":"                 version\u003dNone, plugin\u003dNone):"},{"line_number":142,"context_line":"        self.conf \u003d conf"},{"line_number":143,"context_line":"        self.network \u003d network"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_fd47851b","line":140,"updated":"2015-01-21 09:31:56.000000000","message":"any particular reason for adding process_monitor to abstract base class?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"9fef3f97b5f70f2c83825fe77c9199ec264fd2d3","unresolved":false,"context_lines":[{"line_number":137,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":138,"context_line":"class DhcpBase(object):"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def __init__(self, conf, network, process_monitor, root_helper\u003d\u0027sudo\u0027,"},{"line_number":141,"context_line":"                 version\u003dNone, plugin\u003dNone):"},{"line_number":142,"context_line":"        self.conf \u003d conf"},{"line_number":143,"context_line":"        self.network \u003d network"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_125518c6","line":140,"in_reply_to":"1a930d6b_809a9a12","updated":"2015-01-21 12:08:44.000000000","message":"I see, thanks","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":137,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":138,"context_line":"class DhcpBase(object):"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def __init__(self, conf, network, process_monitor, root_helper\u003d\u0027sudo\u0027,"},{"line_number":141,"context_line":"                 version\u003dNone, plugin\u003dNone):"},{"line_number":142,"context_line":"        self.conf \u003d conf"},{"line_number":143,"context_line":"        self.network \u003d network"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_809a9a12","line":140,"in_reply_to":"1a930d6b_fd47851b","updated":"2015-01-21 10:42:16.000000000","message":"Yes,\n\nOn driver instantiation, by the dhcp_agent.py, this parameter will\nbe always provided, independently of the type of driver\nyou implement. Then it\u0027s up to the driver to use it or no (same way it happens with root_helper)\n\nOtherwise we may need to selectively feed the parameter depending on the type of driver up in dhcp_agent  call method, which I believe is not acceptable.\n\nAny code out of tree  using DhcpBase will need to update to accept the parameter.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def disable(self, retain_port\u003dFalse):"},{"line_number":239,"context_line":"        \"\"\"Disable DHCP for this network by killing the local process.\"\"\""},{"line_number":240,"context_line":"        pid_filename \u003d self.get_conf_file_name(\u0027pid\u0027)"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        pid \u003d self.process_monitor.get_pid(uuid\u003dself.network.id,"},{"line_number":243,"context_line":"                                           service\u003dDNSMASQ_SERVICE_NAME,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_3a04bd14","line":240,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) Why are there helpers for retrieving the hosts/addn_hosts/opts filename but not for pid?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def disable(self, retain_port\u003dFalse):"},{"line_number":239,"context_line":"        \"\"\"Disable DHCP for this network by killing the local process.\"\"\""},{"line_number":240,"context_line":"        pid_filename \u003d self.get_conf_file_name(\u0027pid\u0027)"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        pid \u003d self.process_monitor.get_pid(uuid\u003dself.network.id,"},{"line_number":243,"context_line":"                                           service\u003dDNSMASQ_SERVICE_NAME,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_a0b6b688","line":240,"in_reply_to":"1a930d6b_3a04bd14","updated":"2015-01-21 10:42:16.000000000","message":"oversight ...  I will add it if I need to send a new patch.\n\nThank you.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        return cmd"},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"    def _build_dnsmasq_env(self):"},{"line_number":423,"context_line":"        env \u003d {"},{"line_number":424,"context_line":"            self.NEUTRON_NETWORK_ID_KEY: self.network.id,"},{"line_number":425,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_1a74619b","line":422,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) Not really sure why this deserves to be a function.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        return cmd"},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"    def _build_dnsmasq_env(self):"},{"line_number":423,"context_line":"        env \u003d {"},{"line_number":424,"context_line":"            self.NEUTRON_NETWORK_ID_KEY: self.network.id,"},{"line_number":425,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_c0174250","line":422,"in_reply_to":"1a930d6b_1a74619b","updated":"2015-01-21 10:42:16.000000000","message":"True, 0 value in this function, may be in an older patchset it was different, but it could be built during the process_monitor.enable(  call\n\nlet\u0027s save 5 lines here on next patchset.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"063d5edbb9c00283a4711d953eab911b3df8b4c5","unresolved":false,"context_lines":[{"line_number":426,"context_line":"        return env"},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    def spawn_process(self):"},{"line_number":429,"context_line":"        \"\"\"Spawn the process, it it\u0027s not spawned already.\"\"\""},{"line_number":430,"context_line":"        self._spawn_or_reload_process(reload_with_HUP\u003dFalse)"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"    def _spawn_or_reload_process(self, reload_with_HUP):"}],"source_content_type":"text/x-python","patch_set":41,"id":"3a961159_dd145e52","line":429,"updated":"2015-01-20 19:25:52.000000000","message":"nit: it it\u0027s -\u003e if it\u0027s","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"361f385b42b943b959632433866542f7082e9b02","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        for ip, mac in old_leases - new_leases:"},{"line_number":577,"context_line":"            self._release_lease(mac, ip)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def _get_hosts_filename(self):"},{"line_number":580,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":581,"context_line":""},{"line_number":582,"context_line":"    def _get_addn_hosts_filename(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_9db68189","line":579,"updated":"2015-01-21 09:31:56.000000000","message":"IMHO such one-line helpers only bring more confusion to the code and increase the diff","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        for ip, mac in old_leases - new_leases:"},{"line_number":577,"context_line":"            self._release_lease(mac, ip)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def _get_hosts_filename(self):"},{"line_number":580,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":581,"context_line":""},{"line_number":582,"context_line":"    def _get_addn_hosts_filename(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_e367e8e8","line":579,"in_reply_to":"1a930d6b_9db68189","updated":"2015-01-21 10:42:16.000000000","message":"My point was, that the strings \u0027host\u0027, \u0027addn_hosts\u0027, or \u0027opts\u0027 could be misstyped in different places, and we wouldn\u0027t get a compilation error.\n\nBut yes, it\u0027s a very weak point, since: we have tests for that, and we could use constants\n\nHOSTS_FILE\nADDN_HOSTS_FILE\nOPTS_FILE\nPID_FILE\n\nwhat do you think? Are the constants worth it?, or shall we get rid of all this functions?\n\nThank you.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"9fef3f97b5f70f2c83825fe77c9199ec264fd2d3","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        for ip, mac in old_leases - new_leases:"},{"line_number":577,"context_line":"            self._release_lease(mac, ip)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def _get_hosts_filename(self):"},{"line_number":580,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":581,"context_line":""},{"line_number":582,"context_line":"    def _get_addn_hosts_filename(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_f2916c53","line":579,"in_reply_to":"1a930d6b_e367e8e8","updated":"2015-01-21 12:08:44.000000000","message":"fair enough, but I think this patch is already quite big and not so easy to review so my point is that it deserves a separate patch","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0ddee6651618e69596b3f688415b6081b94d7ad4","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        for ip, mac in old_leases - new_leases:"},{"line_number":577,"context_line":"            self._release_lease(mac, ip)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def _get_hosts_filename(self):"},{"line_number":580,"context_line":"        return self.get_conf_file_name(\u0027host\u0027)"},{"line_number":581,"context_line":""},{"line_number":582,"context_line":"    def _get_addn_hosts_filename(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_f2508c60","line":579,"in_reply_to":"1a930d6b_f2916c53","updated":"2015-01-21 12:35:09.000000000","message":"Ok, I will get rid of the new functions, and we can constantize those in a separate patch.\n\nGood point, and thank you for your effort on reviewing this.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":516,"context_line":"        defined by the `_output_addn_hosts_file` method."},{"line_number":517,"context_line":"        \"\"\""},{"line_number":518,"context_line":"        buf \u003d six.StringIO()"},{"line_number":519,"context_line":"        filename \u003d self.get_conf_file_name(\u0027host\u0027)"},{"line_number":520,"context_line":""},{"line_number":521,"context_line":"        LOG.debug(\u0027Building host file: %s\u0027, filename)"},{"line_number":522,"context_line":"        dhcp_enabled_subnet_ids \u003d [s.id for s in self.network.subnets"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_a75eb1e7","line":519,"updated":"2015-01-22 00:14:42.000000000","message":"(No action required) +1 for a follow-on patch that uses constants rather than magic strings.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":516,"context_line":"        defined by the `_output_addn_hosts_file` method."},{"line_number":517,"context_line":"        \"\"\""},{"line_number":518,"context_line":"        buf \u003d six.StringIO()"},{"line_number":519,"context_line":"        filename \u003d self.get_conf_file_name(\u0027host\u0027)"},{"line_number":520,"context_line":""},{"line_number":521,"context_line":"        LOG.debug(\u0027Building host file: %s\u0027, filename)"},{"line_number":522,"context_line":"        dhcp_enabled_subnet_ids \u003d [s.id for s in self.network.subnets"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_e34a5f82","line":519,"in_reply_to":"1a930d6b_a75eb1e7","updated":"2015-01-22 09:42:12.000000000","message":"It\u0027s on my task list. Low hanging fruit... I\u0027m thinking that may be I should externalize all those low hanging fruits to bugs to help new people joining the project doing something easy.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"068f1e83e93f401e5b7ace797c3b4c8ca3d84191","unresolved":false,"context_lines":[{"line_number":401,"context_line":"    def _spawn_or_reload_process(self, reload_with_HUP):"},{"line_number":402,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        When reload_cfg is True, dnsmasq receives a HUP signal,"},{"line_number":405,"context_line":"        or it\u0027s reloaded if the process is not running."},{"line_number":406,"context_line":"        \"\"\""},{"line_number":407,"context_line":""}],"source_content_type":"text/x-python","patch_set":44,"id":"1a930d6b_c1ae1285","line":404,"updated":"2015-01-23 09:13:51.000000000","message":"nit: when reload_with_HUP is True...","commit_id":"bb8bc13fae195e0875f5c2747d5697fe6e78da46"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"d27f552bbe9127115b3bcd3175c5a7cb44d969b3","unresolved":false,"context_lines":[{"line_number":401,"context_line":"    def _spawn_or_reload_process(self, reload_with_HUP):"},{"line_number":402,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        When reload_cfg is True, dnsmasq receives a HUP signal,"},{"line_number":405,"context_line":"        or it\u0027s reloaded if the process is not running."},{"line_number":406,"context_line":"        \"\"\""},{"line_number":407,"context_line":""}],"source_content_type":"text/x-python","patch_set":44,"id":"1a930d6b_ec392c42","line":404,"in_reply_to":"1a930d6b_86917b9b","updated":"2015-01-23 18:06:44.000000000","message":"Not sure how I missed this, but it should be \u0027hup\u0027 not \u0027HUP\u0027.  :/","commit_id":"bb8bc13fae195e0875f5c2747d5697fe6e78da46"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9b47f9347e77d3f5dcdb075da99b736be5efae7a","unresolved":false,"context_lines":[{"line_number":401,"context_line":"    def _spawn_or_reload_process(self, reload_with_HUP):"},{"line_number":402,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        When reload_cfg is True, dnsmasq receives a HUP signal,"},{"line_number":405,"context_line":"        or it\u0027s reloaded if the process is not running."},{"line_number":406,"context_line":"        \"\"\""},{"line_number":407,"context_line":""}],"source_content_type":"text/x-python","patch_set":44,"id":"1a930d6b_86917b9b","line":404,"in_reply_to":"1a930d6b_c1ae1285","updated":"2015-01-23 10:06:54.000000000","message":"Will fix it as part of the rebase. Good catch","commit_id":"bb8bc13fae195e0875f5c2747d5697fe6e78da46"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"4378c46247de48d45936e6fa699f8917b03bdb4a","unresolved":false,"context_lines":[{"line_number":401,"context_line":"    def _spawn_or_reload_process(self, reload_with_HUP):"},{"line_number":402,"context_line":"        \"\"\"Spawns or reloads a Dnsmasq process for the network."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        When reload_cfg is True, dnsmasq receives a HUP signal,"},{"line_number":405,"context_line":"        or it\u0027s reloaded if the process is not running."},{"line_number":406,"context_line":"        \"\"\""},{"line_number":407,"context_line":""}],"source_content_type":"text/x-python","patch_set":44,"id":"1a930d6b_8c61883b","line":404,"in_reply_to":"1a930d6b_ec392c42","updated":"2015-01-26 09:48:18.000000000","message":"hmmm, right :/ , will do as a follow up.\n\nThanks for pushing the review speed so much.","commit_id":"bb8bc13fae195e0875f5c2747d5697fe6e78da46"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"4001f0be27b52d5403c544356adeeca0cd8e0e01","unresolved":false,"context_lines":[{"line_number":405,"context_line":"        or it\u0027s reloaded if the process is not running."},{"line_number":406,"context_line":"        \"\"\""},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        self._output_config_files()"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        pid_filename \u003d self.get_conf_file_name(\u0027pid\u0027)"},{"line_number":411,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"1a930d6b_184cf641","line":408,"updated":"2015-01-26 14:51:17.000000000","message":"Do we want to do this if the process is already running and reload\u003d\u003dFalse?","commit_id":"fc4e60ed4b1c4ea3b1129ff75364b04f3cb78b91"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"39a1e653de142b35fc18e298d316698da14359ea","unresolved":false,"context_lines":[{"line_number":405,"context_line":"        or it\u0027s reloaded if the process is not running."},{"line_number":406,"context_line":"        \"\"\""},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        self._output_config_files()"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        pid_filename \u003d self.get_conf_file_name(\u0027pid\u0027)"},{"line_number":411,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"1a930d6b_918a4e19","line":408,"in_reply_to":"1a930d6b_184cf641","updated":"2015-01-26 15:25:04.000000000","message":"Thank you for reviewing this Henry,\n\nYes, we want it, since that could be the initial spawn of the process, in that case we need to put all the configuration files in place before trying to spawn the process.","commit_id":"fc4e60ed4b1c4ea3b1129ff75364b04f3cb78b91"}],"neutron/agent/linux/external_process.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            LOG.debug(\u0027No process started for %s\u0027, self.uuid)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def get_pid_file_name(self, ensure_pids_dir\u003dFalse):"},{"line_number":105,"context_line":"        \"\"\"Returns the file name for a given kind of config file.\"\"\""},{"line_number":106,"context_line":"        if self.specific_pid_file:"},{"line_number":107,"context_line":"            if ensure_pids_dir:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_ca60b4d1","line":104,"updated":"2014-11-14 11:47:34.000000000","message":"I find it quite wrong when a method named as \u0027get\u0027 actually changes system. I know it\u0027s not your fault, but do you think we may split the method into two parts with clear jobs: get_pid_file_name and ensure_file_name_dir maybe?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"38831d2d20afa5dab3bc9dc0eab2b5ffbe28d48d","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            LOG.debug(\u0027No process started for %s\u0027, self.uuid)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def get_pid_file_name(self, ensure_pids_dir\u003dFalse):"},{"line_number":105,"context_line":"        \"\"\"Returns the file name for a given kind of config file.\"\"\""},{"line_number":106,"context_line":"        if self.specific_pid_file:"},{"line_number":107,"context_line":"            if ensure_pids_dir:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_e169a027","line":104,"in_reply_to":"5a890539_ca60b4d1","updated":"2014-12-05 14:11:37.000000000","message":"Sounds reasonable to me. Will do.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            LOG.debug(\u0027No process started for %s\u0027, self.uuid)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def get_pid_file_name(self, ensure_pids_dir\u003dFalse):"},{"line_number":105,"context_line":"        \"\"\"Returns the file name for a given kind of config file.\"\"\""},{"line_number":106,"context_line":"        if self.specific_pid_file:"},{"line_number":107,"context_line":"            if ensure_pids_dir:"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_feabc91b","line":104,"in_reply_to":"5a890539_e169a027","updated":"2014-12-09 15:36:43.000000000","message":"Hmm, it\u0027s not something I introduced in this patch, and I don\u0027t want to go out of scope with somebody asking later to split this change out, as it\u0027s affecting other code in neutron which calls get_pid_file_name.\n\nI have registered a thin blueprint for this https://blueprints.launchpad.net/neutron/+spec/cleanup-process-manager-gpf","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        # therefore we won\u0027t know about such uuid and we need to"},{"line_number":190,"context_line":"        # build the process_manager to kill it"},{"line_number":191,"context_line":"        if not process_manager:"},{"line_number":192,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":193,"context_line":"                uuid, None, namespace, service, None, specific_pid_file)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        process_manager.disable()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_8a7eac17","line":192,"updated":"2014-11-14 11:47:34.000000000","message":"Can\u0027t we reuse get_or_create method here?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        # therefore we won\u0027t know about such uuid and we need to"},{"line_number":190,"context_line":"        # build the process_manager to kill it"},{"line_number":191,"context_line":"        if not process_manager:"},{"line_number":192,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":193,"context_line":"                uuid, None, namespace, service, None, specific_pid_file)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        process_manager.disable()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_ad0b8228","line":192,"in_reply_to":"5a890539_8a7eac17","updated":"2014-11-14 12:16:45.000000000","message":"Certainly, we can, +1","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":190,"context_line":"        # build the process_manager to kill it"},{"line_number":191,"context_line":"        if not process_manager:"},{"line_number":192,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":193,"context_line":"                uuid, None, namespace, service, None, specific_pid_file)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        process_manager.disable()"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_0ad63c28","line":193,"updated":"2014-11-14 11:47:34.000000000","message":"could you please use argument names here? So that in case we shuffle arguments in some ways, it still works; and to be more clear for those who read the code.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":190,"context_line":"        # build the process_manager to kill it"},{"line_number":191,"context_line":"        if not process_manager:"},{"line_number":192,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":193,"context_line":"                uuid, None, namespace, service, None, specific_pid_file)"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        process_manager.disable()"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_a8129054","line":193,"in_reply_to":"5a890539_0ad63c28","updated":"2014-11-14 12:16:45.000000000","message":"I agree, I wanted to cleanup to less lines, but it becomes obscure, specially with the None\u0027s...","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        service_id \u003d ServiceId(uuid, service)"},{"line_number":204,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":207,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"},{"line_number":208,"context_line":"                                                   specific_pid_file)"},{"line_number":209,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_cac27433","line":206,"updated":"2014-11-14 11:47:34.000000000","message":"Please refrain from shuffling methods, it makes reviewing the code a bit harder.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        service_id \u003d ServiceId(uuid, service)"},{"line_number":204,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":207,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"},{"line_number":208,"context_line":"                                                   specific_pid_file)"},{"line_number":209,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_2b3512da","line":206,"in_reply_to":"5a890539_3757b3cb","updated":"2014-12-09 15:36:43.000000000","message":"I\u0027ll roll it back, let\u0027s change it in the future (whenever that is :P) :)","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"933276636acfe5f2cebb4b8c826c11538805c69f","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        service_id \u003d ServiceId(uuid, service)"},{"line_number":204,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":207,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"},{"line_number":208,"context_line":"                                                   specific_pid_file)"},{"line_number":209,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_3757b3cb","line":206,"in_reply_to":"5a890539_682428af","updated":"2014-11-25 11:36:50.000000000","message":"That may be a noble goal, though I think such cleanups belong to separate patches to avoid additional burden on reviewers. That said, I\u0027m ok with current version, whatever it is.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        service_id \u003d ServiceId(uuid, service)"},{"line_number":204,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":207,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"},{"line_number":208,"context_line":"                                                   specific_pid_file)"},{"line_number":209,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_682428af","line":206,"in_reply_to":"5a890539_cac27433","updated":"2014-11-14 12:16:45.000000000","message":"Sorry, I like to keep function calls top/down, with public methods first.\n\nI want to make things easier for final readers :/","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"},{"line_number":208,"context_line":"                                                   specific_pid_file)"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"    def get_pid(self, uuid, service\u003dNone, namespace\u003dNone,"},{"line_number":211,"context_line":"                specific_pid_file\u003dNone):"},{"line_number":212,"context_line":"        return self._get_process_manager_attribute(\u0027pid\u0027, uuid, service,"},{"line_number":213,"context_line":"                                                   specific_pid_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_8ad30c03","line":210,"updated":"2014-11-14 11:47:34.000000000","message":"It doesn\u0027t seem you pass namespace argument anywhere.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":207,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"},{"line_number":208,"context_line":"                                                   specific_pid_file)"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"    def get_pid(self, uuid, service\u003dNone, namespace\u003dNone,"},{"line_number":211,"context_line":"                specific_pid_file\u003dNone):"},{"line_number":212,"context_line":"        return self._get_process_manager_attribute(\u0027pid\u0027, uuid, service,"},{"line_number":213,"context_line":"                                                   specific_pid_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_883cf4c9","line":210,"in_reply_to":"5a890539_8ad30c03","updated":"2014-11-14 12:16:45.000000000","message":"good catch!\n\nnamespace--, will do.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":232,"context_line":"        if not process_manager:"},{"line_number":233,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":234,"context_line":"                uuid\u003duuid, cmd_callback\u003dNone, namespace\u003dNone, service\u003dservice,"},{"line_number":235,"context_line":"                cmd_addl_env\u003dNone, specific_pid_file\u003dspecific_pid_file)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        return process_manager"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_ea72d00f","line":234,"updated":"2014-11-14 11:47:34.000000000","message":"why is namespace always None (root) here?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":232,"context_line":"        if not process_manager:"},{"line_number":233,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":234,"context_line":"                uuid\u003duuid, cmd_callback\u003dNone, namespace\u003dNone, service\u003dservice,"},{"line_number":235,"context_line":"                cmd_addl_env\u003dNone, specific_pid_file\u003dspecific_pid_file)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        return process_manager"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_8b09a6df","line":234,"in_reply_to":"5a890539_370ed3e5","updated":"2014-12-09 15:36:43.000000000","message":"I will better pass the full stack of arguments, so callers can decide what to get (basic or full), and it will match _create_process_manager down.\n\nDone.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"933276636acfe5f2cebb4b8c826c11538805c69f","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":232,"context_line":"        if not process_manager:"},{"line_number":233,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":234,"context_line":"                uuid\u003duuid, cmd_callback\u003dNone, namespace\u003dNone, service\u003dservice,"},{"line_number":235,"context_line":"                cmd_addl_env\u003dNone, specific_pid_file\u003dspecific_pid_file)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        return process_manager"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_370ed3e5","line":234,"in_reply_to":"5a890539_886a34b1","updated":"2014-11-25 11:36:50.000000000","message":"Yes, rename and docstring could probably solve my concern.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":232,"context_line":"        if not process_manager:"},{"line_number":233,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":234,"context_line":"                uuid\u003duuid, cmd_callback\u003dNone, namespace\u003dNone, service\u003dservice,"},{"line_number":235,"context_line":"                cmd_addl_env\u003dNone, specific_pid_file\u003dspecific_pid_file)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        return process_manager"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_886a34b1","line":234,"in_reply_to":"5a890539_ea72d00f","updated":"2014-11-14 12:16:45.000000000","message":"I\u0027m using this function to provide a basic process manager for disabling not-known processes (checking for is_active / get_pid with know values), \n\nRe-enabling a full process manager would require cmd_callback, namespace and addl_env, but I didn\u0027t want to clutter the is_active or get_pid API for that.\n\nI could rename this function to _get_or_create_basic_pm(..\nand add a docstring explaining what\u0027s this function for, so nobody expects a full process manager from this anywhere.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"96aae9a7dd37a62bb404b9a79b2e87da7932f0a8","unresolved":false,"context_lines":[{"line_number":151,"context_line":"                             be executed, it should take care of actual"},{"line_number":152,"context_line":"                             exit"},{"line_number":153,"context_line":"        :type exit_hanlder: function"},{"line_number":154,"context_line":"        :param start_halted: instruct the process monitor not to create"},{"line_number":155,"context_line":"                             threads to actually monitor the processes,"},{"line_number":156,"context_line":"                             and become a mere interface to start/stop/"},{"line_number":157,"context_line":"                             check external processes."}],"source_content_type":"text/x-python","patch_set":21,"id":"3a961159_7f4b5087","line":154,"updated":"2014-12-09 16:33:49.000000000","message":"This doesn\u0027t feel right especially because the class name is ProcessMonitor.  Seems odd to spawn a monitor that does not monitor.  Why not process manager directly?","commit_id":"1730fe1f54512375c6b446903fb8fc74f87af607"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"858a09c32b7bef1e7454d067578329da5a676cce","unresolved":false,"context_lines":[{"line_number":151,"context_line":"                             be executed, it should take care of actual"},{"line_number":152,"context_line":"                             exit"},{"line_number":153,"context_line":"        :type exit_hanlder: function"},{"line_number":154,"context_line":"        :param start_halted: instruct the process monitor not to create"},{"line_number":155,"context_line":"                             threads to actually monitor the processes,"},{"line_number":156,"context_line":"                             and become a mere interface to start/stop/"},{"line_number":157,"context_line":"                             check external processes."}],"source_content_type":"text/x-python","patch_set":21,"id":"3a961159_d7a9727c","line":154,"in_reply_to":"3a961159_773b5ed1","updated":"2014-12-10 08:35:13.000000000","message":"What I was trying to say, is:\n\nThis parameter is there to avoid duplicating the disable logic into the agents themselves (.disable method towards PM-\u003eEP + directly via EP), or overriding the configuration in the netns cleanup script.\n\nBut, said that, I think it\u0027s not necessary, as the netns-cleanup never enabled, and will not enable anything... just disabled via the normal APIs.\n\nI\u0027ll remove this.","commit_id":"1730fe1f54512375c6b446903fb8fc74f87af607"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"af317311565c3e1f01fce6192a7d67ea0a5a1d52","unresolved":false,"context_lines":[{"line_number":151,"context_line":"                             be executed, it should take care of actual"},{"line_number":152,"context_line":"                             exit"},{"line_number":153,"context_line":"        :type exit_hanlder: function"},{"line_number":154,"context_line":"        :param start_halted: instruct the process monitor not to create"},{"line_number":155,"context_line":"                             threads to actually monitor the processes,"},{"line_number":156,"context_line":"                             and become a mere interface to start/stop/"},{"line_number":157,"context_line":"                             check external processes."}],"source_content_type":"text/x-python","patch_set":21,"id":"3a961159_773b5ed1","line":154,"in_reply_to":"3a961159_7d7d0e6e","updated":"2014-12-10 08:16:33.000000000","message":"Wow, my english is awful, I\u0027m trying to understand myself and I can\u0027t...","commit_id":"1730fe1f54512375c6b446903fb8fc74f87af607"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c1e515b7373078822362d07ca84bda7a3ebe8978","unresolved":false,"context_lines":[{"line_number":151,"context_line":"                             be executed, it should take care of actual"},{"line_number":152,"context_line":"                             exit"},{"line_number":153,"context_line":"        :type exit_hanlder: function"},{"line_number":154,"context_line":"        :param start_halted: instruct the process monitor not to create"},{"line_number":155,"context_line":"                             threads to actually monitor the processes,"},{"line_number":156,"context_line":"                             and become a mere interface to start/stop/"},{"line_number":157,"context_line":"                             check external processes."}],"source_content_type":"text/x-python","patch_set":21,"id":"3a961159_7d7d0e6e","line":154,"in_reply_to":"3a961159_7f4b5087","updated":"2014-12-09 21:47:41.000000000","message":"Hi Mark, \n\nThank you for looking at this. \n\nI\u0027m covering this specific case, where what I want is disabling everything: \n\nhttps://review.openstack.org/#/c/115935/20..21/neutron/agent/netns_cleanup_util.py\n\nAnd I wanted to avoid internal knowledge about the ProcessMonitor (check interval) to make disable it while that operation.\n\n\nUsing process manager directly would require to have two implementations everywhere (just for this case), so this seemed more reasonable.\n\nBut now that I\u0027m thinking about it again, it\u0027s possible that going and creating all the process managers is not going to enable the monitoring as long as I don\u0027t \"enable\" them. I will check tomorrow morning, but I think we can rip this out without needing to disable (via config override) on the netns cleaner.","commit_id":"1730fe1f54512375c6b446903fb8fc74f87af607"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def get_pid_file_name(self, ensure_pids_dir\u003dFalse):"},{"line_number":105,"context_line":"        \"\"\"Returns the file name for a given kind of config file.\"\"\""},{"line_number":106,"context_line":"        if self.specific_pid_file:"},{"line_number":107,"context_line":"            if ensure_pids_dir:"},{"line_number":108,"context_line":"                utils.ensure_dir(os.path.dirname(self.specific_pid_file))"},{"line_number":109,"context_line":"            return self.specific_pid_file"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_b9f8544a","line":106,"updated":"2014-12-10 14:10:59.000000000","message":"I still think your refactoring of the code should include splitting out that ugly ensure_pids_dir\u003d argument from getter into a separate method.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def get_pid_file_name(self, ensure_pids_dir\u003dFalse):"},{"line_number":105,"context_line":"        \"\"\"Returns the file name for a given kind of config file.\"\"\""},{"line_number":106,"context_line":"        if self.specific_pid_file:"},{"line_number":107,"context_line":"            if ensure_pids_dir:"},{"line_number":108,"context_line":"                utils.ensure_dir(os.path.dirname(self.specific_pid_file))"},{"line_number":109,"context_line":"            return self.specific_pid_file"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_da2fcff4","line":106,"in_reply_to":"3a961159_7a041bc0","updated":"2014-12-10 14:48:55.000000000","message":"Correct: https://blueprints.launchpad.net/neutron/+spec/cleanup-process-manager-gpf","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"82dd7592fdb2a0f7511cf85893fb102591fd1558","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def get_pid_file_name(self, ensure_pids_dir\u003dFalse):"},{"line_number":105,"context_line":"        \"\"\"Returns the file name for a given kind of config file.\"\"\""},{"line_number":106,"context_line":"        if self.specific_pid_file:"},{"line_number":107,"context_line":"            if ensure_pids_dir:"},{"line_number":108,"context_line":"                utils.ensure_dir(os.path.dirname(self.specific_pid_file))"},{"line_number":109,"context_line":"            return self.specific_pid_file"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_7a041bc0","line":106,"in_reply_to":"3a961159_b9f8544a","updated":"2014-12-10 14:18:47.000000000","message":"Ah, ok, you created a spec, so fine.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":138,"context_line":"class ProcessMonitor(object):"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def __init__(self, config, root_helper, resource_type, exit_handler,"},{"line_number":141,"context_line":"                 start_halted\u003dFalse):"},{"line_number":142,"context_line":"        \"\"\"Handle multiple process managers and watch over all of them."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        :param config: oslo config object with the agent configuration."}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_39bb8473","line":141,"updated":"2014-12-10 14:10:59.000000000","message":"Hm. I don\u0027t see where the argument is used. Also, you need to update docstring if you want to add it.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":138,"context_line":"class ProcessMonitor(object):"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def __init__(self, config, root_helper, resource_type, exit_handler,"},{"line_number":141,"context_line":"                 start_halted\u003dFalse):"},{"line_number":142,"context_line":"        \"\"\"Handle multiple process managers and watch over all of them."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        :param config: oslo config object with the agent configuration."}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_fa0d6b91","line":141,"in_reply_to":"3a961159_39bb8473","updated":"2014-12-10 14:48:55.000000000","message":"Hmm, I removed the docstrings in last patchset, and forgot about removing the real argument!\n\ngood catch :/","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":215,"context_line":"        if process_manager:"},{"line_number":216,"context_line":"            return getattr(process_manager, attribute)"},{"line_number":217,"context_line":"        else:"},{"line_number":218,"context_line":"            return False"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":221,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_39170453","line":218,"updated":"2014-12-10 14:10:59.000000000","message":"That\u0027s weird that we return False for e.g. get_pid() calls. Can we instead allow callers to pass default value into the method?","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":215,"context_line":"        if process_manager:"},{"line_number":216,"context_line":"            return getattr(process_manager, attribute)"},{"line_number":217,"context_line":"        else:"},{"line_number":218,"context_line":"            return False"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":221,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_9ae1c79c","line":218,"in_reply_to":"3a961159_39170453","updated":"2014-12-10 14:48:55.000000000","message":"Hmm, what about throwing an exception, so the caller can catch, and return what he considers a default?,\n\nThis way we follow the usual python-style, and we don\u0027t clutter (yet more) the parameters.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b8aa22d63515b6712eefe9bf4a5d9a00f4e3aef9","unresolved":false,"context_lines":[{"line_number":215,"context_line":"        if process_manager:"},{"line_number":216,"context_line":"            return getattr(process_manager, attribute)"},{"line_number":217,"context_line":"        else:"},{"line_number":218,"context_line":"            return False"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":221,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_c02d2048","line":218,"in_reply_to":"3a961159_9ae1c79c","updated":"2014-12-10 14:57:36.000000000","message":"I don\u0027t have any preference, though yes, you could just end up with simple getattr() with no if-else branches.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"6e5a344dd275461d6c00821695b182d3ce17013e","unresolved":false,"context_lines":[{"line_number":215,"context_line":"        if process_manager:"},{"line_number":216,"context_line":"            return getattr(process_manager, attribute)"},{"line_number":217,"context_line":"        else:"},{"line_number":218,"context_line":"            return False"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"    def is_active(self, uuid, service\u003dNone, specific_pid_file\u003dNone):"},{"line_number":221,"context_line":"        return self._get_process_manager_attribute(\u0027active\u0027, uuid, service,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_c300ca03","line":218,"in_reply_to":"3a961159_c02d2048","updated":"2014-12-10 15:08:37.000000000","message":"Hmm, process_monitor is always going to be !\u003d None , because we use _get_or_create_process_manager.\n\nThe if is unnecessary, and the .pid .active .xx attribute will do the work itself.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        # check if the process existed in a different run of the agent"},{"line_number":236,"context_line":"        # and provide one, generally for pid / active evaluation"},{"line_number":237,"context_line":"        # TODO(mangelajo): we won\u0027t start polling it until an enable"},{"line_number":238,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":239,"context_line":"        if not process_manager:"},{"line_number":240,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":241,"context_line":"                uuid\u003duuid,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_f403c10a","line":238,"updated":"2014-12-10 14:10:59.000000000","message":"it\u0027s not clear what you mean by saying \u0027externally\u0027. Could you please rephrase it somehow?","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5207ae36d8356d43f494de0d792afb7321541574","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        # check if the process existed in a different run of the agent"},{"line_number":236,"context_line":"        # and provide one, generally for pid / active evaluation"},{"line_number":237,"context_line":"        # TODO(mangelajo): we won\u0027t start polling it until an enable"},{"line_number":238,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":239,"context_line":"        if not process_manager:"},{"line_number":240,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":241,"context_line":"                uuid\u003duuid,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_9140ac35","line":238,"in_reply_to":"3a961159_3a2613cf","updated":"2014-12-11 09:10:42.000000000","message":"Done","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        # check if the process existed in a different run of the agent"},{"line_number":236,"context_line":"        # and provide one, generally for pid / active evaluation"},{"line_number":237,"context_line":"        # TODO(mangelajo): we won\u0027t start polling it until an enable"},{"line_number":238,"context_line":"        #                  with or without cfg reload happens externally"},{"line_number":239,"context_line":"        if not process_manager:"},{"line_number":240,"context_line":"            process_manager \u003d self._create_process_manager("},{"line_number":241,"context_line":"                uuid\u003duuid,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_3a2613cf","line":238,"in_reply_to":"3a961159_f403c10a","updated":"2014-12-10 14:48:55.000000000","message":"It\u0027s actually meaning-less as it is, I will rephrase.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e6d74041f0da05a636203e8f9770505c51ea0df5","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":22,"context_line":"from neutron.agent.linux import utils"},{"line_number":23,"context_line":"from neutron.i18n import _LE"},{"line_number":24,"context_line":"from neutron.openstack.common import fileutils"},{"line_number":25,"context_line":"from neutron.openstack.common import lockutils"},{"line_number":26,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"3a961159_38335464","line":24,"updated":"2014-12-11 13:21:22.000000000","message":"i wonder if we can do this change in a seperate patch set. it may make the process a little quicker","commit_id":"8f818d4af5dd95f225be8f462d825f8eb461635e"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"e91f2e73758b29a72bd5fda8e278c289bed6e3ec","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":22,"context_line":"from neutron.agent.linux import utils"},{"line_number":23,"context_line":"from neutron.i18n import _LE"},{"line_number":24,"context_line":"from neutron.openstack.common import fileutils"},{"line_number":25,"context_line":"from neutron.openstack.common import lockutils"},{"line_number":26,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"3a961159_6e80b646","line":24,"in_reply_to":"3a961159_38335464","updated":"2014-12-11 14:04:27.000000000","message":"I\u0027d prefer not to do that unless there is a strong reason.\n\nMy reasoning is:\n\n* I would have to link the patches, and linked patches generate a bit of confusion during review in many cases.\n\n* In conjunction with the other comments in the patchset, I can change ensure_dir to the ensure_tree method from oslo incubator, that would lead to including fileutils (independent from the delete_if_exist change.\n\nAs I said, I would be happy keeping them together in just one patch, but if you believe there is a good reason to split, I\u0027ll do it happily , and put such patch in front.","commit_id":"8f818d4af5dd95f225be8f462d825f8eb461635e"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6086b893486f3b485fdef4f02d3302eaa398a8a6","unresolved":false,"context_lines":[{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        process_manager \u003d self.get_process_manager(uuid, service)"},{"line_number":227,"context_line":"        # check if the process existed in a different run of the agent"},{"line_number":228,"context_line":"        # and provide one, generally for pid / active evaluation"},{"line_number":229,"context_line":"        # TODO(mangelajo): we won\u0027t start polling it until enable is"},{"line_number":230,"context_line":"        #                  is called during this run. We could re-pickup"},{"line_number":231,"context_line":"        #                  when checking \u0027active\u0027 and active is True,"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_164a8382","line":228,"updated":"2015-01-19 09:35:59.000000000","message":"Where are you doing the check you talk about in the comment?","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ed5167a4b09c14f40ea677bce704eb5868e908fd","unresolved":false,"context_lines":[{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        process_manager \u003d self.get_process_manager(uuid, service)"},{"line_number":227,"context_line":"        # check if the process existed in a different run of the agent"},{"line_number":228,"context_line":"        # and provide one, generally for pid / active evaluation"},{"line_number":229,"context_line":"        # TODO(mangelajo): we won\u0027t start polling it until enable is"},{"line_number":230,"context_line":"        #                  is called during this run. We could re-pickup"},{"line_number":231,"context_line":"        #                  when checking \u0027active\u0027 and active is True,"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a961159_ccedcfba","line":228,"in_reply_to":"3a961159_164a8382","updated":"2015-01-19 09:56:50.000000000","message":"\"if not process_manager\" , that means, it wasn\u0027t started on this run of the agent (not in our _process_managers dictionary: L206)\n\nProbably I should move this comment at L226 to L233. I will do that.\n\nWhen the agent is stopped or started, we don\u0027t save/recover the whole process monitor status. As we rely on the common behavior of all agents: they will check with neutron server all the resources that need to be allocated, and call on .enable once.\n\nIf we see any value on saving / loading state we can do it in in the future, but I prefer to do it in baby steps.","commit_id":"697ee509a046914743f5c0eb43b193f2e14407d9"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def __init__(self, conf, uuid, root_helper\u003d\u0027sudo\u0027,"},{"line_number":53,"context_line":"                 namespace\u003dNone, service\u003dNone, pids_path\u003dNone,"},{"line_number":54,"context_line":"                 default_cmd_callback\u003dNone,"},{"line_number":55,"context_line":"                 cmd_addl_env\u003dNone, specific_pid_file\u003dNone):"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        self.conf \u003d conf"},{"line_number":58,"context_line":"        self.uuid \u003d uuid"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_1a9b81ca","line":55,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) I find \u0027specific_pid_file\u0027 to be a strange choice - as opposed to a non-specific pid file?  Was there a good reason not to just use \u0027pid_file\u0027?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"361f385b42b943b959632433866542f7082e9b02","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def __init__(self, conf, uuid, root_helper\u003d\u0027sudo\u0027,"},{"line_number":53,"context_line":"                 namespace\u003dNone, service\u003dNone, pids_path\u003dNone,"},{"line_number":54,"context_line":"                 default_cmd_callback\u003dNone,"},{"line_number":55,"context_line":"                 cmd_addl_env\u003dNone, specific_pid_file\u003dNone):"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        self.conf \u003d conf"},{"line_number":58,"context_line":"        self.uuid \u003d uuid"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_fd914553","line":55,"in_reply_to":"1a930d6b_1a9b81ca","updated":"2015-01-21 09:31:56.000000000","message":"I have same concerns. Perhaps docstring describing the parameters would be useful","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def __init__(self, conf, uuid, root_helper\u003d\u0027sudo\u0027,"},{"line_number":53,"context_line":"                 namespace\u003dNone, service\u003dNone, pids_path\u003dNone,"},{"line_number":54,"context_line":"                 default_cmd_callback\u003dNone,"},{"line_number":55,"context_line":"                 cmd_addl_env\u003dNone, specific_pid_file\u003dNone):"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        self.conf \u003d conf"},{"line_number":58,"context_line":"        self.uuid \u003d uuid"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_036f9493","line":55,"in_reply_to":"1a930d6b_fd914553","updated":"2015-01-21 10:42:16.000000000","message":"I wanted to clarify that I was forcing the pid file location, instead of using the ProcessManager standard location.\n\nAs long as pid_file won\u0027t be confusing, I suppose it won\u0027t if I add documentation to the class, that would, indeed, be a good thing to do.\n\n+1","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            # In the case of shutting down, remove the pid file"},{"line_number":94,"context_line":"            if sig \u003d\u003d \u00279\u0027:"},{"line_number":95,"context_line":"                fileutils.delete_if_exists("},{"line_number":96,"context_line":"                    self.get_pid_file_name(ensure_pids_dir\u003dFalse))"},{"line_number":97,"context_line":"        elif pid:"},{"line_number":98,"context_line":"            LOG.debug(\u0027Process for %(uuid)s pid %(pid)d is stale, ignoring \u0027"},{"line_number":99,"context_line":"                      \u0027signal %(signal)s\u0027, {\u0027uuid\u0027: self.uuid, \u0027pid\u0027: pid,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_ba9fcd4f","line":96,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) Given that ensure_pids_dir defaults to False, it can probably be omitted here.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            # In the case of shutting down, remove the pid file"},{"line_number":94,"context_line":"            if sig \u003d\u003d \u00279\u0027:"},{"line_number":95,"context_line":"                fileutils.delete_if_exists("},{"line_number":96,"context_line":"                    self.get_pid_file_name(ensure_pids_dir\u003dFalse))"},{"line_number":97,"context_line":"        elif pid:"},{"line_number":98,"context_line":"            LOG.debug(\u0027Process for %(uuid)s pid %(pid)d is stale, ignoring \u0027"},{"line_number":99,"context_line":"                      \u0027signal %(signal)s\u0027, {\u0027uuid\u0027: self.uuid, \u0027pid\u0027: pid,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_a30fa0e0","line":96,"in_reply_to":"1a930d6b_ba9fcd4f","updated":"2015-01-21 10:42:16.000000000","message":"Thanks, I will check and remove.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                service\u003dservice,"},{"line_number":235,"context_line":"                cmd_addl_env\u003dcmd_addl_env,"},{"line_number":236,"context_line":"                specific_pid_file\u003dspecific_pid_file)"},{"line_number":237,"context_line":"            # TODO(mangelajo): we won\u0027t start polling it until enable is"},{"line_number":238,"context_line":"            #                  is called during this run. We could re-pickup"},{"line_number":239,"context_line":"            #                  when checking \u0027active\u0027 and active is True,"},{"line_number":240,"context_line":"            #                  for example."}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_1a79c1fc","line":237,"updated":"2015-01-21 00:46:56.000000000","message":"I\u0027m not sure why this comment makes sense as a TODO.  Isn\u0027t your intent to document that the process won\u0027t actually be started and monitored until enable() gets called?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                service\u003dservice,"},{"line_number":235,"context_line":"                cmd_addl_env\u003dcmd_addl_env,"},{"line_number":236,"context_line":"                specific_pid_file\u003dspecific_pid_file)"},{"line_number":237,"context_line":"            # TODO(mangelajo): we won\u0027t start polling it until enable is"},{"line_number":238,"context_line":"            #                  is called during this run. We could re-pickup"},{"line_number":239,"context_line":"            #                  when checking \u0027active\u0027 and active is True,"},{"line_number":240,"context_line":"            #                  for example."}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_23dbb01c","line":237,"in_reply_to":"1a930d6b_1a79c1fc","updated":"2015-01-21 10:42:16.000000000","message":"I\u0027m still thinking on the value of doing it. In the current implementation of any ProcessMonitor usage, it\u0027s not expected, may be it\u0027s just a documentation issue. I must follow up by documenting how ProcessMonitor has to be used.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"361f385b42b943b959632433866542f7082e9b02","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        return process_manager"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"    def _create_process_manager(self, uuid, cmd_callback, namespace, service,"},{"line_number":245,"context_line":"                                cmd_addl_env, specific_pid_file):"},{"line_number":246,"context_line":"        return ProcessManager(conf\u003dself._config,"},{"line_number":247,"context_line":"                              uuid\u003duuid,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_405fd20e","line":244,"updated":"2015-01-21 09:31:56.000000000","message":"what\u0027s the benefit of adding this function?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        return process_manager"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"    def _create_process_manager(self, uuid, cmd_callback, namespace, service,"},{"line_number":245,"context_line":"                                cmd_addl_env, specific_pid_file):"},{"line_number":246,"context_line":"        return ProcessManager(conf\u003dself._config,"},{"line_number":247,"context_line":"                              uuid\u003duuid,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_437efcaf","line":244,"in_reply_to":"1a930d6b_405fd20e","updated":"2015-01-21 10:42:16.000000000","message":"Saving the need to reference self._root_helper and self._config on the callers.\n\nThe gain is very light at this moment.\n\nRolling it back means less lines, I can do it.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"9fef3f97b5f70f2c83825fe77c9199ec264fd2d3","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        return process_manager"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"    def _create_process_manager(self, uuid, cmd_callback, namespace, service,"},{"line_number":245,"context_line":"                                cmd_addl_env, specific_pid_file):"},{"line_number":246,"context_line":"        return ProcessManager(conf\u003dself._config,"},{"line_number":247,"context_line":"                              uuid\u003duuid,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_d2a2b099","line":244,"in_reply_to":"1a930d6b_437efcaf","updated":"2015-01-21 12:08:44.000000000","message":"Ah, missed that, sorry. I\u0027m ok with the helper","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"28e65990683abd60352a43229b8310666f8366ef","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    cfg.StrOpt(\u0027check_child_processes_action\u0027, default\u003d\u0027respawn\u0027,"},{"line_number":36,"context_line":"               choices\u003d[\u0027respawn\u0027, \u0027exit\u0027],"},{"line_number":37,"context_line":"               help\u003d_(\u0027Action to be executed when a child process dies\u0027)),"},{"line_number":38,"context_line":"    cfg.IntOpt(\u0027check_child_processes_interval\u0027, default\u003d60,"},{"line_number":39,"context_line":"               help\u003d_(\u0027Interval between checks of child process liveness \u0027"},{"line_number":40,"context_line":"                      \u0027(seconds), use 0 to disable\u0027)),"},{"line_number":41,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_3dac8eed","line":38,"updated":"2015-01-21 23:50:58.000000000","message":"should we enable the process monitoring in a subsequent patch?","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    cfg.StrOpt(\u0027check_child_processes_action\u0027, default\u003d\u0027respawn\u0027,"},{"line_number":36,"context_line":"               choices\u003d[\u0027respawn\u0027, \u0027exit\u0027],"},{"line_number":37,"context_line":"               help\u003d_(\u0027Action to be executed when a child process dies\u0027)),"},{"line_number":38,"context_line":"    cfg.IntOpt(\u0027check_child_processes_interval\u0027, default\u003d60,"},{"line_number":39,"context_line":"               help\u003d_(\u0027Interval between checks of child process liveness \u0027"},{"line_number":40,"context_line":"                      \u0027(seconds), use 0 to disable\u0027)),"},{"line_number":41,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_9e62ced6","line":38,"in_reply_to":"1a930d6b_3dac8eed","updated":"2015-01-22 09:42:12.000000000","message":"Or may be, as Maru proposed, leave off until the moment when we have functional testing ready for the dhcp agent?\n\nwhy to merge off: -my urge to merge here is the constant merge conflict flow at which I\u0027m throwing lots and lots of work hours I could spend in more interesting things for the project-","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    cfg.StrOpt(\u0027check_child_processes_action\u0027, default\u003d\u0027respawn\u0027,"},{"line_number":36,"context_line":"               choices\u003d[\u0027respawn\u0027, \u0027exit\u0027],"},{"line_number":37,"context_line":"               help\u003d_(\u0027Action to be executed when a child process dies\u0027)),"},{"line_number":38,"context_line":"    cfg.IntOpt(\u0027check_child_processes_interval\u0027, default\u003d60,"},{"line_number":39,"context_line":"               help\u003d_(\u0027Interval between checks of child process liveness \u0027"},{"line_number":40,"context_line":"                      \u0027(seconds), use 0 to disable\u0027)),"},{"line_number":41,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_4f8fc8cc","line":38,"in_reply_to":"1a930d6b_9e62ced6","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        It will create a new ProcessManager and tie it to the uuid/service"},{"line_number":168,"context_line":"        with the new settings, replacing the old one if it existed already."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        @param uuid: UUID of the resource this process will serve for."},{"line_number":171,"context_line":"        @param cmd_callback: Callback function that receives a pid_file"},{"line_number":172,"context_line":"                             location and returns a list with the command"},{"line_number":173,"context_line":"                             and arguments."}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_0715c5f0","line":170,"updated":"2015-01-22 00:14:42.000000000","message":"@param -\u003e :param \n\nReference: https://pythonhosted.org/an_example_pypi_project/sphinx.html#function-definitions","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        It will create a new ProcessManager and tie it to the uuid/service"},{"line_number":168,"context_line":"        with the new settings, replacing the old one if it existed already."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        @param uuid: UUID of the resource this process will serve for."},{"line_number":171,"context_line":"        @param cmd_callback: Callback function that receives a pid_file"},{"line_number":172,"context_line":"                             location and returns a list with the command"},{"line_number":173,"context_line":"                             and arguments."}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_de829651","line":170,"in_reply_to":"1a930d6b_0715c5f0","updated":"2015-01-22 09:42:12.000000000","message":"That shows how often I document params :-/","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":178,"context_line":"        @param reload_cfg: if the process is active send a HUP signal"},{"line_number":179,"context_line":"                           for configuration reload, otherwise spawn it"},{"line_number":180,"context_line":"                           normally."},{"line_number":181,"context_line":"        @param cmd_addl_env: provide additional environment variables to the"},{"line_number":182,"context_line":"                             spawned process."},{"line_number":183,"context_line":"        @param pid_file: use a different pid file location instead of the"},{"line_number":184,"context_line":"                         normal one for external processes."}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_a72cf14b","line":181,"updated":"2015-01-22 00:14:42.000000000","message":"provide -\u003e\n\n\nThe text associated with a parameter should be descriptive rather than prescriptive.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":178,"context_line":"        @param reload_cfg: if the process is active send a HUP signal"},{"line_number":179,"context_line":"                           for configuration reload, otherwise spawn it"},{"line_number":180,"context_line":"                           normally."},{"line_number":181,"context_line":"        @param cmd_addl_env: provide additional environment variables to the"},{"line_number":182,"context_line":"                             spawned process."},{"line_number":183,"context_line":"        @param pid_file: use a different pid file location instead of the"},{"line_number":184,"context_line":"                         normal one for external processes."}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_85d7d122","line":181,"in_reply_to":"1a930d6b_3ed0fa4f","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":178,"context_line":"        @param reload_cfg: if the process is active send a HUP signal"},{"line_number":179,"context_line":"                           for configuration reload, otherwise spawn it"},{"line_number":180,"context_line":"                           normally."},{"line_number":181,"context_line":"        @param cmd_addl_env: provide additional environment variables to the"},{"line_number":182,"context_line":"                             spawned process."},{"line_number":183,"context_line":"        @param pid_file: use a different pid file location instead of the"},{"line_number":184,"context_line":"                         normal one for external processes."}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_3ed0fa4f","line":181,"in_reply_to":"1a930d6b_a72cf14b","updated":"2015-01-22 09:42:12.000000000","message":"will fix. :)","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":180,"context_line":"                           normally."},{"line_number":181,"context_line":"        @param cmd_addl_env: provide additional environment variables to the"},{"line_number":182,"context_line":"                             spawned process."},{"line_number":183,"context_line":"        @param pid_file: use a different pid file location instead of the"},{"line_number":184,"context_line":"                         normal one for external processes."},{"line_number":185,"context_line":"        \"\"\""},{"line_number":186,"context_line":"        process_manager \u003d self._create_process_manager("}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_87c5355d","line":183,"updated":"2015-01-22 00:14:42.000000000","message":"use a ... -\u003e the filename to store the pid of the external process.  If not provided, a default will be used.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":180,"context_line":"                           normally."},{"line_number":181,"context_line":"        @param cmd_addl_env: provide additional environment variables to the"},{"line_number":182,"context_line":"                             spawned process."},{"line_number":183,"context_line":"        @param pid_file: use a different pid file location instead of the"},{"line_number":184,"context_line":"                         normal one for external processes."},{"line_number":185,"context_line":"        \"\"\""},{"line_number":186,"context_line":"        process_manager \u003d self._create_process_manager("}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_a5de8d3d","line":183,"in_reply_to":"1a930d6b_7e48c22d","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":180,"context_line":"                           normally."},{"line_number":181,"context_line":"        @param cmd_addl_env: provide additional environment variables to the"},{"line_number":182,"context_line":"                             spawned process."},{"line_number":183,"context_line":"        @param pid_file: use a different pid file location instead of the"},{"line_number":184,"context_line":"                         normal one for external processes."},{"line_number":185,"context_line":"        \"\"\""},{"line_number":186,"context_line":"        process_manager \u003d self._create_process_manager("}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_7e48c22d","line":183,"in_reply_to":"1a930d6b_87c5355d","updated":"2015-01-22 09:42:12.000000000","message":"will change.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"28e65990683abd60352a43229b8310666f8366ef","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def is_active(self, uuid, service\u003dNone, pid_file\u003dNone):"},{"line_number":224,"context_line":"        return self._get_or_create_process_manager("},{"line_number":225,"context_line":"            uuid\u003duuid,"},{"line_number":226,"context_line":"            service\u003dservice,"},{"line_number":227,"context_line":"            pid_file\u003dpid_file).active"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_1d20b248","line":224,"updated":"2015-01-21 23:50:58.000000000","message":"I am generally not fond of this name, but I can come up with a better name :(","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def is_active(self, uuid, service\u003dNone, pid_file\u003dNone):"},{"line_number":224,"context_line":"        return self._get_or_create_process_manager("},{"line_number":225,"context_line":"            uuid\u003duuid,"},{"line_number":226,"context_line":"            service\u003dservice,"},{"line_number":227,"context_line":"            pid_file\u003dpid_file).active"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_816d2035","line":224,"in_reply_to":"1a930d6b_1d20b248","updated":"2015-01-22 00:14:42.000000000","message":"ensure_process_manager() ?","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def is_active(self, uuid, service\u003dNone, pid_file\u003dNone):"},{"line_number":224,"context_line":"        return self._get_or_create_process_manager("},{"line_number":225,"context_line":"            uuid\u003duuid,"},{"line_number":226,"context_line":"            service\u003dservice,"},{"line_number":227,"context_line":"            pid_file\u003dpid_file).active"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_65d4a520","line":224,"in_reply_to":"1a930d6b_3e88fa1e","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        return self._process_managers.get(service_id)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def is_active(self, uuid, service\u003dNone, pid_file\u003dNone):"},{"line_number":224,"context_line":"        return self._get_or_create_process_manager("},{"line_number":225,"context_line":"            uuid\u003duuid,"},{"line_number":226,"context_line":"            service\u003dservice,"},{"line_number":227,"context_line":"            pid_file\u003dpid_file).active"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_3e88fa1e","line":224,"in_reply_to":"1a930d6b_816d2035","updated":"2015-01-22 09:42:12.000000000","message":"ensure should good\n\nJust a curious fact/side note: ensure sounds strange to me since we don\u0027t have a direct translation to spanish. If you look in the dictionary, you will find it traslated to \"asegurar\" o \"garantizar\" -\u003e \"assure\" or \"guarantee\" but doesn\u0027t have it\u0027s own word ;)","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"4001f0be27b52d5403c544356adeeca0cd8e0e01","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        self.default_cmd_callback \u003d default_cmd_callback"},{"line_number":58,"context_line":"        self.cmd_addl_env \u003d cmd_addl_env"},{"line_number":59,"context_line":"        self.pids_path \u003d pids_path or self.conf.external_pids"},{"line_number":60,"context_line":"        self.pid_file \u003d pid_file"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        if service:"},{"line_number":63,"context_line":"            self.service_pid_fname \u003d \u0027pid.\u0027 + service"}],"source_content_type":"text/x-python","patch_set":46,"id":"1a930d6b_98bd466b","line":60,"updated":"2015-01-26 14:51:17.000000000","message":"It looks like if pid_file is not None, then any pids_path is completely ignored? Some refactoring could probably be done here.","commit_id":"fc4e60ed4b1c4ea3b1129ff75364b04f3cb78b91"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"39a1e653de142b35fc18e298d316698da14359ea","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        self.default_cmd_callback \u003d default_cmd_callback"},{"line_number":58,"context_line":"        self.cmd_addl_env \u003d cmd_addl_env"},{"line_number":59,"context_line":"        self.pids_path \u003d pids_path or self.conf.external_pids"},{"line_number":60,"context_line":"        self.pid_file \u003d pid_file"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        if service:"},{"line_number":63,"context_line":"            self.service_pid_fname \u003d \u0027pid.\u0027 + service"}],"source_content_type":"text/x-python","patch_set":46,"id":"1a930d6b_d1ae9680","line":60,"in_reply_to":"1a930d6b_98bd466b","updated":"2015-01-26 15:25:04.000000000","message":"I was thinking at that this morning when looking that code (merge conflict fix on l3 side).\n\nWhat if we set pid_file \u003d :see L106\n\nThen we don\u0027t need to recalculate such pid file all the time,\nand just use the attribute of the class.","commit_id":"fc4e60ed4b1c4ea3b1129ff75364b04f3cb78b91"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from neutron.common import utils"},{"line_number":29,"context_line":"from neutron.openstack.common import excutils"},{"line_number":30,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_cde52e39","side":"PARENT","line":31,"updated":"2014-11-14 11:47:34.000000000","message":"nit: I\u0027m not sure you should remove the line. We probably stick to two lines between imports and other code.","commit_id":"0fb5b6821bbe7a1a2dd4640c7d7b62cb44f04e26"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from neutron.common import utils"},{"line_number":29,"context_line":"from neutron.openstack.common import excutils"},{"line_number":30,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_28a30002","side":"PARENT","line":31,"in_reply_to":"5a890539_cde52e39","updated":"2014-11-14 12:16:45.000000000","message":"hmmmm, my fingers pushed d too much... will fix.","commit_id":"0fb5b6821bbe7a1a2dd4640c7d7b62cb44f04e26"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"},{"line_number":143,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":144,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"},{"line_number":145,"context_line":"    if ensure_conf_dir:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_6acee0b5","line":142,"updated":"2014-11-14 11:47:34.000000000","message":"I would be glad to see those ensure_conf_dir conditionals being transformed into separate functions that will create directories.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"},{"line_number":143,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":144,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"},{"line_number":145,"context_line":"    if ensure_conf_dir:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_88b15449","line":142,"in_reply_to":"5a890539_6acee0b5","updated":"2014-11-14 12:16:45.000000000","message":"What do you mean?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"933276636acfe5f2cebb4b8c826c11538805c69f","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"},{"line_number":143,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":144,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"},{"line_number":145,"context_line":"    if ensure_conf_dir:"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_77221b53","line":142,"in_reply_to":"5a890539_88b15449","updated":"2014-11-25 11:36:50.000000000","message":"I mean that a function that is named as \u0027get_something\u0027 should not modify system state. So it\u0027s better to have two separate functions for those distinct jobs.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    except IOError:"},{"line_number":166,"context_line":"        msg \u003d _(\u0027Unable to access %s\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    LOG.debug(msg % filename)"},{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_2a6698c1","line":168,"updated":"2014-11-14 11:47:34.000000000","message":"Should it really be debug only? Looks more like a legitimate error.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    except IOError:"},{"line_number":166,"context_line":"        msg \u003d _(\u0027Unable to access %s\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    LOG.debug(msg % filename)"},{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_48c92cab","line":168,"in_reply_to":"5a890539_2a6698c1","updated":"2014-11-14 12:16:45.000000000","message":"Not for IOError, In many cases file will be checked, and non existing.\nMay be the \"ValueError\" should be an error.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    except IOError:"},{"line_number":166,"context_line":"        msg \u003d _(\u0027Unable to access %s\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    LOG.debug(msg % filename)"},{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_aee830b5","line":168,"in_reply_to":"5a890539_37dc1346","updated":"2014-12-09 15:36:43.000000000","message":"Done","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"933276636acfe5f2cebb4b8c826c11538805c69f","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    except IOError:"},{"line_number":166,"context_line":"        msg \u003d _(\u0027Unable to access %s\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    LOG.debug(msg % filename)"},{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_37dc1346","line":168,"in_reply_to":"5a890539_48c92cab","updated":"2014-11-25 11:36:50.000000000","message":"That would be great if you manage to log proper errors and hide non-errors.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"},{"line_number":173,"context_line":"    \"\"\"A helper function to read a value from one of a config file.\"\"\""},{"line_number":174,"context_line":"    file_name \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":175,"context_line":"    return get_value_from_file(file_name)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_cdbc4e09","line":172,"updated":"2014-11-14 11:47:34.000000000","message":"converter not used anywhere?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"},{"line_number":173,"context_line":"    \"\"\"A helper function to read a value from one of a config file.\"\"\""},{"line_number":174,"context_line":"    file_name \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":175,"context_line":"    return get_value_from_file(file_name)"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_8ee1b4d2","line":172,"in_reply_to":"5a890539_083ac498","updated":"2014-12-09 15:36:43.000000000","message":"Done","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":169,"context_line":"    return None"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"},{"line_number":173,"context_line":"    \"\"\"A helper function to read a value from one of a config file.\"\"\""},{"line_number":174,"context_line":"    file_name \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":175,"context_line":"    return get_value_from_file(file_name)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_083ac498","line":172,"in_reply_to":"5a890539_cdbc4e09","updated":"2014-11-14 12:16:45.000000000","message":"ha!, good catch, I should set converter in the get_value_from_file call.\n\nAs I use it for int\u0027s python is taking care of my conversions around, but we should stick to the converter for safety.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        os.unlink(file_path)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"def remove_conf_file(cfg_root, uuid, cfg_file):"},{"line_number":185,"context_line":"    \"\"\"Remove a config file.\"\"\""},{"line_number":186,"context_line":"    conf_file \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":187,"context_line":"    fileutils.delete_if_exists(conf_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_aa952888","line":184,"updated":"2014-11-14 11:47:34.000000000","message":"Is the method used anywhere else now?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"933276636acfe5f2cebb4b8c826c11538805c69f","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        os.unlink(file_path)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"def remove_conf_file(cfg_root, uuid, cfg_file):"},{"line_number":185,"context_line":"    \"\"\"Remove a config file.\"\"\""},{"line_number":186,"context_line":"    conf_file \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":187,"context_line":"    fileutils.delete_if_exists(conf_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_b7ef23e8","line":184,"in_reply_to":"5a890539_280dc0e9","updated":"2014-11-25 11:36:50.000000000","message":"So remove it.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        os.unlink(file_path)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"def remove_conf_file(cfg_root, uuid, cfg_file):"},{"line_number":185,"context_line":"    \"\"\"Remove a config file.\"\"\""},{"line_number":186,"context_line":"    conf_file \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":187,"context_line":"    fileutils.delete_if_exists(conf_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_6ede4813","line":184,"in_reply_to":"5a890539_a1e5d8a5","updated":"2014-12-09 15:36:43.000000000","message":"Done","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        os.unlink(file_path)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"def remove_conf_file(cfg_root, uuid, cfg_file):"},{"line_number":185,"context_line":"    \"\"\"Remove a config file.\"\"\""},{"line_number":186,"context_line":"    conf_file \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":187,"context_line":"    fileutils.delete_if_exists(conf_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_280dc0e9","line":184,"in_reply_to":"5a890539_aa952888","updated":"2014-11-14 12:16:45.000000000","message":"It seems neutron/agent/linux/ra.py is using remove_conf_files at least, but not this one.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"38831d2d20afa5dab3bc9dc0eab2b5ffbe28d48d","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        os.unlink(file_path)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"def remove_conf_file(cfg_root, uuid, cfg_file):"},{"line_number":185,"context_line":"    \"\"\"Remove a config file.\"\"\""},{"line_number":186,"context_line":"    conf_file \u003d get_conf_file_name(cfg_root, uuid, cfg_file)"},{"line_number":187,"context_line":"    fileutils.delete_if_exists(conf_file)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_a1e5d8a5","line":184,"in_reply_to":"5a890539_b7ef23e8","updated":"2014-12-05 14:11:37.000000000","message":"I will, bye remove_conf_file!","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e6d74041f0da05a636203e8f9770505c51ea0df5","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    return [x.strip() for x in raw_pids.split(\u0027\\n\u0027) if x.strip()]"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"def ensure_dir(dir_path):"},{"line_number":137,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":138,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"3a961159_d81ed0ba","line":136,"updated":"2014-12-11 13:21:22.000000000","message":"can you use https://github.com/openstack/oslo-incubator/blob/master/openstack/common/fileutils.py#L29?","commit_id":"8f818d4af5dd95f225be8f462d825f8eb461635e"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"e91f2e73758b29a72bd5fda8e278c289bed6e3ec","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    return [x.strip() for x in raw_pids.split(\u0027\\n\u0027) if x.strip()]"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"def ensure_dir(dir_path):"},{"line_number":137,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":138,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"3a961159_4e085a28","line":136,"in_reply_to":"3a961159_d81ed0ba","updated":"2014-12-11 14:04:27.000000000","message":"Definitely, thank you for spoting this!,","commit_id":"8f818d4af5dd95f225be8f462d825f8eb461635e"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e6d74041f0da05a636203e8f9770505c51ea0df5","unresolved":false,"context_lines":[{"line_number":163,"context_line":"    except IOError:"},{"line_number":164,"context_line":"        LOG.debug(\u0027Unable to access %s\u0027, filename)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    return None"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"}],"source_content_type":"text/x-python","patch_set":25,"id":"3a961159_388194c4","line":166,"updated":"2014-12-11 13:21:22.000000000","message":"not related to this patch but we do not need the return None. by default the method returns None","commit_id":"8f818d4af5dd95f225be8f462d825f8eb461635e"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"e91f2e73758b29a72bd5fda8e278c289bed6e3ec","unresolved":false,"context_lines":[{"line_number":163,"context_line":"    except IOError:"},{"line_number":164,"context_line":"        LOG.debug(\u0027Unable to access %s\u0027, filename)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    return None"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"}],"source_content_type":"text/x-python","patch_set":25,"id":"3a961159_eb01f806","line":166,"in_reply_to":"3a961159_388194c4","updated":"2014-12-11 14:04:27.000000000","message":"you\u0027re totally right.\n\nbtw, (and this more philosophical than anything else) I prefer explicit returns when I know somebody, somewhere will be looking for \"None\" when the file didn\u0027t exist.","commit_id":"8f818d4af5dd95f225be8f462d825f8eb461635e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"59d29b34e5c20c1c59ad66f202cfb01250afb008","unresolved":false,"context_lines":[{"line_number":136,"context_line":"def ensure_dir(dir_path):"},{"line_number":137,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":138,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":139,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"}],"source_content_type":"text/x-python","patch_set":27,"id":"3a961159_37b7baf6","line":139,"updated":"2014-12-12 13:18:47.000000000","message":"in case you respin again, please change it to symbolic names from stat module.","commit_id":"893aeaed93af8db068840837af2026007bb51c79"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d6b1cafdc26af850abdde44f9dd990c8000b45fa","unresolved":false,"context_lines":[{"line_number":136,"context_line":"def ensure_dir(dir_path):"},{"line_number":137,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":138,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":139,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"}],"source_content_type":"text/x-python","patch_set":28,"id":"3a961159_7e6c8b08","line":139,"updated":"2014-12-15 12:07:25.000000000","message":"repeating myself from previous change... \"in case you respin again, please change it to symbolic names from stat module.\"","commit_id":"698a65d70076b111fd8458446ec546505596f7a5"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ec3a355f67ddfa76cab0bdfaa3e334cd2277c1e9","unresolved":false,"context_lines":[{"line_number":136,"context_line":"def ensure_dir(dir_path):"},{"line_number":137,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":138,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":139,"context_line":"        os.makedirs(dir_path, 0o755)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"}],"source_content_type":"text/x-python","patch_set":28,"id":"3a961159_94283334","line":139,"in_reply_to":"3a961159_7e6c8b08","updated":"2014-12-16 15:33:02.000000000","message":"Opps, sorry, not intentional at all, I actually had it on the clipboard from the oslo.incubator fileutils patch I did... :/\n\nI will do this time..","commit_id":"698a65d70076b111fd8458446ec546505596f7a5"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"},{"line_number":143,"context_line":"                               stat.S_IROTH | stat.S_IXOTH))"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_3a367d04","line":141,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) Apologies if this has been answered (so many patchsets!), but why is this method of setting the mode preferable to an octal literal?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"},{"line_number":143,"context_line":"                               stat.S_IROTH | stat.S_IXOTH))"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_664dc672","line":141,"in_reply_to":"1a930d6b_3a367d04","updated":"2015-01-21 10:42:16.000000000","message":"Some reviewers insisted that octal was obscure, but sincerely, I preferred the octal.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":166,"context_line":"            except ValueError:"},{"line_number":167,"context_line":"                LOG.error(_LE(\u0027Unable to convert value in %s\u0027), filename)"},{"line_number":168,"context_line":"    except IOError:"},{"line_number":169,"context_line":"        LOG.debug(\u0027Unable to access %s\u0027, filename)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    return None"},{"line_number":172,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_e561bad4","line":169,"updated":"2015-01-21 00:46:56.000000000","message":"I think finer-grained error handling is suggested here, as per Assaf\u0027s example looking for ENOENT (no such file or directory):\n\nhttps://review.openstack.org/#/c/142843/10/neutron/agent/linux/keepalived.py\n\nOtherwise, transient failures are likely to be very difficult to diagnose.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":166,"context_line":"            except ValueError:"},{"line_number":167,"context_line":"                LOG.error(_LE(\u0027Unable to convert value in %s\u0027), filename)"},{"line_number":168,"context_line":"    except IOError:"},{"line_number":169,"context_line":"        LOG.debug(\u0027Unable to access %s\u0027, filename)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    return None"},{"line_number":172,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_86d55245","line":169,"in_reply_to":"1a930d6b_e561bad4","updated":"2015-01-21 10:42:16.000000000","message":"I certainly agree,\n\nI will put it on a follow up patch right away if that sounds reasonable.\n\nI don\u0027t want to go out of scope or keep this patch for too much longer in review.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":168,"context_line":"    except IOError:"},{"line_number":169,"context_line":"        LOG.debug(\u0027Unable to access %s\u0027, filename)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    return None"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_65a5ca03","line":171,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) This return statement is superfluous - returning None is the default.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":168,"context_line":"    except IOError:"},{"line_number":169,"context_line":"        LOG.debug(\u0027Unable to access %s\u0027, filename)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    return None"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"def get_value_from_conf_file(cfg_root, uuid, cfg_file, converter\u003dNone):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_061de20f","line":171,"in_reply_to":"1a930d6b_65a5ca03","updated":"2015-01-21 10:42:16.000000000","message":"I suppose it\u0027s originally provided in an explicit way, because some code calling this checks for None.\n\nWe can slash it. :)","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"28e65990683abd60352a43229b8310666f8366ef","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_21d62c50","line":139,"updated":"2015-01-21 23:50:58.000000000","message":"missing period","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_41d258d3","line":139,"in_reply_to":"1a930d6b_21d62c50","updated":"2015-01-22 00:14:42.000000000","message":"I\u0027m not sure H404 is worth enforcing manually.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_6f4ba487","line":139,"in_reply_to":"1a930d6b_41d258d3","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"},{"line_number":143,"context_line":"                               stat.S_IROTH | stat.S_IXOTH))"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_27cac14f","line":141,"updated":"2015-01-22 00:14:42.000000000","message":"(No action required) Which reviewers requested this?  The only example of stat being used instead of octal is keepalived, everwhere else uses octal.  I\u0027d rather we be consistent, and if the reviewers in question feel strongly about this they can submit a patch to change everything to use \u0027stat\u0027 and see how it fares.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"254d3474b88950a8f3e44d1e42c4255fa9865cc7","unresolved":false,"context_lines":[{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"},{"line_number":143,"context_line":"                               stat.S_IROTH | stat.S_IXOTH))"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_dedd3616","line":141,"in_reply_to":"1a930d6b_27cac14f","updated":"2015-01-22 09:42:12.000000000","message":"Sorry I forgot to move back to octal.\n\nThe reviewer changed his mind after seeing the result, which seems less readable. I didn\u0027t have an strong opinion, so I tried.\n\nMoving back to octal in next PS.","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":138,"context_line":"def ensure_dir(dir_path):"},{"line_number":139,"context_line":"    \"\"\"Ensure a directory with 755 permissions mode\"\"\""},{"line_number":140,"context_line":"    if not os.path.isdir(dir_path):"},{"line_number":141,"context_line":"        os.makedirs(dir_path, (stat.S_IRWXU |"},{"line_number":142,"context_line":"                               stat.S_IRGRP | stat.S_IXGRP |"},{"line_number":143,"context_line":"                               stat.S_IROTH | stat.S_IXOTH))"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_af458c71","line":141,"in_reply_to":"1a930d6b_dedd3616","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"}],"neutron/agent/netns_cleanup_util.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b486ac92e4c7bd8a6caf3a411e7737fe6529bac4","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def _exit_handler():"},{"line_number":76,"context_line":"        pass"},{"line_number":77,"context_line":"    # disable child checking in this case"},{"line_number":78,"context_line":"    config.set_override(\u0027check_child_processes_interval\u0027, 0)"},{"line_number":79,"context_line":"    return external_process.ProcessMonitor("},{"line_number":80,"context_line":"        config\u003dconfig,"},{"line_number":81,"context_line":"        root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_1798291b","line":78,"updated":"2014-11-14 11:49:38.000000000","message":"Add another parameter to process monitor to start it halted?, my point here is, netns-cleanup doesn\u0027t need to know about the internals of ProcessMonitor.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def _exit_handler():"},{"line_number":76,"context_line":"        pass"},{"line_number":77,"context_line":"    # disable child checking in this case"},{"line_number":78,"context_line":"    config.set_override(\u0027check_child_processes_interval\u0027, 0)"},{"line_number":79,"context_line":"    return external_process.ProcessMonitor("},{"line_number":80,"context_line":"        config\u003dconfig,"},{"line_number":81,"context_line":"        root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_21ba9123","line":78,"in_reply_to":"5a890539_1798291b","updated":"2014-12-09 15:36:43.000000000","message":"Done","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        config\u003dconfig,"},{"line_number":81,"context_line":"        root_helper\u003droot_helper,"},{"line_number":82,"context_line":"        resource_type\u003d\u0027dhcp\u0027,"},{"line_number":83,"context_line":"        exit_handler\u003d_exit_handler)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def kill_dhcp(conf, namespace):"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_cd536ee0","line":83,"updated":"2014-11-14 11:47:34.000000000","message":"nit: maybe \u0027lambda: None\u0027 to localize definition even more?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0c0e26ee2157aaf838ec03e4be757269a20814e0","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        config\u003dconfig,"},{"line_number":81,"context_line":"        root_helper\u003droot_helper,"},{"line_number":82,"context_line":"        resource_type\u003d\u0027dhcp\u0027,"},{"line_number":83,"context_line":"        exit_handler\u003d_exit_handler)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def kill_dhcp(conf, namespace):"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_c1a9cde0","line":83,"in_reply_to":"5a890539_ad25420a","updated":"2014-12-09 15:36:43.000000000","message":"Done","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"765def9f19a18aa2fc8315ed58313bbe79912c5c","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        config\u003dconfig,"},{"line_number":81,"context_line":"        root_helper\u003droot_helper,"},{"line_number":82,"context_line":"        resource_type\u003d\u0027dhcp\u0027,"},{"line_number":83,"context_line":"        exit_handler\u003d_exit_handler)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def kill_dhcp(conf, namespace):"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_ad25420a","line":83,"in_reply_to":"5a890539_cd536ee0","updated":"2014-11-14 11:58:34.000000000","message":"I thought about it, lambda\u0027s are less expressive. Anyway, exit_handler\u003d already expresses what it\u0027s needed, so.. will do.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"82dd7592fdb2a0f7511cf85893fb102591fd1558","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def _get_dhcp_process_monitor(config, root_helper):"},{"line_number":76,"context_line":"    # disable child checking in this case"},{"line_number":77,"context_line":"    return external_process.ProcessMonitor("},{"line_number":78,"context_line":"        config\u003dconfig,"},{"line_number":79,"context_line":"        root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_1ab957e9","line":76,"updated":"2014-12-10 14:18:47.000000000","message":"so where do we disable it?","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def _get_dhcp_process_monitor(config, root_helper):"},{"line_number":76,"context_line":"    # disable child checking in this case"},{"line_number":77,"context_line":"    return external_process.ProcessMonitor("},{"line_number":78,"context_line":"        config\u003dconfig,"},{"line_number":79,"context_line":"        root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_ba19238a","line":76,"in_reply_to":"3a961159_1ab957e9","updated":"2014-12-10 14:48:55.000000000","message":"Mr. precise at work.... (I\u0027m talking about me.., that I removed the \"disabling\" -which isn\u0027t needed-, but I left the comment)","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5207ae36d8356d43f494de0d792afb7321541574","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"def _get_dhcp_process_monitor(config, root_helper):"},{"line_number":76,"context_line":"    # disable child checking in this case"},{"line_number":77,"context_line":"    return external_process.ProcessMonitor("},{"line_number":78,"context_line":"        config\u003dconfig,"},{"line_number":79,"context_line":"        root_helper\u003droot_helper,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_d146b44e","line":76,"in_reply_to":"3a961159_ba19238a","updated":"2014-12-11 09:10:42.000000000","message":"Done","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"}],"neutron/cmd/netns_cleanup.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        config\u003dconfig,"},{"line_number":78,"context_line":"        root_helper\u003droot_helper,"},{"line_number":79,"context_line":"        resource_type\u003d\u0027dhcp\u0027,"},{"line_number":80,"context_line":"        exit_handler\u003dlambda: None)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"def kill_dhcp(conf, namespace):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_4587ee61","line":80,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) You could avoid having to specify a null argument to exit_handler by checking if the handler was a callable, e.g.\n\nif callable(exit_handler):\n  exit_handler(uuid, service)\n\nThis would allow exit_handler to safely be set and/or defaulted to None, which I think is simpler than having to pass a fake function.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"361f385b42b943b959632433866542f7082e9b02","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        config\u003dconfig,"},{"line_number":78,"context_line":"        root_helper\u003droot_helper,"},{"line_number":79,"context_line":"        resource_type\u003d\u0027dhcp\u0027,"},{"line_number":80,"context_line":"        exit_handler\u003dlambda: None)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"def kill_dhcp(conf, namespace):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_e0719e78","line":80,"in_reply_to":"1a930d6b_4587ee61","updated":"2015-01-21 09:31:56.000000000","message":"+1","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        config\u003dconfig,"},{"line_number":78,"context_line":"        root_helper\u003droot_helper,"},{"line_number":79,"context_line":"        resource_type\u003d\u0027dhcp\u0027,"},{"line_number":80,"context_line":"        exit_handler\u003dlambda: None)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"def kill_dhcp(conf, namespace):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_a6b40ef3","line":80,"in_reply_to":"1a930d6b_e0719e78","updated":"2015-01-21 10:42:16.000000000","message":"Sounds good.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"}],"neutron/tests/functional/agent/linux/test_process_monitor.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2892a5994a940510f4d99a9f2c54b85eee25c025","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        self.assertTrue(another_pm.is_active(uuid))"},{"line_number":118,"context_line":"        self.assertEqual(another_pm.get_pid(uuid), spawn_process.pid)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def test_tries_to_get_pid_for_unknonw_uuid(self):"},{"line_number":121,"context_line":"        self.assertIsNone(self._ext_processes.get_pid(\u0027bad-uuid\u0027))"}],"source_content_type":"text/x-python","patch_set":26,"id":"3a961159_7fccde6a","line":120,"updated":"2014-12-11 15:30:49.000000000","message":"nit: unknonw -\u003e unknown\n\nAnd YAY for moving that from mocked environment into a real life one.","commit_id":"61268a93aecd2e1bdc371c8b86b63430a1bcb9f7"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"12196a469b5a3e0c649cd5c2cf1237ef4a467083","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        self.assertTrue(another_pm.is_active(uuid))"},{"line_number":118,"context_line":"        self.assertEqual(another_pm.get_pid(uuid), spawn_process.pid)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def test_tries_to_get_pid_for_unknonw_uuid(self):"},{"line_number":121,"context_line":"        self.assertIsNone(self._ext_processes.get_pid(\u0027bad-uuid\u0027))"}],"source_content_type":"text/x-python","patch_set":26,"id":"3a961159_87b3f9e7","line":120,"in_reply_to":"3a961159_7fccde6a","updated":"2014-12-11 20:03:08.000000000","message":"woops :)\n\nYes, it was necessary, because in unit testing I wasn\u0027t actually getting down to a real process manager, and to a non-existing pid file. Otherwise I would have had to unmock some things, and mocks lots of other tiny ones... and this is just one line.","commit_id":"61268a93aecd2e1bdc371c8b86b63430a1bcb9f7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"59d29b34e5c20c1c59ad66f202cfb01250afb008","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        self.assertTrue(another_pm.is_active(uuid))"},{"line_number":118,"context_line":"        self.assertEqual(another_pm.get_pid(uuid), spawn_process.pid)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def test_tries_to_get_pid_for_unknonw_uuid(self):"},{"line_number":121,"context_line":"        self.assertIsNone(self._ext_processes.get_pid(\u0027bad-uuid\u0027))"}],"source_content_type":"text/x-python","patch_set":27,"id":"3a961159_97c78e63","line":120,"updated":"2014-12-12 13:18:47.000000000","message":"the nit is still there.","commit_id":"893aeaed93af8db068840837af2026007bb51c79"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d6b1cafdc26af850abdde44f9dd990c8000b45fa","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        self.assertTrue(another_pm.is_active(uuid))"},{"line_number":118,"context_line":"        self.assertEqual(another_pm.get_pid(uuid), spawn_process.pid)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def test_tries_to_get_pid_for_unknonw_uuid(self):"},{"line_number":121,"context_line":"        self.assertIsNone(self._ext_processes.get_pid(\u0027bad-uuid\u0027))"}],"source_content_type":"text/x-python","patch_set":28,"id":"3a961159_9e6f77fb","line":120,"updated":"2014-12-15 12:07:25.000000000","message":"come on... repeating myself: \"the nit is still there\"","commit_id":"698a65d70076b111fd8458446ec546505596f7a5"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ec3a355f67ddfa76cab0bdfaa3e334cd2277c1e9","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        self.assertTrue(another_pm.is_active(uuid))"},{"line_number":118,"context_line":"        self.assertEqual(another_pm.get_pid(uuid), spawn_process.pid)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def test_tries_to_get_pid_for_unknonw_uuid(self):"},{"line_number":121,"context_line":"        self.assertIsNone(self._ext_processes.get_pid(\u0027bad-uuid\u0027))"}],"source_content_type":"text/x-python","patch_set":28,"id":"3a961159_54a7abbc","line":120,"in_reply_to":"3a961159_9e6f77fb","updated":"2014-12-16 15:33:02.000000000","message":":( how do I manage to miss so many comments?.. sorry ihar. Thanks for re-checking.","commit_id":"698a65d70076b111fd8458446ec546505596f7a5"}],"neutron/tests/unit/test_dhcp_agent.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"f80c963d472bb241604a6fa57c88497cb654a005","unresolved":false,"context_lines":[{"line_number":500,"context_line":"            self.external_process.assert_has_calls(["},{"line_number":501,"context_line":"                mock.call("},{"line_number":502,"context_line":"                    conf\u003dcfg.CONF,"},{"line_number":503,"context_line":"                    uuid\u003d\u002712345678-1234-5678-1234567890ab\u0027,"},{"line_number":504,"context_line":"                    root_helper\u003d\u0027sudo\u0027,"},{"line_number":505,"context_line":"                    namespace\u003d\u0027qdhcp-12345678-1234-5678-1234567890ab\u0027,"},{"line_number":506,"context_line":"                    service\u003dNone,"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_012c52ab","line":503,"updated":"2014-08-28 14:46:22.000000000","message":"nit: could put these hard coded strings (L503, 505) into constant at top of file and use for each place the mock.call()  is defined below.","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"eb4c6df31ca4bc010c606491f4a5a8e4b0894ccd","unresolved":false,"context_lines":[{"line_number":500,"context_line":"            self.external_process.assert_has_calls(["},{"line_number":501,"context_line":"                mock.call("},{"line_number":502,"context_line":"                    conf\u003dcfg.CONF,"},{"line_number":503,"context_line":"                    uuid\u003d\u002712345678-1234-5678-1234567890ab\u0027,"},{"line_number":504,"context_line":"                    root_helper\u003d\u0027sudo\u0027,"},{"line_number":505,"context_line":"                    namespace\u003d\u0027qdhcp-12345678-1234-5678-1234567890ab\u0027,"},{"line_number":506,"context_line":"                    service\u003dNone,"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_90ea33d6","line":503,"in_reply_to":"1abeadc6_012c52ab","updated":"2014-08-29 14:32:53.000000000","message":"Done. Only within the scope of the changes of this patch. A later review with a file-wise change wouldn\u0027t be bad..","commit_id":"1c93c0aa1dedce76ff9b9f4780fbd34f4cc2d1dd"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        if is_isolated_network:"},{"line_number":567,"context_line":"            self.external_process.assert_has_calls(["},{"line_number":568,"context_line":"                mock.call("},{"line_number":569,"context_line":"                    conf\u003dcfg.CONF,"},{"line_number":570,"context_line":"                    uuid\u003dFAKE_NETWORK_UUID,"},{"line_number":571,"context_line":"                    root_helper\u003d\u0027sudo\u0027,"},{"line_number":572,"context_line":"                    namespace\u003dFAKE_NETWORK_DHCP_NS,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_25bae2e1","line":569,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) Given how often this mock check is repeated, consider encapsulating in a helper function for reuse, maybe accepting a uuid and namespace but defaulting to the fake values.\n\nAlso, behavioral validation :(","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        if is_isolated_network:"},{"line_number":567,"context_line":"            self.external_process.assert_has_calls(["},{"line_number":568,"context_line":"                mock.call("},{"line_number":569,"context_line":"                    conf\u003dcfg.CONF,"},{"line_number":570,"context_line":"                    uuid\u003dFAKE_NETWORK_UUID,"},{"line_number":571,"context_line":"                    root_helper\u003d\u0027sudo\u0027,"},{"line_number":572,"context_line":"                    namespace\u003dFAKE_NETWORK_DHCP_NS,"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_66606636","line":569,"in_reply_to":"1a930d6b_25bae2e1","updated":"2015-01-21 10:42:16.000000000","message":"Actually, I wonder how didn\u0027t I do that, as I did for _get_dnsmasq( in test_linux_dhcp ..\n\nAnd yes, most of this could be gone once we have functional tests for dhcp (if we don\u0027t have already).\n\nProbably we should plan a test cleanup phase when we have good functional coverage to remove duplication of concerns, yet, removing tests is going to be an interesting discussion probably.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"}],"neutron/tests/unit/test_linux_dhcp.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cd3737d069e2d189e1c65f76c556ea44e9bb778d","unresolved":false,"context_lines":[{"line_number":639,"context_line":"                raise IndexError"},{"line_number":640,"context_line":""},{"line_number":641,"context_line":"        def _exit_handler(self, uuid, service):"},{"line_number":642,"context_line":"            pass"},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"        expected \u003d ["},{"line_number":645,"context_line":"            \u0027ip\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_c2b7a9f3","line":642,"updated":"2014-08-21 17:57:02.000000000","message":"remove self from here","commit_id":"77d050450963c902dd7b24272a45ce359beef32f"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"acf4044de9722f0020afd082c30e2d404127e7c0","unresolved":false,"context_lines":[{"line_number":483,"context_line":""},{"line_number":484,"context_line":""},{"line_number":485,"context_line":"class TestDhcpLocalProcess(TestBase):"},{"line_number":486,"context_line":"    def test_active(self):"},{"line_number":487,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":488,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":489,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_f23d34de","side":"PARENT","line":486,"updated":"2014-08-24 10:16:54.000000000","message":"Now we rely on the external_process module, and the removed tests are almost copy\u0026paste of the ones for external_process which is tested unit \u0026 functionally (via ExternalProcesses).","commit_id":"05771954644a51af7db1d83862d8e7739dc5e46c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"acf4044de9722f0020afd082c30e2d404127e7c0","unresolved":false,"context_lines":[{"line_number":582,"context_line":"                lp.device_manager.destroy.assert_called_once_with("},{"line_number":583,"context_line":"                    network, \u0027tap0\u0027)"},{"line_number":584,"context_line":""},{"line_number":585,"context_line":"    def test_disable_unknown_network(self):"},{"line_number":586,"context_line":"        attrs_to_mock \u003d dict([(a, mock.DEFAULT) for a in"},{"line_number":587,"context_line":"                              [\u0027active\u0027, \u0027interface_name\u0027, \u0027pid\u0027]])"},{"line_number":588,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_9a4a6953","side":"PARENT","line":585,"updated":"2014-08-24 10:16:54.000000000","message":"This is also handled by external_process now, we don\u0027t produce\nany log for this... so it\u0027s not needed.","commit_id":"05771954644a51af7db1d83862d8e7739dc5e46c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"acf4044de9722f0020afd082c30e2d404127e7c0","unresolved":false,"context_lines":[{"line_number":641,"context_line":""},{"line_number":642,"context_line":"        ip.return_value.netns.delete.assert_called_with(\u0027qdhcp-ns\u0027)"},{"line_number":643,"context_line":""},{"line_number":644,"context_line":"    def test_pid(self):"},{"line_number":645,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":646,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":647,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_1a6e59c9","side":"PARENT","line":644,"updated":"2014-08-24 10:16:54.000000000","message":"Those are external_process tests now.","commit_id":"05771954644a51af7db1d83862d8e7739dc5e46c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"acf4044de9722f0020afd082c30e2d404127e7c0","unresolved":false,"context_lines":[{"line_number":412,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        def _exit_handler():"},{"line_number":415,"context_line":"            pass"},{"line_number":416,"context_line":"        self.process_manager \u003d mock.Mock()"},{"line_number":417,"context_line":"        kwargs[\u0027processes_manager\u0027] \u003d self.process_manager"},{"line_number":418,"context_line":"        super(LocalChild, self).__init__(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_5257c825","line":415,"updated":"2014-08-24 10:16:54.000000000","message":"exit_handler not needed anymore, remove","commit_id":"9e694da8c66f98145cc2d82ce36ffa1cb7449107"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"acf4044de9722f0020afd082c30e2d404127e7c0","unresolved":false,"context_lines":[{"line_number":446,"context_line":""},{"line_number":447,"context_line":"        self.replace_p \u003d mock.patch(\u0027neutron.agent.linux.utils.replace_file\u0027)"},{"line_number":448,"context_line":"        self.execute_p \u003d mock.patch(\u0027neutron.agent.linux.utils.execute\u0027)"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"        self.safe \u003d self.replace_p.start()"},{"line_number":451,"context_line":"        self.execute \u003d self.execute_p.start()"},{"line_number":452,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_ba5c851a","line":449,"updated":"2014-08-24 10:16:54.000000000","message":"Not needed blank line.","commit_id":"9e694da8c66f98145cc2d82ce36ffa1cb7449107"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5db58f1281ddf9bc8be1a9df136bc515623e7fa2","unresolved":false,"context_lines":[{"line_number":522,"context_line":""},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"class TestDhcpLocalProcess(TestBase):"},{"line_number":525,"context_line":"    def test_active(self):"},{"line_number":526,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":527,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":528,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_90a48aba","side":"PARENT","line":525,"updated":"2014-08-26 14:45:26.000000000","message":"Now we rely on the external_process module, and the removed tests were almost copy\u0026paste of the ones for external_process which is tested unit \u0026 functionally (via ExternalProcesses).","commit_id":"e77346ea02adf438d50abcd4e04367b3c48d4c61"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5db58f1281ddf9bc8be1a9df136bc515623e7fa2","unresolved":false,"context_lines":[{"line_number":621,"context_line":"                lp.device_manager.destroy.assert_called_once_with("},{"line_number":622,"context_line":"                    network, \u0027tap0\u0027)"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    def test_disable_unknown_network(self):"},{"line_number":625,"context_line":"        attrs_to_mock \u003d dict([(a, mock.DEFAULT) for a in"},{"line_number":626,"context_line":"                              [\u0027active\u0027, \u0027interface_name\u0027, \u0027pid\u0027]])"},{"line_number":627,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_d0852208","side":"PARENT","line":624,"updated":"2014-08-26 14:45:26.000000000","message":"Those messages are now handled by the external_process method when no process is found for the certain network/uuid. So we shouldn\u0027t rely on testing over logs by a different module.","commit_id":"e77346ea02adf438d50abcd4e04367b3c48d4c61"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5db58f1281ddf9bc8be1a9df136bc515623e7fa2","unresolved":false,"context_lines":[{"line_number":680,"context_line":""},{"line_number":681,"context_line":"        ip.return_value.netns.delete.assert_called_with(\u0027qdhcp-ns\u0027)"},{"line_number":682,"context_line":""},{"line_number":683,"context_line":"    def test_pid(self):"},{"line_number":684,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":685,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":686,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_f07bfe26","side":"PARENT","line":683,"updated":"2014-08-26 14:45:26.000000000","message":"Now we rely on the external_process module, and the removed tests were almost copy\u0026paste of the ones for external_process which is tested unit \u0026 functionally (via ExternalProcesses).","commit_id":"e77346ea02adf438d50abcd4e04367b3c48d4c61"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5db58f1281ddf9bc8be1a9df136bc515623e7fa2","unresolved":false,"context_lines":[{"line_number":1162,"context_line":"        self.execute.assert_called_once_with(exp_args, \u0027sudo\u0027)"},{"line_number":1163,"context_line":"        device_manager.update.assert_called_with(fake_net, \u0027tap12345678-12\u0027)"},{"line_number":1164,"context_line":""},{"line_number":1165,"context_line":"    def test_reload_allocations_stale_pid(self):"},{"line_number":1166,"context_line":"        (exp_host_name, exp_host_data,"},{"line_number":1167,"context_line":"         exp_addn_name, exp_addn_data,"},{"line_number":1168,"context_line":"         exp_opt_name, exp_opt_data,) \u003d self._test_reload_allocation_data"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_50711243","side":"PARENT","line":1165,"updated":"2014-08-26 14:45:26.000000000","message":"stale pid now handled in external_process","commit_id":"e77346ea02adf438d50abcd4e04367b3c48d4c61"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5db58f1281ddf9bc8be1a9df136bc515623e7fa2","unresolved":false,"context_lines":[{"line_number":1191,"context_line":"                mock.call(exp_addn_name, exp_addn_data),"},{"line_number":1192,"context_line":"                mock.call(exp_opt_name, exp_opt_data),"},{"line_number":1193,"context_line":"            ])"},{"line_number":1194,"context_line":"            mock_open.assert_called_once_with(\u0027/proc/5/cmdline\u0027, \u0027r\u0027)"},{"line_number":1195,"context_line":""},{"line_number":1196,"context_line":"    def test_release_unused_leases(self):"},{"line_number":1197,"context_line":"        dnsmasq \u003d dhcp.Dnsmasq(self.conf, FakeDualNetwork())"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_30ad7689","side":"PARENT","line":1194,"updated":"2014-08-26 14:45:26.000000000","message":"This test assertion belongs to external_process","commit_id":"e77346ea02adf438d50abcd4e04367b3c48d4c61"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"18b1b7cae296357a13db338830c8b5b7c2417a55","unresolved":false,"context_lines":[{"line_number":522,"context_line":""},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"class TestDhcpLocalProcess(TestBase):"},{"line_number":525,"context_line":"    def test_active(self):"},{"line_number":526,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":527,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":528,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_90707309","side":"PARENT","line":525,"updated":"2014-08-29 14:38:33.000000000","message":"All the ripped out tests is functionality which has duplicated testing with external_process. Such functionality was C\u0026P duplicated in the linux dhcp agent.","commit_id":"cde1c13290f60e1a25baf3ef7ac63e4c83744204"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":522,"context_line":""},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"class TestDhcpLocalProcess(TestBase):"},{"line_number":525,"context_line":"    def test_active(self):"},{"line_number":526,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":527,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":528,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_730b4f2a","side":"PARENT","line":525,"updated":"2014-09-03 08:11:51.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_linux_external_process.py#L168","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":536,"context_line":""},{"line_number":537,"context_line":"            mock_open.assert_called_once_with(\u0027/proc/4/cmdline\u0027, \u0027r\u0027)"},{"line_number":538,"context_line":""},{"line_number":539,"context_line":"    def test_active_none(self):"},{"line_number":540,"context_line":"        dummy_cmd_line \u003d \u0027aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa\u0027"},{"line_number":541,"context_line":"        self.execute.return_value \u003d (dummy_cmd_line, \u0027\u0027)"},{"line_number":542,"context_line":"        with mock.patch.object(LocalChild, \u0027pid\u0027) as pid:"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_2e0ddc37","side":"PARENT","line":539,"updated":"2014-09-03 08:11:51.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_linux_external_process.py#L181","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":544,"context_line":"            lp \u003d LocalChild(self.conf, FakeV4Network())"},{"line_number":545,"context_line":"            self.assertFalse(lp.active)"},{"line_number":546,"context_line":""},{"line_number":547,"context_line":"    def test_active_cmd_mismatch(self):"},{"line_number":548,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":549,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":550,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_8e1b2872","side":"PARENT","line":547,"updated":"2014-09-03 08:11:51.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_linux_external_process.py#L189","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":558,"context_line":""},{"line_number":559,"context_line":"            mock_open.assert_called_once_with(\u0027/proc/4/cmdline\u0027, \u0027r\u0027)"},{"line_number":560,"context_line":""},{"line_number":561,"context_line":"    def test_get_conf_file_name(self):"},{"line_number":562,"context_line":"        tpl \u003d \u0027/dhcp/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/dev\u0027"},{"line_number":563,"context_line":"        with mock.patch(\u0027os.path.isdir\u0027) as isdir:"},{"line_number":564,"context_line":"            isdir.return_value \u003d False"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_ae18ec75","side":"PARENT","line":561,"updated":"2014-09-03 08:11:51.000000000","message":"oops","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"094825facec52b8b88efa13cf101bf6d79667a00","unresolved":false,"context_lines":[{"line_number":574,"context_line":"            with mock.patch(\u0027os.makedirs\u0027) as makedirs:"},{"line_number":575,"context_line":"                lp \u003d LocalChild(self.conf, FakeV4Network())"},{"line_number":576,"context_line":"                self.assertEqual(lp.get_conf_file_name(\u0027dev\u0027, True), tpl)"},{"line_number":577,"context_line":"                self.assertTrue(makedirs.called)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def test_enable_already_active(self):"},{"line_number":580,"context_line":"        with mock.patch.object(LocalChild, \u0027active\u0027) as patched:"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_085bbb2e","side":"PARENT","line":577,"updated":"2014-09-02 23:41:21.000000000","message":"why are these tests being removed?\nCan you please justify why do you reckon this will not affect coverage?","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":574,"context_line":"            with mock.patch(\u0027os.makedirs\u0027) as makedirs:"},{"line_number":575,"context_line":"                lp \u003d LocalChild(self.conf, FakeV4Network())"},{"line_number":576,"context_line":"                self.assertEqual(lp.get_conf_file_name(\u0027dev\u0027, True), tpl)"},{"line_number":577,"context_line":"                self.assertTrue(makedirs.called)"},{"line_number":578,"context_line":""},{"line_number":579,"context_line":"    def test_enable_already_active(self):"},{"line_number":580,"context_line":"        with mock.patch.object(LocalChild, \u0027active\u0027) as patched:"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_ee54b400","side":"PARENT","line":577,"in_reply_to":"fa98f980_085bbb2e","updated":"2014-09-03 08:11:51.000000000","message":"You\u0027re totally right, 3 first tests are replicated from the external_process tests, code which was duplicated inside the LocalChild and we\u0027re now using as a module.\n\nBut the last 2 ones correspond to functions still in the code. Adding those back.","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":680,"context_line":""},{"line_number":681,"context_line":"        ip.return_value.netns.delete.assert_called_with(\u0027qdhcp-ns\u0027)"},{"line_number":682,"context_line":""},{"line_number":683,"context_line":"    def test_pid(self):"},{"line_number":684,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":685,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":686,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_2e5b1c2f","side":"PARENT","line":683,"updated":"2014-09-03 08:11:51.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_linux_external_process.py#L146","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":688,"context_line":"            lp \u003d LocalChild(self.conf, FakeDualNetwork())"},{"line_number":689,"context_line":"            self.assertEqual(lp.pid, 5)"},{"line_number":690,"context_line":""},{"line_number":691,"context_line":"    def test_pid_no_an_int(self):"},{"line_number":692,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":693,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"},{"line_number":694,"context_line":"            mock_open.return_value.__exit__ \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_ee7bd489","side":"PARENT","line":691,"updated":"2014-09-03 08:11:51.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_linux_external_process.py#L154","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3f30f51160c296b9a7533db7c47d5bef622f18d2","unresolved":false,"context_lines":[{"line_number":696,"context_line":"            lp \u003d LocalChild(self.conf, FakeDualNetwork())"},{"line_number":697,"context_line":"            self.assertIsNone(lp.pid)"},{"line_number":698,"context_line":""},{"line_number":699,"context_line":"    def test_pid_invalid_file(self):"},{"line_number":700,"context_line":"        with mock.patch.object(LocalChild, \u0027get_conf_file_name\u0027) as conf_file:"},{"line_number":701,"context_line":"            conf_file.return_value \u003d \u0027.doesnotexist/pid\u0027"},{"line_number":702,"context_line":"            lp \u003d LocalChild(self.conf, FakeDualNetwork())"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_6e67e4e9","side":"PARENT","line":699,"updated":"2014-09-03 08:11:51.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_linux_external_process.py#L162","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"e099d9a42e999638eed24c7e041ed861e093715d","unresolved":false,"context_lines":[{"line_number":521,"context_line":"        self.assertEqual(c.called, [\u0027disable True\u0027, \u0027enable\u0027])"},{"line_number":522,"context_line":""},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"class TestDhcpLocalProcess(TestBase):"},{"line_number":525,"context_line":"    def test_active(self):"},{"line_number":526,"context_line":"        with mock.patch(\u0027__builtin__.open\u0027) as mock_open:"},{"line_number":527,"context_line":"            mock_open.return_value.__enter__ \u003d lambda s: s"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa98f980_2ed5dcb8","side":"PARENT","line":524,"updated":"2014-09-03 08:42:05.000000000","message":"for the removed tests, see comments here:\nhttps://review.openstack.org/#/c/115935/10/neutron/tests/unit/test_linux_dhcp.py\n\nThose are replicated now in external_process testing, module which we use now as a needed refactoring to integrate the Process monitor.","commit_id":"7757e8e9dbece8c142a0d1302798d9caf31fdbd3"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5b65c00f98df60744dc508d3cb93c1cb85abe727","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        def _exit_handler():"},{"line_number":462,"context_line":"            pass"},{"line_number":463,"context_line":"        self.process_monitor \u003d mock.Mock()"},{"line_number":464,"context_line":"        kwargs[\u0027process_monitor\u0027] \u003d self.process_monitor"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_cdc60e68","line":461,"updated":"2014-11-14 11:47:34.000000000","message":"redundant?","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"58afa2eadf5c53ed3de63bdf251e7b76dcd496b5","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        def _exit_handler():"},{"line_number":462,"context_line":"            pass"},{"line_number":463,"context_line":"        self.process_monitor \u003d mock.Mock()"},{"line_number":464,"context_line":"        kwargs[\u0027process_monitor\u0027] \u003d self.process_monitor"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a961159_a1acc1a1","line":461,"in_reply_to":"5a890539_a8e61013","updated":"2014-12-09 15:37:05.000000000","message":"Done","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"0be2c4839d807e90ae1146af2f8801cb640c7808","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        def _exit_handler():"},{"line_number":462,"context_line":"            pass"},{"line_number":463,"context_line":"        self.process_monitor \u003d mock.Mock()"},{"line_number":464,"context_line":"        kwargs[\u0027process_monitor\u0027] \u003d self.process_monitor"}],"source_content_type":"text/x-python","patch_set":20,"id":"5a890539_a8e61013","line":461,"in_reply_to":"5a890539_cdc60e68","updated":"2014-11-14 12:16:45.000000000","message":"Yes, it is. Will cleanup.","commit_id":"10bc4fb95f3668ddd0260cd82804ef6f3ff52296"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":626,"context_line":"                lp.device_manager \u003d mock.Mock()"},{"line_number":627,"context_line":"                lp.disable()"},{"line_number":628,"context_line":"                msg \u003d log.call_args[0][0]"},{"line_number":629,"context_line":"                self.assertIn(\u0027does not exist\u0027, msg)"},{"line_number":630,"context_line":"                lp.device_manager.destroy.assert_called_once_with("},{"line_number":631,"context_line":"                    network, \u0027tap0\u0027)"},{"line_number":632,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_54e815e2","side":"PARENT","line":629,"updated":"2014-12-10 14:10:59.000000000","message":"That\u0027s a shitty test indeed.","commit_id":"988bd650d220b4c19b6275e4f0639e0ddceaea09"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5207ae36d8356d43f494de0d792afb7321541574","unresolved":false,"context_lines":[{"line_number":626,"context_line":"                lp.device_manager \u003d mock.Mock()"},{"line_number":627,"context_line":"                lp.disable()"},{"line_number":628,"context_line":"                msg \u003d log.call_args[0][0]"},{"line_number":629,"context_line":"                self.assertIn(\u0027does not exist\u0027, msg)"},{"line_number":630,"context_line":"                lp.device_manager.destroy.assert_called_once_with("},{"line_number":631,"context_line":"                    network, \u0027tap0\u0027)"},{"line_number":632,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_b16048d0","side":"PARENT","line":629,"in_reply_to":"3a961159_54e815e2","updated":"2014-12-11 09:10:42.000000000","message":"But also the log line is not written now. ;)","commit_id":"988bd650d220b4c19b6275e4f0639e0ddceaea09"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"da588483d67e8b47fddfb7afbbd403280bbb04e9","unresolved":false,"context_lines":[{"line_number":679,"context_line":"            else:"},{"line_number":680,"context_line":"                raise IndexError()"},{"line_number":681,"context_line":""},{"line_number":682,"context_line":"        # if you need to change this path here, think twice,"},{"line_number":683,"context_line":"        # that means pid files will move around, breaking upgrades"},{"line_number":684,"context_line":"        # or back-compatibility"},{"line_number":685,"context_line":"        expected_pid_file \u003d \u0027/dhcp/%s/pid\u0027 % network.id"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_3472a9e5","line":682,"updated":"2014-12-10 14:10:59.000000000","message":"Thank you for that comment from grateful people of the future who will stumble upon the test and won\u0027t kill the \u0027unneeded\u0027 check.","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1faf764de52eb5b2fb4791ad6f9515b95aef6d76","unresolved":false,"context_lines":[{"line_number":679,"context_line":"            else:"},{"line_number":680,"context_line":"                raise IndexError()"},{"line_number":681,"context_line":""},{"line_number":682,"context_line":"        # if you need to change this path here, think twice,"},{"line_number":683,"context_line":"        # that means pid files will move around, breaking upgrades"},{"line_number":684,"context_line":"        # or back-compatibility"},{"line_number":685,"context_line":"        expected_pid_file \u003d \u0027/dhcp/%s/pid\u0027 % network.id"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a961159_bd759d99","line":682,"in_reply_to":"3a961159_3472a9e5","updated":"2014-12-10 14:48:55.000000000","message":"I just learned from my own errors... and wanted to leave a message here  :) \nbut, you\u0027re welcome, people of the future :D","commit_id":"38392751217a1a146c51dee6b213b95fc3c9a697"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":638,"context_line":""},{"line_number":639,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":640,"context_line":"            mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":641,"context_line":"            mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock("},{"line_number":642,"context_line":"                                                 return_value\u003d\u0027tap0\u0027)"},{"line_number":643,"context_line":"            lp \u003d LocalChild(self.conf, network)"},{"line_number":644,"context_line":"            lp.disable(retain_port\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_c59f5e4f","line":641,"updated":"2015-01-21 00:46:56.000000000","message":"(nit) Not sure why you\u0027ve changed the formatting of this line.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":638,"context_line":""},{"line_number":639,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":640,"context_line":"            mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":641,"context_line":"            mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock("},{"line_number":642,"context_line":"                                                 return_value\u003d\u0027tap0\u0027)"},{"line_number":643,"context_line":"            lp \u003d LocalChild(self.conf, network)"},{"line_number":644,"context_line":"            lp.disable(retain_port\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_a6d16ecf","line":641,"in_reply_to":"1a930d6b_c59f5e4f","updated":"2015-01-21 10:42:16.000000000","message":"Probably it suffered an extra indentation, and it later went away.. (can\u0027t think of other reason), will fix.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":649,"context_line":"                              [\u0027active\u0027, \u0027interface_name\u0027]])"},{"line_number":650,"context_line":"        network \u003d FakeDualNetwork()"},{"line_number":651,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":652,"context_line":"                mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":653,"context_line":"                mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock("},{"line_number":654,"context_line":"                                                 return_value\u003d\u0027tap0\u0027)"},{"line_number":655,"context_line":"                lp \u003d LocalChild(self.conf, network)"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_45944e37","line":652,"updated":"2015-01-21 00:46:56.000000000","message":"(nit) Not sure why you\u0027ve increased the indent here.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":649,"context_line":"                              [\u0027active\u0027, \u0027interface_name\u0027]])"},{"line_number":650,"context_line":"        network \u003d FakeDualNetwork()"},{"line_number":651,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":652,"context_line":"                mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":653,"context_line":"                mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock("},{"line_number":654,"context_line":"                                                 return_value\u003d\u0027tap0\u0027)"},{"line_number":655,"context_line":"                lp \u003d LocalChild(self.conf, network)"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_06d882ee","line":652,"in_reply_to":"1a930d6b_45944e37","updated":"2015-01-21 10:42:16.000000000","message":"ha!, probably the same as above, will fix.","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"633b960e4ab3970bae84ce2e83947a72a570e8e3","unresolved":false,"context_lines":[{"line_number":1290,"context_line":"                         \u0027192.168.0.1\\n\u0027).lstrip()"},{"line_number":1291,"context_line":"        dm \u003d self._get_dnsmasq(FakeDualStackNetworkSingleDHCP())"},{"line_number":1292,"context_line":"        dm._output_hosts_file()"},{"line_number":1293,"context_line":"        self.safe.assert_has_calls([mock.call(exp_host_name,"},{"line_number":1294,"context_line":"                                              exp_host_data)])"},{"line_number":1295,"context_line":""},{"line_number":1296,"context_line":"    def test_only_populates_dhcp_enabled_subnet_on_a_network(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_2012d0b4","line":1293,"updated":"2015-01-21 00:46:56.000000000","message":"(No action required) Gross, why wouldn\u0027t it be enough to validate that the desired output is achieved?","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":1290,"context_line":"                         \u0027192.168.0.1\\n\u0027).lstrip()"},{"line_number":1291,"context_line":"        dm \u003d self._get_dnsmasq(FakeDualStackNetworkSingleDHCP())"},{"line_number":1292,"context_line":"        dm._output_hosts_file()"},{"line_number":1293,"context_line":"        self.safe.assert_has_calls([mock.call(exp_host_name,"},{"line_number":1294,"context_line":"                                              exp_host_data)])"},{"line_number":1295,"context_line":""},{"line_number":1296,"context_line":"    def test_only_populates_dhcp_enabled_subnet_on_a_network(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_46036a0f","line":1293,"in_reply_to":"1a930d6b_2012d0b4","updated":"2015-01-21 10:42:16.000000000","message":"I agree, unnecessary at this point. We need a big follow up on agent unit tests when we have all the functional tests :/","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a3740b5519e64abd54c43c8e8478ed2c565f0c2b","unresolved":false,"context_lines":[{"line_number":1305,"context_line":"                         \u0027192.168.0.1\\n\u0027).lstrip()"},{"line_number":1306,"context_line":"        dm \u003d self._get_dnsmasq(FakeDualNetworkSingleDHCP())"},{"line_number":1307,"context_line":"        dm._output_hosts_file()"},{"line_number":1308,"context_line":"        self.safe.assert_has_calls([mock.call(exp_host_name,"},{"line_number":1309,"context_line":"                                              exp_host_data)])"},{"line_number":1310,"context_line":""},{"line_number":1311,"context_line":"    def test_should_enable_metadata_namespaces_disabled_returns_false(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"1a930d6b_d112b257","line":1308,"updated":"2015-01-21 10:42:16.000000000","message":"same here,","commit_id":"4949c62cdd72dbe3206453a20e0746f3eb989755"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":635,"context_line":"        attrs_to_mock \u003d dict([(a, mock.DEFAULT) for a in"},{"line_number":636,"context_line":"                              [\u0027active\u0027, \u0027interface_name\u0027]])"},{"line_number":637,"context_line":"        network \u003d FakeDualNetwork()"},{"line_number":638,"context_line":""},{"line_number":639,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":640,"context_line":"            mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":641,"context_line":"            mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock(return_value\u003d\u0027tap0\u0027)"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_276d6133","line":638,"updated":"2015-01-22 00:14:42.000000000","message":"Unrelated non-functional change","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":635,"context_line":"        attrs_to_mock \u003d dict([(a, mock.DEFAULT) for a in"},{"line_number":636,"context_line":"                              [\u0027active\u0027, \u0027interface_name\u0027]])"},{"line_number":637,"context_line":"        network \u003d FakeDualNetwork()"},{"line_number":638,"context_line":""},{"line_number":639,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":640,"context_line":"            mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":641,"context_line":"            mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock(return_value\u003d\u0027tap0\u0027)"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_c272afac","line":638,"in_reply_to":"1a930d6b_276d6133","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":649,"context_line":"        network \u003d FakeDualNetwork()"},{"line_number":650,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":651,"context_line":"            mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":652,"context_line":"            mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock("},{"line_number":653,"context_line":"                                             return_value\u003d\u0027tap0\u0027)"},{"line_number":654,"context_line":"            lp \u003d LocalChild(self.conf, network)"},{"line_number":655,"context_line":"            with mock.patch(\u0027neutron.agent.linux.ip_lib.IPWrapper\u0027) as ip:"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_672049f8","line":652,"updated":"2015-01-22 00:14:42.000000000","message":"Unrelated non-functional change","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":649,"context_line":"        network \u003d FakeDualNetwork()"},{"line_number":650,"context_line":"        with mock.patch.multiple(LocalChild, **attrs_to_mock) as mocks:"},{"line_number":651,"context_line":"            mocks[\u0027active\u0027].__get__ \u003d mock.Mock(return_value\u003dTrue)"},{"line_number":652,"context_line":"            mocks[\u0027interface_name\u0027].__get__ \u003d mock.Mock("},{"line_number":653,"context_line":"                                             return_value\u003d\u0027tap0\u0027)"},{"line_number":654,"context_line":"            lp \u003d LocalChild(self.conf, network)"},{"line_number":655,"context_line":"            with mock.patch(\u0027neutron.agent.linux.ip_lib.IPWrapper\u0027) as ip:"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_62757b97","line":652,"in_reply_to":"1a930d6b_672049f8","updated":"2015-01-22 15:37:54.000000000","message":"Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"4752e799856be1e26a5a629af62acfb3f984c3b9","unresolved":false,"context_lines":[{"line_number":714,"context_line":""},{"line_number":715,"context_line":"        # if you need to change this path here, think twice,"},{"line_number":716,"context_line":"        # that means pid files will move around, breaking upgrades"},{"line_number":717,"context_line":"        # or back-compatibility"},{"line_number":718,"context_line":"        expected_pid_file \u003d \u0027/dhcp/%s/pid\u0027 % network.id"},{"line_number":719,"context_line":""},{"line_number":720,"context_line":"        expected_env \u003d {\u0027NEUTRON_NETWORK_ID\u0027: network.id}"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_874615be","line":717,"updated":"2015-01-22 00:14:42.000000000","message":"(No action required) back -\u003e backwards","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"052710b2dae634d0e00c217bb117e50652e27764","unresolved":false,"context_lines":[{"line_number":714,"context_line":""},{"line_number":715,"context_line":"        # if you need to change this path here, think twice,"},{"line_number":716,"context_line":"        # that means pid files will move around, breaking upgrades"},{"line_number":717,"context_line":"        # or back-compatibility"},{"line_number":718,"context_line":"        expected_pid_file \u003d \u0027/dhcp/%s/pid\u0027 % network.id"},{"line_number":719,"context_line":""},{"line_number":720,"context_line":"        expected_env \u003d {\u0027NEUTRON_NETWORK_ID\u0027: network.id}"}],"source_content_type":"text/x-python","patch_set":42,"id":"1a930d6b_023d97bb","line":717,"in_reply_to":"1a930d6b_874615be","updated":"2015-01-22 15:37:54.000000000","message":"Thanks. Done","commit_id":"eae033c1f0345f52ecf19375d6264c6e6346f88c"}]}
