Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 912745 - INFO_KEYSTONERC hardcoded to /root/ location.
INFO_KEYSTONERC hardcoded to /root/ location.
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack (Show other bugs)
2.1
Unspecified Unspecified
unspecified Severity medium
: snapshot4
: 2.1
Assigned To: Martin Magr
Nir Magnezi
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-19 10:09 EST by Stephen Gordon
Modified: 2013-03-21 14:24 EDT (History)
5 users (show)

See Also:
Fixed In Version: openstack-packstack-2012.2.3-0.1.dev454
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-03-21 14:24:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 22303 None None None Never
Red Hat Product Errata RHSA-2013:0671 normal SHIPPED_LIVE Moderate: openstack-packstack security and bug fix update 2013-03-21 18:22:21 EDT

  None (edit)
Description Stephen Gordon 2013-02-19 10:09:38 EST
Description of problem:

In theory I believe it's possible to run packstack as a non-root user, although you must be able to provide root credentials for all machines onto which components are being deployed.

Packstack currently deploys the keystonerc_admin file to the home directory of the user running packstack (good). But the message displayed appears to be hardcoded to saying the file was deployed to /root/.

packstack]$ grep -r keystonerc *
packstack/installer/output_messages.py:INFO_KEYSTONERC="To use the command line tools source the file /root/keystonerc_admin created on %s"
packstack/puppet/templates/openstack_client.pp:file {"${::home_dir}/keystonerc_admin":

Version:

commit b098b19157a44f344032114753071e5b5ae4fc48
Comment 2 Nir Magnezi 2013-03-12 08:19:17 EDT
Verified NVR: openstack-packstack-2012.2.3-0.1.dev454.el6ost.noarch

1. Changed root's home directory to /home/testing
2. ran packstack


Output:

 **** Installation completed successfully ******

     (Please allow Installer a few moments to start up.....)


Additional information:
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * To use the command line tools you need to source the file //home/testing/keystonerc_admin created on 10.35.161.106
 * To use the console, browse to http://10.35.161.106/dashboard
 * The installation log file is available at: /var/tmp/packstack/20130312-124304-hTx79t/openstack-setup.log



Verified that keystonerc_admin was created in /home/testing:

1# ls -lash /home/testing/ | grep keystone
4.0K -rw-------  1 root root  174 Mar 12 12:53 keystonerc_admin
Comment 5 errata-xmlrpc 2013-03-21 14:24:13 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0671.html

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