Bug 1384765 - stackrc does not set OS_PROJECT_NAME or OS_DOMAIN_NAME. openstack overcloud image upload seems to expect them to be set.
Summary: stackrc does not set OS_PROJECT_NAME or OS_DOMAIN_NAME. openstack overcloud ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-14 05:36 UTC by Warren
Modified: 2016-10-14 19:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 19:47:27 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Warren 2016-10-14 05:36:06 UTC
Description of problem:
stackrc does not have OS_PROJECT_NAME or OS_DOMAIN_NAME set.

Version-Release number of selected component (if applicable):
OSPD9

How reproducible:
100% of the time.

Steps to Reproduce:
1. Follow the instructions in: https://access.redhat.com/documentation/en/red-hat-openstack-platform/9/paged/director-installation-and-usage/chapter-4-installing-the-undercloud

2.  When 'openstack overcloud image upload --image-path /home/stack/images/' is run, the text in the Actual results section of this report appears.

Actual results:

Missing parameter(s): 
Set a username with --os-username, OS_USERNAME, or auth.username
Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name

The contents of stackrc are:
export NOVA_VERSION=1.1
export OS_PASSWORD=$(sudo hiera admin_password)
export OS_AUTH_URL=http://10.8.217.1:5000/v2.0
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export COMPUTE_API_VERSION=1.1
export OS_NO_CACHE=True
export OS_CLOUDNAME=undercloud
export OS_IMAGE_API_VERSION=1

Expected results:

openstack overcloud image upload should not complain.  OS_PROJECT_NAME and
OS_DOMAIN_NAME being defined in stackrc looks like what would stop it from complaining.

Additional info:

This is a minor problem (the missing variables can be set by hand).

Comment 1 Warren 2016-10-14 19:47:27 UTC
Sorry.  I don't think that this is a problem.  I don't see this now that I have OS_AUTH_URL and OS_USERNAME set.  I am not sure how I caused this.

I closed this as not a bug.  What is the procedure for having a bug reporter say "Whoops" ?


Note You need to log in before you can comment on or make changes to this bug.