~/rally/.openrc not working for keystone v3

Bug #1683820 reported by Daniel Gonzalez Nothnagel on 2017-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Medium
Daniel Gonzalez Nothnagel

Bug Description

The file ~/rally/.openrc created by rally when using a deployment does not set OS_IDENTITY_API_VERSION to 3 when keystone v3 is used.

Because of this the open stack cli can not communicate with OS services:

$ source ~/.rally/openrc
$ openstack network list
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-2dd15518-9aec-4ff4-b185-b621b1f27d59)

Setting OS_IDENTITY_API_VERSION and repeating the command fixes this issue:

$ export OS_IDENTITY_API_VERSION=3
$ openstack network list
+--------------------------------------+-----------------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+-----------------------------+--------------------------------------+
| xxx | xxx | xxx |
+--------------------------------------+-----------------------------+--------------------------------------+

IMHO, rally should write export OS_IDENTITY_API_VERSION=3 to ~/.rally/openrc when using a deployment that utilises keystone v3.

Changed in rally:
assignee: nobody → Daniel Gonzalez Nothnagel (dgonzalez)

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

Changed in rally:
status: New → In Progress
Changed in rally:
importance: Undecided → Medium

Reviewed: https://review.openstack.org/457661
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=055446b060d0b6a4b5e0a33bd6b4fd0d9bdada9a
Submitter: Jenkins
Branch: master

commit 055446b060d0b6a4b5e0a33bd6b4fd0d9bdada9a
Author: Daniel Gonzalez <email address hidden>
Date: Tue Apr 18 16:07:32 2017 +0200

    Make openrc deployment file work with keystone v3

    When using a deployment with keystone v3 the env variable
    OS_IDENTITY_API_VERSION=3 is not written to ~/.rally/openrc.
    This causes requests by the openstack cli to fail unless the user sets
    that variable manually.
    This patch fixes this issue by writing OS_IDENTITY_API_VERSION to the
    openrc file when using a deployment.

    Closes-Bug: #1683820

    Change-Id: I591eeacdd96e71d13561a7edade297223da86f73

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

Other bug subscribers