Bug 1384765

Summary: stackrc does not set OS_PROJECT_NAME or OS_DOMAIN_NAME. openstack overcloud image upload seems to expect them to be set.
Product: Red Hat OpenStack Reporter: Warren <wusui>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: CLOSED NOTABUG QA Contact: Arik Chernetsky <achernet>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: mburns, rhel-osp-director-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 19:47:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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" ?