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
^[[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.
We saw this on our tests as well, but it went away - and we're not sure what, if anything, changed.
Patch requires OPM update for puppetlabs-mysql module: https://github.com/redhat-openstack/openstack-puppet-modules/pull/121
Tested on RHEL-6.5 and RHEL-6.6.
provided the machine details
Note that facter-1.7.4 is also dependency fo this bug.
*** Bug 1149000 has been marked as a duplicate of this bug. ***
verified in latest puddle
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