quickstart still requires OS_TENANT_NAME

Bug #1750455 reported by Alex Schultz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

OS_TENANT_NAME is being referenced even though it has been replaced by OS_PROJECT_NAME. When trying to run reproducer-quickstart.sh, it will error if OS_TENANT_NAME is not available. Even if you fix reproducer-quickstart.sh, quickstart still fail with:

TASK [multinodes : Fail if no auth is provided] *********************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Please source credential rc file from your tenant on cloud"}
 to retry, use: --limit @/home/aschultz/Documents/workspace/quickstart/tmp/tripleo-quickstart-extras/playbooks/provision_multinodes.retry

Revision history for this message
Emilien Macchi (emilienm) wrote :

Yeah I also hit this one last time I tried the reproducer. I just added OS_TENANT_NAME with the same value as OS_PROJECT_NAME and it worked fine.

FWIW, a lot of "tenant" notions are still in use in quickstart... probably a bunch of work to remove them all...

Revision history for this message
Alex Schultz (alex-schultz) wrote :

Yea the workaround is to just export OS_TENANT_NAME=$OS_PROJECT_NAME. That being said, keystone v3 is now the only thing so we should probably not be using the tenant configuration anymore.

Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :

I should add that the keystone v2 is not enabled by default on a devstack env. This makes the bootstrap process not very user friendly. At least integrating

   export OS_TENANT_NAME=$OS_PROJECT_NAME

in the script would be a good first step.

tags: added: tech-debt
Revision history for this message
Alex Schultz (alex-schultz) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/547155
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=00506c687c57e2e73db4a8a3ae556f9722ecc5f1
Submitter: Zuul
Branch: master

commit 00506c687c57e2e73db4a8a3ae556f9722ecc5f1
Author: Alex Schultz <email address hidden>
Date: Thu Feb 22 15:16:05 2018 -0700

    Gracefully handle OS_TENANT_NAME

    If OS_TENANT_NAME is not defined but OS_PROJECT_NAME is defined, quietly
    set OS_TENANT_NAME=OS_PROJECT_NAME as to not just fail. Since quickstart
    relies on os_tenant_name all over the place but the newer clouds are
    Keystone v3 which does not require os_tenant_name, let's not have the
    reproducer just fail if we can gracefully continue.

    Change-Id: Ie508c7a9723f6eca3616c9b6b5b6795582a8c121
    Related-Bug: #1750455

Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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