Bug 1080343
Summary: | Fedora20: Traceback while doing packstack --allinone —quantum-l3-ext-bridge=eth0 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] RDO | Reporter: | Amita Sharma <amsharma> | ||||
Component: | openstack-packstack | Assignee: | Martin Magr <mmagr> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ami Jeain <ajeain> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | unspecified | CC: | aki21c, amsharma, aortega, derekh, ichavero, itamar, lars, mmagr, pbrady, p, yeylon | ||||
Target Milestone: | --- | ||||||
Target Release: | Icehouse | ||||||
Hardware: | x86_64 | ||||||
OS: | FreeBSD | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-03-20 20:16:27 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: | |||||||
Attachments: |
|
Description
Amita Sharma
2014-03-25 08:13:21 UTC
Does the mariadb workaround in http://openstack.redhat.com/Workarounds_2014_01 work for you? I did not do any clean up, just executed two commands given on above link:: sed -e 's/mysql/mariadb/g' -i /usr/lib/python2.7/site-packages/packstack/puppet/modules/tempest/manifests/params.pp packstack --answer-file=$answerfile and it asked me lot many configuration question, which I choose to answer as default. And unfortunately, it fails again with :: [ ERROR ] ERROR : Error appeared during Puppet run: 10.65.201.125_mysql.pp Error: Could not start Service[mysqld]: Execution of '/sbin/service mariadb start' returned 1: You will find full trace in log /var/tmp/packstack/20140325-064111-4H08GX/manifests/10.65.201.125_mysql.pp.log Please check log file /var/tmp/packstack/20140325-064111-4H08GX/openstack-setup.log for more information In /var/tmp/packstack/20140325-064111-4H08GX/manifests/10.65.201.125_mysql.pp.log :: ^[[1;31mError: Could not prefetch database_grant provider 'mysql': Execution of '/usr/bin/mysql --defaults-file=/root/.my.cnf mysql -Be describe user' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ^[[0m In /var/tmp/packstack/20140325-064111-4H08GX/openstack-setup.log packstack qpid rsync ssh stdlib swift sysctl tempest vcsrepo vlan vswitch xinetd | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root.201.125 tar -C /var/tmp/packstack/b5d48ed03fac47f4b9163b1bb0647323/modules -xpzf - 2014-03-25 06:42:53::ERROR::run_setup::912::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 907, in main _main(confFile) File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 573, in _main runSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 552, in runSequences controller.runAllSequences() File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 84, in runAllSequences sequence.run(self.CONF) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 105, in run step.run(config=config) File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 52, in run raise SequenceError(str(ex)) SequenceError: Error appeared during Puppet run: 10.65.201.125_mysql.pp Error: Could not start Service[mysqld]: Execution of '/sbin/service mariadb start' returned 1: ^[[0m You will find full trace in log /var/tmp/packstack/20140325-064111-4H08GX/manifests/10.65.201.125_mysql.pp.log What packstack version do you use? I suppose you are running on Fedora 20, right? I've got exactlly the same problem on Fedora 20 and at last have solved it. What I did is like this as below... # packstack --allinone I got this error. ERROR : Error appeared during Puppet run: 192.168.85.131_mysql.pp Error: /Stage[main]/Mysql::Config/Exec[mysqld-restart]: Failed to call refresh: service mariadb restart returned 1 instead of one of [0] Then I just tried command again with $answer-file. # packstack --answer-file=/root/packstack-answers-20140424-193241.txt And I got next error. ERROR : Error appeared during Puppet run: 192.168.85.131_mysql.pp Error: Could not start Service[mysqld]: Execution of '/sbin/service mariadb start' returned 1: This time, I could find out what command packstack run. So I just executed # /sbin/service mariadb start Then I got next error. Redirecting to /bin/systemctl start mariadb.service Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details. So I checked error by looking up systemctl # systemctl -l status mariadb.service Apr 24 22:53:08 localhost.localdomain mysqld_safe[23774]: /usr/bin/mysqld_safe: line 182: /var/log/mysqld.log: Permission denied Apr 24 22:53:08 localhost.localdomain mysqld_safe[23774]: touch: cannot touch ‘/var/log/mysqld.log’: Permission denied Apr 24 22:53:08 localhost.localdomain mysqld_safe[23774]: chown: cannot access ‘/var/log/mysqld.log’: No such file or directory Apr 24 22:53:08 localhost.localdomain mysqld_safe[23774]: chmod: cannot access ‘/var/log/mysqld.log’: No such file or directory Apr 24 22:53:08 localhost.localdomain mysqld_safe[23774]: 140424 22:53:08 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended Apr 24 22:53:08 localhost.localdomain mysqld_safe[23774]: /usr/bin/mysqld_safe: line 138: /var/log/mysqld.log: Permission denied Apr 24 22:53:08 localhost.localdomain systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE Apr 24 22:53:09 localhost.localdomain systemd[1]: mariadb.service: control process exited, code=exited status=1 Apr 24 22:53:09 localhost.localdomain systemd[1]: Failed to start MariaDB database server. Apr 24 22:53:09 localhost.localdomain systemd[1]: Unit mariadb.service entered failed state. Here I found out PackStack didn't have the WRITE permission for /var/log. Then I tried to give it permission. # chmod a+w /var/log And run this command again. # /sbin/service mariadb start Redirecting to /bin/systemctl start mariadb.service I didn't get any errors... So I tried third time. # packstack --answer-file=/root/packstack-answers-20140424-193241.txt finally I got this. **** Installation completed successfully ****** Note the /var/log perms issue is tracked in bug #1087389 This problem has been resolved in the current RDO release. On Fedora 21 I can deploy RDO Juno without error. |