)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"78720079b29739f7423b3e0416a5dbe206d40563","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_3daea52e","line":18,"updated":"2018-04-16 14:19:13.000000000","message":"600 seconds sounds unreasonably long to me.\ndoes this script need to remove all ports within a single transaction for some reasons?\notherwise, why don\u0027t you split the work into smaller chunks?","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"fb454d590d4b4e8d163e4d3914a5717f3e7a6fef","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_98049fc8","line":18,"in_reply_to":"9f6a8fd7_3daea52e","updated":"2018-04-16 14:36:21.000000000","message":"Each transaction has some cost. If you split it into smaller chunks then overall time that is needed for the cleanup is higher than when you do a single transaction per bridge.\n\nThe script is typically run manually or by systemd/sysV scripts that have configurable timeouts too. Where do you see an issue with having 600 seconds timeout?","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"74e44ac8cf7f14c1ecc43b7944c4e729368551d8","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_74c97876","line":18,"in_reply_to":"9f6a8fd7_48bcdddb","updated":"2018-04-17 14:47:47.000000000","message":"thank you. does \"many transactions\" mean the extreme case? i.e. 1 port per transaction?","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"2cd0bf04836ba4653b2bf20cf1e2a35fb2ba31e7","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_7f471e1f","line":18,"in_reply_to":"9f6a8fd7_5f69fabb","updated":"2018-04-17 07:37:08.000000000","message":"the main part of the improvement was to avoid by-name lookup of ports, wasn\u0027t it?","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"8ceb0587f9359b0ff4b8317b2e794aef7b71f34b","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_7fc95176","line":18,"in_reply_to":"9f6a8fd7_74c97876","updated":"2018-04-17 15:16:37.000000000","message":"yes, I checked it with such extreme case","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"991e08854a0ed4c6d0d85fc04e13f6da7a401f7e","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_48bcdddb","line":18,"in_reply_to":"9f6a8fd7_7f471e1f","updated":"2018-04-17 12:29:56.000000000","message":"So I checked now with and without deleting all ports in single transaction for 1000 ports in bridge.\nIn one transaction it took about 15 seconds in many transactions it took 1 minute and 30 seconds","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"4bd72d732278b11c6c43444de85f6985afce892c","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In case when user will have more ports to delete with this script,"},{"line_number":17,"context_line":"it will be required to increase this ovsdb_timeout value in"},{"line_number":18,"context_line":"configuration."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I79a554acdb1d6d61903be0c42d0215d302884e93"},{"line_number":21,"context_line":"Closes-Bug: #1763604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"9f6a8fd7_5f69fabb","line":18,"in_reply_to":"9f6a8fd7_98049fc8","updated":"2018-04-17 07:31:28.000000000","message":"@YAMAMOTO: originally it was done in separate transactions for each port and for cleaning 5000 ports it took hours to clean it. Then patch https://review.openstack.org/#/c/536000/ improved that by doing cleaning of ports from bridge in single transaction.\nBut now for many ports it might take couple of minutes so I want to change this timeout here.\nIMO it\u0027s better to clean so many ports in e.g. 5-6 minutes than in 3 hours with small timeout for single transaction.","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"}],"neutron/cmd/ovs_cleanup.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"d6bb6558eb169ab1a1673dcba7f159aa0623e4d8","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def override_ovsdb_timeout(conf):"},{"line_number":36,"context_line":"    if conf.OVS.ovsdb_timeout \u003c MIN_CLEANUP_OVSDB_TIMEOUT:"},{"line_number":37,"context_line":"        conf.set_override(\"ovsdb_timeout\", MIN_CLEANUP_OVSDB_TIMEOUT, \"OVS\")"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"def setup_conf():"}],"source_content_type":"text/x-python","patch_set":1,"id":"bf659307_cb5cc77e","line":37,"range":{"start_line":37,"start_character":13,"end_line":37,"end_character":25},"updated":"2018-04-13 10:34:07.000000000","message":"I was thinking more about using something like set_default() instead of overriding user defined values.","commit_id":"d5fde1c0507cef07265bc22916979449e4f36cd5"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"3a8354e5cccc5e3e19a4e83222acb3253a66f915","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# Default ovsdb_timeout value for this script."},{"line_number":30,"context_line":"# It allows to clean bridges with even thousands of ports."},{"line_number":31,"context_line":"CLEANUP_OVSDB_TIMEOUT \u003d 300"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"def setup_conf():"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf659307_57fb7477","line":31,"range":{"start_line":31,"start_character":24,"end_line":31,"end_character":27},"updated":"2018-04-13 13:15:32.000000000","message":"I\u0027m just thinking if we should give something like 600 to be on the safe side. Worst case scenario is that user gets timeout in 10 minutes in case ovsdb gets stuck or dies.","commit_id":"a185792b0dbb9446a8d32c989827fd323a6868d4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"d935877997969e92111361799a8c138d62aef016","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# Default ovsdb_timeout value for this script."},{"line_number":30,"context_line":"# It allows to clean bridges with even thousands of ports."},{"line_number":31,"context_line":"CLEANUP_OVSDB_TIMEOUT \u003d 300"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"def setup_conf():"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf659307_171f3cb7","line":31,"range":{"start_line":31,"start_character":24,"end_line":31,"end_character":27},"in_reply_to":"bf659307_57fb7477","updated":"2018-04-13 13:23:12.000000000","message":"Yes, I want to test it with 10k of ports and 600 seconds and increase it here","commit_id":"a185792b0dbb9446a8d32c989827fd323a6868d4"}],"releasenotes/notes/ovsdb_timeout_override_for_ovs_cleanup_tool-e6ed6db258d0819e.yaml":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b5619cef2b491a3c9d2b396aee6ce16599c0b11a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"    Override default value of ``ovsdb_timeout`` in ``neutron-ovs-cleanup``"},{"line_number":4,"context_line":"    script."},{"line_number":5,"context_line":"features:"},{"line_number":6,"context_line":"  - |"},{"line_number":7,"context_line":"    Default value for this config option is 10 seconds but it is not enough for"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"bf659307_42bdf1ff","line":4,"range":{"start_line":2,"start_character":0,"end_line":4,"end_character":11},"updated":"2018-04-13 15:51:19.000000000","message":"I don\u0027t think we need prelude here, do we? Look at how release notes look, I don\u0027t think it would make sense there: https://docs.openstack.org/releasenotes/neutron/pike.html","commit_id":"d9c18dca765d730de934cda0158f52c1d4804474"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b5619cef2b491a3c9d2b396aee6ce16599c0b11a","unresolved":false,"context_lines":[{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"    Override default value of ``ovsdb_timeout`` in ``neutron-ovs-cleanup``"},{"line_number":4,"context_line":"    script."},{"line_number":5,"context_line":"features:"},{"line_number":6,"context_line":"  - |"},{"line_number":7,"context_line":"    Default value for this config option is 10 seconds but it is not enough for"},{"line_number":8,"context_line":"    ``neutron-ovs-cleanup`` script when there is many ports to remove from"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"bf659307_3d001eab","line":5,"range":{"start_line":5,"start_character":0,"end_line":5,"end_character":8},"updated":"2018-04-13 15:51:19.000000000","message":"I would say we don\u0027t need this either as it\u0027s not a new feature.","commit_id":"d9c18dca765d730de934cda0158f52c1d4804474"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b5619cef2b491a3c9d2b396aee6ce16599c0b11a","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    ``neutron-ovs-cleanup`` script when there is many ports to remove from"},{"line_number":9,"context_line":"    single bridge. Because of that default value for this config option is"},{"line_number":10,"context_line":"    changed in cleanup script to 600 seconds."},{"line_number":11,"context_line":"issues:"},{"line_number":12,"context_line":"  - |"},{"line_number":13,"context_line":"    In case when number of ports to clean in one bridge is bigger than about"},{"line_number":14,"context_line":"    10000 it might require to set ``ovsdb_timeout`` value in config option to"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"bf659307_7d23f656","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":6},"updated":"2018-04-13 15:51:19.000000000","message":"I think just this par is what we need, everything else can go away :)","commit_id":"d9c18dca765d730de934cda0158f52c1d4804474"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"eb99f2b3dea3662a2d05d89dc3e65bb063c47e87","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    ``neutron-ovs-cleanup`` script when there is many ports to remove from"},{"line_number":9,"context_line":"    single bridge. Because of that default value for this config option is"},{"line_number":10,"context_line":"    changed in cleanup script to 600 seconds."},{"line_number":11,"context_line":"issues:"},{"line_number":12,"context_line":"  - |"},{"line_number":13,"context_line":"    In case when number of ports to clean in one bridge is bigger than about"},{"line_number":14,"context_line":"    10000 it might require to set ``ovsdb_timeout`` value in config option to"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"bf659307_f84e346d","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":6},"in_reply_to":"bf659307_7d23f656","updated":"2018-04-13 16:18:18.000000000","message":"Ok, I changed it little bit. I hope it will be better for You now :)\nI also left \"fixes\" par to explain what was in fact changed here.","commit_id":"d9c18dca765d730de934cda0158f52c1d4804474"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"7d1bdb242e14ca1ecb3254c9a1315b236fddebd8","unresolved":false,"context_lines":[{"line_number":10,"context_line":"    default value for the config option to be 600 seconds (10 minutes)."},{"line_number":11,"context_line":"issues:"},{"line_number":12,"context_line":"  - |"},{"line_number":13,"context_line":"    In the case when the number of ports to cleanup in a single bridge is"},{"line_number":14,"context_line":"    larger than about 10000, it might require an increase in the"},{"line_number":15,"context_line":"    ``ovsdb_timeout`` config option to some value higher than 600 seconds."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"9f6a8fd7_7dff14aa","line":13,"range":{"start_line":13,"start_character":44,"end_line":13,"end_character":51},"updated":"2018-04-17 19:36:29.000000000","message":"to clean up","commit_id":"64dd54d42b9dda10bca74aaa057c759909754673"}]}
