Wrong endpoint interface in gnocchi scenarios execution

Bug #1770593 reported by Juha Kosonen
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Undecided
Juha Kosonen

Bug Description

Rally doesn't use the endpoint interface defined in deployment configuration in gnocchi scenarios. Public endpoint is accessed even when the endpoint type is configured as internal in deployment configuration.

versions:
rally (0.11.1)
rally-openstack (1.0.1.dev32)

gnocchi endpoints:
+----------------------------------+-----------+--------------+-------------------+---------+-----------+--------------------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+-------------------+---------+-----------+--------------------------------------------+

| 13eb3a7631ff4caeb2dffc71b22d9b37 | regionOne | gnocchi | metric | True | internal | http://192.0.2.88:8041 |
| 3988a998046b41e6bcf363d237d4722a | regionOne | gnocchi | metric | True | public | http://192.168.37.222:8041 |
| 5f9b4048b9814587ac5767a709753d11 | regionOne | gnocchi | metric | True | admin | http://192.0.2.3:8041 |

Environment variable OS_INTERFACE set to 'internal' and deployment created with --fromenv

# rally deployment config
{
    "openstack": {
        "admin": {
            "password": "admin",
            "project_domain_name": "Default",
            "project_name": "admin",
            "user_domain_name": "Default",
            "username": "admin"
        },
        "auth_url": "http://192.168.37.11:5000/v3",
        "endpoint": null,
        "endpoint_type": "internal",
        "https_cacert": "",
        "https_insecure": false,
        "profiler_conn_str": null,
        "profiler_hmac_key": null,
        "region_name": ""
    }
}

# rally task start list-capabilities.yaml
[...]
ConnectionFailure: Unable to establish connection to http://192.168.37.222:8041/v1/capabilities/: HTTPConnectionPool(host='192.168.37.222', port=8041): Max retries exceeded with url: /v1/capabilities/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f34a4054510>: Failed to establish a new connection: [Errno 113] No route to host',))
[...]

Changed in rally:
assignee: nobody → Juha Kosonen (juha-kosonen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally-openstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/567832

Changed in rally:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally-openstack (master)

Reviewed: https://review.openstack.org/567832
Committed: https://git.openstack.org/cgit/openstack/rally-openstack/commit/?id=fa9d863fb0124a3d251f5127277de4f727506ff7
Submitter: Zuul
Branch: master

commit fa9d863fb0124a3d251f5127277de4f727506ff7
Author: Juha Kosonen <email address hidden>
Date: Fri May 11 14:20:33 2018 +0300

    Set endpoint interface to gnocchi client

    The endpoint_type defined in environment specification/deployment
    configuration is the endpoint interface for gnocchi.

    Closes-Bug: #1770593

    Change-Id: Ie83f3568fc764d2f1b11f272cc28e4113c016cb1
    Signed-off-by: Juha Kosonen <email address hidden>

Changed in rally:
status: In Progress → Fix Released
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.