Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 985361 - packstack doesn't accept all configuration options using CLI
packstack doesn't accept all configuration options using CLI
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack (Show other bugs)
3.0
x86_64 Linux
unspecified Severity medium
: z3
: 3.0
Assigned To: o.slampa
Jaroslav Henner
: ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-17 06:56 EDT by Jaroslav Henner
Modified: 2014-01-09 14:40 EST (History)
6 users (show)

See Also:
Fixed In Version: openstack-packstack-2013.1.1-0.33.dev695.el6ost
Doc Type: Bug Fix
Doc Text:
Previously, it was not possible to set the Keystone admin password and the Keystone demo password via CLI parameters or in interactive mode. This has been fixed and the passwords can now be set.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-18 10:12:44 EST
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)
patch which enables accepting the admin password (1002 bytes, text/plain)
2013-07-17 06:56 EDT, Jaroslav Henner
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 46470 None None None Never
Red Hat Product Errata RHBA-2013:1510 normal SHIPPED_LIVE Red Hat OpenStack 3.0 bug fix and enhancement advisory 2013-11-18 15:11:18 EST

  None (edit)
Description Jaroslav Henner 2013-07-17 06:56:19 EDT
Created attachment 774727 [details]
patch which enables accepting the admin password

Description of problem:
Packstack can get parameters either form CLI, or from answer file. Not all options are available from CLI.

Version-Release number of selected component (if applicable):
openstack-packstack-2013.1.1-0.23.dev642.el6ost.noarch

How reproducible:
2/2

Steps to Reproduce:
1. [root@rhel-preinstalled ~]# packstack --keystone-admin-passwd 123456
Usage: packstack [options] [--help]

packstack: error: no such option: --keystone-admin-passwd

Actual results:
ERROR

Expected results:
deployed using the specified password

Additional info:
To get some clue what should the USE_DEFAULT do, I tried:
git grep -C3 'USE_DEFAULT.*False'
git grep -C3 'USE_DEFAULT.*True'

and compared the results. Not all of the *_PW nor only the *_PW options have USE_DEFAULT=True, but mostly they do. It seems to be used for some sensitive data, but I have no idea what is it's purpose.
Comment 2 Martin Magr 2013-09-11 07:35:44 EDT
Assigning this to Ondra, so he can start with something easy.
Comment 3 Martin Magr 2013-10-21 09:34:58 EDT
My mistake, this is 3.0 bug.
Comment 6 Jaroslav Henner 2013-11-04 02:33:51 EST
Works:

[root@foo ~]# packstack --keystone-admin-passwd=secret
[root@foo ~]# grep PASS keystonerc_admin 
export OS_PASSWORD=secret
[root@foo ~]# grep PASS keystonerc_admin 
export OS_PASSWORD=secret
(reverse-i-search)`.': /etc/init^C/sshd restart
[root@foo ~]# . keystonerc_admin 
[root@foo ~(keystone_admin)]# nova list

[root@foo ~(keystone_admin)]# keystone token-get 
+-----------+----------------------------------+
|  Property |              Value               |
+-----------+----------------------------------+
|  expires  |       2013-11-05T07:33:00Z       |
|     id    | d6f48e1907ff4e20910f127cca48b038 |
| tenant_id | 5cc7ba19dd934003b44fc34a634d9f99 |
|  user_id  | 52589145fe88426aa7dbfb0b70571295 |
+-----------+----------------------------------+
[root@foo ~(keystone_admin)]# rpm -q openstack-packstack
openstack-packstack-2013.1.1-0.33.dev695.el6ost.noarch
Comment 7 errata-xmlrpc 2013-11-18 10:12:44 EST
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/RHBA-2013-1510.html

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