~/.rally/openrc doesn't updated from existing deployment config after each fresh deploy. It looks the tenant_name parameter and something else is hard coded just working for keystone v2.

Bug #1441341 reported by apal
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
Yuki Nishiwaki

Bug Description

$ cat existing-hakvm-v3.json
{
    "type": "ExistingCloud",
    "auth_url": "https://localhost:5000/v3/",
    "region_name": "regionOne",
    "endpoint_type": "public",
    "admin_port": "35357",
    "admin": {
        "username": "admin",
        "password": "b405..................5bd",
        "project_name": "admin",
        "domain_name": "Default",
        "domain_id": "default",
        "user_domain_name": "Default",
        "project_domain_name": "Default"
    }
}

$ rally deployment create --filename=existing-hakvm-v3.json --name=apaltestHAKVMv3
+--------------------------------------+----------------------------+-----------------+------------------+--------+
| uuid | created_at | name | status | active |
+--------------------------------------+----------------------------+-----------------+------------------+--------+
| a13cdd98-57e1-4e91-b57f-37e0a5cea712 | 2015-04-07 20:25:17.243159 | apaltestHAKVMv3 | deploy->finished | |
+--------------------------------------+----------------------------+-----------------+------------------+--------+
Using deployment: a13cdd98-57e1-4e91-b57f-37e0a5cea712
~/.rally/openrc was updated

HINTS:
* To get your cloud resources, run:
        rally show [flavors|images|keypairs|networks|secgroups]

* To use standard OpenStack clients, set up your env by running:
        source ~/.rally/openrc
  OpenStack clients are now configured, e.g run:
        glance image-list

$ rally deployment config
{
    "admin": {
        "domain_id": "default",
        "domain_name": "Default",
        "password": "b405..................5bd",
        "project_domain_name": "Default",
        "project_name": "admin",
        "user_domain_name": "Default",
        "username": "admin"
    },
    "admin_port": "35357",
    "auth_url": "https://localhost:5000/v3/",
    "endpoint_type": "public",
    "region_name": "regionOne",
    "type": "ExistingCloud"
}

But when I looking into the openrc, it's not what I deployed and not the same as deployment config:
$ cat ~/.rally/openrc
export OS_AUTH_URL=https://localhost:5000/v3/
export OS_USERNAME=admin
export OS_PASSWORD=b405..................5bd
export OS_TENANT_NAME=admin
export OS_REGION_NAME=regionOne

Tags: keystone rally
Revision history for this message
Boris Pavlovic (boris-42) wrote :

openrc file is generated by rally so it is okay that it is different from what you passed into rally deployment create command

Changed in rally:
status: New → Invalid
status: Invalid → Triaged
Revision history for this message
Boris Pavlovic (boris-42) wrote :

as sorry you are right seems like we have bug

Changed in rally:
importance: Undecided → Medium
Changed in rally:
assignee: nobody → Yuki Nishiwaki (uckey-1067)
Revision history for this message
Yuki Nishiwaki (uckey-1067) wrote :

I want to confirm this bug.
Do you insist that this bug is lack of environment variables in openrc file ?

Revision history for this message
apal (yun-song) wrote :

If you're going to use openrc, then yes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

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

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

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

commit ef6a5e467edd546ae8670514da4829d8d1917332
Author: Yuki Nishiwaki <email address hidden>
Date: Thu Jul 16 23:44:03 2015 +0900

    Add OS_<PROJECT, USER>_DOMAIN_NAME to openrc

    In order to support keystone v3,
    This patch add following variables to openrc that is build when you create deployment.
     - OS_PROJECT_DOMAIN_NAME
     - OS_USER_DOMAIN_NAME

    Change-Id: I07c59f57e87e7ae2d637e64fdc5e54c4a6937902
    Closes-Bug: #1441341

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
milestone: none → 0.1.0
Changed in rally:
status: Fix Committed → 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.