instack-create-overcloudrc doesn't work with different stack name than overcloud.

Bug #1634052 reported by Robin Cernin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Ben Nemec

Bug Description

Add new argument for passing --name to the instack-create-overcloudrc. To be able to prepare rc files for different stacks.

>>> OVERCLOUD_ENDPOINT=$(heat output-show overcloud KeystoneURL|sed 's/^"\(.*\)"$/\1/')

Creates overcloudrc:

cat > ~/overcloudrc << EOF
export NOVA_VERSION=$NOVA_VERSION
export COMPUTE_API_VERSION=$COMPUTE_API_VERSION
export OS_PASSWORD=$OS_PASSWORD
export OS_AUTH_URL=$OS_AUTH_URL
export OS_USERNAME=$OS_USERNAME
export OS_TENANT_NAME=$OS_TENANT_NAME
export OS_NO_CACHE=True
export OS_CLOUDNAME=overcloud
export no_proxy=${no_proxy:-''},$OVERCLOUD_IP
EOF

Robin Cernin (rcernin)
Changed in tripleo:
assignee: nobody → Robin Cernin (rcernin)
Steven Hardy (shardy)
Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → ocata-1
Revision history for this message
Ben Nemec (bnemec) wrote :

This script still exists?! It shouldn't.

overcloudrc is now created by tripleoclient: https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/utils.py#L154 and it looks like that does take the stack name into account when naming the rc file. If that's not working then it would be a bug, but we're not going to fix the old script. I'll push a patch to remove it.

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

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

Changed in tripleo:
assignee: Robin Cernin (rcernin) → Ben Nemec (bnemec)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/388823
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=1b89f5bf7b64febdcbf394bc29b449b1fd2db88d
Submitter: Jenkins
Branch: master

commit 1b89f5bf7b64febdcbf394bc29b449b1fd2db88d
Author: Ben Nemec <email address hidden>
Date: Wed Oct 19 18:43:44 2016 +0000

    Remove instack-create-overcloudrc

    This is now handled by tripleoclient, and has generated a bug
    report. Let's get rid of it.

    Change-Id: I3c51b5d920efe26fa47c3ae033f2b3199dbb2eeb
    Closes-Bug: 1634052

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

This issue was fixed in the openstack/instack-undercloud 6.0.0.0b2 development milestone.

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.