Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 795430

Summary: service matahari-broker fails to start when qpid store module is available
Product: Red Hat Enterprise Linux 6 Reporter: ppecka <ppecka>
Component: matahariAssignee: Zane Bitter <zbitter>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: medium    
Version: 6.2CC: astokes, dajohnso, matahari-maint, rbryant, tross, zbitter
Target Milestone: rc   
Target Release: 6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:48:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ppecka 2012-02-20 14:17:40 UTC
Description of problem:
Selinux denies matahari-broker service to start when qpid-cpp-server-store is installed.


Version-Release number of selected component (if applicable):
 cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.2 (Santiago)

# rpm -qa | grep -P '(matahari|qpid)' | sort
fence-virtd-libvirt-qpid-0.2.3-5.el6.x86_64
matahari-0.4.4-11.el6.x86_64
matahari-agent-lib-0.4.4-11.el6.x86_64
matahari-broker-0.4.4-11.el6.x86_64
matahari-host-0.4.4-11.el6.x86_64
matahari-lib-0.4.4-11.el6.x86_64
matahari-network-0.4.4-11.el6.x86_64
matahari-service-0.4.4-11.el6.x86_64
matahari-sysconfig-0.4.4-11.el6.x86_64
python-qpid-0.14-3.el6.noarch
python-qpid-qmf-0.14-3.el6.x86_64
qpid-cpp-client-0.14-6.el6.x86_64
qpid-cpp-client-devel-0.14-6.el6.x86_64
qpid-cpp-client-devel-docs-0.14-6.el6.noarch
qpid-cpp-client-rdma-0.14-6.el6.x86_64
qpid-cpp-client-ssl-0.14-6.el6.x86_64
qpid-cpp-debuginfo-0.14-6.el6.x86_64
qpid-cpp-server-0.14-6.el6.x86_64
qpid-cpp-server-cluster-0.14-6.el6.x86_64
qpid-cpp-server-devel-0.14-6.el6.x86_64
qpid-cpp-server-rdma-0.14-6.el6.x86_64
qpid-cpp-server-ssl-0.14-6.el6.x86_64
qpid-cpp-server-store-0.14-6.el6.x86_64
qpid-cpp-server-xml-0.14-6.el6.x86_64
qpid-java-client-0.14-1.el6.noarch
qpid-java-common-0.14-1.el6.noarch
qpid-java-example-0.14-1.el6.noarch
qpid-java-jca-0.10-9.el6.noarch
qpid-jca-0.14-1.el6.noarch
qpid-qmf-0.14-3.el6.x86_64
qpid-qmf-devel-0.14-3.el6.x86_64
qpid-tests-0.14-1.el6.noarch
qpid-tools-0.14-1.el6.noarch
rh-qpid-cpp-tests-0.14-6.el6.x86_64
ruby-qpid-0.7.946106-2.el6.x86_64
ruby-qpid-qmf-0.14-3.el6.x86_64



How reproducible:


Steps to Reproduce:
1. install qpid-cpp-server-store rpm
2. service matahari-broker restart
3. qpid-stat -c localhost:49000
  
Actual results:

service matahari-broker restart;qpid-stat -c localhost:49000
Stopping Matahari broker daemon:                           [FAILED]
Starting Matahari broker daemon: Daemon startup failed: Journal Exception occurred while initializing store (MessageStoreImpl.cpp:383): jexception 0x0301 jdir::create_dir() threw JERR_JDIR_MKDIR: Directory creation failed. (dir="/var/lib/matahari/rhm" errno=13 (Permission denied))
                                                           [FAILED]
Failed: error - [Errno 111] Connection refused




cat /var/log/messages
...
Feb 20 09:03:03 dhcp-lab-116 matahari-brokerd[13782]: 2012-02-20 09:03:03 critical Unexpected error: Journal Exception occurred while initializing store (MessageStoreImpl.cpp:383): jexception 0x0301 jdir::create_dir() threw JERR_JDIR_MKDIR: Directory creation failed. (dir="/var/lib/matahari/rhm" errno=13 (Permission denied))
Feb 20 09:03:03 dhcp-lab-116 matahari-brokerd[13780]: 2012-02-20 09:03:03 critical Unexpected error: Daemon startup failed: Journal Exception occurred while initializing store (MessageStoreImpl.cpp:383): jexception 0x0301 jdir::create_dir() threw JERR_JDIR_MKDIR: Directory creation failed. (dir="/var/lib/matahari/rhm" errno=13 (Permission denied))
...

Expected results:
service matahari-broker is allowed to start

Additional info:

Comment 1 Ted Ross 2012-02-20 20:49:31 UTC
Consider updating the broker configuration by adding --no-module-dir and using --load-module <path> explicitly to load needed modules (SSL, etc.).

This will prevent the broker process from picking up any available modules that happen to be installed on the system.

Comment 5 Zane Bitter 2012-04-26 08:37:01 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 7 Dave Johnson 2012-06-08 20:22:24 UTC
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : qpid-cpp-server-store-0.14-16.el6.x86_64                                                                                                                   1/1 
Installed products updated.
  Verifying  : qpid-cpp-server-store-0.14-16.el6.x86_64                                                                                                                   1/1 

Installed:
  qpid-cpp-server-store.x86_64 0:0.14-16.el6                                                                                                                                  

Complete!
[root@kvm-guest-02 ~]# service matahari-broker start
Starting Matahari broker daemon: [  OK  ]
[root@kvm-guest-02 ~]# qmf-tool localhost:49000
Management Tool for QMF
qmf: list agents
QMF Agents:
       Id  Vendor               Product      Instance                              Epoch
    ======================================================================================
    *  1   apache.org           qpidd        101aa208-5af4-4248-9aca-b0c71ed741db  2
       2   matahariproject.org  libvirt-qmf  93dd3fad-aee2-4c7d-8b4b-0c60e351fedf  1
qmf: q
*** Unknown syntax: q
qmf: quit
Exiting...
[root@kvm-guest-02 ~]# qpid-stat -c localhost:49000
Connections
  client-addr                      cproc        cpid  auth       connected  idle  msgIn  msgOut
  ===============================================================================================
  [::1]:49000-[::1]:39713          qpid-stat    2308  anonymous  0s         0s     213    270
  127.0.0.1:49000-127.0.0.1:40617  libvirt-qmf  1894  anonymous  49s        0s      60     29

Comment 9 errata-xmlrpc 2012-06-20 13:48:07 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.

http://rhn.redhat.com/errata/RHBA-2012-0844.html