Bug 912745
| Summary: | INFO_KEYSTONERC hardcoded to /root/ location. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Stephen Gordon <sgordon> |
| Component: | openstack-packstack | Assignee: | Martin Magr <mmagr> |
| Status: | CLOSED ERRATA | QA Contact: | Nir Magnezi <nmagnezi> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | aortega, derekh, jhenner, mmagr, ykaul |
| Target Milestone: | snapshot4 | Keywords: | Triaged |
| Target Release: | 2.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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 18:24:13 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: | |
| Embargoed: | |||
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
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 |
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