RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1202941 - Glance fails to start on CentOS 7 because of selinux AVC
Summary: Glance fails to start on CentOS 7 because of selinux AVC
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-selinux
Version: Juno
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Lon Hohberger
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-17 18:30 UTC by Lars Kellogg-Stedman
Modified: 2016-05-19 15:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:34:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Lars Kellogg-Stedman 2015-03-17 18:30:24 UTC
Using openstack-glance-2014.2.1-2.el7.centos.noarch, a `packstack --allinone` fails with:

ERROR : Error appeared during Puppet run: 192.168.100.21_glance.pp
Error: Could not start Service[glance-api]: Execution of '/usr/bin/systemctl start openstack-glance-api' returned 1: Job for openstack-glance-api.service failed. See 'systemctl status openstack-glance-api.service' and 'journalctl -xn' for details.

This is due to the following AVCs:

type=AVC msg=audit(1426616794.406:4895): avc:  denied  { create } for  pid=9946 comm="glance-api" scontext=system_u:system_r:glance_api_t:s0 tcontext=system_u:system_r:glance_api_t:s0 tclass=unix_dgram_socket
type=AVC msg=audit(1426616884.741:5572): avc:  denied  { create } for  pid=10203 comm="glance-api" scontext=system_u:system_r:glance_api_t:s0 tcontext=system_u:system_r:glance_api_t:s0 tclass=unix_dgram_socket
type=AVC msg=audit(1426616974.618:5622): avc:  denied  { create } for  pid=10281 comm="glance-api" scontext=system_u:system_r:glance_api_t:s0 tcontext=system_u:system_r:glance_api_t:s0 tclass=unix_dgram_socket
type=AVC msg=audit(1426616974.618:5623): avc:  denied  { connect } for  pid=10281 comm="glance-api" scontext=system_u:system_r:glance_api_t:s0 tcontext=system_u:system_r:glance_api_t:s0 tclass=unix_dgram_socket

Aka:

# audit2allow -a

#============= glance_api_t ==============
allow glance_api_t self:unix_dgram_socket { create connect };
[centos@rdo yum.repos.d]$ rpm -q openstack-glance
openstack-glance-2014.2.1-2.el7.centos.noarch

Comment 1 Chandan Kumar 2016-05-19 15:34:59 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.


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