Bug 1202941
| Summary: | Glance fails to start on CentOS 7 because of selinux AVC | ||
|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Lars Kellogg-Stedman <lars> |
| Component: | openstack-selinux | Assignee: | Lon Hohberger <lhh> |
| Status: | CLOSED EOL | QA Contact: | Ofer Blaut <oblaut> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | Juno | CC: | eglynn, fpercoco, srevivo |
| Target Milestone: | --- | ||
| Target Release: | Kilo | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-19 15:34:59 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: | |||
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. |
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