Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 905160

Summary: Force user to set mysql root password
Product: Red Hat OpenStack Reporter: Stephen Gordon <sgordon>
Component: doc-Getting_Started_GuideAssignee: Stephen Gordon <sgordon>
Status: CLOSED CURRENTRELEASE QA Contact: ecs-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: aortega, breeler, derekh, ykaul
Target Milestone: ---Keywords: Documentation, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Red_Hat_OpenStack-Getting_Started_Guide-2-web-en-US-1.0-22.el6eng Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-06 22:22:30 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:
Bug Depends On: 906410    
Bug Blocks:    

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.