)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"45b0cfb7e91f91d61de5bedb096159f050331df6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Juergen Brendel \u003cjbrendel@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-12-12 09:07:53 +1300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Close ARP spoofing vulnerability"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"ARP cache poisoning is not actually prevented by the firewall"},{"line_number":10,"context_line":"driver \u0027iptables_firewall\u0027. We are adding the use of the ebtables"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_8af6a0f7","line":7,"updated":"2014-12-11 20:22:03.000000000","message":"If it\u0027s a vulnerability, it should have its CVE number. It does not, so probably it\u0027s not really a vulnerability but more of hardening feature.","commit_id":"db4f96eab66e587f59f8f3ac97ff48662768f71a"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"362f0039b535c61ccb3171ff12b8d0ed5823ebaf","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Juergen Brendel \u003cjbrendel@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-12-12 09:07:53 +1300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Close ARP spoofing vulnerability"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"ARP cache poisoning is not actually prevented by the firewall"},{"line_number":10,"context_line":"driver \u0027iptables_firewall\u0027. We are adding the use of the ebtables"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_9bb350e8","line":7,"in_reply_to":"3a961159_8af6a0f7","updated":"2014-12-11 22:18:08.000000000","message":"This is a good point. I think it is the latter, but I have no experience with vulnerability issues.","commit_id":"db4f96eab66e587f59f8f3ac97ff48662768f71a"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"362f0039b535c61ccb3171ff12b8d0ed5823ebaf","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Note:"},{"line_number":16,"context_line":"    This commit is based greatly on Édouard Thuleau\u0027s patch, which"},{"line_number":17,"context_line":"    he presented for review here:"},{"line_number":18,"context_line":"        https://review.openstack.org/#/c/70067/"},{"line_number":19,"context_line":"    His patch was abandoned. I have merely copied his code into the"},{"line_number":20,"context_line":"    latest code base, made a few adjustments for this purpose,"},{"line_number":21,"context_line":"    reorganized the code a little and added some tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_7b0a247a","line":18,"updated":"2014-12-11 22:18:08.000000000","message":"I have never been able to access this review. It tells me I don\u0027t have permissions. Could that be because it is related to a CVE?","commit_id":"db4f96eab66e587f59f8f3ac97ff48662768f71a"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    latest code base, made a few adjustments for this purpose,"},{"line_number":21,"context_line":"    reorganized the code a little and added some tests."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    All credit for the patch should go to Édouard."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Full spec can be found here: https://review.openstack.org/#/c/129090/"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3a961159_8f6940fb","line":23,"updated":"2014-12-22 10:47:50.000000000","message":"You should add:\n\nCo-Authored-By: ethuleau \u003c???@cloudwatt.com\u003e","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"dc6ca7726ed26f6f7ecce18d6e0de2a26a4fc5e0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Parent:     6df7f5ab (Merge \"Deletes floating agent gw port on disassociate\")"},{"line_number":2,"context_line":"Author:     Juergen Brendel \u003cjbrendel@cisco.com\u003e"},{"line_number":3,"context_line":"AuthorDate: 2014-12-12 07:54:04 +1300"},{"line_number":4,"context_line":"Commit:     Juergen Brendel \u003cjbrendel@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-09 12:48:20 +1300"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"3a961159_3e9cc3bf","line":2,"updated":"2015-01-09 00:00:10.000000000","message":"This should probably be reset to something like this in the commit.\n\nÉdouard Thuleau\u003cedouard.thuleau@cloudwatt.com\u003e","commit_id":"c7334c00b7e279307695ce86a3180bcb648a6902"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"dc6ca7726ed26f6f7ecce18d6e0de2a26a4fc5e0","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Note:"},{"line_number":16,"context_line":"    This commit is based greatly on Édouard Thuleau\u0027s patch, which"},{"line_number":17,"context_line":"    he presented for review here:"},{"line_number":18,"context_line":"        https://review.openstack.org/#/c/70067/"},{"line_number":19,"context_line":"    His patch was abandoned. I have merely copied his code into the"},{"line_number":20,"context_line":"    latest code base, made a few adjustments for this purpose,"},{"line_number":21,"context_line":"    reorganized the code a little and added some tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"3a961159_5e78af8e","line":18,"updated":"2015-01-09 00:00:10.000000000","message":"Could that patch be restored and updated and this one abandoned?  I\u0027m not able to see that patch.  I wonder if the visibility was reduced at the time because it is a vulnerability.  Maybe you can\u0027t restore that patch.\n\nAt the least, you should probably be sure to maintain him as the author in the commit and add yourself as a co-author [1].\n\n [1] https://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"c7334c00b7e279307695ce86a3180bcb648a6902"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f43492544df5c80484af11036fcbe9aacbd6e5cb","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    All credit for the patch should go to Édouard."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Full spec can be found here: https://review.openstack.org/#/c/129090/"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":33,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":20,"id":"da86d52c_b242fd3b","line":30,"updated":"2015-02-04 19:59:10.000000000","message":"(nit, optional): you can link to here now that\u0027s approved http://specs.openstack.org/openstack/neutron-specs/specs/kilo/arp-spoof-filtering-ebtables.html","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"75d7c726524d48e0142761887afe3673c602f217","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":33,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"},{"line_number":34,"context_line":"Closes-Bug: 1274034"},{"line_number":35,"context_line":"Co-Authored-By: ethuleau \u003cedouard.thuleau@cloudwatt.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"da86d52c_287bfaf5","line":34,"updated":"2015-02-04 20:54:30.000000000","message":"It should be Partial-Bug?","commit_id":"3bc43af230eab8575c0368e33c8d4dad5fd78496"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2459a9c63efc46dbb44bf0c6e44687ca89008776","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Ethernet frame filtering rules, which prevent the sending of ARP"},{"line_number":13,"context_line":"cache poisoning frames."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_b486d6d9","line":15,"updated":"2015-02-09 17:46:49.000000000","message":"Where are the other changes?  I don\u0027t see any dependent patches.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5612b984b4faa37858c2473a11f014f082586c7a","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Ethernet frame filtering rules, which prevent the sending of ARP"},{"line_number":13,"context_line":"cache poisoning frames."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_9ad65426","line":15,"in_reply_to":"da86d52c_a67ce473","updated":"2015-02-09 20:06:01.000000000","message":"It would be great to share folllow up changes even if they depend on outdated patchsets in order to understand the big picture (for the one who did not review first patchsets).","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3346e8d4ddf1d26ac7c4444f7117aaacf2e2ca66","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Ethernet frame filtering rules, which prevent the sending of ARP"},{"line_number":13,"context_line":"cache poisoning frames."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_a67ce473","line":15,"in_reply_to":"da86d52c_b486d6d9","updated":"2015-02-09 19:36:16.000000000","message":"They will get uploaded once I finally (!) get this patch through here. This has been going on for some time. Considering all the different (and often conflicting) feedback and refactoring requests I received, I need to have each stage settled and agreed upon before starting the next stage, since otherwise I\u0027m just wasting everyone\u0027s time.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2459a9c63efc46dbb44bf0c6e44687ca89008776","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    latest code base, made a few adjustments for this purpose,"},{"line_number":26,"context_line":"    reorganized the code a little and added some tests."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    All credit for the patch should go to Édouard."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Full spec can be found here: https://review.openstack.org/#/c/129090/"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_cbdc8a1b","line":28,"updated":"2015-02-09 17:46:49.000000000","message":"Why don\u0027t you reset the author to reflect this?  I don\u0027t think that mentioning the real author in the commit message is enough.  Git has a way of resetting the author.\n\nGIT_AUTHOR_EMAIL\u003dedouard.thuleau@cloudwatt.com GIT_AUTHOR_NAME\u003d\"Édouard Thuleau\" git commit --amend --reset-author","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"4a76c326647f67a826204b678c0305e2c5b77d15","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    latest code base, made a few adjustments for this purpose,"},{"line_number":26,"context_line":"    reorganized the code a little and added some tests."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    All credit for the patch should go to Édouard."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Full spec can be found here: https://review.openstack.org/#/c/129090/"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_38eee3ed","line":28,"in_reply_to":"da86d52c_cbdc8a1b","updated":"2015-02-11 21:37:28.000000000","message":"Done","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2459a9c63efc46dbb44bf0c6e44687ca89008776","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":33,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"},{"line_number":34,"context_line":"Closes-Bug: 1274034"},{"line_number":35,"context_line":"Co-Authored-By: ethuleau \u003cedouard.thuleau@cloudwatt.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_34bf46ac","line":34,"updated":"2015-02-09 17:46:49.000000000","message":"Shouldn\u0027t this be Partial-Bug?  I see a new ebtables driver and some tests but I don\u0027t see that this patch actually links it all together to do anything differently at run time.  So, how can it close a bug?","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"4a76c326647f67a826204b678c0305e2c5b77d15","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":33,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"},{"line_number":34,"context_line":"Closes-Bug: 1274034"},{"line_number":35,"context_line":"Co-Authored-By: ethuleau \u003cedouard.thuleau@cloudwatt.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_f8ce0b82","line":34,"in_reply_to":"da86d52c_06d8507e","updated":"2015-02-11 21:37:28.000000000","message":"Changed the tags to \u0027related-bug\u0027.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3346e8d4ddf1d26ac7c4444f7117aaacf2e2ca66","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":33,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"},{"line_number":34,"context_line":"Closes-Bug: 1274034"},{"line_number":35,"context_line":"Co-Authored-By: ethuleau \u003cedouard.thuleau@cloudwatt.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"da86d52c_06d8507e","line":34,"in_reply_to":"da86d52c_34bf46ac","updated":"2015-02-09 19:36:16.000000000","message":"That\u0027s right, it doesn\u0027t close the bug, since I was told to do this in patches, which independently aren\u0027t of much use.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2015-02-10 13:43:34 +1300"},{"line_number":4,"context_line":"Commit:     Juergen Brendel \u003cjbrendel@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-03-03 15:07:40 +1300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ARP spoofing patch: Low level ebtables integration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"ARP cache poisoning is not actually prevented by the firewall"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_115f47e6","line":6,"updated":"2015-03-03 15:10:56.000000000","message":"note: the comments in this file are optional. Address them only if you find them meaningful and you\u0027re going to push another patchset anyway.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Ethernet frame filtering rules, which prevent the sending of ARP"},{"line_number":13,"context_line":"cache poisoning frames."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_11d4a71e","line":15,"updated":"2015-03-03 15:10:56.000000000","message":"technically a \"patch set\" is an iteration of patch on the gerrit review system. What you are pushing are 4 distinct patches.\n\nMaybe you could state that the feature is split among a set of patches, and this is the first of the series.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Ethernet frame filtering rules, which prevent the sending of ARP"},{"line_number":13,"context_line":"cache poisoning frames."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_71b21fe6","line":15,"in_reply_to":"ba7be1f8_11d4a71e","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Note:"},{"line_number":21,"context_line":"    This commit is based greatly on an original, now abandoned patch,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_71dfa33a","line":18,"updated":"2015-03-03 15:10:56.000000000","message":"mega-pedant-nitpick: functional","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":15,"context_line":"The complete patch is broken into smaller patch sets for easier review."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"This patch set here includes the low-level ebtables integration, unit and"},{"line_number":18,"context_line":"function tests."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Note:"},{"line_number":21,"context_line":"    This commit is based greatly on an original, now abandoned patch,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_91ccf36b","line":18,"in_reply_to":"ba7be1f8_71dfa33a","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        https://review.openstack.org/#/c/70067/"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Full spec can be found here: https://review.openstack.org/#/c/129090/"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":29,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_f1bd2fb2","line":26,"updated":"2015-03-04 04:03:35.000000000","message":"The specs.openstack.org link URL is really long. It would be nice if the system would provide a shortened URL somehow, which could be used instead and therefore included in the comments without exceeding the 80char line limit.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        https://review.openstack.org/#/c/70067/"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Full spec can be found here: https://review.openstack.org/#/c/129090/"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":29,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_31a7ebbe","line":26,"updated":"2015-03-03 15:10:56.000000000","message":"the full spec can be accessed through gerrit from the gerrit-topic.\nAlso, your spec is now published on specs.openstack.org, you can use that link - it will also appear rendered as decent html.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":28,"context_line":"Change-Id: I9ef57a86b1a1c1fa4ba1a034c920f23cb40072c0"},{"line_number":29,"context_line":"Implements: blueprint arp-spoof-patch-ebtables"},{"line_number":30,"context_line":"Related-Bug: 1274034"},{"line_number":31,"context_line":"Co-Authored-By: jbrendel \u003cjbrendel@cisco.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"ba7be1f8_7184030b","line":31,"updated":"2015-03-03 15:10:56.000000000","message":"it\u0027s strange that gerrit reports you as the owner of the patch, and not Edouard.\nMeh - I really don\u0027t care about this.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"}],"etc/neutron/rootwrap.d/ebtables.filters":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2459a9c63efc46dbb44bf0c6e44687ca89008776","unresolved":false,"context_lines":[{"line_number":9,"context_line":"[Filters]"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"# neutron/agent/linux/ebtables_manager.py"},{"line_number":12,"context_line":"ebtables: CommandFilter, ebtables, root"},{"line_number":13,"context_line":"ebtablesEnv: EnvFilter, ebtables, root, EBTABLES_ATOMIC_FILE\u003d"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_a6306de9","line":12,"updated":"2015-02-09 17:46:49.000000000","message":"Do we need to do anything to let deployers or packagers know that ebtables must be installed in order to run Neutron now?","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3346e8d4ddf1d26ac7c4444f7117aaacf2e2ca66","unresolved":false,"context_lines":[{"line_number":9,"context_line":"[Filters]"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"# neutron/agent/linux/ebtables_manager.py"},{"line_number":12,"context_line":"ebtables: CommandFilter, ebtables, root"},{"line_number":13,"context_line":"ebtablesEnv: EnvFilter, ebtables, root, EBTABLES_ATOMIC_FILE\u003d"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_4ba5f145","line":12,"in_reply_to":"da86d52c_00f3d89f","updated":"2015-02-09 19:36:16.000000000","message":"How do I do that?","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5612b984b4faa37858c2473a11f014f082586c7a","unresolved":false,"context_lines":[{"line_number":9,"context_line":"[Filters]"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"# neutron/agent/linux/ebtables_manager.py"},{"line_number":12,"context_line":"ebtables: CommandFilter, ebtables, root"},{"line_number":13,"context_line":"ebtablesEnv: EnvFilter, ebtables, root, EBTABLES_ATOMIC_FILE\u003d"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_facd9087","line":12,"in_reply_to":"da86d52c_4ba5f145","updated":"2015-02-09 20:06:01.000000000","message":"According to previous patchsets providing full implementation, the feature (for the moment) cannot be disabled.\n\nsanity checks are in neutron.cmd.sanity package and neutron.cmd.sanity_check module.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"916999774fbb2c8b17390b8eba91d024608afeb1","unresolved":false,"context_lines":[{"line_number":9,"context_line":"[Filters]"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"# neutron/agent/linux/ebtables_manager.py"},{"line_number":12,"context_line":"ebtables: CommandFilter, ebtables, root"},{"line_number":13,"context_line":"ebtablesEnv: EnvFilter, ebtables, root, EBTABLES_ATOMIC_FILE\u003d"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_00f3d89f","line":12,"in_reply_to":"da86d52c_a6306de9","updated":"2015-02-09 19:01:11.000000000","message":"Add a sanity check for that.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"4a76c326647f67a826204b678c0305e2c5b77d15","unresolved":false,"context_lines":[{"line_number":9,"context_line":"[Filters]"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"# neutron/agent/linux/ebtables_manager.py"},{"line_number":12,"context_line":"ebtables: CommandFilter, ebtables, root"},{"line_number":13,"context_line":"ebtablesEnv: EnvFilter, ebtables, root, EBTABLES_ATOMIC_FILE\u003d"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_53091e2b","line":12,"in_reply_to":"da86d52c_facd9087","updated":"2015-02-11 21:37:28.000000000","message":"Done","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"}],"neutron/agent/linux/ebtables_driver.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f43492544df5c80484af11036fcbe9aacbd6e5cb","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":82,"context_line":"            continue"},{"line_number":83,"context_line":"        match \u003d _RE_FIND_BRIDGE_RULE_COUNTERS.search(line)"},{"line_number":84,"context_line":"        if table and match:"},{"line_number":85,"context_line":"            rules.append(\u0027[%s:%s] -A %s %s\u0027 % (match.group(1),"},{"line_number":86,"context_line":"                                               match.group(2),"},{"line_number":87,"context_line":"                                               chain,"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_727a4578","line":84,"updated":"2015-02-04 19:59:10.000000000","message":"I think the condition in which you have a match here but not a table cannot occur, is that correct?","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"0c8692943e707031deb903029602a721e418eeb5","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":82,"context_line":"            continue"},{"line_number":83,"context_line":"        match \u003d _RE_FIND_BRIDGE_RULE_COUNTERS.search(line)"},{"line_number":84,"context_line":"        if table and match:"},{"line_number":85,"context_line":"            rules.append(\u0027[%s:%s] -A %s %s\u0027 % (match.group(1),"},{"line_number":86,"context_line":"                                               match.group(2),"},{"line_number":87,"context_line":"                                               chain,"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_6da9848f","line":84,"in_reply_to":"da86d52c_727a4578","updated":"2015-02-04 20:23:44.000000000","message":"If the ebtables output is well formatted then it should not occur, right.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        *filter"},{"line_number":116,"context_line":"        :INPUT ACCEPT"},{"line_number":117,"context_line":"        :FORWARD ACCEPT"},{"line_number":118,"context_line":"        :OUTPUT ACCEPT"},{"line_number":119,"context_line":"        :neutron-nwfilter-spoofing-fallb ACCEPT"},{"line_number":120,"context_line":"        :neutron-nwfilter-OUTPUT ACCEPT"},{"line_number":121,"context_line":"        :neutron-nwfilter-INPUT ACCEPT"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_28605aa4","line":118,"updated":"2015-02-04 20:52:04.000000000","message":"Thanks for the docstring!","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        (\u0027filter\u0027, [\u0027-P\u0027, \u0027INPUT\u0027, \u0027ACCEPT\u0027])"},{"line_number":133,"context_line":"        (\u0027filter\u0027, [\u0027-P\u0027, \u0027FORWARD\u0027, \u0027ACCEPT\u0027])"},{"line_number":134,"context_line":"        (\u0027filter\u0027, [\u0027-P\u0027, \u0027OUTPUT\u0027, \u0027ACCEPT\u0027])"},{"line_number":135,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-spoofing-fallb\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"},{"line_number":136,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-OUTPUT\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"},{"line_number":137,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-INPUT\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"},{"line_number":138,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-FORWARD\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_6d3984f1","line":135,"updated":"2015-02-04 20:52:04.000000000","message":"Is it a valid chain name according to L45 regex?","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        (\u0027filter\u0027, [\u0027-P\u0027, \u0027INPUT\u0027, \u0027ACCEPT\u0027])"},{"line_number":133,"context_line":"        (\u0027filter\u0027, [\u0027-P\u0027, \u0027FORWARD\u0027, \u0027ACCEPT\u0027])"},{"line_number":134,"context_line":"        (\u0027filter\u0027, [\u0027-P\u0027, \u0027OUTPUT\u0027, \u0027ACCEPT\u0027])"},{"line_number":135,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-spoofing-fallb\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"},{"line_number":136,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-OUTPUT\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"},{"line_number":137,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-INPUT\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"},{"line_number":138,"context_line":"        (\u0027filter\u0027, [\u0027-N\u0027, \u0027neutron-nwfilter-FORWARD\u0027, \u0027-P\u0027, \u0027ACCEPT\u0027])"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_437bb18b","line":135,"in_reply_to":"da86d52c_6d3984f1","updated":"2015-02-04 21:15:03.000000000","message":"Yes.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    tables \u003d {\u0027filter\u0027: [\u0027INPUT\u0027, \u0027FORWARD\u0027, \u0027OUTPUT\u0027],"},{"line_number":147,"context_line":"              \u0027nat\u0027: [\u0027PREROUTING\u0027, \u0027OUTPUT\u0027, \u0027POSTROUTING\u0027],"},{"line_number":148,"context_line":"              \u0027broute\u0027: [\u0027BROUTING\u0027]}"},{"line_number":149,"context_line":"    cur_table \u003d None"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    ebtables_args \u003d list()"},{"line_number":152,"context_line":"    for line in lines.splitlines():"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_8deb1877","line":149,"updated":"2015-02-04 20:52:04.000000000","message":"please, use the same name (table/cur_table) between _process_ebtables_*","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    tables \u003d {\u0027filter\u0027: [\u0027INPUT\u0027, \u0027FORWARD\u0027, \u0027OUTPUT\u0027],"},{"line_number":147,"context_line":"              \u0027nat\u0027: [\u0027PREROUTING\u0027, \u0027OUTPUT\u0027, \u0027POSTROUTING\u0027],"},{"line_number":148,"context_line":"              \u0027broute\u0027: [\u0027BROUTING\u0027]}"},{"line_number":149,"context_line":"    cur_table \u003d None"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    ebtables_args \u003d list()"},{"line_number":152,"context_line":"    for line in lines.splitlines():"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_869776eb","line":149,"in_reply_to":"da86d52c_234f9d6c","updated":"2015-02-04 22:28:49.000000000","message":"Done","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    tables \u003d {\u0027filter\u0027: [\u0027INPUT\u0027, \u0027FORWARD\u0027, \u0027OUTPUT\u0027],"},{"line_number":147,"context_line":"              \u0027nat\u0027: [\u0027PREROUTING\u0027, \u0027OUTPUT\u0027, \u0027POSTROUTING\u0027],"},{"line_number":148,"context_line":"              \u0027broute\u0027: [\u0027BROUTING\u0027]}"},{"line_number":149,"context_line":"    cur_table \u003d None"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    ebtables_args \u003d list()"},{"line_number":152,"context_line":"    for line in lines.splitlines():"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_234f9d6c","line":149,"in_reply_to":"da86d52c_8deb1877","updated":"2015-02-04 21:15:03.000000000","message":"Ok","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"f43492544df5c80484af11036fcbe9aacbd6e5cb","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"class EbtablesCommandContext(object):"},{"line_number":189,"context_line":"    \"\"\""},{"line_number":190,"context_line":"    Helper object to simplify the running of the ebatbles command."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_125029d3","line":190,"updated":"2015-02-04 19:59:10.000000000","message":"typo: ebatbles","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"0c8692943e707031deb903029602a721e418eeb5","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"class EbtablesCommandContext(object):"},{"line_number":189,"context_line":"    \"\"\""},{"line_number":190,"context_line":"    Helper object to simplify the running of the ebatbles command."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_6d242460","line":190,"in_reply_to":"da86d52c_125029d3","updated":"2015-02-04 20:23:44.000000000","message":"Silly typo. I can fix that with an additional patch, for the next stage of the ARP fix.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"class EbtablesCommandContext(object):"},{"line_number":189,"context_line":"    \"\"\""},{"line_number":190,"context_line":"    Helper object to simplify the running of the ebatbles command."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_880ce63c","line":190,"in_reply_to":"da86d52c_6d242460","updated":"2015-02-04 20:52:04.000000000","message":"The docstring format is incorrect, it should be:\n\n  \"\"\"$title.\n\n  blah blah blah ...\n  \"\"\"","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"class EbtablesCommandContext(object):"},{"line_number":189,"context_line":"    \"\"\""},{"line_number":190,"context_line":"    Helper object to simplify the running of the ebatbles command."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_a8260acc","line":190,"in_reply_to":"da86d52c_880ce63c","updated":"2015-02-04 21:15:03.000000000","message":"I see both types of docstring used throughout Neutron.\n\nIs this issue bad enough to now go through all the docstrings in Neutron and fix them? You mentioned this particular docstring here, but other docstrings in the same file also violate this rule. I assume you mean that all of them should be changed?","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"class EbtablesCommandContext(object):"},{"line_number":189,"context_line":"    \"\"\""},{"line_number":190,"context_line":"    Helper object to simplify the running of the ebatbles command."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_a6c39aeb","line":190,"in_reply_to":"da86d52c_a6bd5ab9","updated":"2015-02-04 22:28:49.000000000","message":"Done","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"7cb5538509176f50649a80ea7d90aa2498e3069b","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"class EbtablesCommandContext(object):"},{"line_number":189,"context_line":"    \"\"\""},{"line_number":190,"context_line":"    Helper object to simplify the running of the ebatbles command."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_a6bd5ab9","line":190,"in_reply_to":"da86d52c_a8260acc","updated":"2015-02-04 22:05:23.000000000","message":"it\u0027s not a strong requirement, one is compliant with pep257 where the other (yours) seems more to follow java style (iirc).","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \u0027execute\u0027 is configurable, since different contexts (test vs."},{"line_number":198,"context_line":"        production, for example) use different executables."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        \u0027atomic_path\u0027 is used to define where ebtables should find its"},{"line_number":201,"context_line":"        \u0027atomic file\u0027. See ebtables man pages for more detail. In short:"},{"line_number":202,"context_line":"        ebtables takes operations from that file and writes results back into"},{"line_number":203,"context_line":"        that file."}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_a8b0ca43","line":200,"updated":"2015-02-04 20:52:04.000000000","message":"Do we really need an explicit atomic path? We can use tempfile.NamedTemporaryFile context instead","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \u0027execute\u0027 is configurable, since different contexts (test vs."},{"line_number":198,"context_line":"        production, for example) use different executables."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        \u0027atomic_path\u0027 is used to define where ebtables should find its"},{"line_number":201,"context_line":"        \u0027atomic file\u0027. See ebtables man pages for more detail. In short:"},{"line_number":202,"context_line":"        ebtables takes operations from that file and writes results back into"},{"line_number":203,"context_line":"        that file."}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_c33881d5","line":200,"in_reply_to":"da86d52c_a8b0ca43","updated":"2015-02-04 21:15:03.000000000","message":"I\u0027ll have a look.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \u0027execute\u0027 is configurable, since different contexts (test vs."},{"line_number":198,"context_line":"        production, for example) use different executables."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        \u0027atomic_path\u0027 is used to define where ebtables should find its"},{"line_number":201,"context_line":"        \u0027atomic file\u0027. See ebtables man pages for more detail. In short:"},{"line_number":202,"context_line":"        ebtables takes operations from that file and writes results back into"},{"line_number":203,"context_line":"        that file."}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_83068884","line":200,"in_reply_to":"da86d52c_c33881d5","updated":"2015-02-04 22:28:49.000000000","message":"Actually, the context doesn\u0027t work, since the file needs to exist across multiple ebtables invocations. Also, just need a file name, not an open file, since ebtables wants to create the file.\n\nI ended up going back to the CONF with a default value. Using this makes it unnecessary to explicitly pass around the ebtables-path for atomic files anywhere.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":233,"context_line":"        # See patch:  https://review.openstack.org/#/c/140514/3"},{"line_number":234,"context_line":"        return cmd_retry(self.execute, cmd, root_helper\u003dself.root_helper)"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def bulk_run(self, arg_list):"},{"line_number":237,"context_line":"        \"\"\""},{"line_number":238,"context_line":"        Run ebtables utility multiple times."},{"line_number":239,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_28d21a5c","line":236,"updated":"2015-02-04 20:52:04.000000000","message":"the term \"bulk\" is confusing as users can assume you run every in one command","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":233,"context_line":"        # See patch:  https://review.openstack.org/#/c/140514/3"},{"line_number":234,"context_line":"        return cmd_retry(self.execute, cmd, root_helper\u003dself.root_helper)"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def bulk_run(self, arg_list):"},{"line_number":237,"context_line":"        \"\"\""},{"line_number":238,"context_line":"        Run ebtables utility multiple times."},{"line_number":239,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_8665b61f","line":236,"in_reply_to":"da86d52c_23287d85","updated":"2015-02-04 22:28:49.000000000","message":"Done","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":233,"context_line":"        # See patch:  https://review.openstack.org/#/c/140514/3"},{"line_number":234,"context_line":"        return cmd_retry(self.execute, cmd, root_helper\u003dself.root_helper)"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def bulk_run(self, arg_list):"},{"line_number":237,"context_line":"        \"\"\""},{"line_number":238,"context_line":"        Run ebtables utility multiple times."},{"line_number":239,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_23287d85","line":236,"in_reply_to":"da86d52c_28d21a5c","updated":"2015-02-04 21:15:03.000000000","message":"Which name do you like? \"multi_run\"? Any suggestions?","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2459a9c63efc46dbb44bf0c6e44687ca89008776","unresolved":false,"context_lines":[{"line_number":36,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"# Collection of regexes to parse ebtables output"},{"line_number":39,"context_line":"_RE_FIND_BRIDGE_TABLE_NAME \u003d re.compile(r\u0027^Bridge table: ([a-z]+)$\u0027)"},{"line_number":40,"context_line":"# get chain name, nunmber of entries and policy name."},{"line_number":41,"context_line":"_RE_FIND_BRIDGE_CHAIN_INFO \u003d re.compile("},{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"}],"source_content_type":"text/x-python","patch_set":22,"id":"da86d52c_749e1eba","line":39,"updated":"2015-02-09 17:46:49.000000000","message":"Opinion:  I do like the fact that you give these regexes symbolic and meaningful names.  Also, I\u0027m sure there is some imagined performance benefit that you\u0027re trying achieve by declaring and compiling them up here at the module level.  However, consider what the rest of this module is doing:  file I/O, running multiple ebtables commands as root, etc.  Compiling a few regexes up front rather than inline below won\u0027t even show up as a factor in the performance of this module.  You won\u0027t ever notice.\n\nNow, consider the effect on the code reviewers and future code readers who are required to jump back and forth from the code below to here to read this stuff and keep it all in their heads.  Wouldn\u0027t it be clearer if the regex\u0027s were declared and compiled just before the loops where they\u0027re used below?  Only one of these seems to be shared in two places.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3346e8d4ddf1d26ac7c4444f7117aaacf2e2ca66","unresolved":false,"context_lines":[{"line_number":36,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"# Collection of regexes to parse ebtables output"},{"line_number":39,"context_line":"_RE_FIND_BRIDGE_TABLE_NAME \u003d re.compile(r\u0027^Bridge table: ([a-z]+)$\u0027)"},{"line_number":40,"context_line":"# get chain name, nunmber of entries and policy name."},{"line_number":41,"context_line":"_RE_FIND_BRIDGE_CHAIN_INFO \u003d re.compile("},{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"}],"source_content_type":"text/x-python","patch_set":22,"id":"da86d52c_264b945a","line":39,"in_reply_to":"da86d52c_749e1eba","updated":"2015-02-09 19:36:16.000000000","message":"I don\u0027t know what others are doing when they review code. I tend to have a split editor pane (I think most editors support that, right?) so I don\u0027t mind if stuff is defined all at once at a different part of the code. Vertically split panes work well, considering that we are forcing 80 char width.\n\nAlso, you can use bookmarks in the editor for the quick jump back and forth if you don\u0027t like split panes.\n\nIs this really still an issue? I like to keep those definitions here.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dfe62e2dedb560e72bdb6d5b44e18cbf63878116","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    return ebtables_args"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"class EbtablesCommandContext(object):"},{"line_number":195,"context_line":"    \"\"\"Helper object to simplify the running of the ebtables command."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    Acts as a context for the running of ebtables."}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_f0e138fd","line":194,"updated":"2015-02-27 23:15:48.000000000","message":"According to its use, this class should transformed in a method.","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    return ebtables_args"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"class EbtablesCommandContext(object):"},{"line_number":195,"context_line":"    \"\"\"Helper object to simplify the running of the ebtables command."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    Acts as a context for the running of ebtables."}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_89efaeb0","line":194,"in_reply_to":"ba7be1f8_f0e138fd","updated":"2015-03-03 02:09:17.000000000","message":"Done","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":40,"context_line":"# get chain name, nunmber of entries and policy name."},{"line_number":41,"context_line":"_RE_FIND_BRIDGE_CHAIN_INFO \u003d re.compile("},{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"},{"line_number":43,"context_line":"                                \u0027policy: ([A-Z]+)$\u0027)"},{"line_number":44,"context_line":"_RE_FIND_BRIDGE_RULE_COUNTERS \u003d re.compile("},{"line_number":45,"context_line":"                                   r\u0027, pcnt \u003d ([0-9]+) -- bcnt \u003d ([0-9]+)$\u0027)"},{"line_number":46,"context_line":"_RE_FIND_COMMIT_STATEMENT \u003d re.compile(r\u0027^COMMIT$\u0027)"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_34cd1932","line":43,"updated":"2015-03-03 15:10:56.000000000","message":"it does not seem you\u0027re using the re.IGNORECASE flag. Does this mean policies are always capital letters?","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f35e2b9f03b1fc4f4a9bfbbdac04567ff2163e32","unresolved":false,"context_lines":[{"line_number":40,"context_line":"# get chain name, nunmber of entries and policy name."},{"line_number":41,"context_line":"_RE_FIND_BRIDGE_CHAIN_INFO \u003d re.compile("},{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"},{"line_number":43,"context_line":"                                \u0027policy: ([A-Z]+)$\u0027)"},{"line_number":44,"context_line":"_RE_FIND_BRIDGE_RULE_COUNTERS \u003d re.compile("},{"line_number":45,"context_line":"                                   r\u0027, pcnt \u003d ([0-9]+) -- bcnt \u003d ([0-9]+)$\u0027)"},{"line_number":46,"context_line":"_RE_FIND_COMMIT_STATEMENT \u003d re.compile(r\u0027^COMMIT$\u0027)"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_956958fb","line":43,"in_reply_to":"ba7be1f8_34cd1932","updated":"2015-03-03 17:49:12.000000000","message":"It seems the various elements in the rules are case sensitive. Just confirmed with a small test: Doesn\u0027t like it when you change the case, can\u0027t recognize the rule. So, not ignoring the case seems to be the right thing.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"},{"line_number":43,"context_line":"                                \u0027policy: ([A-Z]+)$\u0027)"},{"line_number":44,"context_line":"_RE_FIND_BRIDGE_RULE_COUNTERS \u003d re.compile("},{"line_number":45,"context_line":"                                   r\u0027, pcnt \u003d ([0-9]+) -- bcnt \u003d ([0-9]+)$\u0027)"},{"line_number":46,"context_line":"_RE_FIND_COMMIT_STATEMENT \u003d re.compile(r\u0027^COMMIT$\u0027)"},{"line_number":47,"context_line":"_RE_FIND_COMMENTS_AND_BLANKS \u003d re.compile(r\u0027^#|^$\u0027)"},{"line_number":48,"context_line":"_RE_FIND_APPEND_RULE \u003d re.compile(r\u0027^-A (\\S+) \u0027)"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_144bb587","line":45,"updated":"2015-03-03 15:10:56.000000000","message":"I am bit concerned that these regexes depend on the formatting of ebtables output a bit too much.. can we at least make whitespaces around the \u0027\u003d\u0027 operator optional?","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f35e2b9f03b1fc4f4a9bfbbdac04567ff2163e32","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"},{"line_number":43,"context_line":"                                \u0027policy: ([A-Z]+)$\u0027)"},{"line_number":44,"context_line":"_RE_FIND_BRIDGE_RULE_COUNTERS \u003d re.compile("},{"line_number":45,"context_line":"                                   r\u0027, pcnt \u003d ([0-9]+) -- bcnt \u003d ([0-9]+)$\u0027)"},{"line_number":46,"context_line":"_RE_FIND_COMMIT_STATEMENT \u003d re.compile(r\u0027^COMMIT$\u0027)"},{"line_number":47,"context_line":"_RE_FIND_COMMENTS_AND_BLANKS \u003d re.compile(r\u0027^#|^$\u0027)"},{"line_number":48,"context_line":"_RE_FIND_APPEND_RULE \u003d re.compile(r\u0027^-A (\\S+) \u0027)"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_1523a8bd","line":45,"in_reply_to":"ba7be1f8_144bb587","updated":"2015-03-03 17:49:12.000000000","message":"I\u0027ll add that.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                                r\u0027^Bridge chain: (.*), entries: [0-9]+, \u0027"},{"line_number":43,"context_line":"                                \u0027policy: ([A-Z]+)$\u0027)"},{"line_number":44,"context_line":"_RE_FIND_BRIDGE_RULE_COUNTERS \u003d re.compile("},{"line_number":45,"context_line":"                                   r\u0027, pcnt \u003d ([0-9]+) -- bcnt \u003d ([0-9]+)$\u0027)"},{"line_number":46,"context_line":"_RE_FIND_COMMIT_STATEMENT \u003d re.compile(r\u0027^COMMIT$\u0027)"},{"line_number":47,"context_line":"_RE_FIND_COMMENTS_AND_BLANKS \u003d re.compile(r\u0027^#|^$\u0027)"},{"line_number":48,"context_line":"_RE_FIND_APPEND_RULE \u003d re.compile(r\u0027^-A (\\S+) \u0027)"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_31e347da","line":45,"in_reply_to":"ba7be1f8_1523a8bd","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"d0053f21d8bb9208868ffa9aa2643f57a7dfd7d9","unresolved":false,"context_lines":[{"line_number":216,"context_line":"    return cmd_retry(execute, cmd, **{\"run_as_root\": True})"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"def run_ebtables_multiple(namespace, execute, arg_list):"},{"line_number":220,"context_line":"    \"\"\"Run ebtables utility multiple times."},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"    Similar to run(), but runs ebtables for every element in arg_list."}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_3d4bc32c","line":219,"updated":"2015-03-04 22:22:17.000000000","message":"(No action required.) Nit: Perhaps \"batch\" would be better than \"multiple\".","commit_id":"2a306dabe9063f3321304bb7f492fabfe5bf79e8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"375503ac2b8489e2e3dd58614f685d7c8fe8ba3e","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo_config import cfg"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from neutron.agent.linux.utils import cmd_retry"},{"line_number":24,"context_line":"from neutron.common import utils"},{"line_number":25,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_cf455616","line":23,"updated":"2015-03-12 06:15:15.000000000","message":"we usually import only modules, not a function.","commit_id":"7a255c4cc3c69a31322d2e025672a284fecbf1fc"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"a7bb9eadcbe0dc5dba261d6217965e2a359fcd25","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo_config import cfg"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from neutron.agent.linux.utils import cmd_retry"},{"line_number":24,"context_line":"from neutron.common import utils"},{"line_number":25,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_802ce7ad","line":23,"in_reply_to":"9a80dd14_cf455616","updated":"2015-03-12 21:43:34.000000000","message":"Done","commit_id":"7a255c4cc3c69a31322d2e025672a284fecbf1fc"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"23af58939a52d3ed675e7e4dff82a73d2d8c1527","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    table \u003d None"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    ebtables_args \u003d list()"},{"line_number":158,"context_line":"    for line in lines.splitlines():"},{"line_number":159,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":160,"context_line":"            continue"},{"line_number":161,"context_line":"        match \u003d _RE_RULES_FIND_RULE_LINE.search(line)"}],"source_content_type":"text/x-python","patch_set":44,"id":"9a80dd14_cf96b13d","line":158,"updated":"2015-03-20 18:54:15.000000000","message":"break these matches out into individual functions that handle the regex and parsing for each condition and write a UT for each. It also makes it easier to understand what this loop is doing.\n\nThis loop should just be focused on calling those functions and appending the resulting rules to the ebtables_args","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"e72c63163d2dc8a290acf3e3f5d6106fc4b7f912","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    table \u003d None"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    ebtables_args \u003d list()"},{"line_number":158,"context_line":"    for line in lines.splitlines():"},{"line_number":159,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":160,"context_line":"            continue"},{"line_number":161,"context_line":"        match \u003d _RE_RULES_FIND_RULE_LINE.search(line)"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa963961_4668c9f5","line":158,"in_reply_to":"9a80dd14_cf96b13d","updated":"2015-03-27 04:07:40.000000000","message":"Done","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"}],"neutron/agent/linux/ebtables_lowlevel.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"8429296f030075645549085712cda5ca752bafac","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        self.namespace \u003d namespace"},{"line_number":105,"context_line":"        self.root_helper \u003d root_helper"},{"line_number":106,"context_line":"        self.execute \u003d execute"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def _cmd_retry(self, func, *args, **kwargs):"},{"line_number":110,"context_line":"        \"\"\"Repeatedly try a function with exponential back-off."}],"source_content_type":"text/x-python","patch_set":17,"id":"da86d52c_ee13dc0a","line":107,"updated":"2015-02-03 20:15:17.000000000","message":"pep8 is failing you for having 3 blank lines instead of 2 here.","commit_id":"e4eb90416fa4644716b60d864202e9348c32aa41"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_a2065484","line":1,"updated":"2015-02-03 23:11:32.000000000","message":"etables_driver as module name would be better.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ca409ba7","line":1,"in_reply_to":"da86d52c_a2065484","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"ebtables_opts \u003d ["},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027ebtables_path\u0027,"},{"line_number":38,"context_line":"               default\u003d\u0027$state_path/ebtables-\u0027,"},{"line_number":39,"context_line":"               help\u003d_(\u0027Location of temporary ebtables table files.\u0027)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_7f8eb7d1","line":36,"updated":"2015-02-03 23:11:32.000000000","message":"The option is not used for the moment, no need to define it","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"ebtables_opts \u003d ["},{"line_number":37,"context_line":"    cfg.StrOpt(\u0027ebtables_path\u0027,"},{"line_number":38,"context_line":"               default\u003d\u0027$state_path/ebtables-\u0027,"},{"line_number":39,"context_line":"               help\u003d_(\u0027Location of temporary ebtables table files.\u0027)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ea3d5f2c","line":36,"in_reply_to":"da86d52c_7f8eb7d1","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":55,"context_line":"_RE_FIND_APPEND_RULE \u003d re.compile(r\u0027^-A (\\S+) \u0027)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"# Regexes to parse ebtables rule file input"},{"line_number":58,"context_line":"_RE_RULES_FIND_TABLE_NAME \u003d re.compile(r\u0027^\\*([a-z]+)$\u0027)"},{"line_number":59,"context_line":"_RE_RULES_FIND_CHAIN_NAME \u003d re.compile(r\u0027^:(.*) ([A-Z]+)$\u0027)"},{"line_number":60,"context_line":"_RE_RULES_FIND_RULE_LINE \u003d re.compile(r\u0027^\\[([0-9]+):([0-9]+)\\]\u0027)"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_22742467","line":58,"updated":"2015-02-03 23:11:32.000000000","message":"_- are not accepted as table/chain names?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":55,"context_line":"_RE_FIND_APPEND_RULE \u003d re.compile(r\u0027^-A (\\S+) \u0027)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"# Regexes to parse ebtables rule file input"},{"line_number":58,"context_line":"_RE_RULES_FIND_TABLE_NAME \u003d re.compile(r\u0027^\\*([a-z]+)$\u0027)"},{"line_number":59,"context_line":"_RE_RULES_FIND_CHAIN_NAME \u003d re.compile(r\u0027^:(.*) ([A-Z]+)$\u0027)"},{"line_number":60,"context_line":"_RE_RULES_FIND_RULE_LINE \u003d re.compile(r\u0027^\\[([0-9]+):([0-9]+)\\]\u0027)"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_cd8ff928","line":58,"in_reply_to":"da86d52c_22742467","updated":"2015-02-03 23:28:38.000000000","message":"I\u0027m just relying on ethuleau\u0027s findings. Something prompted him to do this. Is there a loss or problem if we don\u0027t allow _?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":60,"context_line":"_RE_RULES_FIND_RULE_LINE \u003d re.compile(r\u0027^\\[([0-9]+):([0-9]+)\\]\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def _binary_name(cls):"},{"line_number":64,"context_line":"    \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_1f793bc8","line":63,"updated":"2015-02-03 23:11:32.000000000","message":"you cannot reuse an existing implementation? (iptables one?)\n\nbtw, cls is useless","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":60,"context_line":"_RE_RULES_FIND_RULE_LINE \u003d re.compile(r\u0027^\\[([0-9]+):([0-9]+)\\]\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def _binary_name(cls):"},{"line_number":64,"context_line":"    \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_2a44d7b5","line":63,"in_reply_to":"da86d52c_08f73ff6","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":60,"context_line":"_RE_RULES_FIND_RULE_LINE \u003d re.compile(r\u0027^\\[([0-9]+):([0-9]+)\\]\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def _binary_name(cls):"},{"line_number":64,"context_line":"    \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_2da5f5a1","line":63,"in_reply_to":"da86d52c_1f793bc8","updated":"2015-02-03 23:28:38.000000000","message":"Yeah, cls is useless because I forgot to remove it. At any rate, isn\u0027t there a tradeoff at some point between complexity introduced by importing some complex module vs. copying a one-line (!) function?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"7957b3bfc2fdbcacec9b3785c398805a1a055603","unresolved":false,"context_lines":[{"line_number":60,"context_line":"_RE_RULES_FIND_RULE_LINE \u003d re.compile(r\u0027^\\[([0-9]+):([0-9]+)\\]\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def _binary_name(cls):"},{"line_number":64,"context_line":"    \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_08f73ff6","line":63,"in_reply_to":"da86d52c_2da5f5a1","updated":"2015-02-03 23:52:57.000000000","message":"When a developer corrects a method implementation, i doubt he search duplicates and updates (if needed) their implementations.\n\nPS: the method is not used for the moment, no need to define it","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def _process_ebtables_output(lines):"},{"line_number":69,"context_line":"    table \u003d None"},{"line_number":70,"context_line":"    chain \u003d \u0027\u0027"},{"line_number":71,"context_line":"    chains \u003d [\u0027\u0027]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_3f0b5f2b","line":68,"updated":"2015-02-03 23:11:32.000000000","message":"Could you add a docstring? As it\u0027s unclear why we transform ebtables raw output into (raw) strings\n\nAn example would be great (like in l187)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def _process_ebtables_output(lines):"},{"line_number":69,"context_line":"    table \u003d None"},{"line_number":70,"context_line":"    chain \u003d \u0027\u0027"},{"line_number":71,"context_line":"    chains \u003d [\u0027\u0027]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_4a14ab9f","line":68,"in_reply_to":"da86d52c_2dcc156a","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    return os.path.basename(inspect.stack()[-1][1])"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def _process_ebtables_output(lines):"},{"line_number":69,"context_line":"    table \u003d None"},{"line_number":70,"context_line":"    chain \u003d \u0027\u0027"},{"line_number":71,"context_line":"    chains \u003d [\u0027\u0027]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_2dcc156a","line":68,"in_reply_to":"da86d52c_3f0b5f2b","updated":"2015-02-03 23:28:38.000000000","message":"I\u0027ll add something.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    chains \u003d [\u0027\u0027]"},{"line_number":72,"context_line":"    rules \u003d [\u0027\u0027]"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    for line in lines:"},{"line_number":75,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":76,"context_line":"            continue"},{"line_number":77,"context_line":"        match \u003d _RE_FIND_BRIDGE_RULE_COUNTERS.search(line)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_42011837","line":74,"updated":"2015-02-03 23:11:32.000000000","message":"it seems wrong to parse line by line when rules are defined on 2 lines.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    chains \u003d [\u0027\u0027]"},{"line_number":72,"context_line":"    rules \u003d [\u0027\u0027]"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    for line in lines:"},{"line_number":75,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":76,"context_line":"            continue"},{"line_number":77,"context_line":"        match \u003d _RE_FIND_BRIDGE_RULE_COUNTERS.search(line)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_edae7d80","line":74,"in_reply_to":"da86d52c_42011837","updated":"2015-02-03 23:28:38.000000000","message":"For some reason it works, though.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"e0efa14c3595479a90dddfe95000d53cca72b9ae","unresolved":false,"context_lines":[{"line_number":99,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    \"\"\""},{"line_number":102,"context_line":"    def __init__(self, namespace, root_helper, execute, atomic_path\u003dNone):"},{"line_number":103,"context_line":"        self.atomic_path \u003d atomic_path"},{"line_number":104,"context_line":"        self.namespace \u003d namespace"},{"line_number":105,"context_line":"        self.root_helper \u003d root_helper"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_2d9895bf","line":102,"updated":"2015-02-03 23:30:29.000000000","message":"Why execute is configurable?\n\natomic_path attribute is unclear to me","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":99,"context_line":"    Acts as a context for the running of ebtables."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    \"\"\""},{"line_number":102,"context_line":"    def __init__(self, namespace, root_helper, execute, atomic_path\u003dNone):"},{"line_number":103,"context_line":"        self.atomic_path \u003d atomic_path"},{"line_number":104,"context_line":"        self.namespace \u003d namespace"},{"line_number":105,"context_line":"        self.root_helper \u003d root_helper"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_aa0fe786","line":102,"in_reply_to":"da86d52c_2d9895bf","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.root_helper \u003d root_helper"},{"line_number":106,"context_line":"        self.execute \u003d execute"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _cmd_retry(self, func, *args, **kwargs):"},{"line_number":109,"context_line":"        \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        Execute the passed in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_02eba0b0","line":108,"updated":"2015-02-03 23:11:32.000000000","message":"imo, such helper method should not be defined in the class (nor the module?)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.root_helper \u003d root_helper"},{"line_number":106,"context_line":"        self.execute \u003d execute"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _cmd_retry(self, func, *args, **kwargs):"},{"line_number":109,"context_line":"        \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        Execute the passed in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ad064584","line":108,"in_reply_to":"da86d52c_02eba0b0","updated":"2015-02-03 23:28:38.000000000","message":"I agree. But which module should they be defined in? There have been some other implementations of retry in specific modules (they were a bit too specific for me). Is there a good place where such modules should go? Or should I just start a generic \u0027utils\u0027 type of module in agent/linux?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.root_helper \u003d root_helper"},{"line_number":106,"context_line":"        self.execute \u003d execute"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _cmd_retry(self, func, *args, **kwargs):"},{"line_number":109,"context_line":"        \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        Execute the passed in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_bef72cd2","line":108,"in_reply_to":"da86d52c_ad064584","updated":"2015-02-04 18:17:07.000000000","message":"I placed this function now in agent/linux/utils.py\n\nDone","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"e0efa14c3595479a90dddfe95000d53cca72b9ae","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                fail_count +\u003d 1"},{"line_number":131,"context_line":"                time.sleep(sleep_time)"},{"line_number":132,"context_line":"                sleep_time *\u003d 2"},{"line_number":133,"context_line":"        LOG.error(_LE(\"%d attempts to run function failed...\") % fail_count)"},{"line_number":134,"context_line":"        raise Exception(\"Retry error\")"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def run(self, table, args):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_6dbc4d07","line":133,"updated":"2015-02-03 23:30:29.000000000","message":"you should use:\n\n  LOG.error(_LE(...), fail_count)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                fail_count +\u003d 1"},{"line_number":131,"context_line":"                time.sleep(sleep_time)"},{"line_number":132,"context_line":"                sleep_time *\u003d 2"},{"line_number":133,"context_line":"        LOG.error(_LE(\"%d attempts to run function failed...\") % fail_count)"},{"line_number":134,"context_line":"        raise Exception(\"Retry error\")"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def run(self, table, args):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_4a7bcbf4","line":133,"in_reply_to":"da86d52c_6dbc4d07","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        cmd +\u003d args"},{"line_number":148,"context_line":"        if self.namespace:"},{"line_number":149,"context_line":"            cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027exec\u0027, self.namespace] + cmd"},{"line_number":150,"context_line":"        # TODO(ethuleau): the root helper is use for every ebtables command,"},{"line_number":151,"context_line":"        #                 but as we use an atomic file we only need root for"},{"line_number":152,"context_line":"        #                 init and commit commands."},{"line_number":153,"context_line":"        #                 But the generated file by init ebtables command is"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_82715046","line":150,"updated":"2015-02-03 23:11:32.000000000","message":"TODO($you)  :)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        cmd +\u003d args"},{"line_number":148,"context_line":"        if self.namespace:"},{"line_number":149,"context_line":"            cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027exec\u0027, self.namespace] + cmd"},{"line_number":150,"context_line":"        # TODO(ethuleau): the root helper is use for every ebtables command,"},{"line_number":151,"context_line":"        #                 but as we use an atomic file we only need root for"},{"line_number":152,"context_line":"        #                 init and commit commands."},{"line_number":153,"context_line":"        #                 But the generated file by init ebtables command is"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_cd0b798c","line":150,"in_reply_to":"da86d52c_82715046","updated":"2015-02-03 23:28:38.000000000","message":"Guess so.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        cmd +\u003d args"},{"line_number":148,"context_line":"        if self.namespace:"},{"line_number":149,"context_line":"            cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027exec\u0027, self.namespace] + cmd"},{"line_number":150,"context_line":"        # TODO(ethuleau): the root helper is use for every ebtables command,"},{"line_number":151,"context_line":"        #                 but as we use an atomic file we only need root for"},{"line_number":152,"context_line":"        #                 init and commit commands."},{"line_number":153,"context_line":"        #                 But the generated file by init ebtables command is"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_6a808fc0","line":150,"in_reply_to":"da86d52c_cd0b798c","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"e0efa14c3595479a90dddfe95000d53cca72b9ae","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    \"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    save_output \u003d list()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper, execute)"},{"line_number":171,"context_line":"    for table_name in tables_names:"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ad1485a0","line":168,"updated":"2015-02-03 23:30:29.000000000","message":"should we use an iterator to avoid building save_output and after joining its content in order to process on the fly?\n\n ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper, execute)\n raw_outputs \u003d (ebt_ctx.run(t, [\u0027-L\u0027, \u0027--Lc\u0027]).split(\u0027\\n\u0027) for t in table_names)\n parsed_outputs \u003d (_process_ebtables_output(lines) for lines in raw_outputs)\n return \u0027\\n\u0027.join(l for lines in parsed_outputs for l in lines)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    \"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    save_output \u003d list()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper, execute)"},{"line_number":171,"context_line":"    for table_name in tables_names:"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ead9dff3","line":168,"in_reply_to":"da86d52c_ad1485a0","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"e0efa14c3595479a90dddfe95000d53cca72b9ae","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper, execute)"},{"line_number":171,"context_line":"    for table_name in tables_names:"},{"line_number":172,"context_line":"        lines \u003d ebt_ctx.run(table_name, [\u0027-L\u0027, \u0027--Lc\u0027]).split(\u0027\\n\u0027)"},{"line_number":173,"context_line":"        save_output.extend(_process_ebtables_output(lines))"},{"line_number":174,"context_line":"    return \u0027\u0027.join(save_output)[:-1]"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_8dc34156","line":172,"updated":"2015-02-03 23:30:29.000000000","message":"splitlines seems safer than split(\u0027\\n\u0027)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper, execute)"},{"line_number":171,"context_line":"    for table_name in tables_names:"},{"line_number":172,"context_line":"        lines \u003d ebt_ctx.run(table_name, [\u0027-L\u0027, \u0027--Lc\u0027]).split(\u0027\\n\u0027)"},{"line_number":173,"context_line":"        save_output.extend(_process_ebtables_output(lines))"},{"line_number":174,"context_line":"    return \u0027\u0027.join(save_output)[:-1]"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_7e5a142b","line":172,"in_reply_to":"da86d52c_8dc34156","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"e0efa14c3595479a90dddfe95000d53cca72b9ae","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    for table_name in tables_names:"},{"line_number":172,"context_line":"        lines \u003d ebt_ctx.run(table_name, [\u0027-L\u0027, \u0027--Lc\u0027]).split(\u0027\\n\u0027)"},{"line_number":173,"context_line":"        save_output.extend(_process_ebtables_output(lines))"},{"line_number":174,"context_line":"    return \u0027\u0027.join(save_output)[:-1]"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"@utils.synchronized(\u0027ebtables\u0027, external\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_6dc60d6a","line":174,"updated":"2015-02-03 23:30:29.000000000","message":"The correct approach is to build lines without \\n and use \u0027\\n\u0027.join(...) to avoid the [:-1].","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    for table_name in tables_names:"},{"line_number":172,"context_line":"        lines \u003d ebt_ctx.run(table_name, [\u0027-L\u0027, \u0027--Lc\u0027]).split(\u0027\\n\u0027)"},{"line_number":173,"context_line":"        save_output.extend(_process_ebtables_output(lines))"},{"line_number":174,"context_line":"    return \u0027\u0027.join(save_output)[:-1]"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"@utils.synchronized(\u0027ebtables\u0027, external\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_cadc1be7","line":174,"in_reply_to":"da86d52c_6dc60d6a","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"3285d000bab0b5dc372153682128127b1a96da67","unresolved":false,"context_lines":[{"line_number":175,"context_line":""},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"@utils.synchronized(\u0027ebtables\u0027, external\u003dTrue)"},{"line_number":178,"context_line":"def ebtables_restore(lines, ebtables_path, execute, root_helper,"},{"line_number":179,"context_line":"                     namespace\u003dNone):"},{"line_number":180,"context_line":"    \"\"\"Import text ebtables rules. Similar to iptables-restore."},{"line_number":181,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_c8da874b","line":178,"updated":"2015-02-04 00:04:13.000000000","message":"This method as written is unnecessarily complicated and will be difficult to maintain and test.  As per my response to Cedric\u0027s email on the subject, please refactor such that a clean separation between parsing and rule application is possible.  I don\u0027t want to see mock-based testing of this either.  It should be possible for each type of line match to be tested in isolation and then functional testing can ensure that it all ties together.\n\nPlease reach out to me if these instructions are not clear and I\u0027ll be happy to explain further.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":175,"context_line":""},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"@utils.synchronized(\u0027ebtables\u0027, external\u003dTrue)"},{"line_number":178,"context_line":"def ebtables_restore(lines, ebtables_path, execute, root_helper,"},{"line_number":179,"context_line":"                     namespace\u003dNone):"},{"line_number":180,"context_line":"    \"\"\"Import text ebtables rules. Similar to iptables-restore."},{"line_number":181,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_2a4937b7","line":178,"in_reply_to":"da86d52c_c8da874b","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper,"},{"line_number":210,"context_line":"                                     execute, ebtables_path)"},{"line_number":211,"context_line":"    for line in lines.split(\u0027\\n\u0027):"},{"line_number":212,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":213,"context_line":"            continue"},{"line_number":214,"context_line":"        match \u003d _RE_RULES_FIND_RULE_LINE.search(line)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_a21494a0","line":211,"updated":"2015-02-03 23:11:32.000000000","message":"to move in a _process_ebtables_input method?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper,"},{"line_number":210,"context_line":"                                     execute, ebtables_path)"},{"line_number":211,"context_line":"    for line in lines.split(\u0027\\n\u0027):"},{"line_number":212,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":213,"context_line":"            continue"},{"line_number":214,"context_line":"        match \u003d _RE_RULES_FIND_RULE_LINE.search(line)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ad2d6500","line":211,"in_reply_to":"da86d52c_a21494a0","updated":"2015-02-03 23:28:38.000000000","message":"For symmetry reasons? Yeah, I agree, that would look nicer.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    ebt_ctx \u003d EbtablesCommandContext(namespace, root_helper,"},{"line_number":210,"context_line":"                                     execute, ebtables_path)"},{"line_number":211,"context_line":"    for line in lines.split(\u0027\\n\u0027):"},{"line_number":212,"context_line":"        if _RE_FIND_COMMENTS_AND_BLANKS.search(line):"},{"line_number":213,"context_line":"            continue"},{"line_number":214,"context_line":"        match \u003d _RE_RULES_FIND_RULE_LINE.search(line)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_be3f2cb3","line":211,"in_reply_to":"da86d52c_ad2d6500","updated":"2015-02-04 18:17:07.000000000","message":"Done","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"}],"neutron/agent/linux/ebtables_manager.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b961c1bfb9767f5126735071543a4a8314981dca","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    if not tables:"},{"line_number":60,"context_line":"        tables \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":61,"context_line":"    ebtables_save \u003d \"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _process_table(lines):"},{"line_number":64,"context_line":"        table \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_07c4d03e","line":61,"updated":"2014-12-17 08:56:24.000000000","message":"build this as a list and then join the list at the end. building strings with concatenation is not awesome in python","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"e0f98d2449be45e54034ab1b09477252330085f7","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    if not tables:"},{"line_number":60,"context_line":"        tables \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":61,"context_line":"    ebtables_save \u003d \"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _process_table(lines):"},{"line_number":64,"context_line":"        table \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_39bd61d8","line":61,"in_reply_to":"3a961159_07c4d03e","updated":"2014-12-18 21:31:32.000000000","message":"I\u0027ve change this to use lists now, but there are a lot of little oddities like the ones you\u0027ve pointed out in the code. I didn\u0027t originally write it and I haven\u0027t gone over it yet to fix those. At this point, it\u0027s expected to be throw-away code anyway, until the tables related code in Neutron is re-designed from scratch. So, I\u0027m not sure how much effort will be spent in ironing out smaller kinks in this code.","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b961c1bfb9767f5126735071543a4a8314981dca","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        tables \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":61,"context_line":"    ebtables_save \u003d \"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _process_table(lines):"},{"line_number":64,"context_line":"        table \u003d None"},{"line_number":65,"context_line":"        chains \u003d \u0027\u0027"},{"line_number":66,"context_line":"        chain \u003d \u0027\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_27bf0cac","line":63,"updated":"2014-12-17 08:56:24.000000000","message":"is there a reason this needs to be a nested function? it doesn\u0027t seem to be a closure...\n\nIf not, please move it out so the parent function is very simple.","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"e0f98d2449be45e54034ab1b09477252330085f7","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        tables \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":61,"context_line":"    ebtables_save \u003d \"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _process_table(lines):"},{"line_number":64,"context_line":"        table \u003d None"},{"line_number":65,"context_line":"        chains \u003d \u0027\u0027"},{"line_number":66,"context_line":"        chain \u003d \u0027\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_42704672","line":63,"in_reply_to":"3a961159_27bf0cac","updated":"2014-12-18 21:31:32.000000000","message":"Done","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b961c1bfb9767f5126735071543a4a8314981dca","unresolved":false,"context_lines":[{"line_number":143,"context_line":"            args \u003d line[match.end():].split()"},{"line_number":144,"context_line":"            _run_ebtables_cmd(cur_table, args)"},{"line_number":145,"context_line":"            if int(match.group(1)) \u003e 0 and int(match.group(2)) \u003e 0:"},{"line_number":146,"context_line":"                p \u003d re.compile(\u0027^-A (\\S+) \u0027)"},{"line_number":147,"context_line":"                rule \u003d p.sub(r\u0027-C \\1 %s %s \u0027, line[match.end() + 1:])"},{"line_number":148,"context_line":"                args \u003d (rule % (match.group(1), match.group(2))).split()"},{"line_number":149,"context_line":"                _run_ebtables_cmd(cur_table, args)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_47ddf813","line":146,"updated":"2014-12-17 08:56:24.000000000","message":"These regexes are essentially black boxes for those not familiar with ebtables. Can you separate them out into helper functions with descriptive names of what they are checking for?","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b961c1bfb9767f5126735071543a4a8314981dca","unresolved":false,"context_lines":[{"line_number":178,"context_line":"    #                 as a prefix, so we limit it to 19 characters."},{"line_number":179,"context_line":"    MAX_LEN_PREFIX_CHAIN \u003d MAX_CHAIN_LEN_EBTABLES - len(\u0027-POSTROUTING\u0027)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    @classmethod"},{"line_number":182,"context_line":"    def binary_name(cls):"},{"line_number":183,"context_line":"        \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":184,"context_line":"        return os.path.basename(inspect.stack()[-1][1])"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_67e034cd","line":181,"updated":"2014-12-17 08:56:24.000000000","message":"this doesn\u0027t need the class. @staticmethod","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b961c1bfb9767f5126735071543a4a8314981dca","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    @classmethod"},{"line_number":182,"context_line":"    def binary_name(cls):"},{"line_number":183,"context_line":"        \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":184,"context_line":"        return os.path.basename(inspect.stack()[-1][1])"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def _get_prefix_chain(self, prefix_chain\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_87e7e0e3","line":183,"updated":"2014-12-17 08:56:24.000000000","message":"doesn\u0027t sys.argv[0] work here?","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"e0f98d2449be45e54034ab1b09477252330085f7","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    @classmethod"},{"line_number":182,"context_line":"    def binary_name(cls):"},{"line_number":183,"context_line":"        \"\"\"Grab the name of the binary we\u0027re running in.\"\"\""},{"line_number":184,"context_line":"        return os.path.basename(inspect.stack()[-1][1])"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def _get_prefix_chain(self, prefix_chain\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_824f8e33","line":183,"in_reply_to":"3a961159_87e7e0e3","updated":"2014-12-18 21:31:32.000000000","message":"Actually, the two give different outputs. There is something in the way that tests are run (runpy?) which can result in sys.argv[0] producing different output.","commit_id":"999f23657475b21fc0a7ffdce0c5c459f992ed50"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright (c) 2014 OpenStack Foundation."},{"line_number":4,"context_line":"# All Rights Reserved."}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_ef5e4444","line":1,"updated":"2014-12-22 10:47:50.000000000","message":"First line to remove","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"#    under the License."},{"line_number":17,"context_line":"#"},{"line_number":18,"context_line":"# based on"},{"line_number":19,"context_line":"#   neutron/agent/linux/iptables_manager.py"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"\"\"\"Implements ebtables rules using linux utilities.\"\"\""},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_8f3780fe","line":19,"updated":"2014-12-22 10:47:50.000000000","message":"Not sure we need it ... if we do, then it should be in the docstring","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    return re.compile(\u0027^-A (\\S+) \u0027)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"# Assemble rules for processing ebtables output"},{"line_number":78,"context_line":"output_rule_exprs \u003d {\u0027table\u0027: _re_find_bridge_table_name(),"},{"line_number":79,"context_line":"                     \u0027chain\u0027: _re_find_bridge_chain_info(),"},{"line_number":80,"context_line":"                     \u0027rule\u0027: _re_find_bridge_rule_counters(),"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_b26bbfb7","line":77,"updated":"2014-12-22 10:47:50.000000000","message":"I would prefer you define constants instead of a dict of constants: it is clearer and faster.\n\n_re_* functions could be replaced by a comment on the line before constant definition.","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"# Assemble regexes to parse command file"},{"line_number":98,"context_line":"rule_file_exprs \u003d {\u0027table\u0027: _re_rules_find_table_name(),"},{"line_number":99,"context_line":"                   \u0027chain\u0027: _re_rules_find_chain_name(),"},{"line_number":100,"context_line":"                   \u0027rule\u0027: _re_rules_find_rule_line(),"},{"line_number":101,"context_line":"                   \u0027commit\u0027: _re_find_commit_statement(),"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_b21d7f64","line":98,"updated":"2014-12-22 10:47:50.000000000","message":"itto","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    \"\"\""},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    if not tables:"},{"line_number":143,"context_line":"        tables \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":144,"context_line":"    ebtables_save \u003d \"\""},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_d284cb0c","line":142,"updated":"2014-12-22 10:47:50.000000000","message":"YAGNI","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    if not tables:"},{"line_number":143,"context_line":"        tables \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":144,"context_line":"    ebtables_save \u003d \"\""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    for table in tables:"},{"line_number":147,"context_line":"        args \u003d [\u0027ebtables\u0027, \u0027-t\u0027, table, \u0027-L\u0027, \u0027--Lc\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_32c50f5c","line":144,"updated":"2014-12-22 10:47:50.000000000","message":"the variable and the function share the same name (sick)","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        if namespace:"},{"line_number":149,"context_line":"            args \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027exec\u0027, namespace] + args"},{"line_number":150,"context_line":"        lines \u003d execute(args, root_helper\u003droot_helper).split(\u0027\\n\u0027)"},{"line_number":151,"context_line":"        ebtables_save +\u003d _process_ebtables_output(lines)"},{"line_number":152,"context_line":"    return ebtables_save[:-1]"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_12e57308","line":151,"updated":"2014-12-22 10:47:50.000000000","message":"string concatenation are costly, moving the join from L129 to L152 improves performance","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":480,"context_line":""},{"line_number":481,"context_line":"        self.tables \u003d {\u0027filter\u0027: EbtablesTable(prefix_chain\u003dself.prefix_chain)}"},{"line_number":482,"context_line":"        self.tables.update("},{"line_number":483,"context_line":"            {\u0027nat\u0027: EbtablesTable(prefix_chain\u003dself.prefix_chain)})"},{"line_number":484,"context_line":"        self.tables.update("},{"line_number":485,"context_line":"            {\u0027broute\u0027: EbtablesTable(prefix_chain\u003dself.prefix_chain)})"},{"line_number":486,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_7205d778","line":483,"updated":"2014-12-22 10:47:50.000000000","message":"self.tables \u003d {\u0027filter\u0027: ..., nat\u0027: ..., \u0027broute\u0027: ...}","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":493,"context_line":"                self.tables[table].add_rule(chain, \u0027-j $%s\u0027 % (chain),"},{"line_number":494,"context_line":"                                            wrap\u003dFalse)"},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"    def defer_apply_on(self):"},{"line_number":497,"context_line":"        self.iptables_apply_deferred \u003d True"},{"line_number":498,"context_line":""},{"line_number":499,"context_line":"    def defer_apply_off(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_72615738","line":496,"updated":"2014-12-22 10:47:50.000000000","message":"I would prefer a context ... it ensures by design defer_apply_off call","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":514,"context_line":"        rules. This happens atomically, thanks to ebtables_save/restore."},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"        \"\"\""},{"line_number":517,"context_line":"        tables \u003d [table_name for table_name, table in self.tables.iteritems()]"},{"line_number":518,"context_line":"        all_lines \u003d ebtables_save(self.execute, self.root_helper,"},{"line_number":519,"context_line":"                                  namespace\u003dself.namespace,"},{"line_number":520,"context_line":"                                  tables\u003dtables).split(\u0027\\n\u0027)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_b2b1ff02","line":517,"updated":"2014-12-22 10:47:50.000000000","message":"According L48*, tables has always the same content.","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":557,"context_line":""},{"line_number":558,"context_line":"        return rules_index"},{"line_number":559,"context_line":""},{"line_number":560,"context_line":"    def _modify_rules(self, current_lines, table, table_name):"},{"line_number":561,"context_line":"        unwrapped_chains \u003d table.unwrapped_chains"},{"line_number":562,"context_line":"        chains \u003d table.chains"},{"line_number":563,"context_line":"        remove_chains \u003d table.remove_chains"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_7264f721","line":560,"updated":"2014-12-22 10:47:50.000000000","message":"A ~160 lines method, outch","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":618,"context_line":"            # list, so here we remove the dupes ahead of time."},{"line_number":619,"context_line":""},{"line_number":620,"context_line":"            orig_filter \u003d [s for s in old_filter if rule_str in s.strip()]"},{"line_number":621,"context_line":"            dup_filter \u003d [s for s in new_filter if rule_str in s.strip()]"},{"line_number":622,"context_line":"            new_filter \u003d [s for s in new_filter if rule_str not in s.strip()]"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"            # if no old or duplicates, use original rule"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_92508333","line":621,"updated":"2014-12-22 10:47:50.000000000","message":"why not stripping strings once for all?","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dfe62e2dedb560e72bdb6d5b44e18cbf63878116","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    while time.time() - start_time \u003c max_time:"},{"line_number":231,"context_line":"        try:"},{"line_number":232,"context_line":"            return func(*args, **kwargs)"},{"line_number":233,"context_line":"        except Exception:"},{"line_number":234,"context_line":"            fail_count +\u003d 1"},{"line_number":235,"context_line":"            time.sleep(sleep_time)"},{"line_number":236,"context_line":"            sleep_time *\u003d 2"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_3072f011","line":233,"updated":"2015-02-27 23:15:48.000000000","message":"Exception or RuntimeError?","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    while time.time() - start_time \u003c max_time:"},{"line_number":231,"context_line":"        try:"},{"line_number":232,"context_line":"            return func(*args, **kwargs)"},{"line_number":233,"context_line":"        except Exception:"},{"line_number":234,"context_line":"            fail_count +\u003d 1"},{"line_number":235,"context_line":"            time.sleep(sleep_time)"},{"line_number":236,"context_line":"            sleep_time *\u003d 2"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_e9882a73","line":233,"in_reply_to":"ba7be1f8_3072f011","updated":"2015-03-03 02:09:17.000000000","message":"Could be anything. This runs any function, so it could be any kind of exception that\u0027s raised.","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dfe62e2dedb560e72bdb6d5b44e18cbf63878116","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            return func(*args, **kwargs)"},{"line_number":233,"context_line":"        except Exception:"},{"line_number":234,"context_line":"            fail_count +\u003d 1"},{"line_number":235,"context_line":"            time.sleep(sleep_time)"},{"line_number":236,"context_line":"            sleep_time *\u003d 2"},{"line_number":237,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":238,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_90e8fc7d","line":235,"updated":"2015-02-27 23:15:48.000000000","message":"The trouble is that you wait sleep_time even if time.time() + sleep_time \u003e start_time + max_time ... sleep_time will be about max_time/2\n\nThe following avoids the last sleep if you are always unlucky:\n\n  deadline \u003d start.time() + 10\n  ...\n     except ...:\n       if time.time() + sleep_time \u003e deadline:\n          break\n       time.sleep(sleep_time)       \n       sleep *\u003d 2","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            return func(*args, **kwargs)"},{"line_number":233,"context_line":"        except Exception:"},{"line_number":234,"context_line":"            fail_count +\u003d 1"},{"line_number":235,"context_line":"            time.sleep(sleep_time)"},{"line_number":236,"context_line":"            sleep_time *\u003d 2"},{"line_number":237,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":238,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_6970ba72","line":235,"in_reply_to":"ba7be1f8_90e8fc7d","updated":"2015-03-03 02:09:17.000000000","message":"Done","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        while not predicate():"},{"line_number":274,"context_line":"            eventlet.sleep(sleep)"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":277,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_71ea4375","line":276,"updated":"2015-03-03 15:10:56.000000000","message":"there\u0027s only one blank line before this command.\nThis is making pep8 very unhappy.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f35e2b9f03b1fc4f4a9bfbbdac04567ff2163e32","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        while not predicate():"},{"line_number":274,"context_line":"            eventlet.sleep(sleep)"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":277,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_b5a81c8d","line":276,"in_reply_to":"ba7be1f8_71ea4375","updated":"2015-03-03 17:49:12.000000000","message":"Why my local run of the pep8 check didn\u0027t catch that is a mystery to me.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        while not predicate():"},{"line_number":274,"context_line":"            eventlet.sleep(sleep)"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":277,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_71e93fb6","line":276,"in_reply_to":"ba7be1f8_b5a81c8d","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":291,"context_line":"            fail_count +\u003d 1"},{"line_number":292,"context_line":"            time.sleep(sleep_time)"},{"line_number":293,"context_line":"            sleep_time *\u003d 2"},{"line_number":294,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":295,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_1132e70f","line":294,"updated":"2015-03-03 15:10:56.000000000","message":"consider adding func.__name__ to the above log statement","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f35e2b9f03b1fc4f4a9bfbbdac04567ff2163e32","unresolved":false,"context_lines":[{"line_number":291,"context_line":"            fail_count +\u003d 1"},{"line_number":292,"context_line":"            time.sleep(sleep_time)"},{"line_number":293,"context_line":"            sleep_time *\u003d 2"},{"line_number":294,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":295,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_1593a85b","line":294,"in_reply_to":"ba7be1f8_1132e70f","updated":"2015-03-03 17:49:12.000000000","message":"Will do.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":291,"context_line":"            fail_count +\u003d 1"},{"line_number":292,"context_line":"            time.sleep(sleep_time)"},{"line_number":293,"context_line":"            sleep_time *\u003d 2"},{"line_number":294,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":295,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_b1ce5758","line":294,"in_reply_to":"ba7be1f8_1593a85b","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":292,"context_line":"            time.sleep(sleep_time)"},{"line_number":293,"context_line":"            sleep_time *\u003d 2"},{"line_number":294,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":295,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_54c7ed97","line":295,"updated":"2015-03-03 15:10:56.000000000","message":"it\u0027s generally not a good practice to raise the generic Exception.\nBy doing so, you\u0027re also  cancelling the original exception being raised.\n\nI think you can either save the exception caught at line 290 and reraise here, or do a while(true) cycle and then raise in the exception handler if the max_time has been exceeded.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f35e2b9f03b1fc4f4a9bfbbdac04567ff2163e32","unresolved":false,"context_lines":[{"line_number":292,"context_line":"            time.sleep(sleep_time)"},{"line_number":293,"context_line":"            sleep_time *\u003d 2"},{"line_number":294,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":295,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_f5ca944d","line":295,"in_reply_to":"ba7be1f8_54c7ed97","updated":"2015-03-03 17:49:12.000000000","message":"I thought about storing the various raised exceptions. However, there could be several different exceptions raised for multiple retries, right? Maybe I just store the last exception and re-raise that one.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":292,"context_line":"            time.sleep(sleep_time)"},{"line_number":293,"context_line":"            sleep_time *\u003d 2"},{"line_number":294,"context_line":"    LOG.error(_LE(\"%d attempts to run function failed...\"), fail_count)"},{"line_number":295,"context_line":"    raise Exception(\"Retry error\")"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_f1d44fea","line":295,"in_reply_to":"ba7be1f8_f5ca944d","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"d0053f21d8bb9208868ffa9aa2643f57a7dfd7d9","unresolved":false,"context_lines":[{"line_number":274,"context_line":"            eventlet.sleep(sleep)"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":278,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_ddbb87c2","line":277,"updated":"2015-03-04 22:22:17.000000000","message":"(No action required.) \nThere is a python lib called retrying which neutron already has a dependency on. It is used in ovs_lib.py. That could be leveraged here. However, to be done right, one would probably want to commonize some things between ovs_lib and this code, which would push things beyond the scope of this patch. So I think that we might consider such a refactor in a follow-up patch if someone feels strongly enough about it.","commit_id":"2a306dabe9063f3321304bb7f492fabfe5bf79e8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"375503ac2b8489e2e3dd58614f685d7c8fe8ba3e","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    deadline \u003d start_time + max_time"},{"line_number":289,"context_line":"    # The last_exception value will definitely be overwritten before it is"},{"line_number":290,"context_line":"    # used. However, pep8 doesn\u0027t know that and complains if I don\u0027t assign it"},{"line_number":291,"context_line":"    # something suitable here."},{"line_number":292,"context_line":"    last_exception \u003d Exception"},{"line_number":293,"context_line":"    while time.time() - start_time \u003c max_time:"},{"line_number":294,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_8f7fde65","line":291,"updated":"2015-03-12 06:15:15.000000000","message":"i think pep8 is correct.\nthe while conditional on L293 can be false even for the first iteration\nif the code runs slow enough.","commit_id":"7a255c4cc3c69a31322d2e025672a284fecbf1fc"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"a7bb9eadcbe0dc5dba261d6217965e2a359fcd25","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    deadline \u003d start_time + max_time"},{"line_number":289,"context_line":"    # The last_exception value will definitely be overwritten before it is"},{"line_number":290,"context_line":"    # used. However, pep8 doesn\u0027t know that and complains if I don\u0027t assign it"},{"line_number":291,"context_line":"    # something suitable here."},{"line_number":292,"context_line":"    last_exception \u003d Exception"},{"line_number":293,"context_line":"    while time.time() - start_time \u003c max_time:"},{"line_number":294,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_633ffdb4","line":291,"in_reply_to":"9a80dd14_8f7fde65","updated":"2015-03-12 21:43:34.000000000","message":"Done","commit_id":"7a255c4cc3c69a31322d2e025672a284fecbf1fc"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a5a495f432caa742bb33b39272975207a04af53f","unresolved":false,"context_lines":[{"line_number":290,"context_line":"    sleep_time \u003d 0.1  # starting interval time for first retry"},{"line_number":291,"context_line":"    start_time \u003d time.time()"},{"line_number":292,"context_line":"    deadline \u003d start_time + max_time"},{"line_number":293,"context_line":"    last_exception \u003d Exception"},{"line_number":294,"context_line":"    while time.time() - start_time \u003c max_time:"},{"line_number":295,"context_line":"        try:"},{"line_number":296,"context_line":"            return func(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":38,"id":"9a80dd14_954c1544","line":293,"updated":"2015-03-13 06:02:21.000000000","message":"Exception(_(\u0027Function does not run once at all!\u0027))?","commit_id":"34f1280998726020d82c8d57c6d6d6fad8ee3d85"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"543f09f524a0e8e57ea776360534fb7b40078fc0","unresolved":false,"context_lines":[{"line_number":290,"context_line":"    sleep_time \u003d 0.1  # starting interval time for first retry"},{"line_number":291,"context_line":"    start_time \u003d time.time()"},{"line_number":292,"context_line":"    deadline \u003d start_time + max_time"},{"line_number":293,"context_line":"    last_exception \u003d Exception"},{"line_number":294,"context_line":"    while time.time() - start_time \u003c max_time:"},{"line_number":295,"context_line":"        try:"},{"line_number":296,"context_line":"            return func(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":38,"id":"9a80dd14_4429f199","line":293,"in_reply_to":"9a80dd14_954c1544","updated":"2015-03-13 18:25:44.000000000","message":"Done","commit_id":"34f1280998726020d82c8d57c6d6d6fad8ee3d85"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"25d823fa9946ad8bb4e53aeec15686719a667578","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        ensure_dir(dirname)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":339,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":41,"id":"9a80dd14_a22eaff8","line":338,"updated":"2015-03-17 12:33:01.000000000","message":"why not using retrying package instead (already in global requirements)?","commit_id":"4ce537beb03c3b76d39f69b044224e6f31a148b7"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"568954b13a5576569c545254a133f806170519d3","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        ensure_dir(dirname)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":339,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":41,"id":"9a80dd14_ff00ec67","line":338,"in_reply_to":"9a80dd14_a22eaff8","updated":"2015-03-18 19:54:25.000000000","message":"Henry pointed this out as well, but was ok with letting this one be used for now and maybe file use of \u0027retrying\u0027 as a possible improvement issue for the future.\n\nSince time is short and this is going to be marked with \u0027SecurityImpact\u0027, I\u0027d ask that we allow this to go through as it is for now and keep the change to use \u0027retrying\u0027 in mind for the future.","commit_id":"4ce537beb03c3b76d39f69b044224e6f31a148b7"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"23af58939a52d3ed675e7e4dff82a73d2d8c1527","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        ensure_dir(dirname)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":339,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":44,"id":"9a80dd14_4fb6413f","line":338,"updated":"2015-03-20 18:54:15.000000000","message":"add some unit tests for this function","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"e72c63163d2dc8a290acf3e3f5d6106fc4b7f912","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        ensure_dir(dirname)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"def cmd_retry(func, *args, **kwargs):"},{"line_number":339,"context_line":"    \"\"\"Repeatedly try a function with exponential back-off."},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    Execute the passed-in function with the supplied args and kwargs until"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa963961_614df771","line":338,"in_reply_to":"9a80dd14_4fb6413f","updated":"2015-03-27 04:07:40.000000000","message":"I\u0027ll remove this and instead use the retrying package. No unit tests needed then.","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"}],"neutron/cmd/sanity/checks.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"e04f6f65862181435c27664bcb84bfe776c76882","unresolved":false,"context_lines":[{"line_number":31,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_cad47fbf","line":34,"updated":"2015-02-28 04:52:18.000000000","message":"Is there a specific feature you need, instead of checking the installed version? Some distributions that shall remain nameless tend to backport features into older versions, so that checking version numbers becomes meaningless.\n\nIt seems like 2.0.10 is available on Debian stable, F20 and CentOS 7. That should right about do it... Is there a specific reason you are checking the version?","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":31,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_c92d2648","line":34,"in_reply_to":"ba7be1f8_cad47fbf","updated":"2015-03-03 02:09:17.000000000","message":"I have no idea why this version was mandated by the original author of this patch. Who knows what research he had done to justify his choice, I don\u0027t know. Maybe we can ask him?","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"4dc57bd08a56b63059202b46861a88c75427e686","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    return True"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"def ebtables_installed():"},{"line_number":159,"context_line":"    try:"},{"line_number":160,"context_line":"        cmd \u003d [\u0027ebtables\u0027, \u0027--version\u0027]"},{"line_number":161,"context_line":"        env \u003d {\u0027LC_ALL\u0027: \u0027C\u0027}"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_ff76633e","line":158,"updated":"2015-02-28 03:16:54.000000000","message":"use ebtables_version_supported for the sake of consistency with other checking?","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dfe62e2dedb560e72bdb6d5b44e18cbf63878116","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        out \u003d agent_utils.execute(cmd, addl_env\u003denv)"},{"line_number":163,"context_line":"        m \u003d re.search(r\"ebtables v(\\d+\\.)\", out)"},{"line_number":164,"context_line":"        ver \u003d float(m.group(1)) if m else 0"},{"line_number":165,"context_line":"        if ver \u003c MINIMUM_EBTABLES_VERSION:"},{"line_number":166,"context_line":"            return False"},{"line_number":167,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":168,"context_line":"        LOG.debug(\"Exception while checking minimal ebtables version. \""}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_d088b4c8","line":165,"updated":"2015-02-27 23:15:48.000000000","message":"return ver \u003e\u003d MINI...","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        out \u003d agent_utils.execute(cmd, addl_env\u003denv)"},{"line_number":163,"context_line":"        m \u003d re.search(r\"ebtables v(\\d+\\.)\", out)"},{"line_number":164,"context_line":"        ver \u003d float(m.group(1)) if m else 0"},{"line_number":165,"context_line":"        if ver \u003c MINIMUM_EBTABLES_VERSION:"},{"line_number":166,"context_line":"            return False"},{"line_number":167,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":168,"context_line":"        LOG.debug(\"Exception while checking minimal ebtables version. \""}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_a970f240","line":165,"in_reply_to":"ba7be1f8_d088b4c8","updated":"2015-03-03 02:09:17.000000000","message":"Done","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"4dc57bd08a56b63059202b46861a88c75427e686","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        LOG.debug(\"Exception while checking minimal ebtables version. \""},{"line_number":169,"context_line":"                  \"Exception: %s\", e)"},{"line_number":170,"context_line":"        return False"},{"line_number":171,"context_line":"    return True"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_df943f46","line":171,"updated":"2015-02-28 03:16:54.000000000","message":"Brandily\u0027s commit will remove this line.","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":168,"context_line":"        LOG.debug(\"Exception while checking minimal ebtables version. \""},{"line_number":169,"context_line":"                  \"Exception: %s\", e)"},{"line_number":170,"context_line":"        return False"},{"line_number":171,"context_line":"    return True"}],"source_content_type":"text/x-python","patch_set":31,"id":"ba7be1f8_e9958a33","line":171,"in_reply_to":"ba7be1f8_df943f46","updated":"2015-03-03 02:09:17.000000000","message":"Don\u0027t know what you mean.","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"48316ccd3b8190fcb87074d8e5220adb807a9cd6","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def ovs_vxlan_supported(from_ip\u003d\u0027192.0.2.1\u0027, to_ip\u003d\u0027192.0.2.2\u0027):"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_d4683d8a","line":35,"updated":"2015-03-03 15:10:56.000000000","message":"just curiosity: what is the reason for setting this minimum?\nIf it\u0027s not obvious please consider adding a comment, or even better a note on ebtables driver in devref","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f2c1f68de7240ba917b688424a9fa94dd32944c","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def ovs_vxlan_supported(from_ip\u003d\u0027192.0.2.1\u0027, to_ip\u003d\u0027192.0.2.2\u0027):"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_51fd1b6d","line":35,"in_reply_to":"ba7be1f8_75bb04e5","updated":"2015-03-04 04:03:35.000000000","message":"Done","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"af4c5c6546d232eba074151b5eebb27d9e26baaa","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def ovs_vxlan_supported(from_ip\u003d\u0027192.0.2.1\u0027, to_ip\u003d\u0027192.0.2.2\u0027):"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_8fb6b2f7","line":35,"in_reply_to":"ba7be1f8_d4683d8a","updated":"2015-03-03 15:14:27.000000000","message":"I asked the same question in PS 31.","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f35e2b9f03b1fc4f4a9bfbbdac04567ff2163e32","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def ovs_vxlan_supported(from_ip\u003d\u0027192.0.2.1\u0027, to_ip\u003d\u0027192.0.2.2\u0027):"}],"source_content_type":"text/x-python","patch_set":32,"id":"ba7be1f8_75bb04e5","line":35,"in_reply_to":"ba7be1f8_d4683d8a","updated":"2015-03-03 17:49:12.000000000","message":"Well, originally I didn\u0027t have this check here. Then a reviewer told me to add a check for the ebtables version, so I did. Now I\u0027m told that I don\u0027t need the check.\n\nYes, version 2.0.* has been around for ages and should be on pretty much every distro. No, I\u0027m not aware that I need some special feature.\n\nI\u0027d be happy to remove this check altogether. Or maybe just do a single call to \u0027ebtables --version\u0027 just to check that it is installed, but leave it at that?","commit_id":"71fe028383fcb7c9739336f67d8e951a70fbe3c6"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"eb8b4240f1de27ae27bb85ce2c2b828f628ffda7","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        LOG.debug(\"Exception while checking minimal ebtables version. \""},{"line_number":175,"context_line":"                  \"Exception: %s\", e)"},{"line_number":176,"context_line":"        return False"},{"line_number":177,"context_line":"    return True"}],"source_content_type":"text/x-python","patch_set":34,"id":"9a80dd14_aa5a2f4e","line":177,"updated":"2015-03-04 06:15:49.000000000","message":"no need to return True here, it seems a unreachable statement?","commit_id":"ddf6b33a6a46d2bac5639ad6222cc4bb281e9265"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"f7a5f9dc35c80c27b4f3e9547216784fe3724dc1","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        LOG.debug(\"Exception while checking minimal ebtables version. \""},{"line_number":175,"context_line":"                  \"Exception: %s\", e)"},{"line_number":176,"context_line":"        return False"},{"line_number":177,"context_line":"    return True"}],"source_content_type":"text/x-python","patch_set":34,"id":"9a80dd14_0dd0b552","line":177,"in_reply_to":"9a80dd14_aa5a2f4e","updated":"2015-03-04 06:28:49.000000000","message":"Done","commit_id":"ddf6b33a6a46d2bac5639ad6222cc4bb281e9265"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"d0053f21d8bb9208868ffa9aa2643f57a7dfd7d9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"# Ebtables has been at version 2.0.* for a while. It has all the functionality"},{"line_number":36,"context_line":"# needed and is available for all the relevant distros. Therefore, checking for"},{"line_number":37,"context_line":"# version 2.0 or higher seems to suffice."},{"line_number":38,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_5d3cf72f","line":37,"updated":"2015-03-04 22:22:17.000000000","message":"I agree.","commit_id":"2a306dabe9063f3321304bb7f492fabfe5bf79e8"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5e22bf5ab744144f348aadd5171d68da06ea8ca6","unresolved":false,"context_lines":[{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"# Ebtables has been at version 2.0.* for a while. It has all the functionality"},{"line_number":36,"context_line":"# needed and is available for all the relevant distros. Therefore, checking for"},{"line_number":37,"context_line":"# version 2.0 or higher seems to suffice."},{"line_number":38,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_7bc1be2d","line":37,"in_reply_to":"9a80dd14_5b1a3a18","updated":"2015-03-05 00:06:07.000000000","message":"Knowing Henry he\u0027ll be very responsive after you make this small change. You can ping him on IRC and he\u0027ll put the +2 on again.","commit_id":"2a306dabe9063f3321304bb7f492fabfe5bf79e8"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"14a3f13b3273b6d757e888cc03365313830dbc5a","unresolved":false,"context_lines":[{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"# Ebtables has been at version 2.0.* for a while. It has all the functionality"},{"line_number":36,"context_line":"# needed and is available for all the relevant distros. Therefore, checking for"},{"line_number":37,"context_line":"# version 2.0 or higher seems to suffice."},{"line_number":38,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_8f60f436","line":37,"in_reply_to":"9a80dd14_5d3cf72f","updated":"2015-03-04 22:29:59.000000000","message":"Continuing the discussion from PS 32: Ihar is the one that told you to introduce the sanity check. I think that Ihar will agree that:\n\na) We don\u0027t want version checking. If there\u0027s a specific feature that you need, check for that.\nb) You\u0027re saying that you don\u0027t need a specific feature, and that version 2.0 is available on every supported distro (I agree on that point)\n\nSo I think that a sanity check should just make sure that ebtables is installed, that is all.","commit_id":"2a306dabe9063f3321304bb7f492fabfe5bf79e8"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ca1f72edf4e9a895e4a8ad1a481145ba0739e41c","unresolved":false,"context_lines":[{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":"# Ebtables has been at version 2.0.* for a while. It has all the functionality"},{"line_number":36,"context_line":"# needed and is available for all the relevant distros. Therefore, checking for"},{"line_number":37,"context_line":"# version 2.0 or higher seems to suffice."},{"line_number":38,"context_line":"MINIMUM_EBTABLES_VERSION \u003d 2.0"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_5b1a3a18","line":37,"in_reply_to":"9a80dd14_8f60f436","updated":"2015-03-05 00:03:05.000000000","message":"Do you think this might be able to be addressed by an improvement request/bug at a later time? Assign it to me if you want and I will get that done later, but I just want to get this patch through and it just managed to get a +2 from a core.","commit_id":"2a306dabe9063f3321304bb7f492fabfe5bf79e8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"25d823fa9946ad8bb4e53aeec15686719a667578","unresolved":false,"context_lines":[{"line_number":157,"context_line":"def ebtables_supported():"},{"line_number":158,"context_line":"    try:"},{"line_number":159,"context_line":"        cmd \u003d [\u0027ebtables\u0027, \u0027--version\u0027]"},{"line_number":160,"context_line":"        env \u003d {\u0027LC_ALL\u0027: \u0027C\u0027}"},{"line_number":161,"context_line":"        agent_utils.execute(cmd, addl_env\u003denv)"},{"line_number":162,"context_line":"        return True"},{"line_number":163,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"}],"source_content_type":"text/x-python","patch_set":41,"id":"9a80dd14_421ed3bc","line":160,"updated":"2015-03-17 12:33:01.000000000","message":"env is required?","commit_id":"4ce537beb03c3b76d39f69b044224e6f31a148b7"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"568954b13a5576569c545254a133f806170519d3","unresolved":false,"context_lines":[{"line_number":157,"context_line":"def ebtables_supported():"},{"line_number":158,"context_line":"    try:"},{"line_number":159,"context_line":"        cmd \u003d [\u0027ebtables\u0027, \u0027--version\u0027]"},{"line_number":160,"context_line":"        env \u003d {\u0027LC_ALL\u0027: \u0027C\u0027}"},{"line_number":161,"context_line":"        agent_utils.execute(cmd, addl_env\u003denv)"},{"line_number":162,"context_line":"        return True"},{"line_number":163,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"}],"source_content_type":"text/x-python","patch_set":41,"id":"9a80dd14_1ada2ee9","line":160,"in_reply_to":"9a80dd14_421ed3bc","updated":"2015-03-18 19:54:25.000000000","message":"Done","commit_id":"4ce537beb03c3b76d39f69b044224e6f31a148b7"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"23af58939a52d3ed675e7e4dff82a73d2d8c1527","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    return True"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"def ebtables_supported():"},{"line_number":158,"context_line":"    try:"},{"line_number":159,"context_line":"        cmd \u003d [\u0027ebtables\u0027, \u0027--version\u0027]"},{"line_number":160,"context_line":"        agent_utils.execute(cmd)"}],"source_content_type":"text/x-python","patch_set":44,"id":"9a80dd14_af86dd62","line":157,"updated":"2015-03-20 18:54:15.000000000","message":"add a unit test for this","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"e72c63163d2dc8a290acf3e3f5d6106fc4b7f912","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    return True"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"def ebtables_supported():"},{"line_number":158,"context_line":"    try:"},{"line_number":159,"context_line":"        cmd \u003d [\u0027ebtables\u0027, \u0027--version\u0027]"},{"line_number":160,"context_line":"        agent_utils.execute(cmd)"}],"source_content_type":"text/x-python","patch_set":44,"id":"fa963961_e1c46793","line":157,"in_reply_to":"9a80dd14_af86dd62","updated":"2015-03-27 04:07:40.000000000","message":"Done","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"}],"neutron/tests/contrib/filters.template":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":17,"context_line":"# enable curl from namespace"},{"line_number":18,"context_line":"curl_filter: CommandFilter, curl, root"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"# enabled from namespace for ebtables functional test"},{"line_number":21,"context_line":"ip_filter: CommandFilter, ip, root"},{"line_number":22,"context_line":"brctl_filter: CommandFilter, brctl, root"},{"line_number":23,"context_line":"ifconfig_filter: CommandFilter, ifconfig, root"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3a961159_8d7a2886","line":20,"updated":"2014-12-22 10:47:50.000000000","message":"I am pretty sure we don\u0027t need them ...","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5612b984b4faa37858c2473a11f014f082586c7a","unresolved":false,"context_lines":[{"line_number":25,"context_line":"ncat_kill: KillFilter, root, ncat, -9"},{"line_number":26,"context_line":"ss_filter: CommandFilter, ss, root"},{"line_number":27,"context_line":"# enabled from namespace for ebtables functional test"},{"line_number":28,"context_line":"ip_filter: CommandFilter, ip, root"},{"line_number":29,"context_line":"brctl_filter: CommandFilter, brctl, root"},{"line_number":30,"context_line":"ifconfig_filter: CommandFilter, ifconfig, root"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_7a04407e","line":28,"updated":"2015-02-09 20:06:01.000000000","message":"the ip_filter seems redundant with existing filters in etc/(neutron/)rootwrap.d","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"4a76c326647f67a826204b678c0305e2c5b77d15","unresolved":false,"context_lines":[{"line_number":25,"context_line":"ncat_kill: KillFilter, root, ncat, -9"},{"line_number":26,"context_line":"ss_filter: CommandFilter, ss, root"},{"line_number":27,"context_line":"# enabled from namespace for ebtables functional test"},{"line_number":28,"context_line":"ip_filter: CommandFilter, ip, root"},{"line_number":29,"context_line":"brctl_filter: CommandFilter, brctl, root"},{"line_number":30,"context_line":"ifconfig_filter: CommandFilter, ifconfig, root"}],"source_content_type":"application/octet-stream","patch_set":22,"id":"da86d52c_d31c2e6d","line":28,"in_reply_to":"da86d52c_7a04407e","updated":"2015-02-11 21:37:28.000000000","message":"Done","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"}],"neutron/tests/contrib/functional-testing.filters":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dfe62e2dedb560e72bdb6d5b44e18cbf63878116","unresolved":false,"context_lines":[{"line_number":17,"context_line":"ncbsd_kill: KillFilter, root, nc.openbsd, -9"},{"line_number":18,"context_line":"ncat_kill: KillFilter, root, ncat, -9"},{"line_number":19,"context_line":"ss_filter: CommandFilter, ss, root"},{"line_number":20,"context_line":"# enabled from namespace for ebtables functional test"},{"line_number":21,"context_line":"brctl_filter: CommandFilter, brctl, root"}],"source_content_type":"application/octet-stream","patch_set":31,"id":"ba7be1f8_30a59047","line":20,"updated":"2015-02-27 23:15:48.000000000","message":"not sure it\u0027s required as it\u0027s already in linuxbridge filters","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"204b85e51c4afbbbd9bd7a5a67e367d3d2264ca3","unresolved":false,"context_lines":[{"line_number":17,"context_line":"ncbsd_kill: KillFilter, root, nc.openbsd, -9"},{"line_number":18,"context_line":"ncat_kill: KillFilter, root, ncat, -9"},{"line_number":19,"context_line":"ss_filter: CommandFilter, ss, root"},{"line_number":20,"context_line":"# enabled from namespace for ebtables functional test"},{"line_number":21,"context_line":"brctl_filter: CommandFilter, brctl, root"}],"source_content_type":"application/octet-stream","patch_set":31,"id":"ba7be1f8_49f9367f","line":20,"in_reply_to":"ba7be1f8_30a59047","updated":"2015-03-03 02:09:17.000000000","message":"Done","commit_id":"c08ef123ca6e6c57e9fd48c33ef7a03aad35b505"}],"neutron/tests/functional/agent/linux/test_ebtables.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"        # Pick one of the namespaces and setup a bridge for the local ethernet"},{"line_number":40,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":41,"context_line":"        self.run_cmd_in_ns(ns, \"brctl addbr mybridge\")"},{"line_number":42,"context_line":"        self.run_cmd_in_ns(ns, \"brctl addif mybridge source\")"},{"line_number":43,"context_line":"        self.run_cmd_in_ns(ns, \"ifconfig source 0.0.0.0\")"},{"line_number":44,"context_line":"        self.run_cmd_in_ns(ns, \"ifconfig mybridge up\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_cd7ef069","line":41,"updated":"2014-12-22 10:47:50.000000000","message":"iirc, self.run_cmd_in_ns(ns, ...) can be replaced by:\n\n  self.src_ns.netns.execute(...)","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":41,"context_line":"        self.run_cmd_in_ns(ns, \"brctl addbr mybridge\")"},{"line_number":42,"context_line":"        self.run_cmd_in_ns(ns, \"brctl addif mybridge source\")"},{"line_number":43,"context_line":"        self.run_cmd_in_ns(ns, \"ifconfig source 0.0.0.0\")"},{"line_number":44,"context_line":"        self.run_cmd_in_ns(ns, \"ifconfig mybridge up\")"},{"line_number":45,"context_line":"        self.run_cmd_in_ns(ns,"},{"line_number":46,"context_line":"            \"ifconfig mybridge %s netmask 255.255.255.0 up\" % addr)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_2d3134ed","line":43,"updated":"2014-12-22 10:47:50.000000000","message":"you should use ip_lib tools instead of ifconfig","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"418a5ced51eeca87fe6f57bff14404075a84fd9b","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.run_cmd_in_ns(ns,"},{"line_number":46,"context_line":"            \"ifconfig mybridge %s netmask 255.255.255.0 up\" % addr)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def run_cmd_in_ns(self, ns, cmd_str):"},{"line_number":49,"context_line":"        full_args \u003d [\"ip\", \"netns\", \"exec\", ns] + cmd_str.split()"},{"line_number":50,"context_line":"        return utils.execute(full_args, root_helper\u003dself.root_helper)"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_ad1d2464","line":48,"updated":"2014-12-22 10:47:50.000000000","message":"prefer ip_lib tools","commit_id":"1478332d5e14e245e47b9b004591ff8abfcc2bd8"}],"neutron/tests/functional/agent/linux/test_ebtables_driver.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5612b984b4faa37858c2473a11f014f082586c7a","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":89,"context_line":"        self.src_ns.netns.execute(\"brctl addbr mybridge\".split())"},{"line_number":90,"context_line":"        self.src_ns.netns.execute(\"brctl addif mybridge source\".split())"},{"line_number":91,"context_line":"        self.src_ns.netns.execute(\"ifconfig source 0.0.0.0\".split())"},{"line_number":92,"context_line":"        self.src_ns.netns.execute(\"ifconfig mybridge up\".split())"},{"line_number":93,"context_line":"        self.src_ns.netns.execute("},{"line_number":94,"context_line":"            (\"ifconfig mybridge %s netmask 255.255.255.0 up\" % addr).split())"}],"source_content_type":"text/x-python","patch_set":22,"id":"da86d52c_da38cc3f","line":91,"updated":"2015-02-09 20:06:01.000000000","message":"you should ip_lib not ifconfig directly","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":9076,"name":"Kris Lindgren","email":"klindgren@godaddy.com","username":"klindgren"},"change_message_id":"269029964f69589ff732bf25b3453df7ca2eedf8","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":89,"context_line":"        self.src_ns.netns.execute(\"brctl addbr mybridge\".split())"},{"line_number":90,"context_line":"        self.src_ns.netns.execute(\"brctl addif mybridge source\".split())"},{"line_number":91,"context_line":"        self.src_ns.netns.execute(\"ifconfig source 0.0.0.0\".split())"},{"line_number":92,"context_line":"        self.src_ns.netns.execute(\"ifconfig mybridge up\".split())"},{"line_number":93,"context_line":"        self.src_ns.netns.execute("},{"line_number":94,"context_line":"            (\"ifconfig mybridge %s netmask 255.255.255.0 up\" % addr).split())"}],"source_content_type":"text/x-python","patch_set":22,"id":"da86d52c_e5a96825","line":91,"in_reply_to":"da86d52c_255e20ea","updated":"2015-02-10 00:32:45.000000000","message":"As an fyi, ifconfig has been deprecated in most (pretty sure all) distributions and is provided for historical reasons only. With all the new functionality and dev being moved to the \"ip\" command.  Ip_lib seems to provide the python abstracts for running commands using \"ip\" directly.  Since ovs creates bridges to do security group filtering - I would imagine you could source most of this test code from there - for a fairly quick refactor.","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"eeb801d931e7ae449e64c9d850b5360fbac37c7b","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":89,"context_line":"        self.src_ns.netns.execute(\"brctl addbr mybridge\".split())"},{"line_number":90,"context_line":"        self.src_ns.netns.execute(\"brctl addif mybridge source\".split())"},{"line_number":91,"context_line":"        self.src_ns.netns.execute(\"ifconfig source 0.0.0.0\".split())"},{"line_number":92,"context_line":"        self.src_ns.netns.execute(\"ifconfig mybridge up\".split())"},{"line_number":93,"context_line":"        self.src_ns.netns.execute("},{"line_number":94,"context_line":"            (\"ifconfig mybridge %s netmask 255.255.255.0 up\" % addr).split())"}],"source_content_type":"text/x-python","patch_set":22,"id":"da86d52c_255e20ea","line":91,"in_reply_to":"da86d52c_da38cc3f","updated":"2015-02-10 00:10:54.000000000","message":"What advantage is it to use ip_lib for this? Since I\u0027m using execute() for \"brctl\", I have to use execute() anyway already. \n\nAlso, the code as it stands right now is very readable. Is that not worth something?","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"4a76c326647f67a826204b678c0305e2c5b77d15","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":89,"context_line":"        self.src_ns.netns.execute(\"brctl addbr mybridge\".split())"},{"line_number":90,"context_line":"        self.src_ns.netns.execute(\"brctl addif mybridge source\".split())"},{"line_number":91,"context_line":"        self.src_ns.netns.execute(\"ifconfig source 0.0.0.0\".split())"},{"line_number":92,"context_line":"        self.src_ns.netns.execute(\"ifconfig mybridge up\".split())"},{"line_number":93,"context_line":"        self.src_ns.netns.execute("},{"line_number":94,"context_line":"            (\"ifconfig mybridge %s netmask 255.255.255.0 up\" % addr).split())"}],"source_content_type":"text/x-python","patch_set":22,"id":"da86d52c_78d4db1f","line":91,"in_reply_to":"da86d52c_e5a96825","updated":"2015-02-11 21:37:28.000000000","message":"Done","commit_id":"f4d84c2fd05c3241c891ab365d71feeec9752f39"}],"neutron/tests/functional/agent/linux/test_ebtables_lowlevel.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        self.ns \u003d self.src_ns.namespace"},{"line_number":79,"context_line":"        self.execute \u003d linux_utils.execute"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # Extract MAC and IP address of one of my interfaces"},{"line_number":82,"context_line":"        self.mac \u003d self.src_ns.device(\"source\").link.address"},{"line_number":83,"context_line":"        addr \u003d [a for a in self.src_ns.device(\"source\").addr.list()"},{"line_number":84,"context_line":"                if a[\u0027ip_version\u0027] \u003d\u003d 4][0][\u0027cidr\u0027]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_62561c2c","line":81,"updated":"2015-02-03 23:11:32.000000000","message":"iirc, src_ns ip is known and static.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        self.ns \u003d self.src_ns.namespace"},{"line_number":79,"context_line":"        self.execute \u003d linux_utils.execute"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # Extract MAC and IP address of one of my interfaces"},{"line_number":82,"context_line":"        self.mac \u003d self.src_ns.device(\"source\").link.address"},{"line_number":83,"context_line":"        addr \u003d [a for a in self.src_ns.device(\"source\").addr.list()"},{"line_number":84,"context_line":"                if a[\u0027ip_version\u0027] \u003d\u003d 4][0][\u0027cidr\u0027]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_2d225552","line":81,"in_reply_to":"da86d52c_62561c2c","updated":"2015-02-03 23:28:38.000000000","message":"I\u0027ve had it change between tests.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        # Pick one of the namespaces and setup a bridge for the local ethernet"},{"line_number":88,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":89,"context_line":"        self.src_ns.netns.execute(\"brctl addbr mybridge\".split())"},{"line_number":90,"context_line":"        self.src_ns.netns.execute(\"brctl addif mybridge source\".split())"},{"line_number":91,"context_line":"        self.src_ns.netns.execute(\"ifconfig source 0.0.0.0\".split())"},{"line_number":92,"context_line":"        self.src_ns.netns.execute(\"ifconfig mybridge up\".split())"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_c2c348eb","line":89,"updated":"2015-02-03 23:11:32.000000000","message":"roooo, you can split manually :)","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        # Pick one of the namespaces and setup a bridge for the local ethernet"},{"line_number":88,"context_line":"        # interface there, because ebtables only works on bridged interfaces."},{"line_number":89,"context_line":"        self.src_ns.netns.execute(\"brctl addbr mybridge\".split())"},{"line_number":90,"context_line":"        self.src_ns.netns.execute(\"brctl addif mybridge source\".split())"},{"line_number":91,"context_line":"        self.src_ns.netns.execute(\"ifconfig source 0.0.0.0\".split())"},{"line_number":92,"context_line":"        self.src_ns.netns.execute(\"ifconfig mybridge up\".split())"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_ad2e4541","line":89,"in_reply_to":"da86d52c_c2c348eb","updated":"2015-02-03 23:28:38.000000000","message":"Yeah, but I don\u0027t want to. That\u0027s terrible to read, terrible to edit and overall looks terrible. The call to split() here improves readability greatly. And since we are not in some performance critical part I think the split() has only advantages.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c95b096d9c55ad8c20003e9f4cb9bea5d845919c","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        self.pinger.assert_ping_from_ns(self.src_ns, self.DST_ADDRESS)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test_ebtables_filtering(self):"},{"line_number":131,"context_line":"        # Cannot parallelize those tests. Therefore need to call them"},{"line_number":132,"context_line":"        # in order from a single function."},{"line_number":133,"context_line":"        self._test_basic_port_filter_wrong_mac()"},{"line_number":134,"context_line":"        self._test_basic_port_filter_correct_mac()"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_82015008","line":131,"updated":"2015-02-03 23:11:32.000000000","message":"Why? as ebtables are configured in namespaces?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"45b41ecdb1d94e89e97b7ad2484d33c52ee41bf6","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        self.pinger.assert_ping_from_ns(self.src_ns, self.DST_ADDRESS)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test_ebtables_filtering(self):"},{"line_number":131,"context_line":"        # Cannot parallelize those tests. Therefore need to call them"},{"line_number":132,"context_line":"        # in order from a single function."},{"line_number":133,"context_line":"        self._test_basic_port_filter_wrong_mac()"},{"line_number":134,"context_line":"        self._test_basic_port_filter_correct_mac()"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_4d714975","line":131,"in_reply_to":"da86d52c_82015008","updated":"2015-02-03 23:28:38.000000000","message":"Just following the recommendations by #openstack-infra  here: They run all tests in parallel and they thought maybe this caused the persistent test failure problem on gate. Calling the tests in sequence out of a single function was the recommended workaround.\n\nWe can possibly try to get rid of this right now and see if it works. There is, after all, a retry implemented now.\n\nWhat do you think?","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"}],"neutron/tests/unit/test_ebtables_driver.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":98,"context_line":"            (TNAME, [\u0027-A\u0027, \u0027neutron-nwfilter-spoofing-fallb\u0027, \u0027-j\u0027, \u0027DROP\u0027]),"},{"line_number":99,"context_line":"            (TNAME, [\u0027--atomic-commit\u0027])]"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        for i, r in enumerate(res):"},{"line_number":102,"context_line":"            self.assertEqual(r, expected_result[i])"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_68a9728f","line":101,"updated":"2015-02-04 20:52:04.000000000","message":"Why not self.assertEqual(expected_resut, res)?","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":98,"context_line":"            (TNAME, [\u0027-A\u0027, \u0027neutron-nwfilter-spoofing-fallb\u0027, \u0027-j\u0027, \u0027DROP\u0027]),"},{"line_number":99,"context_line":"            (TNAME, [\u0027--atomic-commit\u0027])]"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        for i, r in enumerate(res):"},{"line_number":102,"context_line":"            self.assertEqual(r, expected_result[i])"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_89286787","line":101,"in_reply_to":"da86d52c_68a9728f","updated":"2015-02-04 22:28:49.000000000","message":"Done","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                           \u0027[0:1] -A FORWARD -j CONTINUE\u0027,"},{"line_number":123,"context_line":"                           \u0027[1:1] -A OUTPUT -j CONTINUE\u0027,"},{"line_number":124,"context_line":"                           \u0027COMMIT\u0027]"},{"line_number":125,"context_line":"        self.assertEqual(res, expected_result)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"class EbtablesDriverTestCase(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_c8933e59","line":125,"updated":"2015-02-04 20:52:04.000000000","message":"should be:\n\n  self.assertEqual(expected, observed)","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"7cb5538509176f50649a80ea7d90aa2498e3069b","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                           \u0027[0:1] -A FORWARD -j CONTINUE\u0027,"},{"line_number":123,"context_line":"                           \u0027[1:1] -A OUTPUT -j CONTINUE\u0027,"},{"line_number":124,"context_line":"                           \u0027COMMIT\u0027]"},{"line_number":125,"context_line":"        self.assertEqual(res, expected_result)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"class EbtablesDriverTestCase(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_a3b1cd90","line":125,"in_reply_to":"da86d52c_23eb1d14","updated":"2015-02-04 22:05:23.000000000","message":"It comes from testtools.TestCase.assertEqual docstring:\n\n  def assertEqual(self, expected, observed, message\u003d\u0027\u0027):\n\nMoreover it\u0027s easier to understand which part is the expected/observed one when the test is complex.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                           \u0027[0:1] -A FORWARD -j CONTINUE\u0027,"},{"line_number":123,"context_line":"                           \u0027[1:1] -A OUTPUT -j CONTINUE\u0027,"},{"line_number":124,"context_line":"                           \u0027COMMIT\u0027]"},{"line_number":125,"context_line":"        self.assertEqual(res, expected_result)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"class EbtablesDriverTestCase(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_c66b2eef","line":125,"in_reply_to":"da86d52c_a3b1cd90","updated":"2015-02-04 22:28:49.000000000","message":"Well, I figured by naming one of the two \"expected_result\" it would be pretty clear? But ok, whatever, I\u0027ll change it...","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                           \u0027[0:1] -A FORWARD -j CONTINUE\u0027,"},{"line_number":123,"context_line":"                           \u0027[1:1] -A OUTPUT -j CONTINUE\u0027,"},{"line_number":124,"context_line":"                           \u0027COMMIT\u0027]"},{"line_number":125,"context_line":"        self.assertEqual(res, expected_result)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"class EbtablesDriverTestCase(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_23eb1d14","line":125,"in_reply_to":"da86d52c_c8933e59","updated":"2015-02-04 21:15:03.000000000","message":"Really? I never heard of that rule. Where does it come from? Last time I checked for an \"equal\" comparison the order didn\u0027t matter.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1ba15342d03d342963101f009801301748aa956c","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        self.ebtables_path \u003d \u0027/tmp/ebtables-\u0027"},{"line_number":134,"context_line":"        self.execute_p \u003d mock.patch(\u0027neutron.agent.linux.utils.execute\u0027)"},{"line_number":135,"context_line":"        self.execute \u003d self.execute_p.start()"},{"line_number":136,"context_line":"        self.addCleanup(self.execute_p.stop)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def test_ebtables_save_and_restore(self):"},{"line_number":139,"context_line":"        dump_filter \u003d (\u0027Bridge table: filter\\n\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_c8c89e57","line":136,"updated":"2015-02-04 20:52:04.000000000","message":"addCleanup is not needed as BaseTestCase  or its parent class call self.addCleanup(mock.patch.stopall)","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"ffd505fef0186bfc0283a52e7be6e816084a4152","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        self.ebtables_path \u003d \u0027/tmp/ebtables-\u0027"},{"line_number":134,"context_line":"        self.execute_p \u003d mock.patch(\u0027neutron.agent.linux.utils.execute\u0027)"},{"line_number":135,"context_line":"        self.execute \u003d self.execute_p.start()"},{"line_number":136,"context_line":"        self.addCleanup(self.execute_p.stop)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def test_ebtables_save_and_restore(self):"},{"line_number":139,"context_line":"        dump_filter \u003d (\u0027Bridge table: filter\\n\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_a92d2b97","line":136,"in_reply_to":"da86d52c_63f19500","updated":"2015-02-04 22:28:49.000000000","message":"Done","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"291f3b26fa4795d345f9f0d1ab8932bc7b4ab508","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        self.ebtables_path \u003d \u0027/tmp/ebtables-\u0027"},{"line_number":134,"context_line":"        self.execute_p \u003d mock.patch(\u0027neutron.agent.linux.utils.execute\u0027)"},{"line_number":135,"context_line":"        self.execute \u003d self.execute_p.start()"},{"line_number":136,"context_line":"        self.addCleanup(self.execute_p.stop)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def test_ebtables_save_and_restore(self):"},{"line_number":139,"context_line":"        dump_filter \u003d (\u0027Bridge table: filter\\n\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"da86d52c_63f19500","line":136,"in_reply_to":"da86d52c_c8c89e57","updated":"2015-02-04 21:15:03.000000000","message":"I\u0027ll have a look.","commit_id":"4abfcbbde43025c442260f8dbbdadcf5e3cb5957"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"23af58939a52d3ed675e7e4dff82a73d2d8c1527","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        self.assertEqual(expected_res, observed_res)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"class EbtablesDriverTestCase(base.BaseTestCase):"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    def setUp(self):"},{"line_number":134,"context_line":"        super(EbtablesDriverTestCase, self).setUp()"}],"source_content_type":"text/x-python","patch_set":44,"id":"9a80dd14_afedfd26","line":131,"updated":"2015-03-20 18:54:15.000000000","message":"drop this test case and let\u0027s depend on functional tests for checking the rules installed into the system rather than mocking execute","commit_id":"a5ace7ef61317b21c154e98cf1302db3a61d79c9"}],"neutron/tests/unit/test_ebtables_lowlevel.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"3285d000bab0b5dc372153682128127b1a96da67","unresolved":false,"context_lines":[{"line_number":23,"context_line":"TABLES_NAMES \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class EbtablesTestCase(base.BaseTestCase):"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def setUp(self):"},{"line_number":29,"context_line":"        super(EbtablesTestCase, self).setUp()"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_28740367","line":26,"updated":"2015-02-04 00:04:13.000000000","message":"This style of testing is a good indication that the code under test is poorly structured.  It should be possible to validate intermediate processing is possible without mocking of any kind.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"},{"author":{"_account_id":6139,"name":"Juergen Brendel","email":"jbrendel@cisco.com","username":"jbrendel"},"change_message_id":"3f70c0a2a11fef53cd51d4549ec25264fdf207aa","unresolved":false,"context_lines":[{"line_number":23,"context_line":"TABLES_NAMES \u003d [\u0027filter\u0027, \u0027nat\u0027, \u0027broute\u0027]"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class EbtablesTestCase(base.BaseTestCase):"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def setUp(self):"},{"line_number":29,"context_line":"        super(EbtablesTestCase, self).setUp()"}],"source_content_type":"text/x-python","patch_set":18,"id":"da86d52c_1ebcb8db","line":26,"in_reply_to":"da86d52c_28740367","updated":"2015-02-04 18:17:07.000000000","message":"I added a number of tests that don\u0027t use mocking. I still left the mock-based tests in. Let me know if you want me to remove all of the old ones, or if it\u0027s ok to leave them.","commit_id":"40b9826d0791e815a5e3b9aa633e9a55d4489bba"}]}
