not set verify flag when creating token-session

Bug #1637043 reported by chenyujie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
New
Undecided
Unassigned

Bug Description

When keystone endpoint is based on self-signed https, get_network_driver would be failed because of SSL problem.

Relative code abstract as following:

    def get_network_driver(context):
...
        session = auth_utils.get_token_client_session(
            context.auth_token, context.tenant)
...
def get_token_client_session(token=None, project_id=None, conf=None):
...
    session = ks_session.Session(auth=token_auth)
    _set_ssl_parameters(conf, session)
...
def _set_ssl_parameters(conf_section, session):
    if not conf_section:
        return

The fix should be:
def _set_ssl_parameters(conf_section, session):
    if not conf_section:
        conf_section = cfg.CONF.keystone_authtoken

Revision history for this message
chenyujie (gzyjchen) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.