)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd2e7f8c4ecf28ebbb51b32178da8c2808f00a63","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Adding new plugin api for ssl policies, cetrificates"},{"line_number":16,"context_line":"and trusted certificates associating with vip"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Adding new functions to common utils which translate"},{"line_number":19,"context_line":"single entity name to plural entity name and vise versa."},{"line_number":20,"context_line":"Using new util functions in plugin instead of adding \u0027s\u0027"},{"line_number":21,"context_line":"to get plural entity name"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8r38%3D","line":18,"updated":"2013-12-23 08:31:57.000000000","message":"Pluralisation is rather complex thing as there are multiple rules (and exceptions to those rules) for the English language. So I think such effort at least deserves a separate patch to not distract reviewers\u0027 attention from the main purpoise of current patch.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"5eb8639f4e72dd8850e5122d6f268176463c9cfb","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Adding new plugin api for ssl policies, cetrificates"},{"line_number":16,"context_line":"and trusted certificates associating with vip"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Adding new functions to common utils which translate"},{"line_number":19,"context_line":"single entity name to plural entity name and vise versa."},{"line_number":20,"context_line":"Using new util functions in plugin instead of adding \u0027s\u0027"},{"line_number":21,"context_line":"to get plural entity name"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8p6I%3D","line":18,"in_reply_to":"AAAATn%2F8qXI%3D","updated":"2013-12-24 14:49:43.000000000","message":"Yes, it\u0027s done manually.\nDid it the same way","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Adding new plugin api for ssl policies, cetrificates"},{"line_number":16,"context_line":"and trusted certificates associating with vip"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Adding new functions to common utils which translate"},{"line_number":19,"context_line":"single entity name to plural entity name and vise versa."},{"line_number":20,"context_line":"Using new util functions in plugin instead of adding \u0027s\u0027"},{"line_number":21,"context_line":"to get plural entity name"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8rMo%3D","line":18,"in_reply_to":"AAAATn%2F8r38%3D","updated":"2013-12-23 15:04:23.000000000","message":"I agree, the issue requires separate patch that covers whole project, but I had to handle the issue for policies table. Tried to keep it minimal and handle common cases. What, to your opinion, should be done?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"082e01e2f004be877e674080b7c85d355e334fdc","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Adding new plugin api for ssl policies, cetrificates"},{"line_number":16,"context_line":"and trusted certificates associating with vip"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Adding new functions to common utils which translate"},{"line_number":19,"context_line":"single entity name to plural entity name and vise versa."},{"line_number":20,"context_line":"Using new util functions in plugin instead of adding \u0027s\u0027"},{"line_number":21,"context_line":"to get plural entity name"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8qXI%3D","line":18,"in_reply_to":"AAAATn%2F8rMo%3D","updated":"2013-12-23 15:30:40.000000000","message":"What is the issue with policies table? I think you can refer to vpn_policies table and see how it was resolved there.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"}],"neutron/api/v2/attributes.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":444,"context_line":"        (isinstance(data[0], list) or (isinstance(data[0], dict))) and"},{"line_number":445,"context_line":"        conv_func):"},{"line_number":446,"context_line":"        new_data \u003d []"},{"line_number":447,"context_line":"        for item in data:"},{"line_number":448,"context_line":"            new_data.append(conv_func(item))"},{"line_number":449,"context_line":"        del data[0:len(data)]"},{"line_number":450,"context_line":"        data.extend(new_data)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkMs%3D","line":447,"updated":"2014-01-24 11:30:41.000000000","message":"can we convert items in place?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":444,"context_line":"        (isinstance(data[0], list) or (isinstance(data[0], dict))) and"},{"line_number":445,"context_line":"        conv_func):"},{"line_number":446,"context_line":"        new_data \u003d []"},{"line_number":447,"context_line":"        for item in data:"},{"line_number":448,"context_line":"            new_data.append(conv_func(item))"},{"line_number":449,"context_line":"        del data[0:len(data)]"},{"line_number":450,"context_line":"        data.extend(new_data)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BccU%3D","line":447,"in_reply_to":"AAAAUH%2F%2BkMs%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":575,"context_line":"              \u0027type:dict_or_empty\u0027: _validate_dict_or_empty,"},{"line_number":576,"context_line":"              \u0027type:dict_or_nodata\u0027: _validate_dict_or_nodata,"},{"line_number":577,"context_line":"              \u0027type:list\u0027: _validate_list,"},{"line_number":578,"context_line":"              \u0027type:list_or_none\u0027: _validate_list_or_none,"},{"line_number":579,"context_line":"              \u0027type:list_or_empty\u0027: _validate_list_or_empty,"},{"line_number":580,"context_line":"              \u0027type:list_or_nodata\u0027: _validate_list_or_nodata,"},{"line_number":581,"context_line":"              \u0027type:fixed_ips\u0027: _validate_fixed_ips,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bkks%3D","line":578,"updated":"2014-01-24 12:34:48.000000000","message":"Are below three validators used anywhere in the patch? Please remove if unused as as it increases the diff size and review work","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":575,"context_line":"              \u0027type:dict_or_empty\u0027: _validate_dict_or_empty,"},{"line_number":576,"context_line":"              \u0027type:dict_or_nodata\u0027: _validate_dict_or_nodata,"},{"line_number":577,"context_line":"              \u0027type:list\u0027: _validate_list,"},{"line_number":578,"context_line":"              \u0027type:list_or_none\u0027: _validate_list_or_none,"},{"line_number":579,"context_line":"              \u0027type:list_or_empty\u0027: _validate_list_or_empty,"},{"line_number":580,"context_line":"              \u0027type:list_or_nodata\u0027: _validate_list_or_nodata,"},{"line_number":581,"context_line":"              \u0027type:fixed_ips\u0027: _validate_fixed_ips,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BccQ%3D","line":578,"in_reply_to":"AAAAUH%2F%2Bkks%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done.\nlist_or_empty is used.","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":783,"context_line":"            \u0027xmlns\u0027: constants.XML_NS_V20,"},{"line_number":784,"context_line":"            constants.EXT_NS: EXT_NSES,"},{"line_number":785,"context_line":"            constants.EXT_NS_COMP: EXT_NSES_BC}"},{"line_number":786,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkMU%3D","line":786,"updated":"2014-01-24 11:30:41.000000000","message":"please remove","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":783,"context_line":"            \u0027xmlns\u0027: constants.XML_NS_V20,"},{"line_number":784,"context_line":"            constants.EXT_NS: EXT_NSES,"},{"line_number":785,"context_line":"            constants.EXT_NS_COMP: EXT_NSES_BC}"},{"line_number":786,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BccM%3D","line":786,"in_reply_to":"AAAAUH%2F%2BkMU%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"}],"neutron/db/lbaas_ssl_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2013 Radware LTD."},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":6,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj%2Bg%3D","line":3,"updated":"2014-01-24 12:34:48.000000000","message":"nit: 2014, please check other files","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2013 Radware LTD."},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":6,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BccA%3D","line":3,"in_reply_to":"AAAAUH%2F%2Bj%2Bg%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":26,"context_line":"from neutron.db import model_base"},{"line_number":27,"context_line":"from neutron.db import models_v2"},{"line_number":28,"context_line":"from neutron.extensions import lbaas_ssl"},{"line_number":29,"context_line":"from neutron.extensions.lbaas_ssl import LbaasSSLPluginBase"},{"line_number":30,"context_line":"from neutron.extensions import loadbalancer"},{"line_number":31,"context_line":"from neutron.openstack.common import uuidutils"},{"line_number":32,"context_line":"from neutron.plugins.common import constants"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj98%3D","line":29,"updated":"2014-01-24 12:34:48.000000000","message":"please use module level imports (http://docs.openstack.org/developer/hacking/)","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"from neutron.db import model_base"},{"line_number":27,"context_line":"from neutron.db import models_v2"},{"line_number":28,"context_line":"from neutron.extensions import lbaas_ssl"},{"line_number":29,"context_line":"from neutron.extensions.lbaas_ssl import LbaasSSLPluginBase"},{"line_number":30,"context_line":"from neutron.extensions import loadbalancer"},{"line_number":31,"context_line":"from neutron.openstack.common import uuidutils"},{"line_number":32,"context_line":"from neutron.plugins.common import constants"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BcZc%3D","line":29,"in_reply_to":"AAAAUH%2F%2Bj98%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    name \u003d sa.Column(sa.String(255))"},{"line_number":45,"context_line":"    front_end_enabled \u003d sa.Column(sa.Boolean(), nullable\u003dFalse)"},{"line_number":46,"context_line":"    front_end_protocols \u003d sa.Column(sa.String(32))"},{"line_number":47,"context_line":"    front_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":48,"context_line":"    back_end_enabled \u003d sa.Column(sa.Boolean(), nullable\u003dFalse)"},{"line_number":49,"context_line":"    back_end_protocols \u003d sa.Column(sa.String(32))"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj88%3D","line":46,"updated":"2014-01-24 12:34:48.000000000","message":"is 32 enough? \u0027SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2\u0027 already consumes more than 32","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    name \u003d sa.Column(sa.String(255))"},{"line_number":45,"context_line":"    front_end_enabled \u003d sa.Column(sa.Boolean(), nullable\u003dFalse)"},{"line_number":46,"context_line":"    front_end_protocols \u003d sa.Column(sa.String(32))"},{"line_number":47,"context_line":"    front_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":48,"context_line":"    back_end_enabled \u003d sa.Column(sa.Boolean(), nullable\u003dFalse)"},{"line_number":49,"context_line":"    back_end_protocols \u003d sa.Column(sa.String(32))"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BcZM%3D","line":46,"in_reply_to":"AAAAUH%2F%2Bj88%3D","updated":"2014-01-29 12:00:27.000000000","message":"changed to 64","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    front_end_protocols \u003d sa.Column(sa.String(32))"},{"line_number":47,"context_line":"    front_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":48,"context_line":"    back_end_enabled \u003d sa.Column(sa.Boolean(), nullable\u003dFalse)"},{"line_number":49,"context_line":"    back_end_protocols \u003d sa.Column(sa.String(32))"},{"line_number":50,"context_line":"    back_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    vips \u003d orm.relationship("}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj84%3D","line":49,"updated":"2014-01-24 12:34:48.000000000","message":"ditto","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    front_end_protocols \u003d sa.Column(sa.String(32))"},{"line_number":47,"context_line":"    front_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":48,"context_line":"    back_end_enabled \u003d sa.Column(sa.Boolean(), nullable\u003dFalse)"},{"line_number":49,"context_line":"    back_end_protocols \u003d sa.Column(sa.String(32))"},{"line_number":50,"context_line":"    back_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    vips \u003d orm.relationship("}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BcZE%3D","line":49,"in_reply_to":"AAAAUH%2F%2Bj84%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    back_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    vips \u003d orm.relationship("},{"line_number":53,"context_line":"        \"VipSSLPolicyAssociation\", backref\u003d\"sslpolicy\","},{"line_number":54,"context_line":"        cascade\u003d\"all\", lazy\u003d\"joined\""},{"line_number":55,"context_line":"    )"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj3w%3D","line":53,"updated":"2014-01-24 12:34:48.000000000","message":"Can you please clarify the need for association table for 1:N relationship? Why can\u0027t just add ssl_policy_id to vips table?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    back_end_cipher_suites \u003d sa.Column(sa.String(512))"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    vips \u003d orm.relationship("},{"line_number":53,"context_line":"        \"VipSSLPolicyAssociation\", backref\u003d\"sslpolicy\","},{"line_number":54,"context_line":"        cascade\u003d\"all\", lazy\u003d\"joined\""},{"line_number":55,"context_line":"    )"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2Fqxs%3D","line":53,"in_reply_to":"AAAAUH%2F%2Bj3w%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    certificate_chain \u003d sa.Column(sa.Text(20480))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    vips \u003d orm.relationship("},{"line_number":72,"context_line":"        \"VipSSLCertificateAssociation\", backref\u003d\"sslcertificate\","},{"line_number":73,"context_line":"        cascade\u003d\"all\", lazy\u003d\"joined\""},{"line_number":74,"context_line":"    )"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj2I%3D","line":72,"updated":"2014-01-24 12:34:48.000000000","message":"is backref needed?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    certificate_chain \u003d sa.Column(sa.Text(20480))"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    vips \u003d orm.relationship("},{"line_number":72,"context_line":"        \"VipSSLCertificateAssociation\", backref\u003d\"sslcertificate\","},{"line_number":73,"context_line":"        cascade\u003d\"all\", lazy\u003d\"joined\""},{"line_number":74,"context_line":"    )"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2Fqxc%3D","line":72,"in_reply_to":"AAAAUH%2F%2Bj2I%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    vips \u003d orm.relationship("},{"line_number":90,"context_line":"        \"VipSSLTrustedCertificateAssociation\", backref\u003d\"ssltrustedcertificate\","},{"line_number":91,"context_line":"        cascade\u003d\"all\", lazy\u003d\"joined\""},{"line_number":92,"context_line":"    )"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj2E%3D","line":90,"updated":"2014-01-24 12:34:48.000000000","message":"ditto on backref","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    vips \u003d orm.relationship("},{"line_number":90,"context_line":"        \"VipSSLTrustedCertificateAssociation\", backref\u003d\"ssltrustedcertificate\","},{"line_number":91,"context_line":"        cascade\u003d\"all\", lazy\u003d\"joined\""},{"line_number":92,"context_line":"    )"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FqxI%3D","line":90,"in_reply_to":"AAAAUH%2F%2Bj2E%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"            vip_res[\u0027lb_ssl_policy\u0027] \u003d vip_db[\u0027lb_ssl_policy\u0027]"},{"line_number":167,"context_line":"        if vip_db[\u0027lb_ssl_certificates\u0027]:"},{"line_number":168,"context_line":"            vip_res[\u0027lb_ssl_certificates\u0027] \u003d ["},{"line_number":169,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_certificates\u0027]]"},{"line_number":170,"context_line":"        if vip_db[\u0027lb_ssl_trusted_certificates\u0027]:"},{"line_number":171,"context_line":"            vip_res[\u0027lb_ssl_trusted_certificates\u0027] \u003d ["},{"line_number":172,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_trusted_certificates\u0027]]"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BjuQ%3D","line":169,"updated":"2014-01-24 12:34:48.000000000","message":"does cert have \u0027id\u0027 field? Seems like it has \u0027ssl_certificate_id\u0027 , not \u0027id\u0027, but I may be wrong. Are there tests for this?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":166,"context_line":"            vip_res[\u0027lb_ssl_policy\u0027] \u003d vip_db[\u0027lb_ssl_policy\u0027]"},{"line_number":167,"context_line":"        if vip_db[\u0027lb_ssl_certificates\u0027]:"},{"line_number":168,"context_line":"            vip_res[\u0027lb_ssl_certificates\u0027] \u003d ["},{"line_number":169,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_certificates\u0027]]"},{"line_number":170,"context_line":"        if vip_db[\u0027lb_ssl_trusted_certificates\u0027]:"},{"line_number":171,"context_line":"            vip_res[\u0027lb_ssl_trusted_certificates\u0027] \u003d ["},{"line_number":172,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_trusted_certificates\u0027]]"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BZig%3D","line":169,"in_reply_to":"AAAAUH%2F%2BjuQ%3D","updated":"2014-01-29 12:00:27.000000000","message":"Right.\nNo tests for this yet","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":169,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_certificates\u0027]]"},{"line_number":170,"context_line":"        if vip_db[\u0027lb_ssl_trusted_certificates\u0027]:"},{"line_number":171,"context_line":"            vip_res[\u0027lb_ssl_trusted_certificates\u0027] \u003d ["},{"line_number":172,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_trusted_certificates\u0027]]"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    base_db.NeutronDbPluginV2.register_dict_extend_funcs("},{"line_number":175,"context_line":"        loadbalancer.VIPS, [\u0027_extend_vip_dict_ssl\u0027])"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BjuM%3D","line":172,"updated":"2014-01-24 12:34:48.000000000","message":"ditto","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":169,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_certificates\u0027]]"},{"line_number":170,"context_line":"        if vip_db[\u0027lb_ssl_trusted_certificates\u0027]:"},{"line_number":171,"context_line":"            vip_res[\u0027lb_ssl_trusted_certificates\u0027] \u003d ["},{"line_number":172,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_trusted_certificates\u0027]]"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    base_db.NeutronDbPluginV2.register_dict_extend_funcs("},{"line_number":175,"context_line":"        loadbalancer.VIPS, [\u0027_extend_vip_dict_ssl\u0027])"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2Fqu4%3D","line":172,"in_reply_to":"AAAAUH%2F%2BjuM%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":171,"context_line":"            vip_res[\u0027lb_ssl_trusted_certificates\u0027] \u003d ["},{"line_number":172,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_trusted_certificates\u0027]]"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    base_db.NeutronDbPluginV2.register_dict_extend_funcs("},{"line_number":175,"context_line":"        loadbalancer.VIPS, [\u0027_extend_vip_dict_ssl\u0027])"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def update_status(self, context, model, id, status,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkKc%3D","line":174,"updated":"2014-01-24 11:30:41.000000000","message":"I\u0027m not sure that will work.\nThis method stores _extend_vip_dict_ssl in the NeutronDbPluginV2 class where as SSLDbMixin works in the context of lbaas plugin which is not derived from NeutronDbPluginV2","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            vip_res[\u0027lb_ssl_trusted_certificates\u0027] \u003d ["},{"line_number":172,"context_line":"                cert[\u0027id\u0027] for cert in vip_db[\u0027lb_ssl_trusted_certificates\u0027]]"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    base_db.NeutronDbPluginV2.register_dict_extend_funcs("},{"line_number":175,"context_line":"        loadbalancer.VIPS, [\u0027_extend_vip_dict_ssl\u0027])"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def update_status(self, context, model, id, status,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FquY%3D","line":174,"in_reply_to":"AAAAUH%2F%2BkKc%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":244,"context_line":"            self.assert_modification_allowed(policy_db)"},{"line_number":245,"context_line":"            if p:"},{"line_number":246,"context_line":"                policy_db.update(p)"},{"line_number":247,"context_line":"            new_policy \u003d self._make_ssl_policy_dict(policy_db)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        return new_policy"},{"line_number":250,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkKQ%3D","line":247,"updated":"2014-01-24 11:30:41.000000000","message":"nit: we may just return it here","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":244,"context_line":"            self.assert_modification_allowed(policy_db)"},{"line_number":245,"context_line":"            if p:"},{"line_number":246,"context_line":"                policy_db.update(p)"},{"line_number":247,"context_line":"            new_policy \u003d self._make_ssl_policy_dict(policy_db)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        return new_policy"},{"line_number":250,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BZhQ%3D","line":247,"in_reply_to":"AAAAUH%2F%2BkKQ%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":252,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":253,"context_line":"            policy_db \u003d self._get_resource(context, SSLPolicy, id)"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"            # Ensure that the policy is not used"},{"line_number":256,"context_line":"            vips \u003d self._get_collection_count("},{"line_number":257,"context_line":"                context.elevated(),"},{"line_number":258,"context_line":"                VipSSLPolicyAssociation,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkJc%3D","line":255,"updated":"2014-01-24 11:30:41.000000000","message":"Can we just catch IntegrityError exception instead of counting the objects?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":261,"context_line":"            if vips:"},{"line_number":262,"context_line":"                raise lbaas_ssl.SSLPolicyInUse(policy_id\u003did)"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"            context.session.delete(policy_db)"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def get_lb_ssl_policy(self, context, id, fields\u003dNone):"},{"line_number":267,"context_line":"        policy \u003d self._get_resource(context, SSLPolicy, id)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkI8%3D","line":264,"updated":"2014-01-24 11:30:41.000000000","message":"following the comment above that should be something like:\n try:\n   ctx.session.delete(policy_db)\n   ctx.session.flush()\n catch sqla.IntegrityError:\n   raise InUse()","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":261,"context_line":"            if vips:"},{"line_number":262,"context_line":"                raise lbaas_ssl.SSLPolicyInUse(policy_id\u003did)"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"            context.session.delete(policy_db)"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def get_lb_ssl_policy(self, context, id, fields\u003dNone):"},{"line_number":267,"context_line":"        policy \u003d self._get_resource(context, SSLPolicy, id)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2Fqpo%3D","line":264,"in_reply_to":"AAAAUH%2F%2BkI8%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":297,"context_line":"            )"},{"line_number":298,"context_line":"            context.session.add(certificate_db)"},{"line_number":299,"context_line":"        return self._make_ssl_certificate_dict(certificate_db,"},{"line_number":300,"context_line":"                                               process_extensions\u003dFalse)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"    def update_lb_ssl_certificate(self, context, id, lb_ssl_certificate):"},{"line_number":303,"context_line":"        c \u003d lb_ssl_certificate[\u0027lb_ssl_certificate\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkIY%3D","line":300,"updated":"2014-01-24 11:30:41.000000000","message":"i don\u0027t see such parameter in that method","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":306,"context_line":"                                                SSLCertificate, id)"},{"line_number":307,"context_line":"            if c:"},{"line_number":308,"context_line":"                certificate_db.update(c)"},{"line_number":309,"context_line":"            new_certificate \u003d self._make_ssl_certificate_dict(certificate_db)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        return new_certificate"},{"line_number":312,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkIM%3D","line":309,"updated":"2014-01-24 11:30:41.000000000","message":"nit: return it here without temp var","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":306,"context_line":"                                                SSLCertificate, id)"},{"line_number":307,"context_line":"            if c:"},{"line_number":308,"context_line":"                certificate_db.update(c)"},{"line_number":309,"context_line":"            new_certificate \u003d self._make_ssl_certificate_dict(certificate_db)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        return new_certificate"},{"line_number":312,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BZg8%3D","line":309,"in_reply_to":"AAAAUH%2F%2BkIM%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":314,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":315,"context_line":"            certificate \u003d self._get_resource(context, SSLCertificate, id)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"            # Ensure that the certificate is not used"},{"line_number":318,"context_line":"            vips \u003d self._get_collection_count("},{"line_number":319,"context_line":"                context.elevated(),"},{"line_number":320,"context_line":"                VipSSLCertificateAssociation,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkIA%3D","line":317,"updated":"2014-01-24 11:30:41.000000000","message":"same on catching IntegrigtyError","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":314,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":315,"context_line":"            certificate \u003d self._get_resource(context, SSLCertificate, id)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"            # Ensure that the certificate is not used"},{"line_number":318,"context_line":"            vips \u003d self._get_collection_count("},{"line_number":319,"context_line":"                context.elevated(),"},{"line_number":320,"context_line":"                VipSSLCertificateAssociation,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FqpE%3D","line":317,"in_reply_to":"AAAAUH%2F%2BkIA%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":374,"context_line":"            cert_db \u003d self._get_resource(context,"},{"line_number":375,"context_line":"                                         SSLTrustedCertificate, id)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"            # Ensure that the trusted certificate is not used"},{"line_number":378,"context_line":"            vips \u003d self._get_collection_count("},{"line_number":379,"context_line":"                context.elevated(),"},{"line_number":380,"context_line":"                VipSSLTrustedCertificateAssociation,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkH8%3D","line":377,"updated":"2014-01-24 11:30:41.000000000","message":"same as above","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":374,"context_line":"            cert_db \u003d self._get_resource(context,"},{"line_number":375,"context_line":"                                         SSLTrustedCertificate, id)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"            # Ensure that the trusted certificate is not used"},{"line_number":378,"context_line":"            vips \u003d self._get_collection_count("},{"line_number":379,"context_line":"                context.elevated(),"},{"line_number":380,"context_line":"                VipSSLTrustedCertificateAssociation,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2FqpA%3D","line":377,"in_reply_to":"AAAAUH%2F%2BkH8%3D","updated":"2014-02-11 16:54:58.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":411,"context_line":"                            in lb_ssl_associations[\u0027lb_ssl_association\u0027]"},{"line_number":412,"context_line":"                                [\u0027lb_ssl_trusted_certificates\u0027]]"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        policy \u003d self._update_vip_ssl_policy(self, context,"},{"line_number":415,"context_line":"                                             policy_id, vip_id)"},{"line_number":416,"context_line":"        certificates \u003d self._update_vip_ssl_certificates(self, context,"},{"line_number":417,"context_line":"                                                         cert_ids, vip_id)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkHs%3D","line":414,"updated":"2014-01-24 11:30:41.000000000","message":"i think these 3 calls need to be within a transaction","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":427,"context_line":"    # because the provider (plugin) uses its create_vip_lb_ssl"},{"line_number":428,"context_line":"    # function directly."},{"line_number":429,"context_line":"    def delete_vip_lb_ssl_association(self, context, vip_id):"},{"line_number":430,"context_line":"        return self.create_vip_lb_ssl(context, None, [], [], vip_id)"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"    def _get_vip_ssl_assoc(self, context, assoc_type, vip_id):"},{"line_number":433,"context_line":"        assoc_qry \u003d context.session.query(assoc_type)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkHU%3D","line":430,"updated":"2014-01-24 11:30:41.000000000","message":"create_vip_lb_ssl_association?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":454,"context_line":"                                            vip_id)"},{"line_number":455,"context_line":"            if assoc is not None:"},{"line_number":456,"context_line":"                self.assert_modification_allowed(assoc)"},{"line_number":457,"context_line":"                if assoc.ssl_policy_id \u003d\u003d policy_id:"},{"line_number":458,"context_line":"                    assoc.status \u003d constants.PENDING_CREATE"},{"line_number":459,"context_line":"                    return res"},{"line_number":460,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BkCY%3D","line":457,"updated":"2014-01-24 11:30:41.000000000","message":"can you explain this condition?","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":478,"context_line":"                                              VipSSLCertificateAssociation,"},{"line_number":479,"context_line":"                                              vip_id)"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"            certificates \u003d []"},{"line_number":482,"context_line":"            for assoc in assocs:"},{"line_number":483,"context_line":"                self.assert_modification_allowed(assoc)"},{"line_number":484,"context_line":"                if assoc.ssl_certificate_id in cert_ids:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj%2BY%3D","line":481,"updated":"2014-01-24 11:30:41.000000000","message":"i\u0027d name variables here certs_to_add and certs_to_remove.\nAlso it\u0027s better to use set operations here.","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":510,"context_line":"                vip_id"},{"line_number":511,"context_line":"            )"},{"line_number":512,"context_line":""},{"line_number":513,"context_line":"            certificates \u003d []"},{"line_number":514,"context_line":"            for assoc in assocs:"},{"line_number":515,"context_line":"                self.assert_modification_allowed(assoc)"},{"line_number":516,"context_line":"                if assoc.ssl_trusted_certificate_id in cert_ids:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj9s%3D","line":513,"updated":"2014-01-24 11:30:41.000000000","message":"same as above","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":134,"context_line":"        primary_key\u003dTrue"},{"line_number":135,"context_line":"    )"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"setattr(lbaas_db.Vip, \u0027lb_ssl_policy\u0027,"},{"line_number":138,"context_line":"        orm.relationship("},{"line_number":139,"context_line":"            VipSSLPolicyAssociation,"},{"line_number":140,"context_line":"            uselist\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAUH%2F9wLE%3D","line":137,"updated":"2014-02-04 11:15:07.000000000","message":"lb_ prefix not needed, since those are internal names. applies to whole file","commit_id":"548a63121995bedbfcacb782c08f521788785729"}],"neutron/db/lbaas_ssl_provider.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.db import lbaas_ssl_db"},{"line_number":22,"context_line":"from neutron.db.loadbalancer import loadbalancer_db"},{"line_number":23,"context_line":"from neutron.plugins.common import constants"},{"line_number":24,"context_line":"from neutron.services.loadbalancer.drivers import\\"},{"line_number":25,"context_line":"    abstract_ssl_extension_driver as abs_ssl_driver"},{"line_number":26,"context_line":"from neutron.services import service_base"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bjqg%3D","line":24,"updated":"2014-01-24 12:34:48.000000000","message":"import (\n  ...)","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.db import lbaas_ssl_db"},{"line_number":22,"context_line":"from neutron.db.loadbalancer import loadbalancer_db"},{"line_number":23,"context_line":"from neutron.plugins.common import constants"},{"line_number":24,"context_line":"from neutron.services.loadbalancer.drivers import\\"},{"line_number":25,"context_line":"    abstract_ssl_extension_driver as abs_ssl_driver"},{"line_number":26,"context_line":"from neutron.services import service_base"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BTQ0%3D","line":24,"in_reply_to":"AAAAUH%2F%2Bjqg%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":26,"context_line":"from neutron.services import service_base"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class LBaasSSLProvider(lbaas_ssl_db.LBaasSSLDbMixin):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def __init__(self):"},{"line_number":32,"context_line":"        ndbapi.register_models()"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj7k%3D","line":29,"updated":"2014-01-24 11:30:41.000000000","message":"I think this should be a part of the lbaas plugin (per discussed), so the plugin will inherit LBaasSSLDbMixin","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"from neutron.services import service_base"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class LBaasSSLProvider(lbaas_ssl_db.LBaasSSLDbMixin):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def __init__(self):"},{"line_number":32,"context_line":"        ndbapi.register_models()"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BTQs%3D","line":29,"in_reply_to":"AAAAUH%2F%2Bj7k%3D","updated":"2014-01-29 12:00:27.000000000","message":"Right","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"}],"neutron/db/loadbalancer/loadbalancer_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd2e7f8c4ecf28ebbb51b32178da8c2808f00a63","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                                           uselist\u003dFalse,"},{"line_number":90,"context_line":"                                           backref\u003d\"vips\","},{"line_number":91,"context_line":"                                           cascade\u003d\"all, delete-orphan\")"},{"line_number":92,"context_line":"    ssl_policy \u003d orm.relationship("},{"line_number":93,"context_line":"        ssl_db.VipSSLPolicyAssociation,"},{"line_number":94,"context_line":"        uselist\u003dTrue,"},{"line_number":95,"context_line":"        lazy\u003d\"joined\","}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sEk%3D","line":92,"updated":"2013-12-23 08:31:57.000000000","message":"+1 to Eugene\u0027s point. I think external_net might be a good example","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                                           uselist\u003dFalse,"},{"line_number":90,"context_line":"                                           backref\u003d\"vips\","},{"line_number":91,"context_line":"                                           cascade\u003d\"all, delete-orphan\")"},{"line_number":92,"context_line":"    ssl_policy \u003d orm.relationship("},{"line_number":93,"context_line":"        ssl_db.VipSSLPolicyAssociation,"},{"line_number":94,"context_line":"        uselist\u003dTrue,"},{"line_number":95,"context_line":"        lazy\u003d\"joined\","}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tt4%3D","line":92,"updated":"2013-12-21 15:21:40.000000000","message":"i wonder, could we inject these from ssl db mixin?\nThat is how such relationships injected to the core resources.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                                           uselist\u003dFalse,"},{"line_number":90,"context_line":"                                           backref\u003d\"vips\","},{"line_number":91,"context_line":"                                           cascade\u003d\"all, delete-orphan\")"},{"line_number":92,"context_line":"    ssl_policy \u003d orm.relationship("},{"line_number":93,"context_line":"        ssl_db.VipSSLPolicyAssociation,"},{"line_number":94,"context_line":"        uselist\u003dTrue,"},{"line_number":95,"context_line":"        lazy\u003d\"joined\","}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rKY%3D","line":92,"in_reply_to":"AAAATn%2F8sEk%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd2e7f8c4ecf28ebbb51b32178da8c2808f00a63","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                                           cascade\u003d\"all, delete-orphan\")"},{"line_number":92,"context_line":"    ssl_policy \u003d orm.relationship("},{"line_number":93,"context_line":"        ssl_db.VipSSLPolicyAssociation,"},{"line_number":94,"context_line":"        uselist\u003dTrue,"},{"line_number":95,"context_line":"        lazy\u003d\"joined\","},{"line_number":96,"context_line":"        primaryjoin\u003d\"Vip.id\u003d\u003dVipSSLPolicyAssociation.vip_id\","},{"line_number":97,"context_line":"        foreign_keys\u003d[ssl_db.VipSSLPolicyAssociation.vip_id]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sDc%3D","line":94,"updated":"2013-12-23 08:31:57.000000000","message":"why list if can be only one policy?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                                           cascade\u003d\"all, delete-orphan\")"},{"line_number":92,"context_line":"    ssl_policy \u003d orm.relationship("},{"line_number":93,"context_line":"        ssl_db.VipSSLPolicyAssociation,"},{"line_number":94,"context_line":"        uselist\u003dTrue,"},{"line_number":95,"context_line":"        lazy\u003d\"joined\","},{"line_number":96,"context_line":"        primaryjoin\u003d\"Vip.id\u003d\u003dVipSSLPolicyAssociation.vip_id\","},{"line_number":97,"context_line":"        foreign_keys\u003d[ssl_db.VipSSLPolicyAssociation.vip_id]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rJc%3D","line":94,"in_reply_to":"AAAATn%2F8sDc%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":267,"context_line":"               \u0027status_description\u0027: vip[\u0027status_description\u0027]}"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tt0%3D","line":270,"updated":"2013-12-21 15:21:40.000000000","message":"Following the comment above, it\u0027s better to utilize \u0027process extensions dict\u0027 approach. SSL db mixin will registed it\u0027s method to extend vip dict with additional attributes if they exist in db model. And they could be absent. (btw, this case is not covered here)","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd2e7f8c4ecf28ebbb51b32178da8c2808f00a63","unresolved":false,"context_lines":[{"line_number":267,"context_line":"               \u0027status_description\u0027: vip[\u0027status_description\u0027]}"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sE0%3D","line":270,"updated":"2013-12-23 08:31:57.000000000","message":"also +1 and a nit: res[\u0027ssl_policy\u0027] -\u003e res[\u0027ssl_policies\u0027]","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"082e01e2f004be877e674080b7c85d355e334fdc","unresolved":false,"context_lines":[{"line_number":267,"context_line":"               \u0027status_description\u0027: vip[\u0027status_description\u0027]}"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qW8%3D","line":270,"in_reply_to":"AAAATn%2F8rJI%3D","updated":"2013-12-23 15:30:40.000000000","message":"agree","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":267,"context_line":"               \u0027status_description\u0027: vip[\u0027status_description\u0027]}"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rJI%3D","line":270,"in_reply_to":"AAAATn%2F8sE0%3D","updated":"2013-12-23 15:04:23.000000000","message":"Actually, as you said, it\u0027s just one policy, so it should remain single","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":267,"context_line":"               \u0027status_description\u0027: vip[\u0027status_description\u0027]}"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tBA%3D","line":270,"in_reply_to":"AAAATn%2F8tt0%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"dd2e7f8c4ecf28ebbb51b32178da8c2808f00a63","unresolved":false,"context_lines":[{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"},{"line_number":274,"context_line":"        res[\u0027ssl_certificates\u0027] \u003d [cert[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sDQ%3D","line":271,"updated":"2013-12-23 08:31:57.000000000","message":"do not need to iterate since can be only 1 policy by design","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        # Get associated ssl policies"},{"line_number":270,"context_line":"        res[\u0027ssl_policy\u0027] \u003d ["},{"line_number":271,"context_line":"            policy[\u0027id\u0027] for policy in vip[\u0027ssl_policy\u0027]]"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"        # Get associated sslcertificates"},{"line_number":274,"context_line":"        res[\u0027ssl_certificates\u0027] \u003d [cert[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rIo%3D","line":271,"in_reply_to":"AAAATn%2F8sDQ%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"}],"neutron/db/model_base.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4ca96227c00ecc15665bd7053acef7238ee904d9","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        # NOTE(jkoelker) use the pluralized name of the class as the table"},{"line_number":49,"context_line":"        return cls.__name__.lower() + \u0027s\u0027"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"BASEV2 \u003d declarative.declarative_base(cls\u003dNeutronBaseV2)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F%2Fgo%3D","side":"PARENT","line":51,"updated":"2013-12-25 10:05:34.000000000","message":"unrelated","commit_id":"f7dc0ca9034c3d9c46ffef278b3e3de6eec5480d"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        # NOTE(jkoelker) use the pluralized name of the class as the table"},{"line_number":49,"context_line":"        return cls.__name__.lower() + \u0027s\u0027"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"BASEV2 \u003d declarative.declarative_base(cls\u003dNeutronBaseV2)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F%2FXo%3D","side":"PARENT","line":51,"in_reply_to":"AAAAT3%2F%2F%2Fgo%3D","updated":"2014-01-15 17:26:39.000000000","message":"Done","commit_id":"f7dc0ca9034c3d9c46ffef278b3e3de6eec5480d"}],"neutron/db/ssl_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2012 Nicira Networks, Inc.  All rights reserved."},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":6,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sEA%3D","line":3,"updated":"2013-12-23 08:31:58.000000000","message":"nit: this seems inaccurate","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2012 Nicira Networks, Inc.  All rights reserved."},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":6,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rIM%3D","line":3,"in_reply_to":"AAAATn%2F8sEA%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":30,"context_line":"from neutron.openstack.common import uuidutils"},{"line_number":31,"context_line":"from neutron.plugins.common import constants"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class SSLPolicy(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sD8%3D","line":33,"updated":"2013-12-23 08:31:58.000000000","message":"LOG is not used","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":30,"context_line":"from neutron.openstack.common import uuidutils"},{"line_number":31,"context_line":"from neutron.plugins.common import constants"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class SSLPolicy(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rIE%3D","line":33,"in_reply_to":"AAAATn%2F8sD8%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done.\nIn loadbalancer_db as well","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    \"\"\""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    name \u003d sa.Column(sa.String(255))"},{"line_number":68,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":69,"context_line":"    passphrase \u003d sa.Column(sa.String(128))"},{"line_number":70,"context_line":"    certificate_chain \u003d sa.Column(sa.String(20480))"},{"line_number":71,"context_line":"    private_key \u003d sa.Column(sa.String(4096))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tv4%3D","line":68,"updated":"2013-12-21 15:21:40.000000000","message":"sa.Text?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    \"\"\""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    name \u003d sa.Column(sa.String(255))"},{"line_number":68,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":69,"context_line":"    passphrase \u003d sa.Column(sa.String(128))"},{"line_number":70,"context_line":"    certificate_chain \u003d sa.Column(sa.String(20480))"},{"line_number":71,"context_line":"    private_key \u003d sa.Column(sa.String(4096))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s%2Bg%3D","line":68,"in_reply_to":"AAAATn%2F8tv4%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    name \u003d sa.Column(sa.String(255))"},{"line_number":68,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":69,"context_line":"    passphrase \u003d sa.Column(sa.String(128))"},{"line_number":70,"context_line":"    certificate_chain \u003d sa.Column(sa.String(20480))"},{"line_number":71,"context_line":"    private_key \u003d sa.Column(sa.String(4096))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    vips \u003d orm.relationship("}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tvo%3D","line":70,"updated":"2013-12-21 15:21:40.000000000","message":"in fact sa.String maps to a kind of VARCHAR which could be limited int lenght. consider sa.Text","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    name \u003d sa.Column(sa.String(255))"},{"line_number":68,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":69,"context_line":"    passphrase \u003d sa.Column(sa.String(128))"},{"line_number":70,"context_line":"    certificate_chain \u003d sa.Column(sa.String(20480))"},{"line_number":71,"context_line":"    private_key \u003d sa.Column(sa.String(4096))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    vips \u003d orm.relationship("}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s%2Bc%3D","line":70,"in_reply_to":"AAAATn%2F8tvo%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done. Changed to Text","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":69,"context_line":"    passphrase \u003d sa.Column(sa.String(128))"},{"line_number":70,"context_line":"    certificate_chain \u003d sa.Column(sa.String(20480))"},{"line_number":71,"context_line":"    private_key \u003d sa.Column(sa.String(4096))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    vips \u003d orm.relationship("},{"line_number":74,"context_line":"        \"VipSSLCertificateAssociation\", backref\u003d\"sslcertificate\","}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tvk%3D","line":71,"updated":"2013-12-21 15:21:40.000000000","message":"4096 is ok for VARCHAR, but i think for such size sa.Text will be better","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    certificate \u003d sa.Column(sa.String(4096))"},{"line_number":69,"context_line":"    passphrase \u003d sa.Column(sa.String(128))"},{"line_number":70,"context_line":"    certificate_chain \u003d sa.Column(sa.String(20480))"},{"line_number":71,"context_line":"    private_key \u003d sa.Column(sa.String(4096))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    vips \u003d orm.relationship("},{"line_number":74,"context_line":"        \"VipSSLCertificateAssociation\", backref\u003d\"sslcertificate\","}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s%2BY%3D","line":71,"in_reply_to":"AAAATn%2F8tvk%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done. Changed to Text","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                       primary_key\u003dTrue)"},{"line_number":105,"context_line":"    ssl_policy_id \u003d sa.Column(sa.String(36),"},{"line_number":106,"context_line":"                              sa.ForeignKey(\"sslpolicies.id\"),"},{"line_number":107,"context_line":"                              primary_key\u003dTrue)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class VipSSLCertificateAssociation(model_base.BASEV2,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sB0%3D","line":107,"updated":"2013-12-23 08:31:58.000000000","message":"since vip can be associated with only one policy isn\u0027t it enough to have only vip_id as a primary key?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                       primary_key\u003dTrue)"},{"line_number":105,"context_line":"    ssl_policy_id \u003d sa.Column(sa.String(36),"},{"line_number":106,"context_line":"                              sa.ForeignKey(\"sslpolicies.id\"),"},{"line_number":107,"context_line":"                              primary_key\u003dTrue)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class VipSSLCertificateAssociation(model_base.BASEV2,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rG0%3D","line":107,"in_reply_to":"AAAATn%2F8sB0%3D","updated":"2013-12-23 15:04:23.000000000","message":"That\u0027s right, but when policy changes - the old row gets PENDING_DELETE status and new one (with same vip_id and different policy_id gets PENDING_CREATE). So there are 2 rows with same vip_id in table for some period of time until driver deletes the old one. That\u0027s the reason. BTW, it may flood error if same policy will be associated twice as a result of a bug. \nI may miss something.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":110,"context_line":"class VipSSLCertificateAssociation(model_base.BASEV2,"},{"line_number":111,"context_line":"                                   models_v2.HasStatusDescription):"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    \"\"\"Many-to-many association between vip and SSL certificate classes.\"\"\""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    vip_id \u003d sa.Column(sa.String(36),"},{"line_number":116,"context_line":"                       sa.ForeignKey(\"vips.id\"),"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sBs%3D","line":113,"updated":"2013-12-23 08:31:58.000000000","message":"nit: please be consistent in using vip/Vip/VIP","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":110,"context_line":"class VipSSLCertificateAssociation(model_base.BASEV2,"},{"line_number":111,"context_line":"                                   models_v2.HasStatusDescription):"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    \"\"\"Many-to-many association between vip and SSL certificate classes.\"\"\""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    vip_id \u003d sa.Column(sa.String(36),"},{"line_number":116,"context_line":"                       sa.ForeignKey(\"vips.id\"),"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rFc%3D","line":113,"in_reply_to":"AAAATn%2F8sBs%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    def _core_plugin(self):"},{"line_number":150,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _get_resource(self, context, model, id):"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            r \u003d self._get_by_id(context, model, id)"},{"line_number":155,"context_line":"        except exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r6g%3D","line":152,"updated":"2013-12-23 08:31:58.000000000","message":"this will conflict with LoadBalancerPluginDb._get_resource() in LoadBalancerPlugin. Consider renaming to _get_ssl_resource() or using pseudo private concept - __get_resource()","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f438315726b19e833631c06e04eea99bd57eea12","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    def _core_plugin(self):"},{"line_number":150,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _get_resource(self, context, model, id):"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            r \u003d self._get_by_id(context, model, id)"},{"line_number":155,"context_line":"        except exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8mVg%3D","line":152,"in_reply_to":"AAAATn%2F8p40%3D","updated":"2013-12-24 14:56:45.000000000","message":"In fact it was not necessary since you\u0027ve changed the class from being a mixin to a separate db module, so there would be no conflict.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"082e01e2f004be877e674080b7c85d355e334fdc","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    def _core_plugin(self):"},{"line_number":150,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _get_resource(self, context, model, id):"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            r \u003d self._get_by_id(context, model, id)"},{"line_number":155,"context_line":"        except exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qSs%3D","line":152,"in_reply_to":"AAAATn%2F8q8k%3D","updated":"2013-12-23 15:30:40.000000000","message":"ultimately all methods will be called from plugin. For ex get_ssl_certificate() called from plugin - it will call self._get_resource(context, SSLPolicy, id) but plugin has _get_resource() from LoadBalancerPluginDb and _get_resource() from SSLDbMixin - it will choose according to inheritance list. You can check this however with unit tests.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"5eb8639f4e72dd8850e5122d6f268176463c9cfb","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    def _core_plugin(self):"},{"line_number":150,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _get_resource(self, context, model, id):"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            r \u003d self._get_by_id(context, model, id)"},{"line_number":155,"context_line":"        except exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8p40%3D","line":152,"in_reply_to":"AAAATn%2F8qSs%3D","updated":"2013-12-24 14:49:43.000000000","message":"Done.\nChanged it to _get_ssl_resources","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    def _core_plugin(self):"},{"line_number":150,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _get_resource(self, context, model, id):"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            r \u003d self._get_by_id(context, model, id)"},{"line_number":155,"context_line":"        except exc.NoResultFound:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8q8k%3D","line":152,"in_reply_to":"AAAATn%2F8r6g%3D","updated":"2013-12-23 15:04:23.000000000","message":"I do not understand how it will conflict. both MixIns have _get_resource() but never called from plugin, just from themselves. Do you mean diamond problem? I\u0027m new to python so may missunderstand","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":234,"context_line":"    ################### SSL Certificate DB access #############################"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def _make_ssl_certificate_dict(self, certificate, fields\u003dNone,"},{"line_number":237,"context_line":"                                   process_extensions\u003dTrue):"},{"line_number":238,"context_line":"        res \u003d {\u0027id\u0027: certificate[\u0027id\u0027],"},{"line_number":239,"context_line":"               \u0027name\u0027: certificate[\u0027name\u0027],"},{"line_number":240,"context_line":"               \u0027tenant_id\u0027: certificate[\u0027tenant_id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tvM%3D","line":237,"updated":"2013-12-21 15:21:40.000000000","message":"is this parameter needed?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":234,"context_line":"    ################### SSL Certificate DB access #############################"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def _make_ssl_certificate_dict(self, certificate, fields\u003dNone,"},{"line_number":237,"context_line":"                                   process_extensions\u003dTrue):"},{"line_number":238,"context_line":"        res \u003d {\u0027id\u0027: certificate[\u0027id\u0027],"},{"line_number":239,"context_line":"               \u0027name\u0027: certificate[\u0027name\u0027],"},{"line_number":240,"context_line":"               \u0027tenant_id\u0027: certificate[\u0027tenant_id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s%2BI%3D","line":237,"in_reply_to":"AAAATn%2F8tvM%3D","updated":"2013-12-23 15:04:23.000000000","message":"No. Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        trusted_cert_ids \u003d [cert[\u0027ssl_trusted_certificate\u0027][\u0027id\u0027]"},{"line_number":364,"context_line":"                            for cert in trusted_certs]"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        policies \u003d self._update_vip_ssl_policy(self, context,"},{"line_number":367,"context_line":"                                               policy_id, vip_id)"},{"line_number":368,"context_line":"        certificates \u003d self._update_vip_ssl_certificates(self, context,"},{"line_number":369,"context_line":"                                                         cert_ids, vip_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8sAI%3D","line":366,"updated":"2013-12-23 08:31:58.000000000","message":"why plural?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        trusted_cert_ids \u003d [cert[\u0027ssl_trusted_certificate\u0027][\u0027id\u0027]"},{"line_number":364,"context_line":"                            for cert in trusted_certs]"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        policies \u003d self._update_vip_ssl_policy(self, context,"},{"line_number":367,"context_line":"                                               policy_id, vip_id)"},{"line_number":368,"context_line":"        certificates \u003d self._update_vip_ssl_certificates(self, context,"},{"line_number":369,"context_line":"                                                         cert_ids, vip_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8q7s%3D","line":366,"in_reply_to":"AAAATn%2F8sAI%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":371,"context_line":"            self, context, trusted_cert_ids, vip_id"},{"line_number":372,"context_line":"        )"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        res \u003d {}"},{"line_number":375,"context_line":"        res.append(policies)"},{"line_number":376,"context_line":"        res.append(certificates)"},{"line_number":377,"context_line":"        res.append(trusted_certificates)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tvI%3D","line":374,"updated":"2013-12-21 15:21:40.000000000","message":"res \u003d [] ?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":371,"context_line":"            self, context, trusted_cert_ids, vip_id"},{"line_number":372,"context_line":"        )"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        res \u003d {}"},{"line_number":375,"context_line":"        res.append(policies)"},{"line_number":376,"context_line":"        res.append(certificates)"},{"line_number":377,"context_line":"        res.append(trusted_certificates)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s%2BE%3D","line":374,"in_reply_to":"AAAATn%2F8tvI%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":371,"context_line":"            self, context, trusted_cert_ids, vip_id"},{"line_number":372,"context_line":"        )"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        res \u003d {}"},{"line_number":375,"context_line":"        res.append(policies)"},{"line_number":376,"context_line":"        res.append(certificates)"},{"line_number":377,"context_line":"        res.append(trusted_certificates)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r%2FQ%3D","line":374,"in_reply_to":"AAAATn%2F8tvI%3D","updated":"2013-12-23 08:31:58.000000000","message":"Probably {} is ok and use update instead of append below","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":384,"context_line":"        try:"},{"line_number":385,"context_line":"            assoc_qry \u003d context.session.query(assoc_type)"},{"line_number":386,"context_line":"            return assoc_qry.filter_by(vip_id\u003dvip_id)"},{"line_number":387,"context_line":"        except exc.NoResultFound:"},{"line_number":388,"context_line":"            return []"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"    def _get_vip_ssl_assocs_for_deletion(self, context, assoc_type, vip_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tu0%3D","line":387,"updated":"2013-12-21 15:21:40.000000000","message":"tha\u0027s not needed because:\n1) assoc_qry.filter_by() will not throw unless .one() is called and there is no record\n2)  assoc_qry.filter_by().all() will return empty list so catching NoResultFound is also not needed","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":384,"context_line":"        try:"},{"line_number":385,"context_line":"            assoc_qry \u003d context.session.query(assoc_type)"},{"line_number":386,"context_line":"            return assoc_qry.filter_by(vip_id\u003dvip_id)"},{"line_number":387,"context_line":"        except exc.NoResultFound:"},{"line_number":388,"context_line":"            return []"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"    def _get_vip_ssl_assocs_for_deletion(self, context, assoc_type, vip_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s%2BA%3D","line":387,"in_reply_to":"AAAATn%2F8tu0%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":392,"context_line":"            assoc_qry \u003d context.session.query(assoc_type)"},{"line_number":393,"context_line":"            return assoc_qry.filter_by(vip_id\u003dvip_id,"},{"line_number":394,"context_line":"                                       status\u003dconstants.PENDING_DELETE)"},{"line_number":395,"context_line":"        except exc.NoResultFound:"},{"line_number":396,"context_line":"            return []"},{"line_number":397,"context_line":""},{"line_number":398,"context_line":"    def _update_vip_ssl_policy(self, context, policy_id, vip_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tuw%3D","line":395,"updated":"2013-12-21 15:21:40.000000000","message":"same as above","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":392,"context_line":"            assoc_qry \u003d context.session.query(assoc_type)"},{"line_number":393,"context_line":"            return assoc_qry.filter_by(vip_id\u003dvip_id,"},{"line_number":394,"context_line":"                                       status\u003dconstants.PENDING_DELETE)"},{"line_number":395,"context_line":"        except exc.NoResultFound:"},{"line_number":396,"context_line":"            return []"},{"line_number":397,"context_line":""},{"line_number":398,"context_line":"    def _update_vip_ssl_policy(self, context, policy_id, vip_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s98%3D","line":395,"in_reply_to":"AAAATn%2F8tuw%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":403,"context_line":"                                             vip_id).first()"},{"line_number":404,"context_line":"            if assoc:"},{"line_number":405,"context_line":"                self.assert_modification_allowed(assoc)"},{"line_number":406,"context_line":"                if assoc.ssl_policy_id \u003d\u003d policy_id:"},{"line_number":407,"context_line":"                    assoc.status \u003d constants.PENDING_CREATE"},{"line_number":408,"context_line":"                else:"},{"line_number":409,"context_line":"                    assoc.status \u003d constants.PENDING_DELETE"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tuY%3D","line":406,"updated":"2013-12-21 15:21:40.000000000","message":"that construct seems a little weird to me.\nas far as i understand, policy_id could be None or?\nmay be it is better to explicitly check for None?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":403,"context_line":"                                             vip_id).first()"},{"line_number":404,"context_line":"            if assoc:"},{"line_number":405,"context_line":"                self.assert_modification_allowed(assoc)"},{"line_number":406,"context_line":"                if assoc.ssl_policy_id \u003d\u003d policy_id:"},{"line_number":407,"context_line":"                    assoc.status \u003d constants.PENDING_CREATE"},{"line_number":408,"context_line":"                else:"},{"line_number":409,"context_line":"                    assoc.status \u003d constants.PENDING_DELETE"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s9w%3D","line":406,"in_reply_to":"AAAATn%2F8tuY%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done.\nI get the only one possible assoc now.\nIf exists with same policy - PENDING_CREATE and return\nIf exists with other policy - PENDING_DELETE\nIf policy is not None - adding new one","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":406,"context_line":"                if assoc.ssl_policy_id \u003d\u003d policy_id:"},{"line_number":407,"context_line":"                    assoc.status \u003d constants.PENDING_CREATE"},{"line_number":408,"context_line":"                else:"},{"line_number":409,"context_line":"                    assoc.status \u003d constants.PENDING_DELETE"},{"line_number":410,"context_line":"            elif policy_id:"},{"line_number":411,"context_line":"                assoc \u003d VipSSLPolicyAssociation("},{"line_number":412,"context_line":"                    vip_id\u003dvip_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r%2Bo%3D","line":409,"updated":"2013-12-23 08:31:58.000000000","message":"is it ok to only update status to PENDING_DELETE if new policy_id is not the same as old one?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":406,"context_line":"                if assoc.ssl_policy_id \u003d\u003d policy_id:"},{"line_number":407,"context_line":"                    assoc.status \u003d constants.PENDING_CREATE"},{"line_number":408,"context_line":"                else:"},{"line_number":409,"context_line":"                    assoc.status \u003d constants.PENDING_DELETE"},{"line_number":410,"context_line":"            elif policy_id:"},{"line_number":411,"context_line":"                assoc \u003d VipSSLPolicyAssociation("},{"line_number":412,"context_line":"                    vip_id\u003dvip_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8q7U%3D","line":409,"in_reply_to":"AAAATn%2F8r%2Bo%3D","updated":"2013-12-23 15:04:23.000000000","message":"No. Forgot to add the new one. Logic changed a little in next patch","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                    vip_id\u003dvip_id,"},{"line_number":413,"context_line":"                    ssl_policy_id\u003dpolicy_id,"},{"line_number":414,"context_line":"                    status\u003dconstants.PENDING_CREATE"},{"line_number":415,"context_line":"                )"},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"            policy \u003d [policy_id]"},{"line_number":418,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tuo%3D","line":415,"updated":"2013-12-21 15:21:40.000000000","message":"session.add(assoc)?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                    vip_id\u003dvip_id,"},{"line_number":413,"context_line":"                    ssl_policy_id\u003dpolicy_id,"},{"line_number":414,"context_line":"                    status\u003dconstants.PENDING_CREATE"},{"line_number":415,"context_line":"                )"},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"            policy \u003d [policy_id]"},{"line_number":418,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s8M%3D","line":415,"in_reply_to":"AAAATn%2F8tuo%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":467,"context_line":"                    vip_id\u003dvip_id,"},{"line_number":468,"context_line":"                    ssl_trusted_certificate_id\u003dcert_id,"},{"line_number":469,"context_line":"                    status\u003dconstants.PENDING_CREATE"},{"line_number":470,"context_line":"                )"},{"line_number":471,"context_line":"                certificates.append(cert_id)"},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"        res \u003d {\"ssl_trusted_certificates\": certificates}"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tt8%3D","line":470,"updated":"2013-12-21 15:21:40.000000000","message":"session.add(assoc)?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":467,"context_line":"                    vip_id\u003dvip_id,"},{"line_number":468,"context_line":"                    ssl_trusted_certificate_id\u003dcert_id,"},{"line_number":469,"context_line":"                    status\u003dconstants.PENDING_CREATE"},{"line_number":470,"context_line":"                )"},{"line_number":471,"context_line":"                certificates.append(cert_id)"},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"        res \u003d {\"ssl_trusted_certificates\": certificates}"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s7s%3D","line":470,"in_reply_to":"AAAATn%2F8tt8%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":473,"context_line":"        res \u003d {\"ssl_trusted_certificates\": certificates}"},{"line_number":474,"context_line":"        return res"},{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    def _remove_pending_delete_vip_ssl(self, context, vip_id):"},{"line_number":477,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":478,"context_line":"            assocs \u003d self._get_vip_ssl_assocs_for_deletion("},{"line_number":479,"context_line":"                context, VipSSLPolicyAssociation, vip_id"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r9w%3D","line":476,"updated":"2013-12-23 08:31:58.000000000","message":"where should this be used?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":473,"context_line":"        res \u003d {\"ssl_trusted_certificates\": certificates}"},{"line_number":474,"context_line":"        return res"},{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    def _remove_pending_delete_vip_ssl(self, context, vip_id):"},{"line_number":477,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":478,"context_line":"            assocs \u003d self._get_vip_ssl_assocs_for_deletion("},{"line_number":479,"context_line":"                context, VipSSLPolicyAssociation, vip_id"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8q6c%3D","line":476,"in_reply_to":"AAAATn%2F8r9w%3D","updated":"2013-12-23 15:04:23.000000000","message":"Used in plugin _delete_db_vip_ssl() which should be called by driver after finishing handling the back-end","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4ca96227c00ecc15665bd7053acef7238ee904d9","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    def _core_plugin(self):"},{"line_number":187,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def update_ssl_status(self, context, model, id, status,"},{"line_number":190,"context_line":"                          status_description\u003dNone):"},{"line_number":191,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":192,"context_line":"            v_db \u003d self._get_ssl_resource(context, model, id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F%2Fd8%3D","line":189,"updated":"2013-12-25 10:05:34.000000000","message":"can use update_status() from LoadBalancerPluginDb and avoid duplication if using pseudo-private concept: _get_ssl_resource -\u003e __get_resource","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    def _core_plugin(self):"},{"line_number":187,"context_line":"        return manager.NeutronManager.get_plugin()"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def update_ssl_status(self, context, model, id, status,"},{"line_number":190,"context_line":"                          status_description\u003dNone):"},{"line_number":191,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":192,"context_line":"            v_db \u003d self._get_ssl_resource(context, model, id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FTgI%3D","line":189,"in_reply_to":"AAAAT3%2F%2F%2Fd8%3D","updated":"2014-01-15 17:26:39.000000000","message":"Done.\nExtension now is not part of lbaas plugin so the name is _get_resource","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"unresolved":false,"context_lines":[{"line_number":212,"context_line":"                raise"},{"line_number":213,"context_line":"        return r"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    ################### SSL Policy DB access #################################"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    def _make_ssl_policy_dict(self, ssl_policy, fields\u003dNone):"},{"line_number":218,"context_line":"        res \u003d {\u0027id\u0027: ssl_policy[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2F2LU%3D","line":215,"updated":"2014-01-07 18:49:52.000000000","message":"nit: please use doc string # see hacking.rst","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":212,"context_line":"                raise"},{"line_number":213,"context_line":"        return r"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    ################### SSL Policy DB access #################################"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    def _make_ssl_policy_dict(self, ssl_policy, fields\u003dNone):"},{"line_number":218,"context_line":"        res \u003d {\u0027id\u0027: ssl_policy[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FTgA%3D","line":215,"in_reply_to":"AAAAUH%2F%2F2LU%3D","updated":"2014-01-15 17:26:39.000000000","message":"Done","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4ca96227c00ecc15665bd7053acef7238ee904d9","unresolved":false,"context_lines":[{"line_number":432,"context_line":"    def _get_vip_ssl_assoc(self, context, assoc_type, vip_id):"},{"line_number":433,"context_line":"        try:"},{"line_number":434,"context_line":"            assoc_qry \u003d context.session.query(assoc_type)"},{"line_number":435,"context_line":"            return assoc_qry.filter_by(vip_id\u003dvip_id).one()"},{"line_number":436,"context_line":"        except exc.NoResultFound:"},{"line_number":437,"context_line":"            return None"},{"line_number":438,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F%2FgU%3D","line":435,"updated":"2013-12-25 10:05:34.000000000","message":"please use .first() and hence no need for try/except","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":432,"context_line":"    def _get_vip_ssl_assoc(self, context, assoc_type, vip_id):"},{"line_number":433,"context_line":"        try:"},{"line_number":434,"context_line":"            assoc_qry \u003d context.session.query(assoc_type)"},{"line_number":435,"context_line":"            return assoc_qry.filter_by(vip_id\u003dvip_id).one()"},{"line_number":436,"context_line":"        except exc.NoResultFound:"},{"line_number":437,"context_line":"            return None"},{"line_number":438,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F8hY%3D","line":435,"in_reply_to":"AAAAT3%2F%2F%2FgU%3D","updated":"2014-01-15 17:26:39.000000000","message":"Done","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4ca96227c00ecc15665bd7053acef7238ee904d9","unresolved":false,"context_lines":[{"line_number":467,"context_line":""},{"line_number":468,"context_line":"            return res"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    def _update_vip_ssl_certificates(self, context, cert_ids, vip_id):"},{"line_number":471,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":472,"context_line":"            assocs \u003d self._get_vip_ssl_assocs(context,"},{"line_number":473,"context_line":"                                              VipSSLCertificateAssociation,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F%2Fag%3D","line":470,"updated":"2013-12-25 10:05:34.000000000","message":"have a strong feeling that below 2 methods can be refactored into one :)","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":467,"context_line":""},{"line_number":468,"context_line":"            return res"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    def _update_vip_ssl_certificates(self, context, cert_ids, vip_id):"},{"line_number":471,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":472,"context_line":"            assocs \u003d self._get_vip_ssl_assocs(context,"},{"line_number":473,"context_line":"                                              VipSSLCertificateAssociation,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F8eU%3D","line":470,"in_reply_to":"AAAAT3%2F%2F%2Fag%3D","updated":"2014-01-15 17:26:39.000000000","message":"Yes, I had a feeling too, but merging those two together will complicate it since column names and assoc class names are different. I may not think \"pythonic\" and hence do not see elegant way to merge those two. Do you have an idea?","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"}],"neutron/extensions/lbaas_ssl.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":20,"context_line":"import abc"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo.config import cfg"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"import six"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"from neutron.api import extensions"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bjp0%3D","line":23,"updated":"2014-01-24 12:34:48.000000000","message":"blank line not needed","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":20,"context_line":"import abc"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo.config import cfg"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"import six"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"from neutron.api import extensions"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BTQc%3D","line":23,"in_reply_to":"AAAAUH%2F%2Bjp0%3D","updated":"2014-01-29 12:00:27.000000000","message":"Done","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":168,"context_line":"}"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":171,"context_line":"    \u0027lb_ssl_associations\u0027: {"},{"line_number":172,"context_line":"        \u0027parent\u0027: {\u0027collection_name\u0027: \u0027vips\u0027,"},{"line_number":173,"context_line":"                   \u0027member_name\u0027: \u0027vip\u0027},"},{"line_number":174,"context_line":"        \u0027parameters\u0027: {"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj8s%3D","line":171,"updated":"2014-01-24 11:30:41.000000000","message":"why is it a subresource?\nI don\u0027t see why we need to expose association in anyway through the API","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":240,"context_line":"}"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"ssl_quota_opts \u003d ["},{"line_number":244,"context_line":"    cfg.IntOpt(\u0027quota_lb_ssl_policy\u0027,"},{"line_number":245,"context_line":"               default\u003d-1,"},{"line_number":246,"context_line":"               help\u003d_(\u0027Number of LBaaS SSL policies allowed per tenant, \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bjnk%3D","line":243,"updated":"2014-01-24 12:34:48.000000000","message":"these opts should be reflected in the config file or handled in a separate patch","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":240,"context_line":"}"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"ssl_quota_opts \u003d ["},{"line_number":244,"context_line":"    cfg.IntOpt(\u0027quota_lb_ssl_policy\u0027,"},{"line_number":245,"context_line":"               default\u003d-1,"},{"line_number":246,"context_line":"               help\u003d_(\u0027Number of LBaaS SSL policies allowed per tenant, \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BZbw%3D","line":243,"in_reply_to":"AAAAUH%2F%2Bjnk%3D","updated":"2014-01-29 12:00:27.000000000","message":"Removed it. Agree that separate patch is the right way","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":296,"context_line":"            from neutron.db import lbaas_ssl_provider"},{"line_number":297,"context_line":"            plugin \u003d lbaas_ssl_provider.LBaasSSLProvider()"},{"line_number":298,"context_line":"        else:"},{"line_number":299,"context_line":"            plugin \u003d ext_plugin"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        for collection_name in RESOURCE_ATTRIBUTE_MAP:"},{"line_number":302,"context_line":"            resource_name \u003d my_plurals[collection_name]"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj8Q%3D","line":299,"updated":"2014-01-24 11:30:41.000000000","message":"As per discussion on the meeting we still want to make ssl a part of core API, so this will be LOADBALANCER plugin","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":298,"context_line":"        else:"},{"line_number":299,"context_line":"            plugin \u003d ext_plugin"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        for collection_name in RESOURCE_ATTRIBUTE_MAP:"},{"line_number":302,"context_line":"            resource_name \u003d my_plurals[collection_name]"},{"line_number":303,"context_line":"            params \u003d RESOURCE_ATTRIBUTE_MAP[collection_name]"},{"line_number":304,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj8M%3D","line":301,"updated":"2014-01-24 11:30:41.000000000","message":"I guess there is a common method (merged recently) to register resources in REST layer.","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"65d6ef145f19bd251f08c36972e3f1fb8b7dd16d","unresolved":false,"context_lines":[{"line_number":298,"context_line":"        else:"},{"line_number":299,"context_line":"            plugin \u003d ext_plugin"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"        for collection_name in RESOURCE_ATTRIBUTE_MAP:"},{"line_number":302,"context_line":"            resource_name \u003d my_plurals[collection_name]"},{"line_number":303,"context_line":"            params \u003d RESOURCE_ATTRIBUTE_MAP[collection_name]"},{"line_number":304,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bjms%3D","line":301,"in_reply_to":"AAAAUH%2F%2Bj8M%3D","updated":"2014-01-24 12:34:48.000000000","message":"it is https://review.openstack.org/#/c/64676/","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"}],"neutron/extensions/loadbalancer.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"fdc27b74f92650749e50ccd604127c90ba7f07c9","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                                        \u0027cookie_name\u0027: {\u0027type:string\u0027: None,"},{"line_number":133,"context_line":"                                                        \u0027required\u0027: False}}},"},{"line_number":134,"context_line":"                                \u0027is_visible\u0027: True},"},{"line_number":135,"context_line":"        \u0027ssl_policy\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":136,"context_line":"                       \u0027default\u0027: None,"},{"line_number":137,"context_line":"                       \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":138,"context_line":"                       \u0027convert_to\u0027: attr.convert_to_list,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8rgA%3D","line":135,"updated":"2013-12-23 10:33:13.000000000","message":"by the way, following separation of ssl and lbaas extensions, that should be updated from ssl extension, like some other extensions update attributes of core resources.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                                        \u0027cookie_name\u0027: {\u0027type:string\u0027: None,"},{"line_number":133,"context_line":"                                                        \u0027required\u0027: False}}},"},{"line_number":134,"context_line":"                                \u0027is_visible\u0027: True},"},{"line_number":135,"context_line":"        \u0027ssl_policy\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":136,"context_line":"                       \u0027default\u0027: None,"},{"line_number":137,"context_line":"                       \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":138,"context_line":"                       \u0027convert_to\u0027: attr.convert_to_list,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qeE%3D","line":135,"in_reply_to":"AAAATn%2F8rgA%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                                \u0027is_visible\u0027: True},"},{"line_number":135,"context_line":"        \u0027ssl_policy\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":136,"context_line":"                       \u0027default\u0027: None,"},{"line_number":137,"context_line":"                       \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":138,"context_line":"                       \u0027convert_to\u0027: attr.convert_to_list,"},{"line_number":139,"context_line":"                       \u0027is_visible\u0027: True},"},{"line_number":140,"context_line":"        \u0027ssl_certificates\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r9g%3D","line":137,"updated":"2013-12-23 08:31:58.000000000","message":"why list?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                                \u0027is_visible\u0027: True},"},{"line_number":135,"context_line":"        \u0027ssl_policy\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":136,"context_line":"                       \u0027default\u0027: None,"},{"line_number":137,"context_line":"                       \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":138,"context_line":"                       \u0027convert_to\u0027: attr.convert_to_list,"},{"line_number":139,"context_line":"                       \u0027is_visible\u0027: True},"},{"line_number":140,"context_line":"        \u0027ssl_certificates\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qvk%3D","line":137,"in_reply_to":"AAAATn%2F8r9g%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":82,"context_line":"                \"already present in pool %(pool)s\")"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"VIPS \u003d \u0027vips\u0027"},{"line_number":86,"context_line":"POOLS \u003d \u0027pools\u0027"},{"line_number":87,"context_line":"MEMBERS \u003d \u0027members\u0027"},{"line_number":88,"context_line":"HEALTH_MONITORS \u003d \u0027health_monitors\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj60%3D","line":85,"updated":"2014-01-24 11:30:41.000000000","message":"That is unrelated change, but I\u0027m fine with that","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"}],"neutron/extensions/ssl.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2012 Nicira Networks, Inc."},{"line_number":4,"context_line":"# All rights reserved."},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r9U%3D","line":3,"updated":"2013-12-23 08:31:58.000000000","message":"nit: seems inaccurate","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2012 Nicira Networks, Inc."},{"line_number":4,"context_line":"# All rights reserved."},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qd0%3D","line":3,"in_reply_to":"AAAATn%2F8r9U%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":19,"context_line":"#"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"import abc"},{"line_number":22,"context_line":"from abc import abstractmethod"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from oslo.config import cfg"},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r9M%3D","line":22,"updated":"2013-12-23 08:31:58.000000000","message":"no neet for this, can use abc.abstractmethod","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":19,"context_line":"#"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"import abc"},{"line_number":22,"context_line":"from abc import abstractmethod"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from oslo.config import cfg"},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qdg%3D","line":22,"in_reply_to":"AAAATn%2F8r9M%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class SSLPolicyInUse(qexception.InUse):"},{"line_number":42,"context_line":"    message \u003d _(\"SSL Policy %(policy_id)s could not be found\")"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class SSLCertificateNotFound(qexception.NotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r9E%3D","line":42,"updated":"2013-12-23 08:31:58.000000000","message":"please correct the message","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class SSLPolicyInUse(qexception.InUse):"},{"line_number":42,"context_line":"    message \u003d _(\"SSL Policy %(policy_id)s could not be found\")"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class SSLCertificateNotFound(qexception.NotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qcw%3D","line":42,"in_reply_to":"AAAATn%2F8r9E%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class SSLCertificateInUse(qexception.InUse):"},{"line_number":50,"context_line":"    message \u003d _(\"SSL Certificate %(certificate_id)s still associated to vips\")"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"class SSLTrustedCertificateNotFound(qexception.NotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r8w%3D","line":50,"updated":"2013-12-23 08:31:58.000000000","message":"nit: is still associated with vips","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class SSLCertificateInUse(qexception.InUse):"},{"line_number":50,"context_line":"    message \u003d _(\"SSL Certificate %(certificate_id)s still associated to vips\")"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"class SSLTrustedCertificateNotFound(qexception.NotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qco%3D","line":50,"in_reply_to":"AAAATn%2F8r8w%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"class SSLTrustedCertificateInUse(qexception.InUse):"},{"line_number":59,"context_line":"    message \u003d _(\"SSL Trusted Certificate %(certificate_id)s \""},{"line_number":60,"context_line":"                \"still associated to vips\")"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r8o%3D","line":59,"updated":"2013-12-23 08:31:58.000000000","message":"nit: is still...","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"class SSLTrustedCertificateInUse(qexception.InUse):"},{"line_number":59,"context_line":"    message \u003d _(\"SSL Trusted Certificate %(certificate_id)s \""},{"line_number":60,"context_line":"                \"still associated to vips\")"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qck%3D","line":59,"in_reply_to":"AAAATn%2F8r8o%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"class VipSSLPolicyAssociationExists(qexception.Conflict):"},{"line_number":69,"context_line":"    message \u003d _(\u0027SSL Policy %(policy_id)s is already associated \u0027"},{"line_number":70,"context_line":"                \u0027with vip %(vip_id)s\u0027)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r8c%3D","line":69,"updated":"2013-12-23 08:31:58.000000000","message":"nit: please be consistent in using \u0027 and \"","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"class VipSSLPolicyAssociationExists(qexception.Conflict):"},{"line_number":69,"context_line":"    message \u003d _(\u0027SSL Policy %(policy_id)s is already associated \u0027"},{"line_number":70,"context_line":"                \u0027with vip %(vip_id)s\u0027)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qb8%3D","line":69,"in_reply_to":"AAAATn%2F8r8c%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"53b42c5ad88926301f0697bf96adcc742b5818c0","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                      \u0027default\u0027: \u0027\u0027,"},{"line_number":131,"context_line":"                      \u0027is_visible\u0027: True}"},{"line_number":132,"context_line":"    },"},{"line_number":133,"context_line":"    \u0027ssl_certificates\u0027: {"},{"line_number":134,"context_line":"        \u0027id\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":135,"context_line":"               \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":136,"context_line":"               \u0027is_visible\u0027: True,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8r8E%3D","line":133,"updated":"2013-12-23 08:31:58.000000000","message":"seems tenant_id is missed here","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                      \u0027default\u0027: \u0027\u0027,"},{"line_number":131,"context_line":"                      \u0027is_visible\u0027: True}"},{"line_number":132,"context_line":"    },"},{"line_number":133,"context_line":"    \u0027ssl_certificates\u0027: {"},{"line_number":134,"context_line":"        \u0027id\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":135,"context_line":"               \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":136,"context_line":"               \u0027is_visible\u0027: True,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8qb4%3D","line":133,"in_reply_to":"AAAATn%2F8r8E%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":211,"context_line":"}"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"ssl_quota_opts \u003d ["},{"line_number":214,"context_line":"    cfg.IntOpt(\u0027quota_ssl_policy\u0027,"},{"line_number":215,"context_line":"               default\u003d10,"},{"line_number":216,"context_line":"               help\u003d_(\u0027Number of SSL policies allowed per tenant, \u0027"},{"line_number":217,"context_line":"                      \u0027A negative value for unlimited\u0027)),"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8ttU%3D","line":214,"updated":"2013-12-21 15:21:40.000000000","message":"does it make sense to limit amount of policies and certificates?\nWhat kind of resource is consumed be policies/certificates other than a space in DB?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":211,"context_line":"}"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"ssl_quota_opts \u003d ["},{"line_number":214,"context_line":"    cfg.IntOpt(\u0027quota_ssl_policy\u0027,"},{"line_number":215,"context_line":"               default\u003d10,"},{"line_number":216,"context_line":"               help\u003d_(\u0027Number of SSL policies allowed per tenant, \u0027"},{"line_number":217,"context_line":"                      \u0027A negative value for unlimited\u0027)),"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s7Y%3D","line":214,"in_reply_to":"AAAATn%2F8ttU%3D","updated":"2013-12-23 15:04:23.000000000","message":"They are not resource consumers but may be limited in back-end systems.\nChanging the default to unlimited.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    @classmethod"},{"line_number":238,"context_line":"    def get_alias(cls):"},{"line_number":239,"context_line":"        return \"ssl\""},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    @classmethod"},{"line_number":242,"context_line":"    def get_description(cls):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8ttM%3D","line":239,"updated":"2013-12-21 15:21:40.000000000","message":"alias name and file name are too broad. consider something lbaas-specific. lbaas-ssl?","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    @classmethod"},{"line_number":238,"context_line":"    def get_alias(cls):"},{"line_number":239,"context_line":"        return \"ssl\""},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    @classmethod"},{"line_number":242,"context_line":"    def get_description(cls):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s7Q%3D","line":239,"in_reply_to":"AAAATn%2F8ttM%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":316,"context_line":""},{"line_number":317,"context_line":"class SSLPluginBase(ServicePluginBase):"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"    def get_plugin_name(self):"},{"line_number":320,"context_line":"        return constants.LOADBALANCER"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    def get_plugin_type(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8ttE%3D","line":319,"updated":"2013-12-21 15:21:40.000000000","message":"In fact these 3 methods are not needed.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":316,"context_line":""},{"line_number":317,"context_line":"class SSLPluginBase(ServicePluginBase):"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"    def get_plugin_name(self):"},{"line_number":320,"context_line":"        return constants.LOADBALANCER"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    def get_plugin_type(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s7M%3D","line":319,"in_reply_to":"AAAATn%2F8ttE%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"unresolved":false,"context_lines":[{"line_number":88,"context_line":"                \"is already associated with vip %(vip_id)s\")"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":91,"context_line":"    \u0027ssl_policies\u0027: {"},{"line_number":92,"context_line":"        \u0027id\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":93,"context_line":"               \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":94,"context_line":"               \u0027is_visible\u0027: True,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2F2Lc%3D","line":91,"updated":"2014-01-07 18:49:52.000000000","message":"i prefer\nlb_ssl_policies because this resource is lb ssl specific \n# same for the other attribute.","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                \"is already associated with vip %(vip_id)s\")"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":91,"context_line":"    \u0027ssl_policies\u0027: {"},{"line_number":92,"context_line":"        \u0027id\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":93,"context_line":"               \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":94,"context_line":"               \u0027is_visible\u0027: True,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FTcA%3D","line":91,"in_reply_to":"AAAAUH%2F%2F2Lc%3D","updated":"2014-01-15 17:26:39.000000000","message":"Done","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"4ca96227c00ecc15665bd7053acef7238ee904d9","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"EXTENDED_ATTRIBUTES_2_0 \u003d {"},{"line_number":212,"context_line":"    \u0027vips\u0027: {"},{"line_number":213,"context_line":"        \u0027ssl_policy\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: True,"},{"line_number":214,"context_line":"                       \u0027default\u0027: None,"},{"line_number":215,"context_line":"                       \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":216,"context_line":"                       \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F%2FZw%3D","line":213,"updated":"2013-12-25 10:05:34.000000000","message":"allow_post was True for the fields in the previous patch set, can you please clarify why is it changed?","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"EXTENDED_ATTRIBUTES_2_0 \u003d {"},{"line_number":212,"context_line":"    \u0027vips\u0027: {"},{"line_number":213,"context_line":"        \u0027ssl_policy\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: True,"},{"line_number":214,"context_line":"                       \u0027default\u0027: None,"},{"line_number":215,"context_line":"                       \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":216,"context_line":"                       \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAT3%2F%2F8ck%3D","line":213,"in_reply_to":"AAAAT3%2F%2F%2FZw%3D","updated":"2014-01-15 17:26:39.000000000","message":"It should be True","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f438315726b19e833631c06e04eea99bd57eea12","unresolved":false,"context_lines":[{"line_number":277,"context_line":"                      \u0027ssl_trusted_certificates\u0027: \u0027ssl_trusted_certificate\u0027}"},{"line_number":278,"context_line":"        attr.PLURALS.update(my_plurals)"},{"line_number":279,"context_line":"        resources \u003d []"},{"line_number":280,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins()["},{"line_number":281,"context_line":"            constants.LOADBALANCER]"},{"line_number":282,"context_line":"        for collection_name in RESOURCE_ATTRIBUTE_MAP:"},{"line_number":283,"context_line":"            resource_name \u003d my_plurals[collection_name]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F8mVQ%3D","line":280,"updated":"2013-12-24 14:58:33.000000000","message":"now a plugin should be an instance of SSLDbMixin","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"73552fc73110c6392e52e1ff4de1929a7255952e","unresolved":false,"context_lines":[{"line_number":277,"context_line":"                      \u0027ssl_trusted_certificates\u0027: \u0027ssl_trusted_certificate\u0027}"},{"line_number":278,"context_line":"        attr.PLURALS.update(my_plurals)"},{"line_number":279,"context_line":"        resources \u003d []"},{"line_number":280,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins()["},{"line_number":281,"context_line":"            constants.LOADBALANCER]"},{"line_number":282,"context_line":"        for collection_name in RESOURCE_ATTRIBUTE_MAP:"},{"line_number":283,"context_line":"            resource_name \u003d my_plurals[collection_name]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FTbw%3D","line":280,"in_reply_to":"AAAATn%2F8mVQ%3D","updated":"2014-01-15 17:26:39.000000000","message":"Done","commit_id":"0beab34928d4520435ec56e7d29937bc79843622"}],"neutron/plugins/common/constants.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":23,"context_line":"VPN \u003d \"VPN\""},{"line_number":24,"context_line":"METERING \u003d \"METERING\""},{"line_number":25,"context_line":"L3_ROUTER_NAT \u003d \"L3_ROUTER_NAT\""},{"line_number":26,"context_line":"SSL \u003d \"SSL\""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"#maps extension alias to service type"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8ts4%3D","line":26,"updated":"2013-12-21 15:21:40.000000000","message":"please change to lbaas-specific (both const and path prefix).\nAlso it seems to me that it is not needed at all.\nThese constants are only for the plugins that are specified in neutron.conf\u0027s service_plugins option.\nAnd handling ssl is implemented as a mixin. In fact, currently all resources will be under lb prefix, not ssl.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":23,"context_line":"VPN \u003d \"VPN\""},{"line_number":24,"context_line":"METERING \u003d \"METERING\""},{"line_number":25,"context_line":"L3_ROUTER_NAT \u003d \"L3_ROUTER_NAT\""},{"line_number":26,"context_line":"SSL \u003d \"SSL\""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"#maps extension alias to service type"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s6s%3D","line":26,"in_reply_to":"AAAATn%2F8ts4%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":46,"context_line":"    FIREWALL: \"/fw\","},{"line_number":47,"context_line":"    VPN: \"/vpn\","},{"line_number":48,"context_line":"    METERING: \"/metering\","},{"line_number":49,"context_line":"    L3_ROUTER_NAT: \"\""},{"line_number":50,"context_line":"}"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Service operation status constants"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj6g%3D","line":49,"updated":"2014-01-24 11:30:41.000000000","message":"No, in fact it\u0027s a common practice to leave comma at the end of dict definition, to make -1 diff line for the next patch that add a line to a dict","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    FIREWALL: \"/fw\","},{"line_number":47,"context_line":"    VPN: \"/vpn\","},{"line_number":48,"context_line":"    METERING: \"/metering\","},{"line_number":49,"context_line":"    L3_ROUTER_NAT: \"\""},{"line_number":50,"context_line":"}"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Service operation status constants"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BZfU%3D","line":49,"in_reply_to":"AAAAUH%2F%2Bj6g%3D","updated":"2014-01-29 12:00:27.000000000","message":"You probably mean not to make -1 line.\nfixed it","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"}],"neutron/services/loadbalancer/drivers/abstract_ssl_extension_driver.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":25,"context_line":"class LBaaSAbstractSSLDriver(object):"},{"line_number":26,"context_line":"    \"\"\"Abstract lbaas ssl driver that expose ~same API as lbaas ssl extension."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    SSL entities update actions will be habdled by the driver"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2Bj6Q%3D","line":25,"updated":"2014-01-24 11:30:41.000000000","message":"If SSL is a part of core API, then this is a part of lbaas abstract driver","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"b13848f3f2ee9c1fa2e4b88df60f6a5f7439ea3c","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":25,"context_line":"class LBaaSAbstractSSLDriver(object):"},{"line_number":26,"context_line":"    \"\"\"Abstract lbaas ssl driver that expose ~same API as lbaas ssl extension."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    SSL entities update actions will be habdled by the driver"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2BZfI%3D","line":25,"in_reply_to":"AAAAUH%2F%2Bj6Q%3D","updated":"2014-01-29 12:00:27.000000000","message":"Yes, this class will be unnecessary when we move SSL to lbaas plugin","commit_id":"d5e60748a9a40baa94de38bcb5fe55fad2d30137"}],"neutron/services/loadbalancer/drivers/haproxy/plugin_driver.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":378,"context_line":"    def create_vip_ssl(self, context,"},{"line_number":379,"context_line":"                       policy, certs, trusted_certs, vip_id):"},{"line_number":380,"context_line":"        #TODO(Evgeny Fedoruk): Implement"},{"line_number":381,"context_line":"        pass"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"    def delete_vip_ssl(self, context, vip_id):"},{"line_number":384,"context_line":"        self.plugin._delete_db_vip_ssl(context, vip_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tsg%3D","line":381,"updated":"2013-12-21 15:21:40.000000000","message":"I think it could be left out of this patch","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":378,"context_line":"    def create_vip_ssl(self, context,"},{"line_number":379,"context_line":"                       policy, certs, trusted_certs, vip_id):"},{"line_number":380,"context_line":"        #TODO(Evgeny Fedoruk): Implement"},{"line_number":381,"context_line":"        pass"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"    def delete_vip_ssl(self, context, vip_id):"},{"line_number":384,"context_line":"        self.plugin._delete_db_vip_ssl(context, vip_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s6k%3D","line":381,"in_reply_to":"AAAATn%2F8tsg%3D","updated":"2013-12-23 15:04:23.000000000","message":"It should be here for tests to succeed","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"}],"neutron/services/loadbalancer/drivers/radware/driver.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    def create_vip_ssl(self, context,"},{"line_number":231,"context_line":"                       policy, certs, trusted_certs, vip_id):"},{"line_number":232,"context_line":"        # TODO(Evgeny Fedoruk) Implement"},{"line_number":233,"context_line":"        pass"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"    def delete_vip_ssl(self, context, vip_id):"},{"line_number":236,"context_line":"        self.plugin._delete_db_vip_ssl(context, vip_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tsc%3D","line":233,"updated":"2013-12-21 15:21:40.000000000","message":"and this could be left out as well.","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    def create_vip_ssl(self, context,"},{"line_number":231,"context_line":"                       policy, certs, trusted_certs, vip_id):"},{"line_number":232,"context_line":"        # TODO(Evgeny Fedoruk) Implement"},{"line_number":233,"context_line":"        pass"},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"    def delete_vip_ssl(self, context, vip_id):"},{"line_number":236,"context_line":"        self.plugin._delete_db_vip_ssl(context, vip_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s6g%3D","line":233,"in_reply_to":"AAAATn%2F8tsc%3D","updated":"2013-12-23 15:04:23.000000000","message":"It should be here for tests to succeed","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"}],"neutron/services/loadbalancer/plugin.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"952d1004aa35602ef3e58917a5a1c2fa4df4bc26","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        driver \u003d self._get_driver_for_pool(context, v[\u0027pool_id\u0027])"},{"line_number":138,"context_line":"        driver.delete_vip(context, v)"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def create_ssl_policy(self, context, ssl_policy):"},{"line_number":141,"context_line":"        p \u003d super(LoadBalancerPlugin, self).create_ssl_policy(context,"},{"line_number":142,"context_line":"                                                              ssl_policy)"},{"line_number":143,"context_line":"        return p"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8tsQ%3D","line":140,"updated":"2013-12-21 15:21:40.000000000","message":"I think all this methods (up to line 186) could be skipped. They will be directly called from SSLDbMixin","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"},{"author":{"_account_id":8446,"name":"Evgeny Fedoruk","email":"evgenyf@radware.com","username":"evgenyfedoruk"},"change_message_id":"6491542c591ecc7f605db9579f0ee0317ec5df98","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        driver \u003d self._get_driver_for_pool(context, v[\u0027pool_id\u0027])"},{"line_number":138,"context_line":"        driver.delete_vip(context, v)"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def create_ssl_policy(self, context, ssl_policy):"},{"line_number":141,"context_line":"        p \u003d super(LoadBalancerPlugin, self).create_ssl_policy(context,"},{"line_number":142,"context_line":"                                                              ssl_policy)"},{"line_number":143,"context_line":"        return p"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8s6Y%3D","line":140,"in_reply_to":"AAAATn%2F8tsQ%3D","updated":"2013-12-23 15:04:23.000000000","message":"Done","commit_id":"d9fee96faec96b0452b5e9176cf609f1c0aa0313"}]}
