)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"049df133a948ea2b5f9f034471b8356d3bc51def","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently Neutron does not validate the version of Keepalived."},{"line_number":10,"context_line":"In order to support configuring IPv6 default route, the minimum"},{"line_number":11,"context_line":"version [1] of keepalived that is required is 1.2.10"},{"line_number":12,"context_line":"This patch adds a sanity check to validate the keepalived version."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Closes-Bug: #1415756"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa81d914_098d9e31","line":11,"updated":"2015-01-29 15:48:25.000000000","message":"[1] ?","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"107d9ef530e67c52d32b3d2f5c90489c729abf23","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently Neutron does not validate the version of Keepalived."},{"line_number":10,"context_line":"In order to support configuring IPv6 default route, the minimum"},{"line_number":11,"context_line":"version [1] of keepalived that is required is 1.2.10"},{"line_number":12,"context_line":"This patch adds a sanity check to validate the keepalived version."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Closes-Bug: #1415756"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa81d914_2517de52","line":11,"in_reply_to":"fa81d914_098d9e31","updated":"2015-01-29 18:26:00.000000000","message":"Done","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c3cfa394c5788d68535103a03874bc5b56d68520","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently Neutron does not validate the version of Keepalived."},{"line_number":10,"context_line":"In order to support configuring IPv6 default route, the minimum"},{"line_number":11,"context_line":"version [1] of keepalived that is required is 1.2.10"},{"line_number":12,"context_line":"This patch adds a sanity check to validate the keepalived version."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[1] - http://www.keepalived.org/changelog.html"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da86d52c_2155791d","line":11,"updated":"2015-01-31 08:27:53.000000000","message":"Please add more details on why you think 1.2.10 is the minimal version that is supported, since the referenced changelog assumes we are ok with 1.2.8.","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"b2c384acf288b321079a21054ef617becf504b9a","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently Neutron does not validate the version of Keepalived."},{"line_number":10,"context_line":"In order to support configuring IPv6 default route, the minimum"},{"line_number":11,"context_line":"version [1] of keepalived that is required is 1.2.10"},{"line_number":12,"context_line":"This patch adds a sanity check to validate the keepalived version."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[1] - http://www.keepalived.org/changelog.html"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da86d52c_abddb116","line":11,"in_reply_to":"da86d52c_2155791d","updated":"2015-02-02 09:12:44.000000000","message":"Sure @Ihar.\n\nI\u0027ve captured my observations at the following link. Basically in v1.2.8 keepalived is adding an IPv6 unspecified route ::/128 instead of default route.\nhttp://paste.openstack.org/show/165403/","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"06b53025344a434bdaa171f6265503a4104b5260","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently Neutron does not validate the version of Keepalived."},{"line_number":10,"context_line":"In order to support configuring IPv6 default route, the minimum"},{"line_number":11,"context_line":"version [1] of keepalived that is required is 1.2.10"},{"line_number":12,"context_line":"This patch adds a sanity check to validate the keepalived version."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[1] - http://www.keepalived.org/changelog.html"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da86d52c_dd6e22c9","line":11,"in_reply_to":"da86d52c_abddb116","updated":"2015-02-02 12:19:48.000000000","message":"I believe a brief reasoning should be incorporated into commit message.","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"759d72de4fcd307f61a9f2d202ec8cf55c6a96ff","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently Neutron does not validate the version of Keepalived."},{"line_number":10,"context_line":"In order to support configuring IPv6 default route, the minimum"},{"line_number":11,"context_line":"version [1] of keepalived that is required is 1.2.10"},{"line_number":12,"context_line":"This patch adds a sanity check to validate the keepalived version."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[1] - http://www.keepalived.org/changelog.html"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"da86d52c_dd9f0202","line":11,"in_reply_to":"da86d52c_dd6e22c9","updated":"2015-02-02 12:40:38.000000000","message":"Yes, I will (in the next patch).","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"}],"neutron/cmd/sanity/checks.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"049df133a948ea2b5f9f034471b8356d3bc51def","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"},{"line_number":172,"context_line":"            return False"},{"line_number":173,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":174,"context_line":"        LOG.debug(\"Exception while checking minimal keepalived version. \""},{"line_number":175,"context_line":"                  \"Exception: %s\", e)"},{"line_number":176,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_69a45aa6","line":173,"updated":"2015-01-29 15:48:25.000000000","message":"This try-except section looks pretty similar to above. Can we reuse the code?","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"107d9ef530e67c52d32b3d2f5c90489c729abf23","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"},{"line_number":172,"context_line":"            return False"},{"line_number":173,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":174,"context_line":"        LOG.debug(\"Exception while checking minimal keepalived version. \""},{"line_number":175,"context_line":"                  \"Exception: %s\", e)"},{"line_number":176,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_704c3671","line":173,"in_reply_to":"fa81d914_69a45aa6","updated":"2015-01-29 18:26:00.000000000","message":"I\u0027m afraid, they are not similar. \n\n1. dnsmasq checks the version which is composed of \u003cmajor.minor\u003e while keepalived uses \u003cmajor.minor.release\u003e.\n2. dnsmasq --version returns the output to stdout, while keepalived returns the output to stderr.\n3. The validation is different for both keepalived and dnsmasq.","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5998915787cda64d379902890f2b8c1a6da06d56","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"},{"line_number":172,"context_line":"            return False"},{"line_number":173,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":174,"context_line":"        LOG.debug(\"Exception while checking minimal keepalived version. \""},{"line_number":175,"context_line":"                  \"Exception: %s\", e)"},{"line_number":176,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_f00d8691","line":173,"in_reply_to":"fa81d914_704c3671","updated":"2015-01-29 18:40:39.000000000","message":"Yeah, but the whole frame of try: except: logging is the same.","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c3cfa394c5788d68535103a03874bc5b56d68520","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        cmd \u003d [\u0027keepalived\u0027, \u0027--version\u0027]"},{"line_number":166,"context_line":"        _, out \u003d agent_utils.execute(cmd, return_stderr\u003dTrue)"},{"line_number":167,"context_line":"        m \u003d re.findall(r\"\\d+\", out)"},{"line_number":168,"context_line":"        installed_version \u003d map(int, m[:3])"},{"line_number":169,"context_line":"        required_version \u003d MINIMUM_KEEPALIVED_VERSION.split(\u0027.\u0027)"},{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_41318d0a","line":168,"updated":"2015-01-31 08:27:53.000000000","message":"Why :3? Do you expect some non-int values in the version string?","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"759d72de4fcd307f61a9f2d202ec8cf55c6a96ff","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        cmd \u003d [\u0027keepalived\u0027, \u0027--version\u0027]"},{"line_number":166,"context_line":"        _, out \u003d agent_utils.execute(cmd, return_stderr\u003dTrue)"},{"line_number":167,"context_line":"        m \u003d re.findall(r\"\\d+\", out)"},{"line_number":168,"context_line":"        installed_version \u003d map(int, m[:3])"},{"line_number":169,"context_line":"        required_version \u003d MINIMUM_KEEPALIVED_VERSION.split(\u0027.\u0027)"},{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_dde8e27e","line":168,"in_reply_to":"da86d52c_1dafdae4","updated":"2015-02-02 12:40:38.000000000","message":"It will not :-)\n\nKeepalived uses the convention \u003cmajor.minor.release\u003e [1]\nWhen version 1.3 is released, the release would be named as v1.3.0\nand [1,3,0] \u003e [1,2,10]\n\n[1] - http://www.keepalived.org/download.html","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"b2c384acf288b321079a21054ef617becf504b9a","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        cmd \u003d [\u0027keepalived\u0027, \u0027--version\u0027]"},{"line_number":166,"context_line":"        _, out \u003d agent_utils.execute(cmd, return_stderr\u003dTrue)"},{"line_number":167,"context_line":"        m \u003d re.findall(r\"\\d+\", out)"},{"line_number":168,"context_line":"        installed_version \u003d map(int, m[:3])"},{"line_number":169,"context_line":"        required_version \u003d MINIMUM_KEEPALIVED_VERSION.split(\u0027.\u0027)"},{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_ebe8897e","line":168,"in_reply_to":"da86d52c_41318d0a","updated":"2015-02-02 09:12:44.000000000","message":"The output of keepalived --version would be as follows. \n\"Keepalived v1.2.15 (01/13,2015)\"\n\nre.findall(...), would return a list [\u00271\u0027, \u00272\u0027, \u002715\u0027, \u002701\u0027, \u002713\u0027, \u00272015\u0027] and I\u0027m interested only in the version v1.2.15 - hence [::3]","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"06b53025344a434bdaa171f6265503a4104b5260","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        cmd \u003d [\u0027keepalived\u0027, \u0027--version\u0027]"},{"line_number":166,"context_line":"        _, out \u003d agent_utils.execute(cmd, return_stderr\u003dTrue)"},{"line_number":167,"context_line":"        m \u003d re.findall(r\"\\d+\", out)"},{"line_number":168,"context_line":"        installed_version \u003d map(int, m[:3])"},{"line_number":169,"context_line":"        required_version \u003d MINIMUM_KEEPALIVED_VERSION.split(\u0027.\u0027)"},{"line_number":170,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":171,"context_line":"        if installed_version \u003c required_version:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_1dafdae4","line":168,"in_reply_to":"da86d52c_ebe8897e","updated":"2015-02-02 12:19:48.000000000","message":"OK, let\u0027s say we get a 1.3 release next. Won\u0027t your check fail?","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"668343c883b358422bb9699cbaa15010e2988dd9","unresolved":false,"context_lines":[{"line_number":29,"context_line":"from neutron.plugins.openvswitch.common import constants as ovs_const"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"MINIMUM_KEEPALIVED_VERSION \u003d \u00271.2.10\u0027"},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_81112906","line":32,"updated":"2015-02-11 16:30:59.000000000","message":"We probably want all of the minimum versions in the same format (i.e. int).","commit_id":"12c6487f62e7480f68c77d5b67e6e1b40c49561a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"48174314502bdca05af80b62c55516c5d2bb32f8","unresolved":false,"context_lines":[{"line_number":29,"context_line":"from neutron.plugins.openvswitch.common import constants as ovs_const"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"MINIMUM_KEEPALIVED_VERSION \u003d \u00271.2.10\u0027"},{"line_number":34,"context_line":"MINIMUM_DNSMASQ_VERSION \u003d 2.67"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_6d0fc439","line":32,"in_reply_to":"da86d52c_81112906","updated":"2015-02-11 17:48:25.000000000","message":"Integers won\u0027t work. How would you represent 1.2.10 with it? I think we may make them strings and allow the version checker driver to parse them (I suspect there should be oslo tools to compare version strings, maybe in versionutils).","commit_id":"12c6487f62e7480f68c77d5b67e6e1b40c49561a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ce3c8f95ffbfa8b371eff145fc1a34e3a60b4626","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        installed_version \u003d map(int, m[:3])"},{"line_number":170,"context_line":"        required_version \u003d MINIMUM_KEEPALIVED_VERSION.split(\u0027.\u0027)"},{"line_number":171,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":172,"context_line":"        if installed_version \u003c required_version:"},{"line_number":173,"context_line":"            return False"},{"line_number":174,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":175,"context_line":"        LOG.debug(\"Exception while checking minimal keepalived version. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_fe28c498","line":172,"updated":"2015-02-11 16:27:54.000000000","message":"Oh, I think I was too quick to vote for the patch. Though the common version checker mechanism is there, you don\u0027t really reduce the actual version validators. You should strip code from line 172 to 178 or so and move it to update_check_version_opts. I guess you\u0027ll need to write a wrapper that will actually consume validator and wrap it up with nice and common logging, version comparing etc.","commit_id":"12c6487f62e7480f68c77d5b67e6e1b40c49561a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"668343c883b358422bb9699cbaa15010e2988dd9","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        installed_version \u003d map(int, m[:3])"},{"line_number":170,"context_line":"        required_version \u003d MINIMUM_KEEPALIVED_VERSION.split(\u0027.\u0027)"},{"line_number":171,"context_line":"        required_version \u003d map(int, required_version)"},{"line_number":172,"context_line":"        if installed_version \u003c required_version:"},{"line_number":173,"context_line":"            return False"},{"line_number":174,"context_line":"    except (OSError, RuntimeError, IndexError, ValueError) as e:"},{"line_number":175,"context_line":"        LOG.debug(\"Exception while checking minimal keepalived version. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_e1ff45a9","line":172,"in_reply_to":"da86d52c_fe28c498","updated":"2015-02-11 16:30:59.000000000","message":"+1, a lot of this code can be generalized.","commit_id":"12c6487f62e7480f68c77d5b67e6e1b40c49561a"}],"neutron/cmd/sanity_check.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"049df133a948ea2b5f9f034471b8356d3bc51def","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    return result"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def check_keepalived_version():"},{"line_number":109,"context_line":"    result \u003d checks.keepalived_version_supported()"},{"line_number":110,"context_line":"    if not result:"},{"line_number":111,"context_line":"        LOG.error(_LE(\u0027The installed version of keepalived is too old. \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_89f42e88","line":108,"updated":"2015-01-29 15:48:25.000000000","message":"I suspect it\u0027s a good time to implement a common \u0027framework\u0027 for those kind of sanity checks since code duplication seems enormous.","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5998915787cda64d379902890f2b8c1a6da06d56","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    return result"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def check_keepalived_version():"},{"line_number":109,"context_line":"    result \u003d checks.keepalived_version_supported()"},{"line_number":110,"context_line":"    if not result:"},{"line_number":111,"context_line":"        LOG.error(_LE(\u0027The installed version of keepalived is too old. \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_70fd163a","line":108,"in_reply_to":"fa81d914_70ba7624","updated":"2015-01-29 18:40:39.000000000","message":"if may have some helper function that gets:\n- name of the daemon;\n- function to receive minimal version;\n- function to check version;\n\nand just call to the helper from check_*_version() functions. In that way, we reduce some redundant code and facilitate easy addition of more checks later as we go (I was going to create one for openvswitch; other services also may apply).","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"107d9ef530e67c52d32b3d2f5c90489c729abf23","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    return result"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def check_keepalived_version():"},{"line_number":109,"context_line":"    result \u003d checks.keepalived_version_supported()"},{"line_number":110,"context_line":"    if not result:"},{"line_number":111,"context_line":"        LOG.error(_LE(\u0027The installed version of keepalived is too old. \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_70ba7624","line":108,"in_reply_to":"fa81d914_89f42e88","updated":"2015-01-29 18:26:00.000000000","message":"Since the code is minimal in each of the tests and the error messages are dependent on the checks, can you please elaborate.","commit_id":"c4c519053ab70c8ea955545578faaa58d7c05fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c3cfa394c5788d68535103a03874bc5b56d68520","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    BoolOptCallback(\u0027dnsmasq_version\u0027, check_dnsmasq_version,"},{"line_number":163,"context_line":"                    help\u003d_(\u0027Check minimal dnsmasq version\u0027)),"},{"line_number":164,"context_line":"    BoolOptCallback(\u0027keepalived_version\u0027, check_keepalived_version,"},{"line_number":165,"context_line":"                    help\u003d_(\u0027Check minimal keepalived version\u0027)),"},{"line_number":166,"context_line":"]"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_61369105","line":165,"updated":"2015-01-31 08:27:53.000000000","message":"Another opportunity to avoid adding a new translatable message: we could also reuse the same message as above for dnsmasq.","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"06b53025344a434bdaa171f6265503a4104b5260","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    BoolOptCallback(\u0027dnsmasq_version\u0027, check_dnsmasq_version,"},{"line_number":163,"context_line":"                    help\u003d_(\u0027Check minimal dnsmasq version\u0027)),"},{"line_number":164,"context_line":"    BoolOptCallback(\u0027keepalived_version\u0027, check_keepalived_version,"},{"line_number":165,"context_line":"                    help\u003d_(\u0027Check minimal keepalived version\u0027)),"},{"line_number":166,"context_line":"]"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_dd7c6275","line":165,"in_reply_to":"da86d52c_542216ba","updated":"2015-02-02 12:19:48.000000000","message":"Sure, you get it right. Yes, it should be a helper for version checks, nothing more. Thanks!","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"b2c384acf288b321079a21054ef617becf504b9a","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    BoolOptCallback(\u0027dnsmasq_version\u0027, check_dnsmasq_version,"},{"line_number":163,"context_line":"                    help\u003d_(\u0027Check minimal dnsmasq version\u0027)),"},{"line_number":164,"context_line":"    BoolOptCallback(\u0027keepalived_version\u0027, check_keepalived_version,"},{"line_number":165,"context_line":"                    help\u003d_(\u0027Check minimal keepalived version\u0027)),"},{"line_number":166,"context_line":"]"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_542216ba","line":165,"in_reply_to":"da86d52c_61369105","updated":"2015-02-02 09:12:44.000000000","message":"If I understood it correctly, your suggestion is to introduce a helper api like check_version() which takes args like daemon name, func\u0027 that returns the minimal version and function to check the version. \n\nThe helper api, would call the callback-function that checks the version and depending on the result would frame an appropriate error message (including the daemon name and the minimum version returned by callback api). Is this correct?\n\nAlso, I hope this is to be done for api\u0027s that validate the installed versions of the daemons like dnsmasq/keepalived/in-future-any-other-daemon and not for all the other checks in this file (like check_ovs_vxlan, check_ovs_patch, check_read_netns etc).\n\nPlease clarify. Thanks.","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"759d72de4fcd307f61a9f2d202ec8cf55c6a96ff","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    BoolOptCallback(\u0027dnsmasq_version\u0027, check_dnsmasq_version,"},{"line_number":163,"context_line":"                    help\u003d_(\u0027Check minimal dnsmasq version\u0027)),"},{"line_number":164,"context_line":"    BoolOptCallback(\u0027keepalived_version\u0027, check_keepalived_version,"},{"line_number":165,"context_line":"                    help\u003d_(\u0027Check minimal keepalived version\u0027)),"},{"line_number":166,"context_line":"]"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_bd4fae91","line":165,"in_reply_to":"da86d52c_dd7c6275","updated":"2015-02-02 12:40:38.000000000","message":"Thanks @Ihar. Will do the necessary changes in the next patch.","commit_id":"0eaaadfe65a5f118a6921c846c63d66ca7b0171e"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"668343c883b358422bb9699cbaa15010e2988dd9","unresolved":false,"context_lines":[{"line_number":41,"context_line":"            kwargs[\u0027default\u0027] \u003d False"},{"line_number":42,"context_line":"        self.callback \u003d callback"},{"line_number":43,"context_line":"        super(BoolOptCallback, self).__init__(name, **kwargs)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def check_version(self):"},{"line_number":46,"context_line":"        result \u003d self.validate()"},{"line_number":47,"context_line":"        if not result:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_617fd517","line":44,"updated":"2015-02-11 16:30:59.000000000","message":"While I think that some of the validation code can be generalized, I think this generalization here is unneeded and overly complex. I prefer PS2, but I can live with it.","commit_id":"12c6487f62e7480f68c77d5b67e6e1b40c49561a"}]}
