Bug 905160 - Force user to set mysql root password
Summary: Force user to set mysql root password
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: doc-Getting_Started_Guide
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Stephen Gordon
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On: 906410
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-28 17:40 UTC by Stephen Gordon
Modified: 2013-03-06 22:22 UTC (History)
4 users (show)

Fixed In Version: Red_Hat_OpenStack-Getting_Started_Guide-2-web-en-US-1.0-22.el6eng
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-06 22:22:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Stephen Gordon 2013-01-28 17:40:56 UTC
Description of problem:

Currently it *appears* that if you just press enter through the MySQL password prompts in packstack then a password is auto-generated for you.

I didn't notice this at first but it came to my attention because later when running 'quantum-server-setup --plugin openvswitch' I was prompted to enter the MySQL root password and had no idea what it was.

I eventually found that the password appeared in /root/.my.cnf and appears to be randomly generated. This appears to be a function of these settings:

"VALIDATION_FUNC" : validate.validateStringNotEmpty,
"DEFAULT_VALUE" : uuid.uuid4().hex[:16]

I think the user should be forced to provide a MySQL password if we expect them to be able to recall it later. 

I guess alternatively move to documentation and we will have to guide user to look for it in ~/.my.cnf of the user that ran packstack each time we need them to enter it.

Additional Information:

openstack-packstack-2012.2.2-0.5.dev318.el6ost.noarch

Comment 1 Derek Higgins 2013-01-31 15:45:44 UTC
We're implementing a feature that will generate an answer file while in interactive mode

https://bugzilla.redhat.com/show_bug.cgi?id=906410

Once done the location of the mysql root password will be available there.
Moving this to docs so it can be documented.


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