devmode does not create a properly formated clouds.yaml

Bug #1723669 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Alex Schultz

Bug Description

If you have a v3 stackrc file that does not include OS_TENANT_NAME (which is not defined in a v3 file), it does not properly generate the cloud.yaml with a project_name set.

example stackrc:

export OS_USERNAME=myproject
export OS_PROJECT_NAME=myproject
export OS_AUTH_URL=https://foocloud/
export OS_PASSWORD=somepassword
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=regionOne
unset OS_TENANT_NAME

Running 'bash devmode.sh --no-gate --ovb' fails during stack deployment because the ~/.quickstart/cloud.yaml looks like:

clouds:
  rdocloud:
    auth:
      username: myproject
      password: somepassword
      project_name:
      auth_url: https://foocloud/
    region_name: regionOne

Workaround:
export OS_TENANT_NAME=$OS_PROJECT_NAME prior to running devmode.sh

Tags: quickstart
Changed in tripleo:
milestone: none → queens-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

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

Changed in tripleo:
assignee: nobody → Alex Schultz (alex-schultz)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/512055
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=e924839f67282ef303750ad7241bde781283e59c
Submitter: Zuul
Branch: master

commit e924839f67282ef303750ad7241bde781283e59c
Author: Alex Schultz <email address hidden>
Date: Sat Oct 14 16:37:50 2017 -0600

    Fix clouds.yaml generation

    Previously the os_tenant_name was being used to generate the
    project_name in clouds.yaml. But if your credentials environment did not
    include an OS_TENANT_NAME declaration but did include an OS_PROJECT_NAME,
    this could result in a bad clouds.yaml and auth failures. This change
    adds the tenant_name in the clouds.yaml as well as setting project_name
    to use os_project_name while still falling back to the previous
    os_tenant_name. Additionally since this is a v2.0/v3 issue, let's
    support properly defining the identity api version if defined.

    Change-Id: Iea728eabc1bc00facb3f208a69dbafaa630912b2
    Closes-Bug: #1723669

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 release.

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.