Bug 1080348

Summary: Fedora20: packstack gives traceback when SElinux permissive
Product: [Community] RDO Reporter: Amita Sharma <amsharma>
Component: openstack-packstackAssignee: Ivan Chavero <ichavero>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: amsharma, aortega, derekh, ichavero, itamar, mmagr, p, srevivo, yeylon
Target Milestone: Milestone3   
Target Release: Icehouse   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-puppet-modules-2013.2-9.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-30 23:06:16 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 Flags
mysql.pp.log
none
openstack-setup.log none

Description Amita Sharma 2014-03-25 08:24:51 UTC
Created attachment 878339 [details]
mysql.pp.log

Description of problem:
Fedora20: packstack gives traceback when SElinux permissive

Version-Release number of selected component (if applicable):
openvswitch.x86_64 0:2.0.1-1.fc20 installed

Steps to Reproduce:
1. Followed steps given http://allthingsopen.com/2013/08/23/openstack-packstack-installation-with-external-connectivity/
2. On step packstack --allinone —quantum-l3-ext-bridge=eth0

Applying 10.65.201.125_mysql.pp
Applying 10.65.201.125_qpid.pp
                                                                                          [ 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-031916-GWgWD5/manifests/10.65.201.125_mysql.pp.log
Please check log file /var/tmp/packstack/20140325-031916-GWgWD5/openstack-setup.log for more information

================================================================================
/var/tmp/packstack/20140325-031916-GWgWD5/manifests/10.65.201.125_mysql.pp.log (PFA as well)
^[[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
^[[mNotice: /Stage[main]/Glance::Db::Mysql/Glance::Db::Mysql::Host_access[%]/Database_grant[glance@%/glance]: Dependency Service[mysqld] has failures: true^[[0m

================================================================================
/var/tmp/packstack/20140325-031916-GWgWD5/openstack-setup.log (PFA as well)
KeyChecking=no -o UserKnownHostsFile=/dev/null root.201.125 tar -C /var/tmp/packstack/3c5fc6f0b07e40c58f9352ff427995d6/modules -xpzf -
2014-03-25 03:21:43::ERROR::run_setup::912::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 893, in main
    single_step_aio_install(options)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 662, in single_step_aio_install
    single_step_install(options)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 695, in single_step_install
    _main(answerfilepath)
  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()

Comment 1 Amita Sharma 2014-03-25 08:26:01 UTC
Created attachment 878340 [details]
openstack-setup.log

Comment 2 Ivan Chavero 2014-04-09 07:39:41 UTC
The tests i've done following the steps here [1] are for RDO grizzly and imply modifications to the packstack puppet templates, since the modifications do not modify the mysql template i tested and managed to reproduce the problem.

I'm gonna test latest packstack to see if i can reproduce this problem.

[1] http://allthingsopen.com/2013/08/23/openstack-packstack-installation-with-external-connectivity/

Comment 3 Ivan Chavero 2014-04-10 20:15:53 UTC
The mariadb service is no longer called mysql in fedora, this has been fixed in the upstream mysql puppet module and have to be reflected in our mysql puppet module in openstack puppet modules.
Working on that

Comment 4 Ivan Chavero 2014-04-14 15:49:56 UTC
This issue has been fixed in the current openstack puppet modules package: openstack-puppet-modules-2013.2-9.fc20. which version of packstack are you using?

Comment 6 Red Hat Bugzilla 2023-09-14 02:05:29 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days