users context fails when trying to connect to Neutron through public endpoint type even when internal was set

Bug #1655728 reported by Carlos L. Torres on 2017-01-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Using the following deployment configuration with Rally 0.7.0

    "type": "ExistingCloud",
    "auth_url": "",
    "region_name": "RegionOne",
    "endpoint_type": "internal",
    "https_insecure": true,
    "https_cacert": "",
    "admin": {
      "username": "admin",
      "password": "pass",
      "project_name": "admin",
      "project_domain_name": "Default",
      "user_domain_name": "Default"

Regardless of the task, it fails with the following error message:

  Task config is invalid: `Unable to establish connection to
  ('Connection aborted.', BadStatusLine("''",))`

The endpoint URL used here is for the public endpoint url for Neutron.
This is not expected since endpoint_type: "internal" was specified in the configuration.

I narrowed it down.

It seems that Rally does indeed get the right endpoint_url from Keystone catalog.

I instrumented the code and log the endpoint_url being passed to the Neutron client:

  Correct --> 2017-01-11 00:38:23.513 8727 WARNING rally.osclients [-]

  2017-01-11 00:38:23.519 8727 DEBUG requests.packages.urllib3.connectionpool
    [-] Starting new HTTP connection (1): _new_conn
    Task config is invalid: `Unable to establish connection to

  Incorrect- -> ('Connection aborted.',

Based on this Neutron client seems to be grabbing the endpoint_url and assuming it's a public endpoint.

The following patch which explicitly passes the endpoint type to Neutron client works correctly

Submitter: Jenkins
Branch: master

commit ba97c9b172fb8f6fe5493165627e08324dc306c3
Author: Carlos L. Torres <email address hidden>
Date: Wed Jan 11 12:52:17 2017 -0600

    Explicitly pass endpoint type to Neutron client

    Adds unit test to exercise branch.

    Change-Id: I2c5fb7c58031916497e8eedd9eef5d8866e52393
    Closes-Bug: 1655728

Changed in rally:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers