Bug 1150104 - Packstack fails on mysql installation "Could not open required defaults file: /root/.my.cnf"
Summary: Packstack fails on mysql installation "Could not open required defaults file:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 4.0
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: z5
: 4.0
Assignee: Martin Magr
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks: 1083625
TreeView+ depends on / blocked
 
Reported: 2014-10-07 12:44 UTC by Ami Jeain
Modified: 2022-07-09 07:02 UTC (History)
6 users (show)

Fixed In Version: openstack-packstack-2013.2.1-0.33.dev1048.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-22 17:17:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 126939 0 None None None Never
OpenStack gerrit 127270 0 None None None Never
OpenStack gerrit 127947 0 None None None Never
Red Hat Issue Tracker OSP-16480 0 None None None 2022-07-09 07:02:44 UTC
Red Hat Product Errata RHSA-2014:1691 0 normal SHIPPED_LIVE Important: openstack-packstack security, bug fix, and enhancement update 2014-10-22 21:16:02 UTC

Description Ami Jeain 2014-10-07 12:44:26 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. provisioned a RHEL 6.6 machine and run yum update -y
2. run packstack --allinone on a RHEL 6.6 machine
3.

Actual results:

Error: Could not prefetch database_grant provider 'mysql': Execution of '/usr/bin/mysql --defaults-file=/root/.my.cnf mysql -Be describe user' returned 1: Could not open required defaults file: /root/.my.cnf

Expected results:

the installation runs smooth

Additional info:
/root/.my.cnf file doesn't exist anywhere

Comment 1 Martin Magr 2014-10-07 13:02:01 UTC
^[[1;31mError: Could not start Service[mysqld]: Execution of '/sbin/service mysqld start' returned 1: ^[[0m
^[[1;31mError: /Stage[main]//Service[mysqld]/ensure: change from stopped to running failed: Could not start Service[mysqld]: Execution of '/sbin/service mysqld start' returned 1: ^[[0m
^[[mNotice: /Stage[main]//Service[mysqld]: Triggered 'refresh' from 2 events^[[0m
^[[mNotice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]: Dependency Service[mysqld] has failures: true^[[0m
^[[1;31mWarning: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]: Skipping because of failed dependencies^[[0m
^[[mNotice: /File[/root/.my.cnf]: Dependency Service[mysqld] has failures: true^[[0m
^[[1;31mWarning: /File[/root/.my.cnf]: Skipping because of failed dependencies^[[0m

From log above it is clear that catalog has been compiled so that /root/.my.cnf is created after service start. We have to fix that.

Comment 2 Lon Hohberger 2014-10-07 14:14:53 UTC
We saw this on our tests as well, but it went away - and we're not sure what, if anything, changed.

Comment 7 Martin Magr 2014-10-09 15:28:50 UTC
Patch requires OPM update for puppetlabs-mysql module: https://github.com/redhat-openstack/openstack-puppet-modules/pull/121

Comment 8 Martin Magr 2014-10-09 15:30:37 UTC
Tested on RHEL-6.5 and RHEL-6.6.

Comment 9 Ami Jeain 2014-10-13 09:38:28 UTC
provided the machine details

Comment 10 Martin Magr 2014-10-13 10:07:35 UTC
Note that facter-1.7.4 is also dependency fo this bug.

Comment 11 Martin Magr 2014-10-13 13:11:43 UTC
*** Bug 1149000 has been marked as a duplicate of this bug. ***

Comment 13 Ami Jeain 2014-10-19 11:00:42 UTC
verified in latest puddle

Comment 15 errata-xmlrpc 2014-10-22 17:17:40 UTC
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.

https://rhn.redhat.com/errata/RHSA-2014-1691.html


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