RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1105357 - Keystone cannot send notifications [NEEDINFO]
Summary: Keystone cannot send notifications
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-selinux
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks: 1105579
TreeView+ depends on / blocked
 
Reported: 2014-06-06 00:01 UTC by Adam Young
Modified: 2016-03-30 23:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1105579 (view as bug list)
Environment:
Last Closed: 2016-03-30 23:02:25 UTC
Embargoed:
mmalik: needinfo?


Attachments (Terms of Use)
audit log (5.09 MB, text/plain)
2014-06-06 14:59 UTC, Adam Young
no flags Details

Description Adam Young 2014-06-06 00:01:50 UTC
Description of problem:

Keystone is not set up from a packstack run to deliver notifications. Attempting to do so trips over SELinux denying access to the RabbitMQ port.



Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:

Edit /etc/keystone/Keystone.conf

set 

notification_driver=nova.openstack.common.notifier.rpc_notifier

(should not be a nova specific value, but this works)

But then Notification causes command to hang

in /etc/keystone/Keystone.log
AMQP server on localhost:5672 is unreachable:


Need an SELinux policy change to let Keystone write to port 5672


2014-06-05 19:53:09.381 25222 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on 192.168.187.26:5672 is unreachable: [Errno 13] EACCES. Trying again in 11 seconds.

Set permissive got it through.

Comment 1 Adam Young 2014-06-06 14:59:40 UTC
Created attachment 902950 [details]
audit log

type=AVC msg=audit(1402012459.925:68081): avc:  denied  { name_connect } for  pid=25341 comm="keystone-all" dest=5672 scontext=system_u:system_r:keystone_t:s0 tcontext=system_u:object_r:amqp_port_t:s0 tclass=tcp_socket

Comment 2 Miroslav Grepl 2014-06-09 13:53:42 UTC
commit b77d9519cdd72090bf8d12a702730388027b9679
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jun 9 15:49:36 2014 +0200

    Allow keystone to connect to additional ports to make OpenStack working


Added to Fedora/RHEL7.1.


Note You need to log in before you can comment on or make changes to this bug.