)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"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 and the IPv6 radvd external"},{"line_number":14,"context_line":"processes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"blueprint agent-child-processes-status"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"9aa7fdbe_7820109c","line":14,"updated":"2014-10-20 02:45:54.000000000","message":"I was going to do radvd under bug 1362171, but since you are doing it you can close that bug here.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"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 and the IPv6 radvd external"},{"line_number":14,"context_line":"processes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"blueprint agent-child-processes-status"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"5a890539_819d3cbe","line":14,"in_reply_to":"9aa7fdbe_7820109c","updated":"2014-12-05 13:58:41.000000000","message":"I will, thanks Henry, looking back at this.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements the ProcessMonitor in the l3_agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessesMonitor 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":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":18,"id":"3a961159_9a4aa7aa","line":9,"updated":"2014-12-10 14:51:31.000000000","message":"the name of the class is probably wrong.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements the ProcessMonitor in the l3_agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessesMonitor 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":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":18,"id":"3a961159_e39f86b2","line":9,"in_reply_to":"3a961159_9a4aa7aa","updated":"2014-12-10 15:26:26.000000000","message":"It is. Thanks :)","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"It covers both the neutron-ns-metadata-proxy and the IPv6 radvd external"},{"line_number":14,"context_line":"processes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1362171"},{"line_number":17,"context_line":"blueprint agent-child-processes-status"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":18,"id":"3a961159_fd100503","line":15,"updated":"2014-12-10 14:51:31.000000000","message":"Keepalived case is not covered, but I think it may (and should) belong to a separate patch if possible.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"It covers both the neutron-ns-metadata-proxy and the IPv6 radvd external"},{"line_number":14,"context_line":"processes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1362171"},{"line_number":17,"context_line":"blueprint agent-child-processes-status"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":18,"id":"3a961159_43b05a43","line":15,"in_reply_to":"3a961159_fd100503","updated":"2014-12-10 15:26:26.000000000","message":"Correct.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements the ProcessMonitor in the l3_agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessesMonitor 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":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a961159_9a5415cb","line":9,"updated":"2014-12-12 14:36:13.000000000","message":"hey, the name is still wrong.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements the ProcessMonitor in the l3_agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessesMonitor 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":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a961159_b58e302c","line":9,"in_reply_to":"3a961159_9a5415cb","updated":"2014-12-15 11:56:38.000000000","message":"Done.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"It covers both the neutron-ns-metadata-proxy and the IPv6 radvd external"},{"line_number":14,"context_line":"processes."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1362171"},{"line_number":17,"context_line":"blueprint agent-child-processes-status"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a961159_fa6439ba","line":15,"updated":"2014-12-12 14:36:13.000000000","message":"Please mention you don\u0027t cover keepalived case and it will be in a follow-up patch.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"b8e4a3016635ce4af4f74c405eb96056a8ac21bb","unresolved":false,"context_lines":[{"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 non-ha routers"},{"line_number":14,"context_line":"and the IPv6 radvd external processes, keepalived +"},{"line_number":15,"context_line":"neutron-ns-metadata-proxy needs to be covered in a second follow up"},{"line_number":16,"context_line":"patch when neutron-ns-metadata-proxy is handled by the l3-agent"},{"line_number":17,"context_line":"(instead keepalived) in the ha-routers."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":41,"id":"fa81d914_5d0f8d30","line":14,"updated":"2015-01-28 17:27:36.000000000","message":"(nit) processes, -\u003e processes.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3503f8a7e26312f96654c40bfb362effde3bcc6a","unresolved":false,"context_lines":[{"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 non-ha routers"},{"line_number":14,"context_line":"and the IPv6 radvd external processes, keepalived +"},{"line_number":15,"context_line":"neutron-ns-metadata-proxy needs to be covered in a second follow up"},{"line_number":16,"context_line":"patch when neutron-ns-metadata-proxy is handled by the l3-agent"},{"line_number":17,"context_line":"(instead keepalived) in the ha-routers."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":41,"id":"fa81d914_d68413b3","line":14,"in_reply_to":"fa81d914_5d0f8d30","updated":"2015-01-29 11:20:20.000000000","message":"Done, thanks.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"afcc23fca9531e495f06b9865ccd83daec85acd5","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Miguel Angel Ajo \u003cmangelajo@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-29 20:43:12 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements the ProcessMonitor in the l3_agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessMonitor class will watch over spawned external processes,"},{"line_number":10,"context_line":"taking the administrator configured action in the case of any"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":46,"id":"fa81d914_7e0ea03c","line":7,"updated":"2015-01-30 17:26:38.000000000","message":"Do you also plan to do a patch for the the dhcp_agent? ANd the dnsmasq processes out of curiosity?","commit_id":"dcd95ee343b8d73082ad55188bb02ccffe50a0a6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"cafd14001b862d42e3082e5f90e7e7c3e84c4e27","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Miguel Angel Ajo \u003cmangelajo@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-29 20:43:12 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements the ProcessMonitor in the l3_agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The ProcessMonitor class will watch over spawned external processes,"},{"line_number":10,"context_line":"taking the administrator configured action in the case of any"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":46,"id":"fa81d914_99c36e88","line":7,"in_reply_to":"fa81d914_7e0ea03c","updated":"2015-01-30 17:47:38.000000000","message":"The process monitor for dnsmasq has been merged.","commit_id":"dcd95ee343b8d73082ad55188bb02ccffe50a0a6"}],"etc/l3_agent.ini":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ac8675ae3a680efdccb6fdac5b3751a91dfd9efc","unresolved":false,"context_lines":[{"line_number":96,"context_line":"#"},{"line_number":97,"context_line":"# check_child_processes \u003d False"},{"line_number":98,"context_line":"# check_child_processes_actions \u003d respawn"},{"line_number":99,"context_line":"# check_child_processes_period \u003d 60"}],"source_content_type":"text/x-properties","patch_set":10,"id":"1abeadc6_9a517232","line":99,"updated":"2014-08-29 13:56:12.000000000","message":"_period -\u003e _interval in this patchset.","commit_id":"841b8a0fd69b4f88b90bcb00ff7dbce912982e06"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"line_number":101,"context_line":"# The advertisement interval in seconds"},{"line_number":102,"context_line":"# ha_vrrp_advert_int \u003d 2"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"# Configuration for the external processes"},{"line_number":105,"context_line":"# Enable/disable the periodic check of all the spawned external processes,"},{"line_number":106,"context_line":"# in case of any of those dying unexpectedly the configured action will"},{"line_number":107,"context_line":"# be executed, it can be respawn or exit, 0 interval disables the feature."}],"source_content_type":"text/x-properties","patch_set":16,"id":"9aa7fdbe_472b69eb","line":104,"updated":"2014-10-20 02:45:54.000000000","message":"\"Configuration for external processes spawned by the l3_agent.\"","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":101,"context_line":"# The advertisement interval in seconds"},{"line_number":102,"context_line":"# ha_vrrp_advert_int \u003d 2"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"# Configuration for the external processes"},{"line_number":105,"context_line":"# Enable/disable the periodic check of all the spawned external processes,"},{"line_number":106,"context_line":"# in case of any of those dying unexpectedly the configured action will"},{"line_number":107,"context_line":"# be executed, it can be respawn or exit, 0 interval disables the feature."}],"source_content_type":"text/x-properties","patch_set":16,"id":"5a890539_617f706a","line":104,"in_reply_to":"9aa7fdbe_472b69eb","updated":"2014-12-05 13:58:41.000000000","message":"Will do.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"line_number":104,"context_line":"# Configuration for the external processes"},{"line_number":105,"context_line":"# Enable/disable the periodic check of all the spawned external processes,"},{"line_number":106,"context_line":"# in case of any of those dying unexpectedly the configured action will"},{"line_number":107,"context_line":"# be executed, it can be respawn or exit, 0 interval disables the feature."},{"line_number":108,"context_line":"#"},{"line_number":109,"context_line":"# check_child_processes_action \u003d respawn"},{"line_number":110,"context_line":"# check_child_processes_interval \u003d 60"}],"source_content_type":"text/x-properties","patch_set":16,"id":"9aa7fdbe_870c7196","line":107,"updated":"2014-10-20 02:45:54.000000000","message":"Grammar suggestion:\n\n # Enable/disable the periodic check of all spawned external processes.\n # If any of them die unexpectedly the configured action will be taken.\n # The action can be respawn or exit.\n # An interval of 0 disables the feature.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":104,"context_line":"# Configuration for the external processes"},{"line_number":105,"context_line":"# Enable/disable the periodic check of all the spawned external processes,"},{"line_number":106,"context_line":"# in case of any of those dying unexpectedly the configured action will"},{"line_number":107,"context_line":"# be executed, it can be respawn or exit, 0 interval disables the feature."},{"line_number":108,"context_line":"#"},{"line_number":109,"context_line":"# check_child_processes_action \u003d respawn"},{"line_number":110,"context_line":"# check_child_processes_interval \u003d 60"}],"source_content_type":"text/x-properties","patch_set":16,"id":"5a890539_a1795884","line":107,"in_reply_to":"9aa7fdbe_870c7196","updated":"2014-12-05 13:58:41.000000000","message":"Thank you very much for the assistance with this. I will change it.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"688db8ecfd1624eb498d6c883c96bb087506aa9f","unresolved":false,"context_lines":[{"line_number":110,"context_line":"# ha_vrrp_advert_int \u003d 2"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"# The interval to check external processes for failure in seconds (0\u003ddisabled)"},{"line_number":113,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"# Action to take when an external process spawned by the l3 agent dies"},{"line_number":116,"context_line":"# Values:"}],"source_content_type":"text/x-properties","patch_set":40,"id":"1a930d6b_19a84f1f","line":113,"updated":"2015-01-26 12:35:18.000000000","message":"so in the dhcp patch this was finally moved from dhcp_agent.ini to neutron.conf. Do we need to have this settings in l3_agent.ini?","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5ed263941b71dd5ef2f9fbb86abd994052482015","unresolved":false,"context_lines":[{"line_number":110,"context_line":"# ha_vrrp_advert_int \u003d 2"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"# The interval to check external processes for failure in seconds (0\u003ddisabled)"},{"line_number":113,"context_line":"# check_child_processes_interval \u003d 60"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"# Action to take when an external process spawned by the l3 agent dies"},{"line_number":116,"context_line":"# Values:"}],"source_content_type":"text/x-properties","patch_set":40,"id":"1a930d6b_218a311b","line":113,"in_reply_to":"1a930d6b_19a84f1f","updated":"2015-01-26 14:09:51.000000000","message":"We need to shake out this file now. Sorry. \u0027:)","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":297,"context_line":"        unexpectedly."},{"line_number":298,"context_line":"        \"\"\""},{"line_number":299,"context_line":"        LOG.error(_LE(\"exiting neutron-l3-agent because of service \""},{"line_number":300,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":301,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":302,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_3a124109","line":299,"updated":"2014-12-12 14:36:13.000000000","message":"uppercase?","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"70456a9757dcab7c75a92e7ad8900ecf3b7b4b2d","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            self.event_observers.add(driver)"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":220,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":221,"context_line":"        It will be called if the administrator configured the exit action on"},{"line_number":222,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":223,"context_line":"        unexpectedly."}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_e98f4c28","line":220,"updated":"2015-01-24 12:39:06.000000000","message":"This is not a valid docstring: docstring title should be followed by a blalnk line.","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d398c84ae94d03a949edc98aa28c8caa6b8549ec","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            self.event_observers.add(driver)"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":220,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":221,"context_line":"        It will be called if the administrator configured the exit action on"},{"line_number":222,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":223,"context_line":"        unexpectedly."}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_c86ef72e","line":220,"in_reply_to":"1a930d6b_e98f4c28","updated":"2015-01-26 10:47:04.000000000","message":"Done","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"6950175579a768c65c796086727dbad9cc2821a8","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":223,"context_line":"        unexpectedly."},{"line_number":224,"context_line":"        \"\"\""},{"line_number":225,"context_line":"        LOG.error(_LE(\"Exiting neutron-l3-agent because of service \""},{"line_number":226,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":227,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":228,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_3405b1c2","line":225,"updated":"2015-01-21 01:10:06.000000000","message":"I hate to have a nit at such a high number patchset, but is using \"neutron-l3-agent\" correct here?  I\u0027m only mentioning it since when you run both l3 and vpn services in devstack there\u0027s only one agent started - neutron-vpn-agent","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"23709e727b569a48b087c60e2cab329d42b6c148","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":223,"context_line":"        unexpectedly."},{"line_number":224,"context_line":"        \"\"\""},{"line_number":225,"context_line":"        LOG.error(_LE(\"Exiting neutron-l3-agent because of service \""},{"line_number":226,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":227,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":228,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_2b81ba8f","line":225,"in_reply_to":"1a930d6b_17498ad0","updated":"2015-01-21 15:42:50.000000000","message":"I don\u0027t know if changing the vpn agent would help, would it?  And should it be over-riding a function starting with a \"_\" by convention?\n\nUsing sys.argv[0] would be best I would think as it covers all cases.\n\nAnd I guess I wouldn\u0027t hold this up, but it is the first occurrence of an agent name in a log string from what I can find.","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d398c84ae94d03a949edc98aa28c8caa6b8549ec","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":223,"context_line":"        unexpectedly."},{"line_number":224,"context_line":"        \"\"\""},{"line_number":225,"context_line":"        LOG.error(_LE(\"Exiting neutron-l3-agent because of service \""},{"line_number":226,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":227,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":228,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_281bfbca","line":225,"in_reply_to":"1a930d6b_2b81ba8f","updated":"2015-01-26 10:47:04.000000000","message":"I have just changed it to \"agent\" by now, and we can follow up in next patches refactoring this up to the ProcessMonitor itself.","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b9aca59683a8fba6149764e73a4d32950433c1d3","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":223,"context_line":"        unexpectedly."},{"line_number":224,"context_line":"        \"\"\""},{"line_number":225,"context_line":"        LOG.error(_LE(\"Exiting neutron-l3-agent because of service \""},{"line_number":226,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":227,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":228,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_17498ad0","line":225,"in_reply_to":"1a930d6b_3405b1c2","updated":"2015-01-21 11:37:04.000000000","message":"Not sure how to fix that from here, may be neutron-vpn-agent should override this function into a new one?\n\nOr better, we could inspect sys.argv[0] and use that inside ProcessMonitor itself to provide a default _exit_handler.\n\nFollow up for this sounds reasonable?","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"28b1cecc848d1858cb1ea518a521374c3175a366","unresolved":false,"context_lines":[{"line_number":213,"context_line":"            driver \u003d metadata_driver.MetadataDriver.instance(self)"},{"line_number":214,"context_line":"            self.event_observers.add(driver)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":217,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"        It will be called if the administrator configured the exit action on"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_93334061","line":216,"updated":"2015-01-26 11:10:29.000000000","message":"_exit_handler is generic so it can be moved to external_process module?","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5ed263941b71dd5ef2f9fbb86abd994052482015","unresolved":false,"context_lines":[{"line_number":213,"context_line":"            driver \u003d metadata_driver.MetadataDriver.instance(self)"},{"line_number":214,"context_line":"            self.event_observers.add(driver)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":217,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"        It will be called if the administrator configured the exit action on"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_c1c88d57","line":216,"in_reply_to":"1a930d6b_39534b3a","updated":"2015-01-26 14:09:51.000000000","message":"Yes, that was proposed on previous patchset, I intend to do this in a follow up patch, as I\u0027d need to refactor out from dhcp-agent.\n\nFollow up refactor patch sounds ok?","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"96706b00ec1e36b334deb16f0a03f703717397d0","unresolved":false,"context_lines":[{"line_number":213,"context_line":"            driver \u003d metadata_driver.MetadataDriver.instance(self)"},{"line_number":214,"context_line":"            self.event_observers.add(driver)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":217,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"        It will be called if the administrator configured the exit action on"}],"source_content_type":"text/x-python","patch_set":40,"id":"fa81d914_497441cf","line":216,"in_reply_to":"1a930d6b_7c977c3a","updated":"2015-01-28 11:11:46.000000000","message":"Done","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"688db8ecfd1624eb498d6c883c96bb087506aa9f","unresolved":false,"context_lines":[{"line_number":213,"context_line":"            driver \u003d metadata_driver.MetadataDriver.instance(self)"},{"line_number":214,"context_line":"            self.event_observers.add(driver)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":217,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"        It will be called if the administrator configured the exit action on"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_39534b3a","line":216,"in_reply_to":"1a930d6b_93334061","updated":"2015-01-26 12:35:18.000000000","message":"+1","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0168147c27957a74c0a1a8706272d0d70e097cea","unresolved":false,"context_lines":[{"line_number":213,"context_line":"            driver \u003d metadata_driver.MetadataDriver.instance(self)"},{"line_number":214,"context_line":"            self.event_observers.add(driver)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":217,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"        It will be called if the administrator configured the exit action on"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_7c977c3a","line":216,"in_reply_to":"1a930d6b_c1c88d57","updated":"2015-01-26 14:26:39.000000000","message":"Seems like an easy refactoring, what if do it a separate patch for it (only) and base this one on it?","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"b8e4a3016635ce4af4f74c405eb96056a8ac21bb","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        self._check_config_params()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        self.process_monitor \u003d external_process.ProcessMonitor("},{"line_number":153,"context_line":"                              config\u003dself.conf,"},{"line_number":154,"context_line":"                              root_helper\u003dself.root_helper,"},{"line_number":155,"context_line":"                              resource_type\u003d\u0027router\u0027)"},{"line_number":156,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_9a22ebb7","line":153,"updated":"2015-01-28 17:27:36.000000000","message":"(nit) pep8 indent, indent subsequent lines 4 spaces from the line with the opening parenthesis, e.g.\n\nself.process_monitor \u003d ...(\n    config\u003d...","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        self._check_config_params()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        self.process_monitor \u003d external_process.ProcessMonitor("},{"line_number":153,"context_line":"                              config\u003dself.conf,"},{"line_number":154,"context_line":"                              root_helper\u003dself.root_helper,"},{"line_number":155,"context_line":"                              resource_type\u003d\u0027router\u0027)"},{"line_number":156,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_cccc8264","line":153,"in_reply_to":"fa81d914_9a22ebb7","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"}],"neutron/agent/l3/ha.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"121aabfbec36c07f3867753cd44d7decb834233c","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                ri.router_id, self.conf))"},{"line_number":188,"context_line":"        # TODO(mangelajo): use the process monitor in keepalived when"},{"line_number":189,"context_line":"        #                  keepalived stops killing/starting metadata"},{"line_number":190,"context_line":"        #                  proxy on it\u0027s own"},{"line_number":191,"context_line":"        pm \u003d ("},{"line_number":192,"context_line":"            metadata_driver.MetadataDriver."},{"line_number":193,"context_line":"            _get_metadata_proxy_process_manager(ri.router_id,"}],"source_content_type":"text/x-python","patch_set":36,"id":"3a961159_cc714f47","line":190,"updated":"2015-01-19 09:47:12.000000000","message":"super nit: its own","commit_id":"0eba050f63d69be6dfe36a72205116dbb5085f01"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"121aabfbec36c07f3867753cd44d7decb834233c","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                ri.router_id, self.conf))"},{"line_number":188,"context_line":"        # TODO(mangelajo): use the process monitor in keepalived when"},{"line_number":189,"context_line":"        #                  keepalived stops killing/starting metadata"},{"line_number":190,"context_line":"        #                  proxy on it\u0027s own"},{"line_number":191,"context_line":"        pm \u003d ("},{"line_number":192,"context_line":"            metadata_driver.MetadataDriver."},{"line_number":193,"context_line":"            _get_metadata_proxy_process_manager(ri.router_id,"}],"source_content_type":"text/x-python","patch_set":36,"id":"3a961159_ec6e0b64","line":190,"updated":"2015-01-19 09:47:12.000000000","message":"super pedant nit: its own","commit_id":"0eba050f63d69be6dfe36a72205116dbb5085f01"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d9e12240ad7fd8a2eafdb6e8535054c3367726e8","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                ri.router_id, self.conf))"},{"line_number":188,"context_line":"        # TODO(mangelajo): use the process monitor in keepalived when"},{"line_number":189,"context_line":"        #                  keepalived stops killing/starting metadata"},{"line_number":190,"context_line":"        #                  proxy on it\u0027s own"},{"line_number":191,"context_line":"        pm \u003d ("},{"line_number":192,"context_line":"            metadata_driver.MetadataDriver."},{"line_number":193,"context_line":"            _get_metadata_proxy_process_manager(ri.router_id,"}],"source_content_type":"text/x-python","patch_set":36,"id":"3a961159_cca5cf49","line":190,"in_reply_to":"3a961159_ec6e0b64","updated":"2015-01-19 16:05:38.000000000","message":"Thanks \u0027:D, that\u0027s a common mistake I\u0027m making lately for some reason I don\u0027t manage to understand yet as I fully understand the difference between it\u0027s and its... \u0027:D\n\nI\u0027ll fix as I \"unconflict the merge\" ;) , the unconflicter who unconflicts it , an awesome unconflicter he will be.","commit_id":"0eba050f63d69be6dfe36a72205116dbb5085f01"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":155,"context_line":"            _get_metadata_proxy_process_manager(ri.router_id,"},{"line_number":156,"context_line":"                                                ri.ns_name,"},{"line_number":157,"context_line":"                                                self.conf))"},{"line_number":158,"context_line":"        pm.ensure_pids_dir()"},{"line_number":159,"context_line":"        pid \u003d pm.get_pid_file_name()"},{"line_number":160,"context_line":"        ri.keepalived_manager.add_notifier("},{"line_number":161,"context_line":"            callback(pid), \u0027master\u0027, ri.ha_vr_id)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_ecf22699","line":158,"updated":"2015-01-29 12:28:52.000000000","message":"This is gone ^ due to the comments on external_process.py","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"}],"neutron/agent/l3_agent.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"1d4d239e80a8196379e3ffa249ec010376a220dc","unresolved":false,"context_lines":[{"line_number":564,"context_line":"        LOG.error(_LE(\"exiting L3NatAgent because of service %(service)s \""},{"line_number":565,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":566,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":567,"context_line":"        sys.exit(1)"},{"line_number":568,"context_line":""},{"line_number":569,"context_line":"    def _check_config_params(self):"},{"line_number":570,"context_line":"        \"\"\"Check items in configuration files."}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_dc923d56","line":567,"updated":"2014-08-28 14:53:10.000000000","message":"Use raise SystemExit(1) instead of sys.exit(1), which causes problems if encountered by tox.","commit_id":"4c9b080bc54343d89261eea659391ab17593e27e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4ced29134a3b3ed6445809bc87770ee762b97cb0","unresolved":false,"context_lines":[{"line_number":561,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":562,"context_line":"        unexpectedly."},{"line_number":563,"context_line":"        \"\"\""},{"line_number":564,"context_line":"        LOG.error(_LE(\"exiting L3NatAgent because of service %(service)s \""},{"line_number":565,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":566,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":567,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_9388b0c6","line":564,"updated":"2014-09-03 09:44:37.000000000","message":"L3NatAgent is not a user-visible name, and the actual class name is not always L3NatAgent. VPN agent inherits this class.\n\nIt is better to use l3-agent which is a visible name to operators.\n\nIt can be improved later.","commit_id":"d87001a558a421f867ab4f7c58e9b7b58e23a0a2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"99be82c9d89fcea2656ca77c5a938d4ddbee0dfd","unresolved":false,"context_lines":[{"line_number":561,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":562,"context_line":"        unexpectedly."},{"line_number":563,"context_line":"        \"\"\""},{"line_number":564,"context_line":"        LOG.error(_LE(\"exiting L3NatAgent because of service %(service)s \""},{"line_number":565,"context_line":"                      \"process with uuid %(uuid)s malfunction\"),"},{"line_number":566,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":567,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_671b2981","line":564,"in_reply_to":"fa98f980_9388b0c6","updated":"2014-09-05 16:07:25.000000000","message":"+1: I will do in follow up patch. Thank you for pointing it out.","commit_id":"d87001a558a421f867ab4f7c58e9b7b58e23a0a2"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"ac1707d3d2e234df36f9d7d551c8d94c2817594a","unresolved":false,"context_lines":[{"line_number":1250,"context_line":"                ns_name \u003d self.get_snat_ns_name(ri.router[\u0027id\u0027])"},{"line_number":1251,"context_line":"            else:"},{"line_number":1252,"context_line":"                # no centralized SNAT gateway for this node/agent"},{"line_number":1253,"context_line":"                LOG.debug(\"not hosting snat for router: %\", ri.router[\u0027id\u0027])"},{"line_number":1254,"context_line":"                return"},{"line_number":1255,"context_line":"        else:"},{"line_number":1256,"context_line":"            ns_name \u003d ri.ns_name"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_c3836d54","line":1253,"updated":"2014-09-02 13:33:13.000000000","message":"Outside of change set but missing formatting. Please consider fixing or address under a separate bug.","commit_id":"d87001a558a421f867ab4f7c58e9b7b58e23a0a2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"99be82c9d89fcea2656ca77c5a938d4ddbee0dfd","unresolved":false,"context_lines":[{"line_number":1250,"context_line":"                ns_name \u003d self.get_snat_ns_name(ri.router[\u0027id\u0027])"},{"line_number":1251,"context_line":"            else:"},{"line_number":1252,"context_line":"                # no centralized SNAT gateway for this node/agent"},{"line_number":1253,"context_line":"                LOG.debug(\"not hosting snat for router: %\", ri.router[\u0027id\u0027])"},{"line_number":1254,"context_line":"                return"},{"line_number":1255,"context_line":"        else:"},{"line_number":1256,"context_line":"            ns_name \u003d ri.ns_name"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_e2df0767","line":1253,"updated":"2014-09-05 16:07:25.000000000","message":"https://bugs.launchpad.net/neutron/+bug/1366105\n:-)","commit_id":"d87001a558a421f867ab4f7c58e9b7b58e23a0a2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"bca6b0cbf235480c25ee95a1364f3b339a637cb9","unresolved":false,"context_lines":[{"line_number":1250,"context_line":"                ns_name \u003d self.get_snat_ns_name(ri.router[\u0027id\u0027])"},{"line_number":1251,"context_line":"            else:"},{"line_number":1252,"context_line":"                # no centralized SNAT gateway for this node/agent"},{"line_number":1253,"context_line":"                LOG.debug(\"not hosting snat for router: %\", ri.router[\u0027id\u0027])"},{"line_number":1254,"context_line":"                return"},{"line_number":1255,"context_line":"        else:"},{"line_number":1256,"context_line":"            ns_name \u003d ri.ns_name"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_81c6bd47","line":1253,"in_reply_to":"fa98f980_c3836d54","updated":"2014-09-02 14:31:31.000000000","message":"I think we better address it under a separate bug, given the current gate stress. Thanks Paul.","commit_id":"d87001a558a421f867ab4f7c58e9b7b58e23a0a2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"be104cd2c6407e2dd89fbea9eb16fe4d8f4fd930","unresolved":false,"context_lines":[{"line_number":1250,"context_line":"                ns_name \u003d self.get_snat_ns_name(ri.router[\u0027id\u0027])"},{"line_number":1251,"context_line":"            else:"},{"line_number":1252,"context_line":"                # no centralized SNAT gateway for this node/agent"},{"line_number":1253,"context_line":"                LOG.debug(\"not hosting snat for router: %\", ri.router[\u0027id\u0027])"},{"line_number":1254,"context_line":"                return"},{"line_number":1255,"context_line":"        else:"},{"line_number":1256,"context_line":"            ns_name \u003d ri.ns_name"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa98f980_09f5efca","line":1253,"in_reply_to":"fa98f980_e2df0767","updated":"2014-09-08 05:39:15.000000000","message":"Done","commit_id":"d87001a558a421f867ab4f7c58e9b7b58e23a0a2"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ad4c72700a82ee289989ad88664da48e7730ed5c","unresolved":false,"context_lines":[{"line_number":43,"context_line":"from neutron import manager"},{"line_number":44,"context_line":"from neutron.openstack.common import excutils"},{"line_number":45,"context_line":"from neutron.openstack.common.gettextutils import _LE"},{"line_number":46,"context_line":"from neutron.openstack.common.gettextutils import _LW"},{"line_number":47,"context_line":"from neutron.openstack.common import importutils"},{"line_number":48,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":49,"context_line":"from neutron.openstack.common import loopingcall"}],"source_content_type":"text/x-python","patch_set":16,"id":"baa201ad_b5ee78eb","line":46,"updated":"2014-10-15 09:47:33.000000000","message":"Why not unite the above 2 lines to one?\n\n from neutron.openstack.common.gettestutils import _LW, _LE","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":43,"context_line":"from neutron import manager"},{"line_number":44,"context_line":"from neutron.openstack.common import excutils"},{"line_number":45,"context_line":"from neutron.openstack.common.gettextutils import _LE"},{"line_number":46,"context_line":"from neutron.openstack.common.gettextutils import _LW"},{"line_number":47,"context_line":"from neutron.openstack.common import importutils"},{"line_number":48,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":49,"context_line":"from neutron.openstack.common import loopingcall"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_81eb7c11","line":46,"in_reply_to":"9aa7fdbe_7809f02b","updated":"2014-12-05 13:58:41.000000000","message":"Will change, thanks!.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"line_number":43,"context_line":"from neutron import manager"},{"line_number":44,"context_line":"from neutron.openstack.common import excutils"},{"line_number":45,"context_line":"from neutron.openstack.common.gettextutils import _LE"},{"line_number":46,"context_line":"from neutron.openstack.common.gettextutils import _LW"},{"line_number":47,"context_line":"from neutron.openstack.common import importutils"},{"line_number":48,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":49,"context_line":"from neutron.openstack.common import loopingcall"}],"source_content_type":"text/x-python","patch_set":16,"id":"9aa7fdbe_7809f02b","line":46,"in_reply_to":"baa201ad_b5ee78eb","updated":"2014-10-20 02:45:54.000000000","message":"Yes, that is the convention. And they must be in alphabetical order: _LE, _LW","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ad4c72700a82ee289989ad88664da48e7730ed5c","unresolved":false,"context_lines":[{"line_number":514,"context_line":"        self._check_config_params()"},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"        self._process_monitor \u003d external_process.ProcessMonitor("},{"line_number":517,"context_line":"                               config \u003d self.conf,"},{"line_number":518,"context_line":"                               root_helper \u003d self.root_helper,"},{"line_number":519,"context_line":"                               resource_type \u003d \u0027router\u0027,"},{"line_number":520,"context_line":"                               exit_handler \u003d self._exit_handler)"}],"source_content_type":"text/x-python","patch_set":16,"id":"baa201ad_f589e026","line":517,"updated":"2014-10-15 09:47:33.000000000","message":"nit: no spaces before and after \u003d (ie. use \u0027config\u003dself.conf\u0027, not \u0027config \u003d self.conf\u0027)","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":514,"context_line":"        self._check_config_params()"},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"        self._process_monitor \u003d external_process.ProcessMonitor("},{"line_number":517,"context_line":"                               config \u003d self.conf,"},{"line_number":518,"context_line":"                               root_helper \u003d self.root_helper,"},{"line_number":519,"context_line":"                               resource_type \u003d \u0027router\u0027,"},{"line_number":520,"context_line":"                               exit_handler \u003d self._exit_handler)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_c1f584ee","line":517,"in_reply_to":"baa201ad_f589e026","updated":"2014-12-05 13:58:41.000000000","message":"ack, will change, thanks.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"line_number":593,"context_line":"            use_ipv6\u003dself.use_ipv6)"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":596,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":597,"context_line":"        It will be called if the administrator configured the exit action on"},{"line_number":598,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":599,"context_line":"        unexpectedly."}],"source_content_type":"text/x-python","patch_set":16,"id":"9aa7fdbe_c725990b","line":596,"updated":"2014-10-20 02:45:54.000000000","message":"Nit: insert a blank line here.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":593,"context_line":"            use_ipv6\u003dself.use_ipv6)"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":"    def _exit_handler(self, uuid, service):"},{"line_number":596,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":597,"context_line":"        It will be called if the administrator configured the exit action on"},{"line_number":598,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":599,"context_line":"        unexpectedly."}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_21e4883b","line":596,"in_reply_to":"9aa7fdbe_c725990b","updated":"2014-12-05 13:58:41.000000000","message":"Hmm, thanks! :)","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"line_number":596,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":597,"context_line":"        It will be called if the administrator configured the exit action on"},{"line_number":598,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":599,"context_line":"        unexpectedly."},{"line_number":600,"context_line":"        \"\"\""},{"line_number":601,"context_line":"        LOG.error(_LE(\"exiting neutron-l3-agent because of service \""},{"line_number":602,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"}],"source_content_type":"text/x-python","patch_set":16,"id":"9aa7fdbe_0777a103","line":599,"updated":"2014-10-20 02:45:54.000000000","message":"Let\u0027s say the metadata process fails and so we get here and the l3_agent exits. What happens to the radvd process? (I left a related question in the spec review.)","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":596,"context_line":"        \"\"\"This is an exit handler for the ProcessMonitor."},{"line_number":597,"context_line":"        It will be called if the administrator configured the exit action on"},{"line_number":598,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":599,"context_line":"        unexpectedly."},{"line_number":600,"context_line":"        \"\"\""},{"line_number":601,"context_line":"        LOG.error(_LE(\"exiting neutron-l3-agent because of service \""},{"line_number":602,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_4166f4bc","line":599,"in_reply_to":"9aa7fdbe_0777a103","updated":"2014-12-05 13:58:41.000000000","message":"Radvd keeps running, as it\u0027s spawned as an external process, that should/will noll die if we exit.\n\nThe idea behind the exit mode is that you have pacemaker (or equivalent) on top, which will restart the agent, or reschedule the whole l3-agent thing somewhere else.\n\nLooking at that, it could make sense to add support to cleanup the radvd in the netns-cleanup script, which is what HA A/P solutions use to cleanup the resources in one node before spawning them on a different node.\n\n\nhttps://github.com/openstack/neutron/blob/master/neutron/agent/netns_cleanup_util.py","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":586,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":587,"context_line":"        unexpectedly."},{"line_number":588,"context_line":"        \"\"\""},{"line_number":589,"context_line":"        LOG.error(_LE(\"exiting neutron-l3-agent because of service \""},{"line_number":590,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":591,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":592,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_1d2b1131","line":589,"updated":"2014-12-10 14:51:31.000000000","message":"Nit: Let\u0027s make it uppercase too (same as in dhcp patch).","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":586,"context_line":"        check_child_processes_actions, and one of our external processes die"},{"line_number":587,"context_line":"        unexpectedly."},{"line_number":588,"context_line":"        \"\"\""},{"line_number":589,"context_line":"        LOG.error(_LE(\"exiting neutron-l3-agent because of service \""},{"line_number":590,"context_line":"                      \"%(service)s process with uuid %(uuid)s malfunction\"),"},{"line_number":591,"context_line":"                  {\u0027service\u0027: service, \u0027uuid\u0027: uuid})"},{"line_number":592,"context_line":"        raise SystemExit(1)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_63c6364b","line":589,"in_reply_to":"3a961159_1d2b1131","updated":"2014-12-10 15:26:26.000000000","message":"Will do. Right.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":825,"context_line":""},{"line_number":826,"context_line":"        return callback"},{"line_number":827,"context_line":""},{"line_number":828,"context_line":"    def _get_metadata_proxy_process_manager(self, router_id, ns_name):"},{"line_number":829,"context_line":"        return self._process_monitor.get_process_manager("},{"line_number":830,"context_line":"            router_id,"},{"line_number":831,"context_line":"            namespace\u003dns_name)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_bdb75dd7","line":828,"updated":"2014-12-10 14:51:31.000000000","message":"Is the method used anywhere at all?","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":825,"context_line":""},{"line_number":826,"context_line":"        return callback"},{"line_number":827,"context_line":""},{"line_number":828,"context_line":"    def _get_metadata_proxy_process_manager(self, router_id, ns_name):"},{"line_number":829,"context_line":"        return self._process_monitor.get_process_manager("},{"line_number":830,"context_line":"            router_id,"},{"line_number":831,"context_line":"            namespace\u003dns_name)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_a3ee5eb2","line":828,"in_reply_to":"3a961159_bdb75dd7","updated":"2014-12-10 15:26:26.000000000","message":"Hmm, not anymore, I think the usage was gone after fixing last merge conflict... or otherwise long ago. Will kill.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":833,"context_line":"    def _spawn_metadata_proxy(self, router_id, ns_name):"},{"line_number":834,"context_line":"        self._process_monitor.enable("},{"line_number":835,"context_line":"            router_id,"},{"line_number":836,"context_line":"            self._get_metadata_proxy_callback(router_id),"},{"line_number":837,"context_line":"            ns_name)"},{"line_number":838,"context_line":""},{"line_number":839,"context_line":"    def _destroy_metadata_proxy(self, router_id, ns_name):"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_1db071f3","line":836,"updated":"2014-12-10 14:51:31.000000000","message":"again, is it expected that we don\u0027t pass service\u003d for metadata proxy?","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":833,"context_line":"    def _spawn_metadata_proxy(self, router_id, ns_name):"},{"line_number":834,"context_line":"        self._process_monitor.enable("},{"line_number":835,"context_line":"            router_id,"},{"line_number":836,"context_line":"            self._get_metadata_proxy_callback(router_id),"},{"line_number":837,"context_line":"            ns_name)"},{"line_number":838,"context_line":""},{"line_number":839,"context_line":"    def _destroy_metadata_proxy(self, router_id, ns_name):"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_63f47687","line":836,"in_reply_to":"3a961159_1db071f3","updated":"2014-12-10 15:26:26.000000000","message":"Same as in dhcp. Just to keep the same pid filename. But we could enforce it via specific pid file if we wanted.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"}],"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":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":175,"context_line":"        service_id \u003d ServiceId(uuid, service)"},{"line_number":176,"context_line":"        self._process_managers[service_id] \u003d process_manager"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"    def _get_or_create_process_manager(self, service_id, namespace,"},{"line_number":179,"context_line":"                                       cmd_callback\u003dNone, cmd_addl_env\u003dNone):"},{"line_number":180,"context_line":"        \"\"\"Returns a process manager for a given service_id and namespace."},{"line_number":181,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_9d4aa1aa","line":178,"updated":"2014-12-10 14:51:31.000000000","message":"Hm. I wondered why you split the dependency chain of the patch from https://review.openstack.org/#/c/115935/. Now I see that you introduce the method of the same name with different implementation in those two patches. Why?","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":175,"context_line":"        service_id \u003d ServiceId(uuid, service)"},{"line_number":176,"context_line":"        self._process_managers[service_id] \u003d process_manager"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"    def _get_or_create_process_manager(self, service_id, namespace,"},{"line_number":179,"context_line":"                                       cmd_callback\u003dNone, cmd_addl_env\u003dNone):"},{"line_number":180,"context_line":"        \"\"\"Returns a process manager for a given service_id and namespace."},{"line_number":181,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_6322b602","line":178,"in_reply_to":"3a961159_9d4aa1aa","updated":"2014-12-10 15:26:26.000000000","message":"I started to consider chains nasty (for many reasons), I expected needing to fix a conflict when one or the other merges, \nbut I will unify implementations at both side.\n\nGood catch again. How can I be sooo bad? :P","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            utils.execute(cmd, self.root_helper)"},{"line_number":94,"context_line":"            # In the case of shutting down, remove the pid file"},{"line_number":95,"context_line":"            if sig \u003d\u003d \u00279\u0027:"},{"line_number":96,"context_line":"                self.ensure_pids_dir()"},{"line_number":97,"context_line":"                fileutils.delete_if_exists(self.get_pid_file_name())"},{"line_number":98,"context_line":"        elif pid:"},{"line_number":99,"context_line":"            LOG.debug(\u0027Process for %(uuid)s pid %(pid)d is stale, ignoring \u0027"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_5acd4d65","line":96,"updated":"2014-12-12 14:36:13.000000000","message":"I wonder why we need to create the directory to just drop the file from there later. If the directory is not present, then delete_if_exists() should just do nothing, right?","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            utils.execute(cmd, self.root_helper)"},{"line_number":94,"context_line":"            # In the case of shutting down, remove the pid file"},{"line_number":95,"context_line":"            if sig \u003d\u003d \u00279\u0027:"},{"line_number":96,"context_line":"                self.ensure_pids_dir()"},{"line_number":97,"context_line":"                fileutils.delete_if_exists(self.get_pid_file_name())"},{"line_number":98,"context_line":"        elif pid:"},{"line_number":99,"context_line":"            LOG.debug(\u0027Process for %(uuid)s pid %(pid)d is stale, ignoring \u0027"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_53634841","line":96,"in_reply_to":"3a961159_5acd4d65","updated":"2014-12-15 11:56:38.000000000","message":"Hmm, we actually shouldn\u0027t... ensure_pids_dir was False.\n\nDone.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"688db8ecfd1624eb498d6c883c96bb087506aa9f","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"},{"line_number":77,"context_line":"            ip_wrapper.netns.execute(cmd, addl_env\u003dself.cmd_addl_env)"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_74807ac0","line":74,"updated":"2015-01-26 12:35:18.000000000","message":"Can we stay with ensure_pids_dir parameter in self.get_pid_file_name()? Less changes in the patch after all.","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"96706b00ec1e36b334deb16f0a03f703717397d0","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"},{"line_number":77,"context_line":"            ip_wrapper.netns.execute(cmd, addl_env\u003dself.cmd_addl_env)"}],"source_content_type":"text/x-python","patch_set":40,"id":"fa81d914_c94f5191","line":74,"in_reply_to":"1a930d6b_1c4918b7","updated":"2015-01-28 11:11:46.000000000","message":"Thanks Oleg.","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0168147c27957a74c0a1a8706272d0d70e097cea","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"},{"line_number":77,"context_line":"            ip_wrapper.netns.execute(cmd, addl_env\u003dself.cmd_addl_env)"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_1c4918b7","line":74,"in_reply_to":"1a930d6b_21c95126","updated":"2015-01-26 14:26:39.000000000","message":"Not a big deal really, not sure it\u0027s worth to do a separate patch. I\u0027m ok with it as is, thanks for clarification","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5ed263941b71dd5ef2f9fbb86abd994052482015","unresolved":false,"context_lines":[{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"},{"line_number":77,"context_line":"            ip_wrapper.netns.execute(cmd, addl_env\u003dself.cmd_addl_env)"}],"source_content_type":"text/x-python","patch_set":40,"id":"1a930d6b_21c95126","line":74,"in_reply_to":"1a930d6b_74807ac0","updated":"2015-01-26 14:09:51.000000000","message":"IMHO, get_pid_file_name which also ensures pids directory is a bit of a mess, and leads to hiding issues under the carpet sometimes.\n\nIt was suggested in an earlier patchset, and I believe it\u0027s more clean like this.  But I don\u0027t disagree this is out of scope for this patch, I would like to see it done anyway.\n\nI will split it out to a separate patch, so we can have an independent discussion over that topic. Does it sound ok?.","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"05492141974150172cf156e4a1830b5b83f056a9","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        if not self.active:"},{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_89b8c7e6","line":73,"updated":"2015-01-29 05:44:30.000000000","message":"I might be missing something, but it looks like you can do this at the end of __init__ and eliminate the ensure_pids_dir method? It\u0027s not clear to me any more why one would sometimes want to start a PM without ensuring the pids dir?","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c08ff8f565af26ffc53bad04300dc957e3ea6ff","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        if not self.active:"},{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_8f77e7d3","line":73,"in_reply_to":"fa81d914_89b8c7e6","updated":"2015-01-29 07:05:15.000000000","message":"Actually, I believe you\u0027re right, and that\u0027s similar to the refactor I did over the dhcp linux driver which creates a network config dir and we moved the \"ensure_dir\" to __init__.\n\nI\u0027ll do it.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b1b3023952d20d283d7583d56fe4541bae195d57","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        if not self.active:"},{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_96861b12","line":73,"in_reply_to":"fa81d914_8f77e7d3","updated":"2015-01-29 11:17:18.000000000","message":"I love the suggestion!","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        if not self.active:"},{"line_number":71,"context_line":"            if not cmd_callback:"},{"line_number":72,"context_line":"                cmd_callback \u003d self.default_cmd_callback"},{"line_number":73,"context_line":"            self.ensure_pids_dir()"},{"line_number":74,"context_line":"            cmd \u003d cmd_callback(self.get_pid_file_name())"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, self.namespace)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_6c363654","line":73,"in_reply_to":"fa81d914_96861b12","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b1b3023952d20d283d7583d56fe4541bae195d57","unresolved":false,"context_lines":[{"line_number":225,"context_line":"            service\u003dservice,"},{"line_number":226,"context_line":"            pid_file\u003dpid_file).pid"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def ensure_pids_dir(self, uuid, service\u003dNone):"},{"line_number":229,"context_line":"        return self._ensure_process_manager("},{"line_number":230,"context_line":"            uuid\u003duuid,"},{"line_number":231,"context_line":"            service\u003dservice).ensure_pids_dir()"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_96eb7baf","line":228,"updated":"2015-01-29 11:17:18.000000000","message":"I guess it will also move into enable() and be removed?","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"64ace41d2e33cfebff4eba41a7e86bb4aef70c1c","unresolved":false,"context_lines":[{"line_number":225,"context_line":"            service\u003dservice,"},{"line_number":226,"context_line":"            pid_file\u003dpid_file).pid"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def ensure_pids_dir(self, uuid, service\u003dNone):"},{"line_number":229,"context_line":"        return self._ensure_process_manager("},{"line_number":230,"context_line":"            uuid\u003duuid,"},{"line_number":231,"context_line":"            service\u003dservice).ensure_pids_dir()"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_51866d66","line":228,"in_reply_to":"fa81d914_51510d0d","updated":"2015-01-29 11:22:21.000000000","message":"actually, totally gone from this class, will become a responsibility of ProcessManager, and not ProcessMonitor.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":225,"context_line":"            service\u003dservice,"},{"line_number":226,"context_line":"            pid_file\u003dpid_file).pid"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def ensure_pids_dir(self, uuid, service\u003dNone):"},{"line_number":229,"context_line":"        return self._ensure_process_manager("},{"line_number":230,"context_line":"            uuid\u003duuid,"},{"line_number":231,"context_line":"            service\u003dservice).ensure_pids_dir()"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_8c39aa43","line":228,"in_reply_to":"fa81d914_51866d66","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3503f8a7e26312f96654c40bfb362effde3bcc6a","unresolved":false,"context_lines":[{"line_number":225,"context_line":"            service\u003dservice,"},{"line_number":226,"context_line":"            pid_file\u003dpid_file).pid"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def ensure_pids_dir(self, uuid, service\u003dNone):"},{"line_number":229,"context_line":"        return self._ensure_process_manager("},{"line_number":230,"context_line":"            uuid\u003duuid,"},{"line_number":231,"context_line":"            service\u003dservice).ensure_pids_dir()"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_51510d0d","line":228,"in_reply_to":"fa81d914_96eb7baf","updated":"2015-01-29 11:20:20.000000000","message":"Yes, I will make a private function for this, non depending on service, which btw, is not needed parameter for this.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"fed55089fda881505c163e35964d28b8e4699479","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            self.service_pid_fname \u003d \u0027pid\u0027"},{"line_number":67,"context_line":"            self.service \u003d \u0027default-service\u0027"},{"line_number":68,"context_line":"        self._ensure_pids_dir()"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def enable(self, cmd_callback\u003dNone, reload_cfg\u003dFalse):"},{"line_number":71,"context_line":"        if not self.active:"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa81d914_e4194f89","line":68,"updated":"2015-01-29 19:03:14.000000000","message":"How about moving the body of the method here and removing the method?","commit_id":"096400b6e0ba054887603aae02603723ede814ca"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9eec43082b21f84ab7cca92bcbbcf72ba8fe5f10","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        else:"},{"line_number":66,"context_line":"            self.service_pid_fname \u003d \u0027pid\u0027"},{"line_number":67,"context_line":"            self.service \u003d \u0027default-service\u0027"},{"line_number":68,"context_line":"        self._ensure_pids_dir()"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def enable(self, cmd_callback\u003dNone, reload_cfg\u003dFalse):"},{"line_number":71,"context_line":"        if not self.active:"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa81d914_a34bc385","line":68,"in_reply_to":"fa81d914_e4194f89","updated":"2015-01-29 20:20:08.000000000","message":"we definitely can, but I will be out until next monday. I\u0027ll try to tackle that tonight if I can, otherwise will need to wait.","commit_id":"096400b6e0ba054887603aae02603723ede814ca"}],"neutron/agent/linux/ra.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3e060001a59f4df3175ef3cdd2ba02449f31a66f","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"def disable_ipv6_ra(router_id, router_ns, process_monitor):"},{"line_number":113,"context_line":"    process_monitor.disable(router_id, router_ns, \u0027radvd\u0027)"},{"line_number":114,"context_line":"    utils.remove_conf_files(cfg.CONF.ra_confs, router_id)"},{"line_number":115,"context_line":"    LOG.debug(\"radvd disabled for router %s\", router_id)"}],"source_content_type":"text/x-python","patch_set":16,"id":"9aa7fdbe_58042c15","line":113,"updated":"2014-10-20 02:45:54.000000000","message":"router_ns is not really needed here if you do:\n\n   process_monitor.disable(uuid\u003drouter_id, service\u003d\u0027radvd\u0027)","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"47fd4ded39a52112dac787d925e56b89f5dd2a62","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"def disable_ipv6_ra(router_id, router_ns, process_monitor):"},{"line_number":113,"context_line":"    process_monitor.disable(router_id, router_ns, \u0027radvd\u0027)"},{"line_number":114,"context_line":"    utils.remove_conf_files(cfg.CONF.ra_confs, router_id)"},{"line_number":115,"context_line":"    LOG.debug(\"radvd disabled for router %s\", router_id)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a890539_21ee48ee","line":113,"in_reply_to":"9aa7fdbe_58042c15","updated":"2014-12-05 13:58:41.000000000","message":"It could be needed, if you are trying to disable a radvd which was not  spawned during this agent \"run time\" (not known by the process monitor, so it doesn\u0027t know the namespace). We could happen to call here from the netns cleanup, for example. \n\nI need to look if we need more parameters here to effectively kill a not know external process, I think we do... hmm..\n\nI will review all this.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"def disable_ipv6_ra(router_id, process_monitor):"},{"line_number":113,"context_line":"    process_monitor.disable(router_id, service\u003d\u0027radvd\u0027)"},{"line_number":114,"context_line":"    utils.remove_conf_files(cfg.CONF.ra_confs, router_id)"},{"line_number":115,"context_line":"    LOG.debug(\"radvd disabled for router %s\", router_id)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_3db1ad8f","line":113,"updated":"2014-12-10 14:51:31.000000000","message":"nit: maybe define \u0027radvd\u0027 constant as a variable at the top and reuse here and in line 92.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"def disable_ipv6_ra(router_id, process_monitor):"},{"line_number":113,"context_line":"    process_monitor.disable(router_id, service\u003d\u0027radvd\u0027)"},{"line_number":114,"context_line":"    utils.remove_conf_files(cfg.CONF.ra_confs, router_id)"},{"line_number":115,"context_line":"    LOG.debug(\"radvd disabled for router %s\", router_id)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_c361aa3a","line":113,"in_reply_to":"3a961159_3db1ad8f","updated":"2014-12-10 15:26:26.000000000","message":"RADVD_SERVICE_NAME\u003d\u0027radvd\u0027\n\nI will do.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"def disable_ipv6_ra(router_id, process_monitor):"},{"line_number":113,"context_line":"    process_monitor.disable(router_id, service\u003d\u0027radvd\u0027)"},{"line_number":114,"context_line":"    utils.remove_conf_files(cfg.CONF.ra_confs, router_id)"},{"line_number":115,"context_line":"    LOG.debug(\"radvd disabled for router %s\", router_id)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_fa31995a","line":113,"updated":"2014-12-12 14:36:13.000000000","message":"\u0027radvd\u0027 as a constant?","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"def disable_ipv6_ra(router_id, process_monitor):"},{"line_number":113,"context_line":"    process_monitor.disable(router_id, service\u003d\u0027radvd\u0027)"},{"line_number":114,"context_line":"    utils.remove_conf_files(cfg.CONF.ra_confs, router_id)"},{"line_number":115,"context_line":"    LOG.debug(\"radvd disabled for router %s\", router_id)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_739be417","line":113,"in_reply_to":"3a961159_fa31995a","updated":"2014-12-15 11:56:38.000000000","message":"Done.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"b8e4a3016635ce4af4f74c405eb96056a8ac21bb","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"RADVD_SERVICE_NAME \u003d \u0027radvd\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_ddc53d5c","line":26,"updated":"2015-01-28 17:27:36.000000000","message":"(No action required) The addition of this constant suggests replacing instances of the string throughout the codebase.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b1b3023952d20d283d7583d56fe4541bae195d57","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"RADVD_SERVICE_NAME \u003d \u0027radvd\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_96453b19","line":26,"in_reply_to":"fa81d914_3a78fb8e","updated":"2015-01-29 11:17:18.000000000","message":"I suspect those should be two different constants with the same value, to differentiate contexts, and adding a constant for RADVD_SERVICE_CMD can be easily done in a separate patch.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"RADVD_SERVICE_NAME \u003d \u0027radvd\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_8cec4a91","line":26,"in_reply_to":"fa81d914_96453b19","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c08ff8f565af26ffc53bad04300dc957e3ea6ff","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"RADVD_SERVICE_NAME \u003d \u0027radvd\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_3a78fb8e","line":26,"in_reply_to":"fa81d914_ddc53d5c","updated":"2015-01-29 07:05:15.000000000","message":"I will rename the constant in that case, because a service name is a logical name to differentiate radvd from other stuff being monitored for the same UUID.\n\nIf I change it to RADVD_SERVICE_EXEC \u003d \u0027radvd\u0027 I could still use it as a \"service name\" in the process monitor context.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"}],"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":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"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":"    #TODO(majopela): separate responsibilities here, ensure_conf_dir"},{"line_number":144,"context_line":"    #                should be a separate function"},{"line_number":145,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":146,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_5a054d44","line":143,"updated":"2014-12-12 14:36:13.000000000","message":"that TODO really belongs to the previous patch (if at all).","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"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":"    #TODO(majopela): separate responsibilities here, ensure_conf_dir"},{"line_number":144,"context_line":"    #                should be a separate function"},{"line_number":145,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":146,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_d3601803","line":143,"in_reply_to":"3a961159_5a054d44","updated":"2014-12-15 11:56:38.000000000","message":"No, we yet have to remove the ensure_conf_dir in this function and all others in this module.\n\nBut there are dependencies around the code (not my patch) yet on this.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    return conf_base"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"def ensure_conf_file_dir(cfg_root, uuid, cfg_file):"},{"line_number":153,"context_line":"    _get_conf_base(cfg_root, uuid, ensure_conf_dir\u003dTrue)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_facd1932","line":152,"updated":"2014-12-12 14:36:13.000000000","message":"Is it used anywhere?","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    return conf_base"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"def ensure_conf_file_dir(cfg_root, uuid, cfg_file):"},{"line_number":153,"context_line":"    _get_conf_base(cfg_root, uuid, ensure_conf_dir\u003dTrue)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_33523c35","line":152,"in_reply_to":"3a961159_facd1932","updated":"2014-12-15 11:56:38.000000000","message":"Hmmm, what happened here..\nout!","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"70456a9757dcab7c75a92e7ad8900ecf3b7b4b2d","unresolved":false,"context_lines":[{"line_number":144,"context_line":""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"},{"line_number":147,"context_line":"    #TODO(majopela): separate responsibilities here, ensure_conf_dir"},{"line_number":148,"context_line":"    #                should be a separate function"},{"line_number":149,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":150,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_09981869","line":147,"updated":"2015-01-24 12:39:06.000000000","message":"it should be TODO(mangelajo) ?","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d398c84ae94d03a949edc98aa28c8caa6b8549ec","unresolved":false,"context_lines":[{"line_number":144,"context_line":""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"def _get_conf_base(cfg_root, uuid, ensure_conf_dir):"},{"line_number":147,"context_line":"    #TODO(majopela): separate responsibilities here, ensure_conf_dir"},{"line_number":148,"context_line":"    #                should be a separate function"},{"line_number":149,"context_line":"    conf_dir \u003d os.path.abspath(os.path.normpath(cfg_root))"},{"line_number":150,"context_line":"    conf_base \u003d os.path.join(conf_dir, uuid)"}],"source_content_type":"text/x-python","patch_set":38,"id":"1a930d6b_a85d2b7b","line":147,"in_reply_to":"1a930d6b_09981869","updated":"2015-01-26 10:47:04.000000000","message":"Thanks, majopela is my internal user @ work.","commit_id":"97b2900ad64d1c8776058d4311b3d8baf1224d53"}],"neutron/agent/metadata/driver.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a808e3bd9dcab35dcc68609209304f9577b6bd5b","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        return callback"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def _spawn_monitored_metadata_proxy(self, router_id, ns_name):"},{"line_number":91,"context_line":"        callback \u003d self._get_metadata_proxy_callback("},{"line_number":92,"context_line":"            router_id, self.l3_agent.conf)"},{"line_number":93,"context_line":"        self.l3_agent.process_monitor.enable(router_id, callback, ns_name)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_4e1511f0","line":90,"updated":"2015-01-28 18:04:02.000000000","message":"it seems there is no UT for *_monitored_metadata_proxy methods","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c08ff8f565af26ffc53bad04300dc957e3ea6ff","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        return callback"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def _spawn_monitored_metadata_proxy(self, router_id, ns_name):"},{"line_number":91,"context_line":"        callback \u003d self._get_metadata_proxy_callback("},{"line_number":92,"context_line":"            router_id, self.l3_agent.conf)"},{"line_number":93,"context_line":"        self.l3_agent.process_monitor.enable(router_id, callback, ns_name)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_5a0a0f22","line":90,"in_reply_to":"fa81d914_4e1511f0","updated":"2015-01-29 07:05:15.000000000","message":"Thank you Cedric\n\nProbably all we can do here is behavioral checking (as maru pointed out in the next file: it\u0027s not very valuable but harmful).\n\nIf _get_metadata_proxy_callback is checked, and process_monitor.enable is (functionally and via unit testing) I believe we should be covered here.\n\nBut I will make sure that\u0027s the case, or see if there is any reasonable thing I can test without checking calls to \"_get_metadata_proxy and then process_monitor.enable\".","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b1b3023952d20d283d7583d56fe4541bae195d57","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    # TODO(mangelajo): remove the unmonitored _get_*_process_manager,"},{"line_number":99,"context_line":"    #                  _spawn_* and _destroy* when keepalived stops"},{"line_number":100,"context_line":"    #                  spawning and killing proxies on it\u0027s own."},{"line_number":101,"context_line":"    @classmethod"},{"line_number":102,"context_line":"    def _get_metadata_proxy_process_manager(cls, router_id, ns_name, conf):"},{"line_number":103,"context_line":"        return external_process.ProcessManager("}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_3661ef39","line":100,"updated":"2015-01-29 11:17:18.000000000","message":"To recap what Salv said, it\u0027s -\u003e its","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"3503f8a7e26312f96654c40bfb362effde3bcc6a","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    # TODO(mangelajo): remove the unmonitored _get_*_process_manager,"},{"line_number":99,"context_line":"    #                  _spawn_* and _destroy* when keepalived stops"},{"line_number":100,"context_line":"    #                  spawning and killing proxies on it\u0027s own."},{"line_number":101,"context_line":"    @classmethod"},{"line_number":102,"context_line":"    def _get_metadata_proxy_process_manager(cls, router_id, ns_name, conf):"},{"line_number":103,"context_line":"        return external_process.ProcessManager("}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_f14be156","line":100,"in_reply_to":"fa81d914_3661ef39","updated":"2015-01-29 11:20:20.000000000","message":"hmm, thanks, my its/it\u0027s... :/","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    # TODO(mangelajo): remove the unmonitored _get_*_process_manager,"},{"line_number":99,"context_line":"    #                  _spawn_* and _destroy* when keepalived stops"},{"line_number":100,"context_line":"    #                  spawning and killing proxies on it\u0027s own."},{"line_number":101,"context_line":"    @classmethod"},{"line_number":102,"context_line":"    def _get_metadata_proxy_process_manager(cls, router_id, ns_name, conf):"},{"line_number":103,"context_line":"        return external_process.ProcessManager("}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_0ed84f52","line":100,"in_reply_to":"fa81d914_f14be156","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"}],"neutron/tests/unit/agent/linux/test_process_monitor.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"ad4c72700a82ee289989ad88664da48e7730ed5c","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        self.test_pid_method(TEST_PID)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def test_pid_method_unknown_uuid(self):"},{"line_number":99,"context_line":"        self.assertFalse(type(self.pmonitor.get_pid(\u0027bad-uuid\u0027)) is int)"}],"source_content_type":"text/x-python","patch_set":16,"id":"baa201ad_b5ef58b0","line":99,"updated":"2014-10-15 09:47:33.000000000","message":"nit: I think \u0027isinstace(self.pmonitor.getpid(\u0027bad-uuid\u0027), int)\u0027 looks nicer, but that\u0027s just me.","commit_id":"3aa0a6a2a84be05b71e6126c931c570fd520c693"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"d7275f196a9c73a26ddac82b86eff9083b75f424","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        self.test_pid_method(TEST_PID)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def test_pid_method_unknown_uuid(self):"},{"line_number":99,"context_line":"        self.assertFalse(type(self.pmonitor.get_pid(\u0027bad-uuid\u0027)) is int)"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_bacb06a4","line":99,"updated":"2014-12-09 16:40:24.000000000","message":"self.assertIsInstance(\n    self.pmonitor.get_pid(\u0027bad-uuid\u0027),\n    int\n)","commit_id":"d98dd993e009c21e3bc32481378da3c53c8ef037"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"17cc7c8070a54f4eee14a6f81ea20d37fe9e9251","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        self.test_pid_method(TEST_PID)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def test_pid_method_unknown_uuid(self):"},{"line_number":99,"context_line":"        self.assertFalse(type(self.pmonitor.get_pid(\u0027bad-uuid\u0027)) is int)"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_cb2f1fa0","line":99,"in_reply_to":"3a961159_bacb06a4","updated":"2014-12-09 21:48:10.000000000","message":"Nice, will do.","commit_id":"d98dd993e009c21e3bc32481378da3c53c8ef037"}],"neutron/tests/unit/agent/metadata/test_driver.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8207be872f3b35d624a17ec7caaa850076f5baf1","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            metadata_driver.MetadataDriver.metadata_filter_rules(8775))"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def _test_spawn_metadata_proxy(self, spawn_function, expected_user,"},{"line_number":56,"context_line":"                                   expected_group, user\u003d\u0027\u0027, group\u003d\u0027\u0027):"},{"line_number":57,"context_line":"        router_id \u003d _uuid()"},{"line_number":58,"context_line":"        router_ns \u003d \u0027qrouter-%s\u0027 % router_id"},{"line_number":59,"context_line":"        metadata_port \u003d 8080"}],"source_content_type":"text/x-python","patch_set":43,"id":"fa81d914_146860f4","line":56,"updated":"2015-01-29 12:59:53.000000000","message":"??? Does it belong here?","commit_id":"dcc55c6ff87605fd05b76fcc2f5d8ad7af51b175"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"7356ecf5b2a78892e9d71e50fd1232aa00e0559c","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            metadata_driver.MetadataDriver.metadata_filter_rules(8775))"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def _test_spawn_metadata_proxy(self, spawn_function, expected_user,"},{"line_number":56,"context_line":"                                   expected_group, user\u003d\u0027\u0027, group\u003d\u0027\u0027):"},{"line_number":57,"context_line":"        router_id \u003d _uuid()"},{"line_number":58,"context_line":"        router_ns \u003d \u0027qrouter-%s\u0027 % router_id"},{"line_number":59,"context_line":"        metadata_port \u003d 8080"}],"source_content_type":"text/x-python","patch_set":43,"id":"fa81d914_dd9b4b70","line":56,"in_reply_to":"fa81d914_146860f4","updated":"2015-01-29 13:40:54.000000000","message":"Upps, sorry I should undo that. I was looking at adding support\nfor checking both _spawn_metadata_proxy and _spawn_monitored_metadata proxy and I left that in.\n\nIn the end it looked to me like testing both wasn\u0027t valuable, as what this function actually checks is the underlying callback which is common for both.\n\nAnd in the next month I expect to remove the non-monitored version of spawn, moving this testing to the monitored version.","commit_id":"dcc55c6ff87605fd05b76fcc2f5d8ad7af51b175"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"51e0987b181f321d929025a2eb94dd02a2fbaa69","unresolved":false,"context_lines":[{"line_number":1019,"context_line":"        self.assertFalse(nat_rules_delta)"},{"line_number":1020,"context_line":"        return ri"},{"line_number":1021,"context_line":""},{"line_number":1022,"context_line":"    def _expected_call_lookup_ri_process_en(self, ri, process):"},{"line_number":1023,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1024,"context_line":"        return [mock.call(uuid\u003dri.router[\u0027id\u0027],"},{"line_number":1025,"context_line":"                          service\u003dprocess,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_39668c51","line":1022,"updated":"2014-08-24 10:45:50.000000000","message":"nit: _enabled","commit_id":"636475c686ee8e342a097cc63c41ba1c1f9d1068"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"13155f37537fdef803b7880471cd01e7098a8f08","unresolved":false,"context_lines":[{"line_number":1019,"context_line":"        self.assertFalse(nat_rules_delta)"},{"line_number":1020,"context_line":"        return ri"},{"line_number":1021,"context_line":""},{"line_number":1022,"context_line":"    def _expected_call_lookup_ri_process_en(self, ri, process):"},{"line_number":1023,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1024,"context_line":"        return [mock.call(uuid\u003dri.router[\u0027id\u0027],"},{"line_number":1025,"context_line":"                          service\u003dprocess,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_39f83549","line":1022,"in_reply_to":"1abeadc6_39668c51","updated":"2014-08-25 13:25:16.000000000","message":"It was going a bit too long, but I\u0027ll fix it. _en is not very descriptive.","commit_id":"636475c686ee8e342a097cc63c41ba1c1f9d1068"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"51e0987b181f321d929025a2eb94dd02a2fbaa69","unresolved":false,"context_lines":[{"line_number":1029,"context_line":"                          conf\u003dself.conf,"},{"line_number":1030,"context_line":"                          cmd_addl_env\u003dNone)]"},{"line_number":1031,"context_line":""},{"line_number":1032,"context_line":"    def _expected_call_lookup_ri_process_dis(self, ri, process):"},{"line_number":1033,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1034,"context_line":"        return [mock.call().__nonzero__()]  # matched on the ProcessesManager"},{"line_number":1035,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_5959888c","line":1032,"updated":"2014-08-24 10:45:50.000000000","message":"nit: _disabled","commit_id":"636475c686ee8e342a097cc63c41ba1c1f9d1068"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"13155f37537fdef803b7880471cd01e7098a8f08","unresolved":false,"context_lines":[{"line_number":1029,"context_line":"                          conf\u003dself.conf,"},{"line_number":1030,"context_line":"                          cmd_addl_env\u003dNone)]"},{"line_number":1031,"context_line":""},{"line_number":1032,"context_line":"    def _expected_call_lookup_ri_process_dis(self, ri, process):"},{"line_number":1033,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1034,"context_line":"        return [mock.call().__nonzero__()]  # matched on the ProcessesManager"},{"line_number":1035,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_999ea906","line":1032,"in_reply_to":"1abeadc6_5959888c","updated":"2014-08-25 13:25:16.000000000","message":"same, thanks.","commit_id":"636475c686ee8e342a097cc63c41ba1c1f9d1068"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cd965c82eb55bb9382ab6c6503586aa0850db9af","unresolved":false,"context_lines":[{"line_number":1406,"context_line":""},{"line_number":1407,"context_line":"    def _expected_call_lookup_ri_process_disabled(self, ri, process):"},{"line_number":1408,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1409,"context_line":"        return [mock.call().__nonzero__()]  # matched on the ProcessesMonitor"},{"line_number":1410,"context_line":""},{"line_number":1411,"context_line":"    def _assert_ri_process_enabled(self, ri, process):"},{"line_number":1412,"context_line":"        \"\"\"Verify that process was enabled for a router instance.\"\"\""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_1d49518b","line":1409,"updated":"2014-12-10 14:51:31.000000000","message":"class name is wrong.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"23cc105d65eb662665e32c1c24b496224c6a9cee","unresolved":false,"context_lines":[{"line_number":1406,"context_line":""},{"line_number":1407,"context_line":"    def _expected_call_lookup_ri_process_disabled(self, ri, process):"},{"line_number":1408,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1409,"context_line":"        return [mock.call().__nonzero__()]  # matched on the ProcessesMonitor"},{"line_number":1410,"context_line":""},{"line_number":1411,"context_line":"    def _assert_ri_process_enabled(self, ri, process):"},{"line_number":1412,"context_line":"        \"\"\"Verify that process was enabled for a router instance.\"\"\""}],"source_content_type":"text/x-python","patch_set":18,"id":"3a961159_c3c8ca24","line":1409,"in_reply_to":"3a961159_1d49518b","updated":"2014-12-10 15:26:26.000000000","message":"lying comment! ;). Will fix.","commit_id":"ce893357ae5738a9447a23c3ce09cf52dd68e158"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":1253,"context_line":""},{"line_number":1254,"context_line":"    def _expected_call_lookup_ri_process_disabled(self, ri, process):"},{"line_number":1255,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1256,"context_line":"        return [mock.call().__nonzero__()]  # matched on the ProcessesMonitor"},{"line_number":1257,"context_line":""},{"line_number":1258,"context_line":"    def _assert_ri_process_enabled(self, ri, process):"},{"line_number":1259,"context_line":"        \"\"\"Verify that process was enabled for a router instance.\"\"\""}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_1ab6658a","line":1256,"updated":"2014-12-12 14:36:13.000000000","message":"class name is wrong.\n\nAlso, can you elaborate on why we expect __nonzero__ here?","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":1253,"context_line":""},{"line_number":1254,"context_line":"    def _expected_call_lookup_ri_process_disabled(self, ri, process):"},{"line_number":1255,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1256,"context_line":"        return [mock.call().__nonzero__()]  # matched on the ProcessesMonitor"},{"line_number":1257,"context_line":""},{"line_number":1258,"context_line":"    def _assert_ri_process_enabled(self, ri, process):"},{"line_number":1259,"context_line":"        \"\"\"Verify that process was enabled for a router instance.\"\"\""}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_3e02030a","line":1256,"in_reply_to":"3a961159_1ab6658a","updated":"2014-12-15 11:56:38.000000000","message":"I will extend the comments to explain, it was very clear to me when I wrote it, and now I need to look deeper why...\n\nOk, Previously this checked that the ProcessManager was created with certain settings. But now, that processManager already exist in the process monitor (so it\u0027s just matched in an \"if\").","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b00b1c46c6506310bb08b961c568b849f10a0c53","unresolved":false,"context_lines":[{"line_number":2217,"context_line":"            root_helper\u003dself.conf.root_helper,"},{"line_number":2218,"context_line":"            resource_type\u003d\u0027router\u0027,"},{"line_number":2219,"context_line":"            exit_handler\u003dlambda: None)"},{"line_number":2220,"context_line":" "},{"line_number":2221,"context_line":"    def test_generate_radvd_conf_other_flag(self):"},{"line_number":2222,"context_line":"        # we don\u0027t check other flag for stateful since it\u0027s redundant"},{"line_number":2223,"context_line":"        # for this mode and can be ignored by clients, as per RFC4861"}],"source_content_type":"text/x-python","patch_set":27,"id":"3a961159_6d9320a3","line":2220,"updated":"2014-12-23 11:20:24.000000000","message":"trailing space","commit_id":"20e5a831b888790831863cc7cec0a0eb3f8208c2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"96706b00ec1e36b334deb16f0a03f703717397d0","unresolved":false,"context_lines":[{"line_number":1292,"context_line":"    def _expected_call_lookup_ri_process_disabled(self, ri, process):"},{"line_number":1293,"context_line":"        \"\"\"Expected call if a process is looked up in a router instance.\"\"\""},{"line_number":1294,"context_line":"        # The ProcessManager does already exist, and it\u0027s found via"},{"line_number":1295,"context_line":"        # ProcessMonitor lookup _get_or_create_process_manager"},{"line_number":1296,"context_line":"        return [mock.call().__nonzero__()]"},{"line_number":1297,"context_line":""},{"line_number":1298,"context_line":"    def _assert_ri_process_enabled(self, ri, process):"}],"source_content_type":"text/x-python","patch_set":40,"id":"fa81d914_29254dc2","line":1295,"updated":"2015-01-28 11:11:46.000000000","message":"_ensure_process_manager","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"96706b00ec1e36b334deb16f0a03f703717397d0","unresolved":false,"context_lines":[{"line_number":2234,"context_line":"            config\u003dself.conf,"},{"line_number":2235,"context_line":"            root_helper\u003dself.conf.root_helper,"},{"line_number":2236,"context_line":"            resource_type\u003d\u0027router\u0027,"},{"line_number":2237,"context_line":"            exit_handler\u003dlambda: None)"},{"line_number":2238,"context_line":""},{"line_number":2239,"context_line":"    def test_generate_radvd_conf_other_flag(self):"},{"line_number":2240,"context_line":"        # we don\u0027t check other flag for stateful since it\u0027s redundant"}],"source_content_type":"text/x-python","patch_set":40,"id":"fa81d914_0c0fb731","line":2237,"updated":"2015-01-28 11:11:46.000000000","message":"this should go away ^ (exit_handler)","commit_id":"b39fd9e755494cfa63139acc4cd0baa0d0d24531"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dd4cec6ef92bf0b9a012e59924a1efd3b8f774b5","unresolved":false,"context_lines":[{"line_number":2217,"context_line":"                    ra._spawn_radvd(router[\u0027id\u0027],"},{"line_number":2218,"context_line":"                                    conffile,"},{"line_number":2219,"context_line":"                                    agent.get_ns_name(router[\u0027id\u0027]),"},{"line_number":2220,"context_line":"                                    self._get_process_monitor())"},{"line_number":2221,"context_line":"            cmd \u003d execute.call_args[0][0]"},{"line_number":2222,"context_line":""},{"line_number":2223,"context_line":"        self.assertIn(\u0027radvd\u0027, cmd)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_3be3be08","line":2220,"updated":"2015-01-28 18:40:37.000000000","message":"why not using agent.process_monitor?","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4d5370dc8e50c0685c964f168a58f523a4d81567","unresolved":false,"context_lines":[{"line_number":2217,"context_line":"                    ra._spawn_radvd(router[\u0027id\u0027],"},{"line_number":2218,"context_line":"                                    conffile,"},{"line_number":2219,"context_line":"                                    agent.get_ns_name(router[\u0027id\u0027]),"},{"line_number":2220,"context_line":"                                    self._get_process_monitor())"},{"line_number":2221,"context_line":"            cmd \u003d execute.call_args[0][0]"},{"line_number":2222,"context_line":""},{"line_number":2223,"context_line":"        self.assertIn(\u0027radvd\u0027, cmd)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_c52c774d","line":2220,"in_reply_to":"fa81d914_3be3be08","updated":"2015-01-28 20:30:13.000000000","message":"I think the one in l3/agent.py uses self.root_helper instead of self.conf.root_helper","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":2217,"context_line":"                    ra._spawn_radvd(router[\u0027id\u0027],"},{"line_number":2218,"context_line":"                                    conffile,"},{"line_number":2219,"context_line":"                                    agent.get_ns_name(router[\u0027id\u0027]),"},{"line_number":2220,"context_line":"                                    self._get_process_monitor())"},{"line_number":2221,"context_line":"            cmd \u003d execute.call_args[0][0]"},{"line_number":2222,"context_line":""},{"line_number":2223,"context_line":"        self.assertIn(\u0027radvd\u0027, cmd)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_ae2103fd","line":2220,"in_reply_to":"fa81d914_74a9aade","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c08ff8f565af26ffc53bad04300dc957e3ea6ff","unresolved":false,"context_lines":[{"line_number":2217,"context_line":"                    ra._spawn_radvd(router[\u0027id\u0027],"},{"line_number":2218,"context_line":"                                    conffile,"},{"line_number":2219,"context_line":"                                    agent.get_ns_name(router[\u0027id\u0027]),"},{"line_number":2220,"context_line":"                                    self._get_process_monitor())"},{"line_number":2221,"context_line":"            cmd \u003d execute.call_args[0][0]"},{"line_number":2222,"context_line":""},{"line_number":2223,"context_line":"        self.assertIn(\u0027radvd\u0027, cmd)"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_74a9aade","line":2220,"in_reply_to":"fa81d914_c52c774d","updated":"2015-01-29 07:05:15.000000000","message":"I believe Cedric is right and we can use agent.process_monitor here, it will use self.conf as we are passing self.conf.\n\nI will check it.\n\nThank you both.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"fed55089fda881505c163e35964d28b8e4699479","unresolved":false,"context_lines":[{"line_number":1307,"context_line":"        expected_calls \u003d self._expected_call_lookup_ri_process_disabled("},{"line_number":1308,"context_line":"            ri, process)"},{"line_number":1309,"context_line":"        expected_calls.append(mock.call().disable())"},{"line_number":1310,"context_line":"        self.assertEqual(expected_calls, self.external_process.mock_calls)"},{"line_number":1311,"context_line":""},{"line_number":1312,"context_line":"    def test_process_router_ipv6_interface_added(self):"},{"line_number":1313,"context_line":"        router \u003d prepare_router_data()"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa81d914_6be607b6","line":1310,"updated":"2015-01-29 19:03:14.000000000","message":"(No action needed.) As Maru has pointed out to me, this way checking for enable/disable (lines 1281-1310) are against the tenets of unit testing, and it indicates that the radvd code needs to be refactored so it knows its own state. I am working on that refactor so I will clean this in a follow-up patch.","commit_id":"096400b6e0ba054887603aae02603723ede814ca"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9eec43082b21f84ab7cca92bcbbcf72ba8fe5f10","unresolved":false,"context_lines":[{"line_number":1307,"context_line":"        expected_calls \u003d self._expected_call_lookup_ri_process_disabled("},{"line_number":1308,"context_line":"            ri, process)"},{"line_number":1309,"context_line":"        expected_calls.append(mock.call().disable())"},{"line_number":1310,"context_line":"        self.assertEqual(expected_calls, self.external_process.mock_calls)"},{"line_number":1311,"context_line":""},{"line_number":1312,"context_line":"    def test_process_router_ipv6_interface_added(self):"},{"line_number":1313,"context_line":"        router \u003d prepare_router_data()"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa81d914_c33517f8","line":1310,"in_reply_to":"fa81d914_6be607b6","updated":"2015-01-29 20:20:08.000000000","message":"Thank you Henry, loop me in the review when that\u0027s ready.","commit_id":"096400b6e0ba054887603aae02603723ede814ca"}],"neutron/tests/unit/test_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":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                manager \u003d ep.ProcessManager(self.conf, \u0027uuid\u0027)"},{"line_number":43,"context_line":"                manager.enable(callback)"},{"line_number":44,"context_line":"                callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":45,"context_line":"                self.assertTrue(name.called)"},{"line_number":46,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":47,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"},{"line_number":48,"context_line":"                                                     check_exit_code\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_88384fd4","line":45,"updated":"2014-12-12 14:36:13.000000000","message":"It\u0027s not clear what we actually test here. Can you elaborate?","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                manager \u003d ep.ProcessManager(self.conf, \u0027uuid\u0027)"},{"line_number":43,"context_line":"                manager.enable(callback)"},{"line_number":44,"context_line":"                callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":45,"context_line":"                self.assertTrue(name.called)"},{"line_number":46,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":47,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"},{"line_number":48,"context_line":"                                                     check_exit_code\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_7e256b5a","line":45,"in_reply_to":"3a961159_88384fd4","updated":"2014-12-15 11:56:38.000000000","message":"before it ensured that we called get_pid_file_name with ensure_pids_dir, now it provides no value.\n\nI can just check the call to makedirs (already mocked), or mock ensure_pids_dir","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cfa242cc3749d51b49e6a18c4a42c7dbfed9e6b1","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                with mock.patch.object(ep, \u0027ip_lib\u0027) as ip_lib:"},{"line_number":62,"context_line":"                    manager.enable(callback)"},{"line_number":63,"context_line":"                    callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":64,"context_line":"                    self.assertTrue(name.called)"},{"line_number":65,"context_line":"                    ip_lib.assert_has_calls(["},{"line_number":66,"context_line":"                        mock.call.IPWrapper(\u0027sudo\u0027, \u0027ns\u0027),"},{"line_number":67,"context_line":"                        mock.call.IPWrapper().netns.execute([\u0027the\u0027, \u0027cmd\u0027],"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_48a827db","line":64,"updated":"2014-12-12 14:36:13.000000000","message":"same","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"29c675480c10df73fe4f06509cc4e529ae36f983","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                with mock.patch.object(ep, \u0027ip_lib\u0027) as ip_lib:"},{"line_number":62,"context_line":"                    manager.enable(callback)"},{"line_number":63,"context_line":"                    callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":64,"context_line":"                    self.assertTrue(name.called)"},{"line_number":65,"context_line":"                    ip_lib.assert_has_calls(["},{"line_number":66,"context_line":"                        mock.call.IPWrapper(\u0027sudo\u0027, \u0027ns\u0027),"},{"line_number":67,"context_line":"                        mock.call.IPWrapper().netns.execute([\u0027the\u0027, \u0027cmd\u0027],"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a961159_be22734f","line":64,"in_reply_to":"3a961159_48a827db","updated":"2014-12-15 11:56:38.000000000","message":"same.","commit_id":"8616ee54ba82115c04bb361f51c9161cb2950a7c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"b8e4a3016635ce4af4f74c405eb96056a8ac21bb","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"                manager \u003d ep.ProcessManager(self.conf, \u0027uuid\u0027)"},{"line_number":43,"context_line":"                manager.enable(callback)"},{"line_number":44,"context_line":"                self.assertTrue(self.makedirs.called)"},{"line_number":45,"context_line":"                callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":46,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":47,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_9d23c504","line":44,"updated":"2015-01-28 17:27:36.000000000","message":"(No action required) Remind me again why duplicating the logic of the code here is in any way valuable?\n\nYet another take on this problem from google: http://googletesting.blogspot.com/2015/01/testing-on-toilet-change-detector-tests.html","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d8e142f9ad5ebdd4a7bed34d497c1bf8c5e27f33","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"                manager \u003d ep.ProcessManager(self.conf, \u0027uuid\u0027)"},{"line_number":43,"context_line":"                manager.enable(callback)"},{"line_number":44,"context_line":"                self.assertTrue(self.makedirs.called)"},{"line_number":45,"context_line":"                callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":46,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":47,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_110a32d2","line":44,"in_reply_to":"fa81d914_343572f7","updated":"2015-01-29 12:28:52.000000000","message":"Done","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c08ff8f565af26ffc53bad04300dc957e3ea6ff","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"                manager \u003d ep.ProcessManager(self.conf, \u0027uuid\u0027)"},{"line_number":43,"context_line":"                manager.enable(callback)"},{"line_number":44,"context_line":"                self.assertTrue(self.makedirs.called)"},{"line_number":45,"context_line":"                callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":46,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":47,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_343572f7","line":44,"in_reply_to":"fa81d914_9d23c504","updated":"2015-01-29 07:05:15.000000000","message":"The google testing blog example talks about verifying a set of calls happen in the same order and parameters following what happens on the code side. The 2nd example is as useless as the second.\n\nHere we don\u0027t look look the same order, yet we do for the parameters,\nfor example we look for:\n\n\"callback.assert_called_once_with(\u0027pidfile\u0027)\" which is of little value\n\nProbably the kind of things we have checked here could be split in different tests:\n\n1) test_enable_call_ensures_directory....\n2) test_enable_call_executes_right_command.\n\nhere remove the callback.assert_called_once_with(\u0027pidfile\u0027) \nand provide a real callback function, where we could check later that\n \"execute\" was spawn with the right pidfile name (inserted from the \ncallback)\n\nOr yet better, we can remove most of the \"ProcessManager\" unit testing in favor of functional testing where we check the system interacting parts happen as expected, without mocking execute/etc..\n\nI definitely can do a follow up on this testing and refactor/remove all the unnecessary checking (note made -I have 4 in queue from the last reviews-)","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c08ff8f565af26ffc53bad04300dc957e3ea6ff","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                with mock.patch.object(ep, \u0027ip_lib\u0027) as ip_lib:"},{"line_number":62,"context_line":"                    manager.enable(callback)"},{"line_number":63,"context_line":"                    callback.assert_called_once_with(\u0027pidfile\u0027)"},{"line_number":64,"context_line":"                    self.assertTrue(self.makedirs.called)"},{"line_number":65,"context_line":"                    ip_lib.assert_has_calls(["},{"line_number":66,"context_line":"                        mock.call.IPWrapper(\u0027sudo\u0027, \u0027ns\u0027),"},{"line_number":67,"context_line":"                        mock.call.IPWrapper().netns.execute([\u0027the\u0027, \u0027cmd\u0027],"}],"source_content_type":"text/x-python","patch_set":41,"id":"fa81d914_743fead6","line":64,"updated":"2015-01-29 07:05:15.000000000","message":"We would avoid this repetition.","commit_id":"f373c6998c512a3e4bbded27f6ec22ecb48f2577"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"f6e30ff106b540ace5acdf54c6495f1646cf8eb2","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            isdir.return_value \u003d True"},{"line_number":127,"context_line":"            manager \u003d ep.ProcessManager(self.conf, \u0027uuid\u0027)"},{"line_number":128,"context_line":"            retval \u003d manager.get_pid_file_name(ensure_pids_dir\u003dTrue)"},{"line_number":129,"context_line":"            self.assertEqual(retval, \u0027/var/path/uuid.pid\u0027)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    def test_get_pid_file_name_not_existing(self):"},{"line_number":132,"context_line":"        with mock.patch.object(ep.utils.os.path, \u0027isdir\u0027) as isdir:"}],"source_content_type":"text/x-python","patch_set":43,"id":"fa81d914_114f9293","side":"PARENT","line":129,"updated":"2015-01-29 12:38:03.000000000","message":"Those tests combinations aren\u0027t needed anymore since we\u0027re ensuring pid dir at ProcessManager constructor.\n\nTest at line 30 covers directory creation now.","commit_id":"2e5bf64a51cdcaa8be2e8a07dc74135aca8de182"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"cafd14001b862d42e3082e5f90e7e7c3e84c4e27","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import mock"},{"line_number":16,"context_line":"import os.path"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.agent.linux import external_process as ep"},{"line_number":19,"context_line":"from neutron.tests import base"}],"source_content_type":"text/x-python","patch_set":46,"id":"fa81d914_d9724610","line":16,"updated":"2015-01-30 17:47:38.000000000","message":"(no action required unless there is another issue)\n\"os\" is a standard module.","commit_id":"dcd95ee343b8d73082ad55188bb02ccffe50a0a6"}]}
