)]}'
{"devstack/plugin.sh":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b7a9c8ac3987dc91eb134d7728f322db8b90418","unresolved":false,"context_lines":[{"line_number":88,"context_line":"}"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"function create_manila_conf_neutron {"},{"line_number":92,"context_line":"    iniset $MANILA_CONF DEFAULT use_neutron True"},{"line_number":93,"context_line":"    iniset $MANILA_CONF neutron auth_type \"password\""},{"line_number":94,"context_line":"    iniset $MANILA_CONF neutron auth_url \"$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_AUTH_PORT/v3\""},{"line_number":95,"context_line":"    iniset $MANILA_CONF neutron username \"$Q_ADMIN_USERNAME\""},{"line_number":96,"context_line":"    iniset $MANILA_CONF neutron password \"$SERVICE_PASSWORD\""},{"line_number":97,"context_line":"    iniset $MANILA_CONF neutron user_domain_name \"Default\""},{"line_number":98,"context_line":"    iniset $MANILA_CONF neutron project_name \"$SERVICE_PROJECT_NAME\""},{"line_number":99,"context_line":"    iniset $MANILA_CONF neutron project_domain_name \"Default\""},{"line_number":100,"context_line":"    iniset $MANILA_CONF neutron auth_strategy \"$Q_AUTH_STRATEGY\""},{"line_number":101,"context_line":"    iniset $MANILA_CONF neutron region_name \"$REGION_NAME\""},{"line_number":102,"context_line":"    iniset $MANILA_CONF neutron url \"${Q_PROTOCOL}://$Q_HOST:$Q_PORT\""},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    if is_service_enabled q-meta; then"},{"line_number":105,"context_line":"        iniset $MANILA_CONF neutron service_metadata_proxy \"True\""},{"line_number":106,"context_line":"    fi"},{"line_number":107,"context_line":"}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"# set_config_opts - this allows to set any config opt to any config group,"},{"line_number":110,"context_line":"# parsing env vars by prefix special \u0027MANILA_OPTGROUP_\u0027."}],"source_content_type":"text/x-sh","patch_set":1,"id":"5aef4532_af07af16","line":107,"range":{"start_line":91,"start_character":0,"end_line":107,"end_character":1},"updated":"2016-03-09 14:15:15.000000000","message":"While same approach as in [1] is not used here?\n\n[1] https://review.openstack.org/#/c/289281/\n\nAlso, it should check that Neutron is installed.","commit_id":"a39de12c96d67b348b48bfb762bfba1badf486e4"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    done"},{"line_number":88,"context_line":"}"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"# set_config_opts - this allows to set any config opt to any config group,"},{"line_number":92,"context_line":"# parsing env vars by prefix special \u0027MANILA_OPTGROUP_\u0027."},{"line_number":93,"context_line":"function set_config_opts {"}],"source_content_type":"text/x-sh","patch_set":4,"id":"3afc51ec_82e7be3f","line":90,"updated":"2016-03-11 11:29:41.000000000","message":"Why new line?","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":202,"context_line":"    iniset $MANILA_CONF DEFAULT lvm_share_volume_group $SHARE_GROUP"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    if is_service_enabled neutron; then"},{"line_number":205,"context_line":"        configure_auth_token_middleware $MANILA_CONF neutron $MANILA_AUTH_CACHE_DIR neutron"},{"line_number":206,"context_line":"    fi"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    # Note: set up config group does not mean that this backend will be enabled."}],"source_content_type":"text/x-sh","patch_set":4,"id":"3afc51ec_c236e6b3","line":205,"range":{"start_line":205,"start_character":8,"end_line":205,"end_character":39},"updated":"2016-03-11 11:29:41.000000000","message":"Same for Nova and Cinder?","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"9054df0bf5d5dd68ab36ec645a05b556f2dcd211","unresolved":false,"context_lines":[{"line_number":194,"context_line":"    iniset $MANILA_CONF DEFAULT lvm_share_volume_group $SHARE_GROUP"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"    if is_service_enabled neutron; then"},{"line_number":197,"context_line":"        configure_auth_token_middleware $MANILA_CONF neutron $MANILA_AUTH_CACHE_DIR neutron"},{"line_number":198,"context_line":"    fi"},{"line_number":199,"context_line":"    if is_service_enabled nova; then"},{"line_number":200,"context_line":"        configure_auth_token_middleware $MANILA_CONF nova $MANILA_AUTH_CACHE_DIR nova"}],"source_content_type":"text/x-sh","patch_set":12,"id":"1af94dfe_003ce3c6","line":197,"range":{"start_line":197,"start_character":40,"end_line":197,"end_character":41},"updated":"2016-03-16 22:15:06.000000000","message":"hmm, this is not what this function was intended for - but i can\u0027t see why it wouldn\u0027t work.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":194,"context_line":"    iniset $MANILA_CONF DEFAULT lvm_share_volume_group $SHARE_GROUP"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"    if is_service_enabled neutron; then"},{"line_number":197,"context_line":"        configure_auth_token_middleware $MANILA_CONF neutron $MANILA_AUTH_CACHE_DIR neutron"},{"line_number":198,"context_line":"    fi"},{"line_number":199,"context_line":"    if is_service_enabled nova; then"},{"line_number":200,"context_line":"        configure_auth_token_middleware $MANILA_CONF nova $MANILA_AUTH_CACHE_DIR nova"}],"source_content_type":"text/x-sh","patch_set":12,"id":"1af94dfe_15837199","line":197,"range":{"start_line":197,"start_character":40,"end_line":197,"end_character":41},"in_reply_to":"1af94dfe_003ce3c6","updated":"2016-03-17 15:20:26.000000000","message":"It works fine :) I would like to keep it..","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"}],"manila/common/client_auth.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from oslo_config import cfg"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from keystoneauth1 import loading as ks_loading"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"CONF \u003d cfg.CONF"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_c29a66c5","line":20,"range":{"start_line":20,"start_character":0,"end_line":20,"end_character":47},"updated":"2016-03-11 11:29:41.000000000","message":"This should be in the same import group as \"oslo_config\".","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from keystoneauth1 import loading as ks_loading"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"CONF \u003d cfg.CONF"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"class AuthClientLoader(object):"},{"line_number":26,"context_line":"    def __init__(self, client_class, exception_module, cfg, cfg_group):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_027c4e71","line":23,"updated":"2016-03-11 11:29:41.000000000","message":"Some description for module or class below would be really useful.","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        # the config options for a few common ones"},{"line_number":40,"context_line":"        plugins \u003d [\u0027password\u0027, \u0027v2password\u0027, \u0027v3password\u0027]"},{"line_number":41,"context_line":"        for name in plugins:"},{"line_number":42,"context_line":"            for plugin_option in ks_loading.get_plugin_class(name).\\"},{"line_number":43,"context_line":"                    get_options():"},{"line_number":44,"context_line":"                found \u003d False"},{"line_number":45,"context_line":"                for option in opt_list:"},{"line_number":46,"context_line":"                    if option.name \u003d\u003d plugin_option.name:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_0220ce9a","line":43,"range":{"start_line":42,"start_character":12,"end_line":43,"end_character":33},"updated":"2016-03-11 11:29:41.000000000","message":"Please, avoid usage of backslashes:\n\n\"\"\"\n\nfor plugin_option in ks_loading.get_plugin_class(\n        name).get_options():\n\n\"\"\"","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c6934453a6c1403b59fe19caf10e9d5f84cb84b","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    @staticmethod"},{"line_number":44,"context_line":"    def list_opts(opts, group):"},{"line_number":45,"context_line":"        opt_list \u003d copy.deepcopy(opts)"},{"line_number":46,"context_line":"        opt_list.insert(0, ks_loading.get_common_conf_options()[0])"},{"line_number":47,"context_line":"        # NOTE(dims): There are a lot of auth plugins, we just generate"},{"line_number":48,"context_line":"        # the config options for a few common ones"},{"line_number":49,"context_line":"        plugins \u003d [\u0027password\u0027, \u0027v2password\u0027, \u0027v3password\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"3afc51ec_78915399","line":46,"range":{"start_line":46,"start_character":8,"end_line":46,"end_character":67},"updated":"2016-03-12 20:34:05.000000000","message":"2016-03-11 14:16:49.912 | manila/common/client_auth.py:46: [E1101, AuthClientLoader.list_opts] Module \u0027keystoneauth1.loading\u0027 has no \u0027get_common_conf_options\u0027 member","commit_id":"0941ed2042e4c95d8fec68f5884ba6268706dad0"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"8c6934453a6c1403b59fe19caf10e9d5f84cb84b","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        # the config options for a few common ones"},{"line_number":49,"context_line":"        plugins \u003d [\u0027password\u0027, \u0027v2password\u0027, \u0027v3password\u0027]"},{"line_number":50,"context_line":"        for name in plugins:"},{"line_number":51,"context_line":"            for plugin_option in ks_loading.get_plugin_class("},{"line_number":52,"context_line":"                    name).get_options():"},{"line_number":53,"context_line":"                found \u003d False"},{"line_number":54,"context_line":"                for option in opt_list:"},{"line_number":55,"context_line":"                    if option.name \u003d\u003d plugin_option.name:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3afc51ec_588e1779","line":52,"range":{"start_line":51,"start_character":13,"end_line":52,"end_character":40},"updated":"2016-03-12 20:34:05.000000000","message":"2016-03-11 14:16:49.912 | manila/common/client_auth.py:51: [E1101, AuthClientLoader.list_opts] Module \u0027keystoneauth1.loading\u0027 has no \u0027get_plugin_class\u0027 member\n2016-03-11 14:16:49.912 |","commit_id":"0941ed2042e4c95d8fec68f5884ba6268706dad0"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"9054df0bf5d5dd68ab36ec645a05b556f2dcd211","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        opts.insert(0, ks_loading.get_auth_common_conf_options()[0])"},{"line_number":53,"context_line":"        # NOTE(dims): There are a lot of auth plugins, we just generate"},{"line_number":54,"context_line":"        # the config options for a few common ones"},{"line_number":55,"context_line":"        plugins \u003d [\u0027password\u0027, \u0027v2password\u0027, \u0027v3password\u0027]"},{"line_number":56,"context_line":"        for name in plugins:"},{"line_number":57,"context_line":"            for plugin_option in ks_loading.get_auth_plugin_conf_options(name):"},{"line_number":58,"context_line":"                found \u003d False"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_a0108fa9","line":55,"range":{"start_line":55,"start_character":32,"end_line":55,"end_character":42},"updated":"2016-03-16 22:15:06.000000000","message":"i know others do this, but just use password, it covers the other two cases anyway.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        opts.insert(0, ks_loading.get_auth_common_conf_options()[0])"},{"line_number":53,"context_line":"        # NOTE(dims): There are a lot of auth plugins, we just generate"},{"line_number":54,"context_line":"        # the config options for a few common ones"},{"line_number":55,"context_line":"        plugins \u003d [\u0027password\u0027, \u0027v2password\u0027, \u0027v3password\u0027]"},{"line_number":56,"context_line":"        for name in plugins:"},{"line_number":57,"context_line":"            for plugin_option in ks_loading.get_auth_plugin_conf_options(name):"},{"line_number":58,"context_line":"                found \u003d False"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_28f2946f","line":55,"in_reply_to":"1af94dfe_a0108fa9","updated":"2016-03-17 15:20:26.000000000","message":"Done","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"9054df0bf5d5dd68ab36ec645a05b556f2dcd211","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                        found \u003d True"},{"line_number":62,"context_line":"                        break"},{"line_number":63,"context_line":"                if not found:"},{"line_number":64,"context_line":"                    opts.append(plugin_option)"},{"line_number":65,"context_line":"        opts.sort(key\u003dlambda x: x.name)"},{"line_number":66,"context_line":"        return [(group, opts)]"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_6064c748","line":64,"range":{"start_line":64,"start_character":20,"end_line":64,"end_character":24},"updated":"2016-03-16 22:15:06.000000000","message":"nit: for/else is a nice way to not need found bools","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        self.session \u003d None"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    @staticmethod"},{"line_number":44,"context_line":"    def list_opts(group):"},{"line_number":45,"context_line":"        \"\"\"Generates a list of config option for a given group"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        :param group: group name"},{"line_number":48,"context_line":"        :return: list of auth default configuration"},{"line_number":49,"context_line":"        \"\"\""},{"line_number":50,"context_line":"        opts \u003d copy.deepcopy(ks_loading.register_session_conf_options("},{"line_number":51,"context_line":"                             CONF, group))"},{"line_number":52,"context_line":"        opts.insert(0, ks_loading.get_auth_common_conf_options()[0])"},{"line_number":53,"context_line":"        # NOTE(dims): There are a lot of auth plugins, we just generate"},{"line_number":54,"context_line":"        # the config options for a few common ones"},{"line_number":55,"context_line":"        plugins \u003d [\u0027password\u0027, \u0027v2password\u0027, \u0027v3password\u0027]"},{"line_number":56,"context_line":"        for name in plugins:"},{"line_number":57,"context_line":"            for plugin_option in ks_loading.get_auth_plugin_conf_options(name):"},{"line_number":58,"context_line":"                found \u003d False"},{"line_number":59,"context_line":"                for option in opts:"},{"line_number":60,"context_line":"                    if option.name \u003d\u003d plugin_option.name:"},{"line_number":61,"context_line":"                        found \u003d True"},{"line_number":62,"context_line":"                        break"},{"line_number":63,"context_line":"                if not found:"},{"line_number":64,"context_line":"                    opts.append(plugin_option)"},{"line_number":65,"context_line":"        opts.sort(key\u003dlambda x: x.name)"},{"line_number":66,"context_line":"        return [(group, opts)]"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def reset_state(self):"},{"line_number":69,"context_line":"        \"\"\"Resets the connection. Next usage will be a full reconnection"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_3f0dcd3e","line":66,"range":{"start_line":44,"start_character":0,"end_line":66,"end_character":30},"updated":"2016-03-16 16:51:39.000000000","message":"Please cover this with a unit test.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        \"\"\"Resets the connection. Next usage will be a full reconnection"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        \"\"\""},{"line_number":72,"context_line":"        self.admin_auth \u003d None"},{"line_number":73,"context_line":"        self.session \u003d None"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def _load_auth_plugin(self):"},{"line_number":76,"context_line":"        auth_plugin \u003d ks_loading.load_auth_from_conf_options(CONF, self.group)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_da0cb73d","line":73,"range":{"start_line":72,"start_character":1,"end_line":73,"end_character":27},"updated":"2016-03-16 16:51:39.000000000","message":"Please cover this with a unit test.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        if auth_plugin:"},{"line_number":78,"context_line":"            return auth_plugin"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        err_msg \u003d \u0027Unknown auth plugin: %s\u0027 % self.conf[self.group].auth_plugin"},{"line_number":81,"context_line":"        raise self.exception_module.Unauthorized(message\u003derr_msg)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def get_client(self, context, admin\u003dFalse, **kwargs):"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_145a7850","line":80,"range":{"start_line":80,"start_character":18,"end_line":80,"end_character":39},"updated":"2016-03-16 16:51:39.000000000","message":"Use _()","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"9054df0bf5d5dd68ab36ec645a05b556f2dcd211","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        if auth_plugin:"},{"line_number":78,"context_line":"            return auth_plugin"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        err_msg \u003d \u0027Unknown auth plugin: %s\u0027 % self.conf[self.group].auth_plugin"},{"line_number":81,"context_line":"        raise self.exception_module.Unauthorized(message\u003derr_msg)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def get_client(self, context, admin\u003dFalse, **kwargs):"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_e0f577cb","line":80,"range":{"start_line":80,"start_character":27,"end_line":80,"end_character":31},"updated":"2016-03-16 22:15:06.000000000","message":"so this fall through might cause you some backwards compatibility errors as you are failing if the user doesn\u0027t configure an auth_type. \n\nWhat i\u0027ve done in the past is just load a plugin which suits the old behaviour (so probably Password or V2Password) with the old options if the load_from doesn\u0027t work.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        if auth_plugin:"},{"line_number":78,"context_line":"            return auth_plugin"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        err_msg \u003d \u0027Unknown auth plugin: %s\u0027 % self.conf[self.group].auth_plugin"},{"line_number":81,"context_line":"        raise self.exception_module.Unauthorized(message\u003derr_msg)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def get_client(self, context, admin\u003dFalse, **kwargs):"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_0bdd120e","line":80,"in_reply_to":"1af94dfe_145a7850","updated":"2016-03-17 15:20:26.000000000","message":"Done","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        if auth_plugin:"},{"line_number":78,"context_line":"            return auth_plugin"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        err_msg \u003d \u0027Unknown auth plugin: %s\u0027 % self.conf[self.group].auth_plugin"},{"line_number":81,"context_line":"        raise self.exception_module.Unauthorized(message\u003derr_msg)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def get_client(self, context, admin\u003dFalse, **kwargs):"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_4b055a78","line":80,"in_reply_to":"1af94dfe_e0f577cb","updated":"2016-03-17 15:20:26.000000000","message":"Done","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        self.admin_auth \u003d None"},{"line_number":73,"context_line":"        self.session \u003d None"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def _load_auth_plugin(self):"},{"line_number":76,"context_line":"        auth_plugin \u003d ks_loading.load_auth_from_conf_options(CONF, self.group)"},{"line_number":77,"context_line":"        if auth_plugin:"},{"line_number":78,"context_line":"            return auth_plugin"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        err_msg \u003d \u0027Unknown auth plugin: %s\u0027 % self.conf[self.group].auth_plugin"},{"line_number":81,"context_line":"        raise self.exception_module.Unauthorized(message\u003derr_msg)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def get_client(self, context, admin\u003dFalse, **kwargs):"},{"line_number":84,"context_line":"        \"\"\"Get\u0027s the client with the correct auth/session context"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_3a3b1bd3","line":81,"range":{"start_line":75,"start_character":0,"end_line":81,"end_character":65},"updated":"2016-03-16 16:51:39.000000000","message":"Please cover this with a unit test.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"9054df0bf5d5dd68ab36ec645a05b556f2dcd211","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                self.admin_auth \u003d self._load_auth_plugin()"},{"line_number":96,"context_line":"            auth_plugin \u003d self.admin_auth"},{"line_number":97,"context_line":"        elif context.auth_token:"},{"line_number":98,"context_line":"            auth_plugin \u003d context.get_auth_plugin()"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        if not auth_plugin:"},{"line_number":101,"context_line":"            # We did not get a user token and we should not be using"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_a09d2f5b","line":98,"range":{"start_line":98,"start_character":12,"end_line":98,"end_character":23},"updated":"2016-03-16 22:15:06.000000000","message":"where is this coming from? I don\u0027t see it on context.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                self.admin_auth \u003d self._load_auth_plugin()"},{"line_number":96,"context_line":"            auth_plugin \u003d self.admin_auth"},{"line_number":97,"context_line":"        elif context.auth_token:"},{"line_number":98,"context_line":"            auth_plugin \u003d context.get_auth_plugin()"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        if not auth_plugin:"},{"line_number":101,"context_line":"            # We did not get a user token and we should not be using"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_cbd20a00","line":98,"in_reply_to":"1af94dfe_a09d2f5b","updated":"2016-03-17 15:20:26.000000000","message":"Done","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        if not auth_plugin:"},{"line_number":101,"context_line":"            # We did not get a user token and we should not be using"},{"line_number":102,"context_line":"            # an admin token so log an error"},{"line_number":103,"context_line":"            raise self.exception_module.Unauthorized()"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"        return self.client_class(session\u003dself.session, auth\u003dauth_plugin,"},{"line_number":106,"context_line":"                                 **kwargs)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_9f9ea1b6","line":103,"range":{"start_line":103,"start_character":52,"end_line":103,"end_character":54},"updated":"2016-03-16 16:51:39.000000000","message":"Can we include an error message here?  Getting an authentication error with no indication what is wrong is highly frustrating!\n\nAnd please add a unit test for this condition.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"454ea6959c01d5c5546af2b16535a510ad07fb89","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        for plugin_option in ks_loading.get_auth_plugin_conf_options("},{"line_number":58,"context_line":"                \u0027password\u0027):"},{"line_number":59,"context_line":"            found \u003d False"},{"line_number":60,"context_line":"            for option in opts:"},{"line_number":61,"context_line":"                if option.name \u003d\u003d plugin_option.name:"},{"line_number":62,"context_line":"                    found \u003d True"},{"line_number":63,"context_line":"                    break"},{"line_number":64,"context_line":"            if not found:"},{"line_number":65,"context_line":"                opts.append(plugin_option)"},{"line_number":66,"context_line":"        opts.sort(key\u003dlambda x: x.name)"},{"line_number":67,"context_line":"        return [(group, opts)]"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_ffa20098","line":65,"range":{"start_line":59,"start_character":0,"end_line":65,"end_character":42},"updated":"2016-03-17 18:35:47.000000000","message":"It appears these lines aren\u0027t hit in any unit tests.  Can you fix that?","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"77c4029b5d8e1ceb3d2c084cac4283971c700d80","unresolved":false,"context_lines":[{"line_number":62,"context_line":"                    found \u003d True"},{"line_number":63,"context_line":"                    break"},{"line_number":64,"context_line":"            if not found:"},{"line_number":65,"context_line":"                opts.append(plugin_option)"},{"line_number":66,"context_line":"        opts.sort(key\u003dlambda x: x.name)"},{"line_number":67,"context_line":"        return [(group, opts)]"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_7e97f247","line":65,"in_reply_to":"1af94dfe_ffa20098","updated":"2016-03-18 13:32:10.000000000","message":"Done","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"454ea6959c01d5c5546af2b16535a510ad07fb89","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        \"\"\"Resets the connection. Next usage will be a full reconnection"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        \"\"\""},{"line_number":73,"context_line":"        self.admin_auth \u003d None"},{"line_number":74,"context_line":"        self.session \u003d None"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def _load_auth_plugin(self):"},{"line_number":77,"context_line":"        if self.admin_auth:"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_5ff17494","line":74,"range":{"start_line":73,"start_character":0,"end_line":74,"end_character":27},"updated":"2016-03-17 18:35:47.000000000","message":"Adding a unit test for this isn\u0027t critical, but it is trivial.","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"77c4029b5d8e1ceb3d2c084cac4283971c700d80","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        \"\"\""},{"line_number":73,"context_line":"        self.admin_auth \u003d None"},{"line_number":74,"context_line":"        self.session \u003d None"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def _load_auth_plugin(self):"},{"line_number":77,"context_line":"        if self.admin_auth:"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_be9dfa67","line":74,"in_reply_to":"1af94dfe_5ff17494","updated":"2016-03-18 13:32:10.000000000","message":"Done","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"454ea6959c01d5c5546af2b16535a510ad07fb89","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if hasattr(CONF, self.group) and CONF[self.group].auth_type is None:"},{"line_number":80,"context_line":"            # if auth_type is not set we fall back to old authentication"},{"line_number":81,"context_line":"            # to ensure it\u0027s works in an backward compatible way"},{"line_number":82,"context_line":"            CONF[self.group].auth_type \u003d \u0027v2password\u0027"},{"line_number":83,"context_line":"        self.auth_plugin \u003d ks_loading.load_auth_from_conf_options("},{"line_number":84,"context_line":"            CONF, self.group)"},{"line_number":85,"context_line":"        if self.auth_plugin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_1fd40cea","line":82,"range":{"start_line":82,"start_character":0,"end_line":82,"end_character":53},"updated":"2016-03-17 18:35:47.000000000","message":"This line isn\u0027t unit tested.  Can you add a test for the fallback?","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"77c4029b5d8e1ceb3d2c084cac4283971c700d80","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if hasattr(CONF, self.group) and CONF[self.group].auth_type is None:"},{"line_number":80,"context_line":"            # if auth_type is not set we fall back to old authentication"},{"line_number":81,"context_line":"            # to ensure it\u0027s works in an backward compatible way"},{"line_number":82,"context_line":"            CONF[self.group].auth_type \u003d \u0027v2password\u0027"},{"line_number":83,"context_line":"        self.auth_plugin \u003d ks_loading.load_auth_from_conf_options("},{"line_number":84,"context_line":"            CONF, self.group)"},{"line_number":85,"context_line":"        if self.auth_plugin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_43fce371","line":82,"in_reply_to":"1af94dfe_15334863","updated":"2016-03-18 13:32:10.000000000","message":"Oh well, seems I tested it wrongly. I changed it now that every client module can pass it\u0027s deprecated opts and uses it to create a V2 auth object. Seems to work now.","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"e958304d73f1b00ae1002b6a37d4d6f2e328deea","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if hasattr(CONF, self.group) and CONF[self.group].auth_type is None:"},{"line_number":80,"context_line":"            # if auth_type is not set we fall back to old authentication"},{"line_number":81,"context_line":"            # to ensure it\u0027s works in an backward compatible way"},{"line_number":82,"context_line":"            CONF[self.group].auth_type \u003d \u0027v2password\u0027"},{"line_number":83,"context_line":"        self.auth_plugin \u003d ks_loading.load_auth_from_conf_options("},{"line_number":84,"context_line":"            CONF, self.group)"},{"line_number":85,"context_line":"        if self.auth_plugin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_15334863","line":82,"range":{"start_line":82,"start_character":0,"end_line":82,"end_character":53},"in_reply_to":"1af94dfe_1fd40cea","updated":"2016-03-17 20:53:34.000000000","message":"Does this work? v2password requires specific options that i didn\u0027t think manila traditionally set. \n\nSo if a deployer doesn\u0027t specify a auth_type then the load_auth_from_conf_options will return none. So the way i do this normally is\n\n    auth_plugin \u003d ks_loading.load_auth_from_conf_options(..) \n\n    if not auth_plugin:\n         logging.warn(\"Not specifying auth options is deprecated\")\n         auth_plugin \u003d v2.Password(auth_url\u003dCONF[group].auth_url, ...)\n\n    return auth_plugin\n\nI don\u0027t know what the old versions of CONF[group].auth_url are, but they relate to your nova_password etc options.","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"77c4029b5d8e1ceb3d2c084cac4283971c700d80","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if hasattr(CONF, self.group) and CONF[self.group].auth_type is None:"},{"line_number":80,"context_line":"            # if auth_type is not set we fall back to old authentication"},{"line_number":81,"context_line":"            # to ensure it\u0027s works in an backward compatible way"},{"line_number":82,"context_line":"            CONF[self.group].auth_type \u003d \u0027v2password\u0027"},{"line_number":83,"context_line":"        self.auth_plugin \u003d ks_loading.load_auth_from_conf_options("},{"line_number":84,"context_line":"            CONF, self.group)"},{"line_number":85,"context_line":"        if self.auth_plugin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_66f1286b","line":82,"in_reply_to":"1af94dfe_1fd40cea","updated":"2016-03-18 13:32:10.000000000","message":"Done","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"}],"manila/compute/nova.py":[{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"e958304d73f1b00ae1002b6a37d4d6f2e328deea","unresolved":false,"context_lines":[{"line_number":112,"context_line":"    auth_obj \u003d client_auth.AuthClientLoader("},{"line_number":113,"context_line":"        client_class\u003dnova_client.Client,"},{"line_number":114,"context_line":"        exception_module\u003dnova_exception,"},{"line_number":115,"context_line":"        cfg_group\u003dNOVA_GROUP)"},{"line_number":116,"context_line":"    return auth_obj.get_client(context,"},{"line_number":117,"context_line":"                               version\u003dCONF[NOVA_GROUP].api_microversion,"},{"line_number":118,"context_line":"                               insecure\u003dCONF[NOVA_GROUP].api_insecure,"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_158188c3","line":115,"range":{"start_line":115,"start_character":28,"end_line":115,"end_character":29},"updated":"2016-03-17 20:53:34.000000000","message":"you\u0027re saving auth on the loader object, but you are still creating an AuthClientLoader every time you need a nova client.","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"77c4029b5d8e1ceb3d2c084cac4283971c700d80","unresolved":false,"context_lines":[{"line_number":112,"context_line":"    auth_obj \u003d client_auth.AuthClientLoader("},{"line_number":113,"context_line":"        client_class\u003dnova_client.Client,"},{"line_number":114,"context_line":"        exception_module\u003dnova_exception,"},{"line_number":115,"context_line":"        cfg_group\u003dNOVA_GROUP)"},{"line_number":116,"context_line":"    return auth_obj.get_client(context,"},{"line_number":117,"context_line":"                               version\u003dCONF[NOVA_GROUP].api_microversion,"},{"line_number":118,"context_line":"                               insecure\u003dCONF[NOVA_GROUP].api_insecure,"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_09183574","line":115,"range":{"start_line":115,"start_character":28,"end_line":115,"end_character":29},"in_reply_to":"1af94dfe_158188c3","updated":"2016-03-18 13:32:10.000000000","message":"Done","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"}],"manila/network/neutron/api.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b7a9c8ac3987dc91eb134d7728f322db8b90418","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import copy"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from keystoneauth1 import loading as ks_loading"},{"line_number":20,"context_line":"from neutronclient.common import exceptions as neutron_client_exc"},{"line_number":21,"context_line":"from neutronclient.v2_0 import client as clientv20"},{"line_number":22,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_cff83bc6","line":19,"range":{"start_line":19,"start_character":0,"end_line":19,"end_character":47},"updated":"2016-03-09 14:15:15.000000000","message":"Is it correct that the same approach can be done for \"nova\" and \"cinder\u0027 client wrappers? If yes, then need to make such change in common place and just use here.","commit_id":"a39de12c96d67b348b48bfb762bfba1badf486e4"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"ebf811e6822e4187f3496c91d9bdccc760e8739a","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import copy"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from keystoneauth1 import loading as ks_loading"},{"line_number":20,"context_line":"from neutronclient.common import exceptions as neutron_client_exc"},{"line_number":21,"context_line":"from neutronclient.v2_0 import client as clientv20"},{"line_number":22,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_d43f02b2","line":19,"range":{"start_line":19,"start_character":0,"end_line":19,"end_character":47},"in_reply_to":"5aef4532_cff83bc6","updated":"2016-03-10 07:10:19.000000000","message":"keystoneauth1 needs to be added to requirements.txt","commit_id":"a39de12c96d67b348b48bfb762bfba1badf486e4"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b7a9c8ac3987dc91eb134d7728f322db8b90418","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"CONF.register_opts(neutron_opts, NEUTRON_GROUP)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"deprecations \u003d {\u0027cafile\u0027: [cfg.DeprecatedOpt(\u0027ca_certificates_file\u0027,"},{"line_number":52,"context_line":"                                             group\u003dNEUTRON_GROUP)],"},{"line_number":53,"context_line":"                \u0027insecure\u0027: [cfg.DeprecatedOpt(\u0027api_insecure\u0027,"},{"line_number":54,"context_line":"                                               group\u003dNEUTRON_GROUP)],"},{"line_number":55,"context_line":"                \u0027timeout\u0027: [cfg.DeprecatedOpt(\u0027url_timeout\u0027,"},{"line_number":56,"context_line":"                                              group\u003dNEUTRON_GROUP)]}"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"_neutron_options \u003d ks_loading.register_session_conf_options("},{"line_number":59,"context_line":"    CONF, NEUTRON_GROUP, deprecated_opts\u003ddeprecations)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_4f542bfe","line":56,"range":{"start_line":51,"start_character":0,"end_line":56,"end_character":68},"updated":"2016-03-09 14:15:15.000000000","message":"http://docs.openstack.org/developer/hacking/#dictionaries-lists","commit_id":"a39de12c96d67b348b48bfb762bfba1badf486e4"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"ebf811e6822e4187f3496c91d9bdccc760e8739a","unresolved":false,"context_lines":[{"line_number":60,"context_line":"ks_loading.register_auth_conf_options(CONF, NEUTRON_GROUP)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def list_opts():"},{"line_number":64,"context_line":"    list \u003d copy.deepcopy(_neutron_options)"},{"line_number":65,"context_line":"    list.insert(0, ks_loading.get_common_conf_options()[0])"},{"line_number":66,"context_line":"    # NOTE(dims): There are a lot of auth plugins, we just generate"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_14eccaf1","line":63,"updated":"2016-03-10 07:10:19.000000000","message":"needs to be called from manila/opts.py to add the options to the sample config","commit_id":"a39de12c96d67b348b48bfb762bfba1badf486e4"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b7a9c8ac3987dc91eb134d7728f322db8b90418","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def list_opts():"},{"line_number":64,"context_line":"    list \u003d copy.deepcopy(_neutron_options)"},{"line_number":65,"context_line":"    list.insert(0, ks_loading.get_common_conf_options()[0])"},{"line_number":66,"context_line":"    # NOTE(dims): There are a lot of auth plugins, we just generate"},{"line_number":67,"context_line":"    # the config options for a few common ones"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_2f8f1f76","line":64,"range":{"start_line":64,"start_character":4,"end_line":64,"end_character":8},"updated":"2016-03-09 14:15:15.000000000","message":"better not redefine built-ins.","commit_id":"a39de12c96d67b348b48bfb762bfba1badf486e4"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"NEUTRON_GROUP \u003d \u0027neutron\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"neutron_old_deprecated_opts \u003d ["},{"line_number":32,"context_line":"    cfg.StrOpt("},{"line_number":33,"context_line":"        \u0027neutron_admin_username\u0027,"},{"line_number":34,"context_line":"        default\u003d\u0027neutron\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_c22b8632","line":31,"range":{"start_line":31,"start_character":8,"end_line":31,"end_character":22},"updated":"2016-03-11 11:29:41.000000000","message":"\"old\" and \"deprecated\" look strange being used together.","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":15371,"name":"Tom Patzig","email":"tom.patzig@sap.com","username":"tpatzig"},"change_message_id":"4ae49392afb626b9b89c07f9ffe03c6100afe623","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        default\u003d\u0027neutron\u0027,"},{"line_number":35,"context_line":"        deprecated_group\u003d\u0027DEFAULT\u0027,"},{"line_number":36,"context_line":"        deprecated_for_removal\u003dTrue,"},{"line_number":37,"context_line":"        deprecated_reason\u003d\"This option used any longer. Please use [neutron]\""},{"line_number":38,"context_line":"                          \"username instead.\","},{"line_number":39,"context_line":"        help\u003d\u0027Username for connecting to neutron in admin context.\u0027),"},{"line_number":40,"context_line":"    cfg.StrOpt("}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_02f3ae0b","line":37,"updated":"2016-03-11 11:22:07.000000000","message":"typo. \"This option isn\u0027t used any longer\", or \"DEPRECATED: Please use...\"","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        default\u003d\u0027neutron\u0027,"},{"line_number":35,"context_line":"        deprecated_group\u003d\u0027DEFAULT\u0027,"},{"line_number":36,"context_line":"        deprecated_for_removal\u003dTrue,"},{"line_number":37,"context_line":"        deprecated_reason\u003d\"This option used any longer. Please use [neutron]\""},{"line_number":38,"context_line":"                          \"username instead.\","},{"line_number":39,"context_line":"        help\u003d\u0027Username for connecting to neutron in admin context.\u0027),"},{"line_number":40,"context_line":"    cfg.StrOpt("}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_82c85e76","line":37,"in_reply_to":"3afc51ec_02f3ae0b","updated":"2016-03-11 11:29:41.000000000","message":"+1. It is too big typo. It says opposite than expected. Same for all other.","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        deprecated_name\u003d\"neutron_url_timeout\","},{"line_number":79,"context_line":"        help\u003d\u0027Timeout value for connecting to neutron in seconds.\u0027),"},{"line_number":80,"context_line":"    cfg.BoolOpt("},{"line_number":81,"context_line":"        \u0027api_insecure\u0027,"},{"line_number":82,"context_line":"        default\u003dFalse,"},{"line_number":83,"context_line":"        deprecated_group\u003d\"DEFAULT\","},{"line_number":84,"context_line":"        help\u003d\u0027If set, ignore any SSL validation issues.\u0027),"}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_0299ee6e","line":81,"range":{"start_line":81,"start_character":8,"end_line":81,"end_character":22},"updated":"2016-03-11 11:29:41.000000000","message":"You changed name of option. In this case should be added attr with deprecated name. Same for other such options that are used but renamed.","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ddd9dcda5b4d36ef13bdb7c1c4530fd3e7e661fb","unresolved":false,"context_lines":[{"line_number":102,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"CONF.register_opts(neutron_opts, NEUTRON_GROUP)"},{"line_number":105,"context_line":"CONF.register_opts(neutron_old_deprecated_opts, \"DEFAULT\")"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"_neutron_options \u003d ks_loading.register_session_conf_options("}],"source_content_type":"text/x-python","patch_set":4,"id":"3afc51ec_22ceaa5a","line":105,"range":{"start_line":105,"start_character":46,"end_line":105,"end_character":57},"updated":"2016-03-11 11:29:41.000000000","message":"It was used from driver\u0027s config group too. So, if one defined options in that way, he won\u0027t see your warnings and will not know that options are not used anymore.","commit_id":"d3151881b79f4d69c8cba31bbf9fb130a802c0ae"}],"manila/tests/common/test_client_auth.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        context \u003d mock.Mock()"},{"line_number":25,"context_line":"        fake_client \u003d mock.Mock()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"        with mock.patch("},{"line_number":28,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027) as am:"},{"line_number":29,"context_line":"            auth_obj \u003d client_auth.AuthClientLoader(fake_client,"},{"line_number":30,"context_line":"                                                    None, \u0027foo_group\u0027)"},{"line_number":31,"context_line":"            auth_obj.get_client(context, admin\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_3ab03b43","line":28,"range":{"start_line":27,"start_character":8,"end_line":28,"end_character":78},"updated":"2016-03-16 16:51:39.000000000","message":"Please use self.mock_object() instead of with \u0027mock.patch\u0027.  Same below.  Examples abound in manila.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        context \u003d mock.Mock()"},{"line_number":25,"context_line":"        fake_client \u003d mock.Mock()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"        with mock.patch("},{"line_number":28,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027) as am:"},{"line_number":29,"context_line":"            auth_obj \u003d client_auth.AuthClientLoader(fake_client,"},{"line_number":30,"context_line":"                                                    None, \u0027foo_group\u0027)"},{"line_number":31,"context_line":"            auth_obj.get_client(context, admin\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_4189bb25","line":28,"range":{"start_line":27,"start_character":8,"end_line":28,"end_character":78},"in_reply_to":"1af94dfe_3ab03b43","updated":"2016-03-17 15:20:26.000000000","message":"This actually doesn\u0027t work since there is no class/object involved. It\u0027s like:\nhttps://github.com/openstack/manila/blob/master/manila/tests/db/migrations/alembic/test_migration.py#L155","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"88a6883555a480a15076f2b44d68f8c4f2f2e605","unresolved":false,"context_lines":[{"line_number":28,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027) as am:"},{"line_number":29,"context_line":"            auth_obj \u003d client_auth.AuthClientLoader(fake_client,"},{"line_number":30,"context_line":"                                                    None, \u0027foo_group\u0027)"},{"line_number":31,"context_line":"            auth_obj.get_client(context, admin\u003dTrue)"},{"line_number":32,"context_line":"            am.assert_called_once_with(client_auth.CONF, \u0027foo_group\u0027)"},{"line_number":33,"context_line":"            fake_client.assert_called_once_with("},{"line_number":34,"context_line":"                session\u003dam(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_3ade7b6d","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":52},"updated":"2016-03-16 16:51:39.000000000","message":"Please use whitespace to separate unit tests into 3 sections (mocks, call, asserts) for greater readability.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":28,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027) as am:"},{"line_number":29,"context_line":"            auth_obj \u003d client_auth.AuthClientLoader(fake_client,"},{"line_number":30,"context_line":"                                                    None, \u0027foo_group\u0027)"},{"line_number":31,"context_line":"            auth_obj.get_client(context, admin\u003dTrue)"},{"line_number":32,"context_line":"            am.assert_called_once_with(client_auth.CONF, \u0027foo_group\u0027)"},{"line_number":33,"context_line":"            fake_client.assert_called_once_with("},{"line_number":34,"context_line":"                session\u003dam(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_2193cf50","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":52},"in_reply_to":"1af94dfe_3ade7b6d","updated":"2016-03-17 15:20:26.000000000","message":"Done","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"454ea6959c01d5c5546af2b16535a510ad07fb89","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        self.auth \u003d client_auth.AuthClientLoader("},{"line_number":37,"context_line":"            self.fake_client, self.execption_mod, \u0027foo_group\u0027)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def test_get_client_admin_true(self):"},{"line_number":40,"context_line":"        with mock.patch("},{"line_number":41,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027) as am:"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"            self.auth.get_client(self.context, admin\u003dTrue)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"            am.assert_called_once_with(client_auth.CONF, \u0027foo_group\u0027)"},{"line_number":46,"context_line":"            self.fake_client.assert_called_once_with("},{"line_number":47,"context_line":"                session\u003dam(),"},{"line_number":48,"context_line":"                auth\u003dauth.load_auth_from_conf_options())"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def test_get_client_admin_false(self):"},{"line_number":51,"context_line":"        with mock.patch("},{"line_number":52,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027):"},{"line_number":53,"context_line":"            self.assertRaises(exception.ManilaException, self.auth.get_client,"},{"line_number":54,"context_line":"                              self.context, admin\u003dFalse)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def test_load_auth_plugin_caching(self):"},{"line_number":57,"context_line":"        self.auth.admin_auth \u003d \u0027admin obj\u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_1ab25a4c","line":54,"range":{"start_line":39,"start_character":0,"end_line":54,"end_character":56},"updated":"2016-03-17 18:35:47.000000000","message":"What\u0027s wrong with this:\n\n    def test_get_client_admin_true(self):\n\n        mock_load_session \u003d self.mock_object(auth,\n                                             \u0027load_session_from_conf_options\u0027)\n\n        self.auth.get_client(self.context, admin\u003dTrue)\n\n        mock_load_session.assert_called_once_with(client_auth.CONF,\n                                                  \u0027foo_group\u0027)\n        self.fake_client.assert_called_once_with(\n            session\u003dmock_load_session(),\n            auth\u003dauth.load_auth_from_conf_options())\n\n    def test_get_client_admin_false(self):\n\n        self.mock_object(auth, \u0027load_session_from_conf_options\u0027)\n\n        self.assertRaises(exception.ManilaException,\n                          self.auth.get_client,\n                          self.context,\n                          admin\u003dFalse)","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"77c4029b5d8e1ceb3d2c084cac4283971c700d80","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        with mock.patch("},{"line_number":52,"context_line":"                \u0027keystoneauth1.loading.load_session_from_conf_options\u0027):"},{"line_number":53,"context_line":"            self.assertRaises(exception.ManilaException, self.auth.get_client,"},{"line_number":54,"context_line":"                              self.context, admin\u003dFalse)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def test_load_auth_plugin_caching(self):"},{"line_number":57,"context_line":"        self.auth.admin_auth \u003d \u0027admin obj\u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"1af94dfe_cc1e5b0b","line":54,"in_reply_to":"1af94dfe_1ab25a4c","updated":"2016-03-18 13:32:10.000000000","message":"Done","commit_id":"82fdd62a1d66de22db5e0616f62a53e1d3fed43b"}],"manila/tests/network/neutron/test_neutron_api.py":[{"author":{"_account_id":16522,"name":"daiki kato","email":"d-kato@wr.jp.nec.com","username":"daiki"},"change_message_id":"907d93e3c9acaf71216e8021c1bd4fa12207a2f2","unresolved":false,"context_lines":[{"line_number":573,"context_line":"        self.neutron_api.client.httpclient \u003d mock.Mock()"},{"line_number":574,"context_line":"        self.neutron_api.client.httpclient.auth_token \u003d mock.Mock()"},{"line_number":575,"context_line":"        self.neutron_api.client.httpclient.get_project_id \u003d mock.Mock("},{"line_number":576,"context_line":"                return_value\u003dfake_admin_project_id)"},{"line_number":577,"context_line":""},{"line_number":578,"context_line":"        admin_project_id \u003d self.neutron_api.admin_project_id"},{"line_number":579,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"1af94dfe_e65ae282","line":576,"updated":"2016-03-16 08:40:12.000000000","message":"Please fix this line according to PEP8.","commit_id":"842216835075747eb5335b01c600b2871dee357e"},{"author":{"_account_id":16522,"name":"daiki kato","email":"d-kato@wr.jp.nec.com","username":"daiki"},"change_message_id":"907d93e3c9acaf71216e8021c1bd4fa12207a2f2","unresolved":false,"context_lines":[{"line_number":587,"context_line":"            return_value\u003dNone)"},{"line_number":588,"context_line":"        self.neutron_api.client.httpclient.authenticate \u003d mock.Mock()"},{"line_number":589,"context_line":"        self.neutron_api.client.httpclient.get_project_id \u003d mock.Mock("},{"line_number":590,"context_line":"                return_value\u003dfake_admin_project_id)"},{"line_number":591,"context_line":""},{"line_number":592,"context_line":"        admin_project_id \u003d self.neutron_api.admin_project_id"},{"line_number":593,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"1af94dfe_a6bc5a6d","line":590,"updated":"2016-03-16 08:40:12.000000000","message":"ditto","commit_id":"842216835075747eb5335b01c600b2871dee357e"}],"manila/volume/cinder.py":[{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"9054df0bf5d5dd68ab36ec645a05b556f2dcd211","unresolved":false,"context_lines":[{"line_number":121,"context_line":"    return auth_obj.get_client(context,"},{"line_number":122,"context_line":"                               insecure\u003dCONF[CINDER_GROUP].api_insecure,"},{"line_number":123,"context_line":"                               cacert\u003dCONF[CINDER_GROUP].ca_certificates_file,"},{"line_number":124,"context_line":"                               retries\u003dCONF[CINDER_GROUP].http_retries)"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"def _untranslate_volume_summary_view(context, vol):"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_20559f1c","line":124,"range":{"start_line":124,"start_character":38,"end_line":124,"end_character":39},"updated":"2016-03-16 22:15:06.000000000","message":"so this comment applies to all services, also caveat i don\u0027t know manila.\n\nThe big difference you\u0027ve made here as opposed to the old code is you now load the auth options from config and authenticate each time you create a client object. \n\nThis information is all static and can be kept around for a long time. The plugins/session are also threadsafe. \n\nMy advice here would be to create session once, globally probably in context.py, same for the nova/cinder/glance plugins. You can then reference these plugins from the per-request context. This won\u0027t cause extra auth requests because they only authenticate as required.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"58324a461a06cc84947e279059020f40641edd97","unresolved":false,"context_lines":[{"line_number":121,"context_line":"    return auth_obj.get_client(context,"},{"line_number":122,"context_line":"                               insecure\u003dCONF[CINDER_GROUP].api_insecure,"},{"line_number":123,"context_line":"                               cacert\u003dCONF[CINDER_GROUP].ca_certificates_file,"},{"line_number":124,"context_line":"                               retries\u003dCONF[CINDER_GROUP].http_retries)"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"def _untranslate_volume_summary_view(context, vol):"}],"source_content_type":"text/x-python","patch_set":12,"id":"1af94dfe_abd7bebd","line":124,"range":{"start_line":124,"start_character":38,"end_line":124,"end_character":39},"in_reply_to":"1af94dfe_20559f1c","updated":"2016-03-17 15:20:26.000000000","message":"I agree. I hopefully fixed it by storing the auth within the AuthClientLoader class. So it\u0027s shouldn\u0027t got through it over and over again.","commit_id":"df7eecd0993f3238cca7e5cb5da0971461395cde"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"44b174a8ab8eed38b0fe7534e0e6728271764e33","unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"def cinderclient(context):"},{"line_number":120,"context_line":"    global auth_obj"},{"line_number":121,"context_line":"    if not auth_obj:"},{"line_number":122,"context_line":"        deprecated_opts_for_v2 \u003d {"},{"line_number":123,"context_line":"            \u0027username\u0027: CONF.nova_admin_username,"}],"source_content_type":"text/x-python","patch_set":16,"id":"1af94dfe_a01b0b80","line":120,"range":{"start_line":120,"start_character":11,"end_line":120,"end_character":19},"updated":"2016-03-18 15:21:41.000000000","message":"All globals are expected to be in uppercase.","commit_id":"7fc492ea79ab0dbbc3d50bf477ae2a1586281dda"}]}
