Error: Could not prefetch mysql_user provider ‘mysql’: Execution of ‘/usr/bin/mysql –defaults-extra-file=/root/.my.cnf -NBe SELECT CONCAT(User, ‘@’,Host) AS User FROM mysql.user’ returned 1: ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
RDO ile Centos7 üzerine Openstack kurulu gerçekleştirdiğiniz zaman karşınıza aşağıdaki gibi bir hatanın çıkması durumunda mariadb yi yeniden kaldırıp kurulumu RDO ‘ya bırakmanız gerekiyor.
Hata ;
Applying 10.85.9.240_prescript.pp 10.85.9.240_prescript.pp: [ DONE ] Applying 10.85.9.240_amqp.pp Applying 10.85.9.240_mariadb.pp 10.85.9.240_amqp.pp: [ DONE ] 10.85.9.240_mariadb.pp: [ ERROR ] Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run:10.85.9.240_mariadb.pp Error: Could not prefetch mysql_user provider 'mysql': Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' returned 1: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) You will find full trace in log /var/tmp/packstack/20160208-130826-vyEYU6/manifests/10.85.9.240_mariadb.pp.log Please check log file /var/tmp/packstack/20160208-130826-vyEYU6/openstack-setup.log for more information Additional information: * A new answerfile was created in: /root/packstack-answers-20160208-130827.txt * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * Warning: NetworkManager is active on10.85.9.240. OpenStack networking currently does not work on systems that have the Network Manager service enabled. * File /root/keystonerc_admin has been created on OpenStack client host 10.85.9.240. To use the command line tools you need to source the file. * To access the OpenStack Dashboard browse to http://10.85.9.240/dashboard . Please, find your login credentials stored in the keystonerc_admin in your home directory.
Aşağıdaki adımları izlemeniz gerekiyor;
yum remove "*mariadb*" rm -rf /var/lib/mysql rm -rf /root/.my.cnf
Kolay Gelsin 😀