)]}'
{"neutron/services/loadbalancer/drivers/haproxy/jinja_cfg.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import jinja2"},{"line_number":16,"context_line":"import os"},{"line_number":17,"context_line":"from six import moves"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.linux import utils"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_b4152b9d","line":16,"updated":"2014-07-16 07:51:36.000000000","message":"os is stdlib, should be the first separate section according to HACKING (http://docs.openstack.org/developer/hacking/#import-order-template)","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import jinja2"},{"line_number":16,"context_line":"import os"},{"line_number":17,"context_line":"from six import moves"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.linux import utils"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_a1530be1","line":16,"in_reply_to":"baada198_b4152b9d","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"a2fb423aa15a396170eec789bdd0948f7b7efd21","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import jinja2"},{"line_number":16,"context_line":"import os"},{"line_number":17,"context_line":"from six import moves"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.linux import utils"},{"line_number":20,"context_line":"from neutron.plugins.common import constants as qconstants"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_941027ad","line":17,"updated":"2014-07-16 07:34:22.000000000","message":"jinja2 and six are third party modules, so we need to change this to the below. Also module-level import is suggested instead of attribute/class-level import.\n\n  import os\n\n  import jinja2\n  import six","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import jinja2"},{"line_number":16,"context_line":"import os"},{"line_number":17,"context_line":"from six import moves"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.linux import utils"},{"line_number":20,"context_line":"from neutron.plugins.common import constants as qconstants"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_81460720","line":17,"in_reply_to":"baada198_941027ad","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from six import moves"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.linux import utils"},{"line_number":20,"context_line":"from neutron.plugins.common import constants as qconstants"},{"line_number":21,"context_line":"from neutron.services.loadbalancer import constants"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_54f04f91","line":20,"updated":"2014-07-16 07:51:36.000000000","message":"nit: q was for former project name Quantum, now prefix should be n, but anyway I\u0027d suggest use plugin_constants here as nconstants is usually used for nuetron.common.constants","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from six import moves"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.linux import utils"},{"line_number":20,"context_line":"from neutron.plugins.common import constants as qconstants"},{"line_number":21,"context_line":"from neutron.services.loadbalancer import constants"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_4145cf15","line":20,"in_reply_to":"baada198_54f04f91","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.services.loadbalancer import constants"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"PROTOCOL_MAP \u003d {"},{"line_number":25,"context_line":"    constants.PROTOCOL_TCP: \u0027tcp\u0027,"},{"line_number":26,"context_line":"    constants.PROTOCOL_HTTP: \u0027http\u0027,"},{"line_number":27,"context_line":"    constants.PROTOCOL_HTTPS: \u0027tcp\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_c7f11303","line":24,"updated":"2014-07-16 07:51:36.000000000","message":"UDP protocol is also allowed according to loadbalancerv2 extension, will it be mapped here?","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.services.loadbalancer import constants"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"PROTOCOL_MAP \u003d {"},{"line_number":25,"context_line":"    constants.PROTOCOL_TCP: \u0027tcp\u0027,"},{"line_number":26,"context_line":"    constants.PROTOCOL_HTTP: \u0027http\u0027,"},{"line_number":27,"context_line":"    constants.PROTOCOL_HTTPS: \u0027tcp\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_a16a2b7f","line":24,"in_reply_to":"baada198_c7f11303","updated":"2014-07-16 23:35:59.000000000","message":"Dont believe were supporting UDP for this version with haproxy.","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"a2fb423aa15a396170eec789bdd0948f7b7efd21","unresolved":false,"context_lines":[{"line_number":49,"context_line":"ACTIVE_PENDING_STATUSES \u003d qconstants.ACTIVE_PENDING_STATUSES + ("},{"line_number":50,"context_line":"    qconstants.INACTIVE, qconstants.DEFERRED)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"TEMPLATE_PATH \u003d os.path.dirname(__file__)"},{"line_number":53,"context_line":"JINJA_ENV \u003d None"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_7472b312","line":52,"updated":"2014-07-16 07:34:22.000000000","message":"It means operators cannot specify a directory path of template files, e.g., python files and template files are located in different directories and it depends on distributions, so it is better to be configurable.","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":49,"context_line":"ACTIVE_PENDING_STATUSES \u003d qconstants.ACTIVE_PENDING_STATUSES + ("},{"line_number":50,"context_line":"    qconstants.INACTIVE, qconstants.DEFERRED)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"TEMPLATE_PATH \u003d os.path.dirname(__file__)"},{"line_number":53,"context_line":"JINJA_ENV \u003d None"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_3484bbb0","line":52,"updated":"2014-07-16 07:51:36.000000000","message":"consider adding \u0027templates/haproxy_v1.4.template\u0027 here and not at #70","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":49,"context_line":"ACTIVE_PENDING_STATUSES \u003d qconstants.ACTIVE_PENDING_STATUSES + ("},{"line_number":50,"context_line":"    qconstants.INACTIVE, qconstants.DEFERRED)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"TEMPLATE_PATH \u003d os.path.dirname(__file__)"},{"line_number":53,"context_line":"JINJA_ENV \u003d None"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_010917dd","line":52,"in_reply_to":"baada198_3484bbb0","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":49,"context_line":"ACTIVE_PENDING_STATUSES \u003d qconstants.ACTIVE_PENDING_STATUSES + ("},{"line_number":50,"context_line":"    qconstants.INACTIVE, qconstants.DEFERRED)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"TEMPLATE_PATH \u003d os.path.dirname(__file__)"},{"line_number":53,"context_line":"JINJA_ENV \u003d None"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_a1014bb1","line":52,"in_reply_to":"baada198_7472b312","updated":"2014-07-16 23:35:59.000000000","message":"I agree, will add this in future iteration","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    utils.replace_file(conf_path, config_str)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"def _render_template(template, obj_to_render):"},{"line_number":65,"context_line":"    return template.render(obj_to_render, constants\u003dconstants)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_942f47a7","line":64,"updated":"2014-07-16 07:51:36.000000000","message":"seems no need for _render_template(), can use template.render() in place","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    utils.replace_file(conf_path, config_str)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"def _render_template(template, obj_to_render):"},{"line_number":65,"context_line":"    return template.render(obj_to_render, constants\u003dconstants)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_611e530f","line":64,"in_reply_to":"baada198_942f47a7","updated":"2014-07-16 23:35:59.000000000","message":"removed: Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":91,"context_line":"    listeners \u003d [_transform_listener(x) for x in loadbalancer.listeners]"},{"line_number":92,"context_line":"    return {"},{"line_number":93,"context_line":"        \u0027name\u0027: loadbalancer.name,"},{"line_number":94,"context_line":"        \u0027vip_address\u0027: _get_first_ip_from_port(loadbalancer.vip_port),"},{"line_number":95,"context_line":"        \u0027listeners\u0027: listeners"},{"line_number":96,"context_line":"    }"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_675047d5","line":94,"updated":"2014-07-16 07:51:36.000000000","message":"can\u0027t loadbalancer.vip_address be used here?","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":91,"context_line":"    listeners \u003d [_transform_listener(x) for x in loadbalancer.listeners]"},{"line_number":92,"context_line":"    return {"},{"line_number":93,"context_line":"        \u0027name\u0027: loadbalancer.name,"},{"line_number":94,"context_line":"        \u0027vip_address\u0027: _get_first_ip_from_port(loadbalancer.vip_port),"},{"line_number":95,"context_line":"        \u0027listeners\u0027: listeners"},{"line_number":96,"context_line":"    }"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_a1186b1f","line":94,"in_reply_to":"baada198_675047d5","updated":"2014-07-16 23:35:59.000000000","message":"Indeed, it can. Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"def _include_member(member):"},{"line_number":169,"context_line":"    return member.status in ACTIVE_PENDING_STATUSES \\"},{"line_number":170,"context_line":"        and member.admin_state_up"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_47efc3e9","line":169,"updated":"2014-07-16 07:51:36.000000000","message":"please don\u0027t use \\ for new lines, consider\n return (member.status in ACTIVE_PENDING_STATUSES\n         and member.admin_state_up)","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"def _include_member(member):"},{"line_number":169,"context_line":"    return member.status in ACTIVE_PENDING_STATUSES \\"},{"line_number":170,"context_line":"        and member.admin_state_up"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_61e57309","line":169,"in_reply_to":"baada198_47efc3e9","updated":"2014-07-16 23:35:59.000000000","message":"Note taken, thank you. Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":175,"context_line":"        return fixed_ip.ip_address"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"def _get_server_health_option(config):"},{"line_number":179,"context_line":"    \"\"\"return the first active health option.\"\"\""},{"line_number":180,"context_line":"    for monitor in config[\u0027healthmonitors\u0027]:"},{"line_number":181,"context_line":"        # not checking the status of healthmonitor for two reasons:"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_a78b3f1d","line":178,"updated":"2014-07-16 07:51:36.000000000","message":"not used, please remove","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":175,"context_line":"        return fixed_ip.ip_address"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"def _get_server_health_option(config):"},{"line_number":179,"context_line":"    \"\"\"return the first active health option.\"\"\""},{"line_number":180,"context_line":"    for monitor in config[\u0027healthmonitors\u0027]:"},{"line_number":181,"context_line":"        # not checking the status of healthmonitor for two reasons:"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_e1b8a3ea","line":178,"in_reply_to":"baada198_a78b3f1d","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":206,"context_line":"    return server_addon, opts"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"def _get_session_persistence(config):"},{"line_number":210,"context_line":"    persistence \u003d config[\u0027vip\u0027].get(\u0027session_persistence\u0027)"},{"line_number":211,"context_line":"    if not persistence:"},{"line_number":212,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_27772f3d","line":209,"updated":"2014-07-16 07:51:36.000000000","message":"not used","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":206,"context_line":"    return server_addon, opts"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"def _get_session_persistence(config):"},{"line_number":210,"context_line":"    persistence \u003d config[\u0027vip\u0027].get(\u0027session_persistence\u0027)"},{"line_number":211,"context_line":"    if not persistence:"},{"line_number":212,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_21b37b0b","line":209,"in_reply_to":"baada198_27772f3d","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    return opts"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"def _has_http_cookie_persistence(config):"},{"line_number":230,"context_line":"    return (config[\u0027vip\u0027].get(\u0027session_persistence\u0027) and"},{"line_number":231,"context_line":"            config[\u0027vip\u0027][\u0027session_persistence\u0027][\u0027type\u0027] \u003d\u003d"},{"line_number":232,"context_line":"            constants.SESSION_PERSISTENCE_HTTP_COOKIE)"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_e79c5760","line":229,"updated":"2014-07-16 07:51:36.000000000","message":"not used","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    return opts"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"def _has_http_cookie_persistence(config):"},{"line_number":230,"context_line":"    return (config[\u0027vip\u0027].get(\u0027session_persistence\u0027) and"},{"line_number":231,"context_line":"            config[\u0027vip\u0027][\u0027session_persistence\u0027][\u0027type\u0027] \u003d\u003d"},{"line_number":232,"context_line":"            constants.SESSION_PERSISTENCE_HTTP_COOKIE)"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_41b86fe5","line":229,"in_reply_to":"baada198_e79c5760","updated":"2014-07-16 23:35:59.000000000","message":"Done","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            constants.SESSION_PERSISTENCE_HTTP_COOKIE)"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"def _expand_expected_codes(codes):"},{"line_number":236,"context_line":"    \"\"\"Expand the expected code string in set of codes."},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    200-204 -\u003e 200, 201, 202, 204"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_47ab4375","line":235,"updated":"2014-07-16 07:51:36.000000000","message":"not used","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"deb5b3648dc1cf291d282bb0a82584943bcdbe82","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            constants.SESSION_PERSISTENCE_HTTP_COOKIE)"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"def _expand_expected_codes(codes):"},{"line_number":236,"context_line":"    \"\"\"Expand the expected code string in set of codes."},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    200-204 -\u003e 200, 201, 202, 204"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_61cc938b","line":235,"in_reply_to":"baada198_47ab4375","updated":"2014-07-16 23:35:59.000000000","message":"Will be using this one still","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"de970b5a4e43914622a2ed2ef8ec10ddabd2373c","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            TEMPLATES_DIR,"},{"line_number":62,"context_line":"            \u0027haproxy_v1.4.template\u0027),"},{"line_number":63,"context_line":"        help\u003d_(\u0027Jinja template file for haproxy configuration\u0027))"},{"line_number":64,"context_line":"]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"cfg.CONF.register_opts(jinja_opts, \u0027haproxy\u0027)"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"baada198_dcd0b62d","line":64,"updated":"2014-07-31 11:00:20.000000000","message":"Is it necessary to make the templates dir configurable?,\nwhat are the advantages/use cases for this?.\n\nGood work, btw, loving to see all this templatized...","commit_id":"5a0203c5b59399e0394800f004cdceaa4c5504c4"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"d82c77c7b3481ebde2ab86eccb0c973b78e522b4","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            TEMPLATES_DIR,"},{"line_number":62,"context_line":"            \u0027haproxy_v1.4.template\u0027),"},{"line_number":63,"context_line":"        help\u003d_(\u0027Jinja template file for haproxy configuration\u0027))"},{"line_number":64,"context_line":"]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"cfg.CONF.register_opts(jinja_opts, \u0027haproxy\u0027)"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"baada198_74d33ad3","line":64,"in_reply_to":"baada198_bc6ea262","updated":"2014-07-31 14:07:43.000000000","message":"Thank you!","commit_id":"5a0203c5b59399e0394800f004cdceaa4c5504c4"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"61e3928233d529ed3ac897299b26ef3b3c14548d","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            TEMPLATES_DIR,"},{"line_number":62,"context_line":"            \u0027haproxy_v1.4.template\u0027),"},{"line_number":63,"context_line":"        help\u003d_(\u0027Jinja template file for haproxy configuration\u0027))"},{"line_number":64,"context_line":"]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"cfg.CONF.register_opts(jinja_opts, \u0027haproxy\u0027)"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"baada198_bc6ea262","line":64,"in_reply_to":"baada198_dcd0b62d","updated":"2014-07-31 11:02:15.000000000","message":"Sorry, I see reasoning here:\n\nhttps://review.openstack.org/#/c/106867/10/neutron/services/loadbalancer/drivers/haproxy/jinja_cfg.py\n\nLooks good.","commit_id":"5a0203c5b59399e0394800f004cdceaa4c5504c4"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"d82c77c7b3481ebde2ab86eccb0c973b78e522b4","unresolved":false,"context_lines":[{"line_number":61,"context_line":"            TEMPLATES_DIR,"},{"line_number":62,"context_line":"            \u0027haproxy_v1.4.template\u0027),"},{"line_number":63,"context_line":"        help\u003d_(\u0027Jinja template file for haproxy configuration\u0027))"},{"line_number":64,"context_line":"]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"cfg.CONF.register_opts(jinja_opts, \u0027haproxy\u0027)"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"baada198_54d8f6ef","line":64,"in_reply_to":"baada198_dcd0b62d","updated":"2014-07-31 14:07:43.000000000","message":"Yes, operators may need/want to place files in different location and should be configurable.","commit_id":"5a0203c5b59399e0394800f004cdceaa4c5504c4"}],"neutron/services/loadbalancer/drivers/haproxy/templates/haproxy_v1.4.template":[{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"c35007028c3cdd059c166f3b5249121a3d9eb441","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    mode {{ listener.protocol }}"},{"line_number":29,"context_line":"    default_backend {{ listener.default_pool.id }}"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"backend {{ listener.default_pool.id }}"},{"line_number":32,"context_line":"    mode {{ listener.default_pool.protocol }}"},{"line_number":33,"context_line":"    balance {{ listener.default_pool.lb_algorithm }}"},{"line_number":34,"context_line":"    {% if listener.default_pool.session_persistence -%}"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"baada198_7d56562b","line":31,"updated":"2014-07-14 21:45:35.000000000","message":"If we include backends within the outer listener loop we could have duplicate backend identifiers if two listeners share the same pool.","commit_id":"cd0492e927774e119acc6225deca6b91aac0361d"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"96791273e97edde4493d9907b6eb88e86868d9b8","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    mode {{ listener.protocol }}"},{"line_number":29,"context_line":"    default_backend {{ listener.default_pool.id }}"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"backend {{ listener.default_pool.id }}"},{"line_number":32,"context_line":"    mode {{ listener.default_pool.protocol }}"},{"line_number":33,"context_line":"    balance {{ listener.default_pool.lb_algorithm }}"},{"line_number":34,"context_line":"    {% if listener.default_pool.session_persistence -%}"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"baada198_b88abc18","line":31,"in_reply_to":"baada198_7d56562b","updated":"2014-07-14 22:02:17.000000000","message":"right now listeners can\u0027t share pools","commit_id":"cd0492e927774e119acc6225deca6b91aac0361d"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":29,"context_line":"{% if listener.default_pool %}"},{"line_number":30,"context_line":"    default_backend {{ listener.default_pool.id }}"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"backend {{ listener.default_pool.id }}"},{"line_number":33,"context_line":"    mode {{ listener.default_pool.protocol }}"},{"line_number":34,"context_line":"    balance {{ listener.default_pool.lb_algorithm }}"},{"line_number":35,"context_line":"{% if listener.default_pool.session_persistence is defined %}"}],"source_content_type":"application/octet-stream","patch_set":10,"id":"baada198_e7b377e7","line":32,"updated":"2014-07-16 07:51:36.000000000","message":"what if no default_pool?","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    timeout check {{ listener.default_pool.health_monitor.timeout }}"},{"line_number":49,"context_line":"{% endif %}"},{"line_number":50,"context_line":"{% for member in listener.default_pool.members %}"},{"line_number":51,"context_line":"    server {{ \"%s %s:%d weight %s\"|format(member.id, member.address, member.protocol_port, member.weight) }}{%if listener.default_pool.session_persistence.type \u003d\u003d constants.PROTOCOL_HTTP %}{{ member.id }}{% endif %}"},{"line_number":52,"context_line":"{% endfor %}"},{"line_number":53,"context_line":"{% endif %}"},{"line_number":54,"context_line":"{% endfor %}"}],"source_content_type":"application/octet-stream","patch_set":10,"id":"baada198_8702bb70","line":51,"updated":"2014-07-16 07:51:36.000000000","message":"constants.PROTOCOL_HTTP -\u003e constants.SESSION_PERSISTENCE_HTTP_COOKIE","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":49,"context_line":"{% endif %}"},{"line_number":50,"context_line":"{% for member in listener.default_pool.members %}"},{"line_number":51,"context_line":"    server {{ \"%s %s:%d weight %s\"|format(member.id, member.address, member.protocol_port, member.weight) }}{%if listener.default_pool.session_persistence.type \u003d\u003d constants.PROTOCOL_HTTP %}{{ member.id }}{% endif %}"},{"line_number":52,"context_line":"{% endfor %}"},{"line_number":53,"context_line":"{% endif %}"},{"line_number":54,"context_line":"{% endfor %}"}],"source_content_type":"application/octet-stream","patch_set":10,"id":"baada198_8710fbac","line":52,"updated":"2014-07-16 07:51:36.000000000","message":"does \u0027check inter \u003cdelay\u003e fall \u003cmax_retries\u003e\u0027 need to be added to server string if there is a health monitor?","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7ddf17403156174b4a72df3b29e99309bc455ca3","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    appsession {{ listener.default_pool.session_persistence.cookie_name }} len 56 timeout 3h"},{"line_number":33,"context_line":"{% endif %}"},{"line_number":34,"context_line":"{% endif %}"},{"line_number":35,"context_line":"{% if listener.default_pool.health_monitor %}"},{"line_number":36,"context_line":"    timeout check {{ listener.default_pool.health_monitor.timeout }}"},{"line_number":37,"context_line":"    option httpchk {{ listener.default_pool.health_monitor.http_method }} {{ listener.default_pool.health_monitor.url_path }}"},{"line_number":38,"context_line":"    http-check expect rstatus {{ listener.default_pool.health_monitor.expected_codes }}"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"baada198_ae1905d3","line":35,"updated":"2014-07-24 06:40:25.000000000","message":"This handles only HTTP health monitors, what about other types?","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"88d3937d2f2ced0c540cde596e75a4e66f4e98e0","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    appsession {{ listener.default_pool.session_persistence.cookie_name }} len 56 timeout 3h"},{"line_number":33,"context_line":"{% endif %}"},{"line_number":34,"context_line":"{% endif %}"},{"line_number":35,"context_line":"{% if listener.default_pool.health_monitor %}"},{"line_number":36,"context_line":"    timeout check {{ listener.default_pool.health_monitor.timeout }}"},{"line_number":37,"context_line":"    option httpchk {{ listener.default_pool.health_monitor.http_method }} {{ listener.default_pool.health_monitor.url_path }}"},{"line_number":38,"context_line":"    http-check expect rstatus {{ listener.default_pool.health_monitor.expected_codes }}"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"baada198_725498c6","line":35,"in_reply_to":"baada198_ae1905d3","updated":"2014-07-29 14:44:29.000000000","message":"Done","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"2b421db6478cf4faa5a6995002b0c5d42e7a0bf6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{% extends \"haproxy_base.template\" %}"},{"line_number":2,"context_line":"{% block lbname %}{{ loadbalancer.name }}{% endblock %}"},{"line_number":3,"context_line":"{% block usergroup %}{{ user_group }}{% endblock %}"},{"line_number":4,"context_line":"{% block sock %}{{ stats_sock }}{% endblock %}"},{"line_number":5,"context_line":"{% block main %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_2714a44f","line":2,"updated":"2014-07-29 07:19:39.000000000","message":"\"block lbname\" unused?","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"5b940e8a793720513d4aae564e13394d3274a6c2","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{% extends \"haproxy_base.template\" %}"},{"line_number":2,"context_line":"{% block lbname %}{{ loadbalancer.name }}{% endblock %}"},{"line_number":3,"context_line":"{% block usergroup %}{{ user_group }}{% endblock %}"},{"line_number":4,"context_line":"{% block sock %}{{ stats_sock }}{% endblock %}"},{"line_number":5,"context_line":"{% block main %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_6d783d7f","line":2,"in_reply_to":"baada198_2714a44f","updated":"2014-07-29 14:44:38.000000000","message":"I\u0027ve redone the templates, but in response to this, it is indeed used. It inserts that variable into the parent block according to Jinja. I do not like this and have reworked it.","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"2b421db6478cf4faa5a6995002b0c5d42e7a0bf6","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    stick-table type ip size 10k"},{"line_number":26,"context_line":"    stick on src"},{"line_number":27,"context_line":"{% endif %}"},{"line_number":28,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_HTTP_COOKIE %}"},{"line_number":29,"context_line":"    cookie SRV insert indirect nocache"},{"line_number":30,"context_line":"{% endif %}"},{"line_number":31,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_APP_COOKIE and listener.default_pool.session_persistence.cookie_name %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_f2bfc8a9","line":28,"updated":"2014-07-29 07:19:39.000000000","message":"For readability, I suggest using elif instead of \"endif .. if\".","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"5b940e8a793720513d4aae564e13394d3274a6c2","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    stick-table type ip size 10k"},{"line_number":26,"context_line":"    stick on src"},{"line_number":27,"context_line":"{% endif %}"},{"line_number":28,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_HTTP_COOKIE %}"},{"line_number":29,"context_line":"    cookie SRV insert indirect nocache"},{"line_number":30,"context_line":"{% endif %}"},{"line_number":31,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_APP_COOKIE and listener.default_pool.session_persistence.cookie_name %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_4d753996","line":28,"in_reply_to":"baada198_f2bfc8a9","updated":"2014-07-29 14:44:38.000000000","message":"I agree, Done","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"2b421db6478cf4faa5a6995002b0c5d42e7a0bf6","unresolved":false,"context_lines":[{"line_number":28,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_HTTP_COOKIE %}"},{"line_number":29,"context_line":"    cookie SRV insert indirect nocache"},{"line_number":30,"context_line":"{% endif %}"},{"line_number":31,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_APP_COOKIE and listener.default_pool.session_persistence.cookie_name %}"},{"line_number":32,"context_line":"    appsession {{ listener.default_pool.session_persistence.cookie_name }} len 56 timeout 3h"},{"line_number":33,"context_line":"{% endif %}"},{"line_number":34,"context_line":"{% endif %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_12bd1cb2","line":31,"updated":"2014-07-29 07:19:39.000000000","message":"ditto","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"5b940e8a793720513d4aae564e13394d3274a6c2","unresolved":false,"context_lines":[{"line_number":28,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_HTTP_COOKIE %}"},{"line_number":29,"context_line":"    cookie SRV insert indirect nocache"},{"line_number":30,"context_line":"{% endif %}"},{"line_number":31,"context_line":"{% if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_APP_COOKIE and listener.default_pool.session_persistence.cookie_name %}"},{"line_number":32,"context_line":"    appsession {{ listener.default_pool.session_persistence.cookie_name }} len 56 timeout 3h"},{"line_number":33,"context_line":"{% endif %}"},{"line_number":34,"context_line":"{% endif %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_6d6afdb6","line":31,"in_reply_to":"baada198_12bd1cb2","updated":"2014-07-29 14:44:38.000000000","message":"Done","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"2b421db6478cf4faa5a6995002b0c5d42e7a0bf6","unresolved":false,"context_lines":[{"line_number":35,"context_line":"{% if listener.default_pool.health_monitor %}"},{"line_number":36,"context_line":"    timeout check {{ listener.default_pool.health_monitor.timeout }}"},{"line_number":37,"context_line":"    option httpchk {{ listener.default_pool.health_monitor.http_method }} {{ listener.default_pool.health_monitor.url_path }}"},{"line_number":38,"context_line":"    http-check expect rstatus {{ listener.default_pool.health_monitor.expected_codes }}"},{"line_number":39,"context_line":"{% endif %}"},{"line_number":40,"context_line":"{% for member in listener.default_pool.members %}"},{"line_number":41,"context_line":"    server {{ \"%s %s:%d weight %s\"|format(member.id, member.address, member.protocol_port, member.weight) }}{% if listener.default_pool.health_monitor %} check inter {{ listener.default_pool.health_monitor.delay }}s fall {{ listener.default_pool.health_monitor.max_retries }}{% endif %}{%if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_HTTP_COOKIE %} cookie {{ member.id }}{% endif %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_72565860","line":38,"updated":"2014-07-29 07:19:39.000000000","message":"Shouldn\u0027t \"option ssl-hello-chk\" be added when monitoring HTTPS?","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"5b940e8a793720513d4aae564e13394d3274a6c2","unresolved":false,"context_lines":[{"line_number":35,"context_line":"{% if listener.default_pool.health_monitor %}"},{"line_number":36,"context_line":"    timeout check {{ listener.default_pool.health_monitor.timeout }}"},{"line_number":37,"context_line":"    option httpchk {{ listener.default_pool.health_monitor.http_method }} {{ listener.default_pool.health_monitor.url_path }}"},{"line_number":38,"context_line":"    http-check expect rstatus {{ listener.default_pool.health_monitor.expected_codes }}"},{"line_number":39,"context_line":"{% endif %}"},{"line_number":40,"context_line":"{% for member in listener.default_pool.members %}"},{"line_number":41,"context_line":"    server {{ \"%s %s:%d weight %s\"|format(member.id, member.address, member.protocol_port, member.weight) }}{% if listener.default_pool.health_monitor %} check inter {{ listener.default_pool.health_monitor.delay }}s fall {{ listener.default_pool.health_monitor.max_retries }}{% endif %}{%if listener.default_pool.session_persistence.type \u003d\u003d constants.SESSION_PERSISTENCE_HTTP_COOKIE %} cookie {{ member.id }}{% endif %}"}],"source_content_type":"application/octet-stream","patch_set":24,"id":"baada198_0d442146","line":38,"in_reply_to":"baada198_72565860","updated":"2014-07-29 14:44:38.000000000","message":"Indeed, fixing this in response to another comment","commit_id":"31e73ebd31431e785cf9217ac4f3dda6b71c82dc"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"b89d196c39efb8c44ffa1159b56d9fbf3d558e14","unresolved":false,"context_lines":[{"line_number":19,"context_line":"{% set sock_path \u003d stats_sock %}"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"{% block proxies %}"},{"line_number":22,"context_line":"{% from \u0027haproxy_v1.4_proxies.template\u0027 import frontend_macro as frontend_macro, backend_macro%}"},{"line_number":23,"context_line":"{% for listener in loadbalancer.listeners %}"},{"line_number":24,"context_line":"{{ frontend_macro(constants, listener, loadbalancer.vip_address) }}"},{"line_number":25,"context_line":"{% if listener.default_pool.id %}"}],"source_content_type":"application/octet-stream","patch_set":28,"id":"baada198_fe0c6e46","line":22,"updated":"2014-08-01 06:03:21.000000000","message":"Is \"as frontend_macro\" needed at all?\nAlso, does jinja2 require this explicit import even though the same file is mentioned in line 16?","commit_id":"4a7d361b5bed6b51e4756134369cefbf26e25be1"}],"neutron/tests/unit/services/loadbalancer/drivers/haproxy/test_jinja_cfg.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"8510401e448c41b2653b0c4f828a4f405a33d810","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                                            \u0027fake_rendered_template\u0027)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def test_render_template(self):"},{"line_number":41,"context_line":"        # import pdb"},{"line_number":42,"context_line":"        # pdb.set_trace()"},{"line_number":43,"context_line":"        rendered_obj \u003d jinja_cfg._render_template("},{"line_number":44,"context_line":"            jinja_cfg._get_template(),"}],"source_content_type":"text/x-python","patch_set":10,"id":"baada198_2721effc","line":41,"updated":"2014-07-16 07:51:36.000000000","message":"please remove","commit_id":"4ae9c4b54696449c03ef7eae81b798e38d84ff3c"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7ddf17403156174b4a72df3b29e99309bc455ca3","unresolved":false,"context_lines":[{"line_number":24,"context_line":"class TestHaproxyCfg(base.BaseTestCase):"},{"line_number":25,"context_line":"    def test_save_config(self):"},{"line_number":26,"context_line":"        with contextlib.nested("},{"line_number":27,"context_line":"            mock.patch(\u0027neutron.services.loadbalancer.\u0027"},{"line_number":28,"context_line":"                       \u0027drivers.haproxy.jinja_cfg._get_template\u0027),"},{"line_number":29,"context_line":"            mock.patch(\u0027neutron.services.loadbalancer.\u0027"},{"line_number":30,"context_line":"                       \u0027drivers.haproxy.jinja_cfg.render_loadbalancer_obj\u0027),"}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_eec85d23","line":27,"updated":"2014-07-24 06:40:25.000000000","message":"why need to mock this if mocking render_loadbalancer_obj?","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"88d3937d2f2ced0c540cde596e75a4e66f4e98e0","unresolved":false,"context_lines":[{"line_number":24,"context_line":"class TestHaproxyCfg(base.BaseTestCase):"},{"line_number":25,"context_line":"    def test_save_config(self):"},{"line_number":26,"context_line":"        with contextlib.nested("},{"line_number":27,"context_line":"            mock.patch(\u0027neutron.services.loadbalancer.\u0027"},{"line_number":28,"context_line":"                       \u0027drivers.haproxy.jinja_cfg._get_template\u0027),"},{"line_number":29,"context_line":"            mock.patch(\u0027neutron.services.loadbalancer.\u0027"},{"line_number":30,"context_line":"                       \u0027drivers.haproxy.jinja_cfg.render_loadbalancer_obj\u0027),"}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_92592c00","line":27,"in_reply_to":"baada198_eec85d23","updated":"2014-07-29 14:44:29.000000000","message":"Agreed. Done","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7ddf17403156174b4a72df3b29e99309bc455ca3","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        ) as (g_t, r_t, replace):"},{"line_number":33,"context_line":"            r_t.return_value \u003d \u0027fake_rendered_template\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"            jinja_cfg.save_config(\u0027test_path\u0027, mock.Mock())"},{"line_number":36,"context_line":"            replace.assert_called_once_with(\u0027test_path\u0027,"},{"line_number":37,"context_line":"                                            \u0027fake_rendered_template\u0027)"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_6ed44dbb","line":35,"updated":"2014-07-24 06:40:25.000000000","message":"save_config takes 3 arguments","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"88d3937d2f2ced0c540cde596e75a4e66f4e98e0","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        ) as (g_t, r_t, replace):"},{"line_number":33,"context_line":"            r_t.return_value \u003d \u0027fake_rendered_template\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"            jinja_cfg.save_config(\u0027test_path\u0027, mock.Mock())"},{"line_number":36,"context_line":"            replace.assert_called_once_with(\u0027test_path\u0027,"},{"line_number":37,"context_line":"                                            \u0027fake_rendered_template\u0027)"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_f267c8b6","line":35,"in_reply_to":"baada198_6ed44dbb","updated":"2014-07-29 14:44:29.000000000","message":"Done","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7ddf17403156174b4a72df3b29e99309bc455ca3","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"            jinja_cfg.save_config(\u0027test_path\u0027, mock.Mock())"},{"line_number":36,"context_line":"            replace.assert_called_once_with(\u0027test_path\u0027,"},{"line_number":37,"context_line":"                                            \u0027fake_rendered_template\u0027)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def test_render_template(self):"},{"line_number":40,"context_line":"        rendered_obj \u003d jinja_cfg.render_loadbalancer_obj("}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_2eea5574","line":37,"updated":"2014-07-24 06:40:25.000000000","message":"nit: may also want to check r_t called with expected parameters","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"88d3937d2f2ced0c540cde596e75a4e66f4e98e0","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"            jinja_cfg.save_config(\u0027test_path\u0027, mock.Mock())"},{"line_number":36,"context_line":"            replace.assert_called_once_with(\u0027test_path\u0027,"},{"line_number":37,"context_line":"                                            \u0027fake_rendered_template\u0027)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def test_render_template(self):"},{"line_number":40,"context_line":"        rendered_obj \u003d jinja_cfg.render_loadbalancer_obj("}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_5206b4ce","line":37,"in_reply_to":"baada198_2eea5574","updated":"2014-07-29 14:44:29.000000000","message":"Done","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7ddf17403156174b4a72df3b29e99309bc455ca3","unresolved":false,"context_lines":[{"line_number":212,"context_line":"                       admin_state_up\u003d\u0027true\u0027)"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"    #TODO(ptoohill) pull these from file, or build a tool?"},{"line_number":215,"context_line":"    def sample_base_expected_config(self):"},{"line_number":216,"context_line":"        return (\"# Configuration for test-lb\\n\""},{"line_number":217,"context_line":"                \"global\\n\""},{"line_number":218,"context_line":"                \"    daemon\\n\""}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_ae7ae5b7","line":215,"updated":"2014-07-24 06:40:25.000000000","message":"nit: not really needed to have all these samples as class methods. Consider defining constants outside of the class","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"},{"author":{"_account_id":11302,"name":"Phillip Toohill","email":"phillip.toohill@rackspace.com","username":"ptoohill1"},"change_message_id":"88d3937d2f2ced0c540cde596e75a4e66f4e98e0","unresolved":false,"context_lines":[{"line_number":212,"context_line":"                       admin_state_up\u003d\u0027true\u0027)"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"    #TODO(ptoohill) pull these from file, or build a tool?"},{"line_number":215,"context_line":"    def sample_base_expected_config(self):"},{"line_number":216,"context_line":"        return (\"# Configuration for test-lb\\n\""},{"line_number":217,"context_line":"                \"global\\n\""},{"line_number":218,"context_line":"                \"    daemon\\n\""}],"source_content_type":"text/x-python","patch_set":23,"id":"baada198_720bb8d5","line":215,"in_reply_to":"baada198_ae7ae5b7","updated":"2014-07-29 14:44:29.000000000","message":"I completely agree here and i made some updates in the next patch that I\u0027m unsure is still the proper way or not. Any additional advice is appreciated.","commit_id":"20d87386348e4dbf70d2888af1d1e442899f953e"}]}
