Bug 1348454 - Cradox package has wrong SELinux label on cradox.so
Summary: Cradox package has wrong SELinux label on cradox.so
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-gnocchi
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ga
: 9.0 (Mitaka)
Assignee: Pradeep Kilambi
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
Depends On:
Blocks: 1342571
TreeView+ depends on / blocked
 
Reported: 2016-06-21 08:27 UTC by Yurii Prokulevych
Modified: 2016-07-19 16:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 16:25:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yurii Prokulevych 2016-06-21 08:27:11 UTC
Description of problem:
-----------------------
Gnocchi - configured to use ceph backend. But requests to gnocchi-api fails:

gnocchi archive-policy list
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 [no address given] to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
 (HTTP 500)

And in /var/log/httpd/gnocchi_wsgi_error.log
...
    [Tue Jun 21 07:10:59.810186 2016] [:error] [pid 7976] Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
    [Tue Jun 21 07:11:00.019723 2016] [:error] [pid 7976] [remote 192.0.2.10:52] mod_wsgi (pid=7976): Target WSGI script '/var/www/cgi-bin/gnocchi/app' cannot be loaded as Python module.
    [Tue Jun 21 07:11:00.019749 2016] [:error] [pid 7976] [remote 192.0.2.10:52] mod_wsgi (pid=7976): Exception occurred processing WSGI script '/var/www/cgi-bin/gnocchi/app'.
    [Tue Jun 21 07:11:00.019769 2016] [:error] [pid 7976] [remote 192.0.2.10:52] Traceback (most recent call last):
    [Tue Jun 21 07:11:00.019787 2016] [:error] [pid 7976] [remote 192.0.2.10:52]   File "/var/www/cgi-bin/gnocchi/app", line 29, in <module>
    [Tue Jun 21 07:11:00.019813 2016] [:error] [pid 7976] [remote 192.0.2.10:52]     application = app.load_app(conf)
    [Tue Jun 21 07:11:00.019824 2016] [:error] [pid 7976] [remote 192.0.2.10:52]   File "/usr/lib/python2.7/site-packages/gnocchi/rest/app.py", line 91, in load_app
    [Tue Jun 21 07:11:00.019900 2016] [:error] [pid 7976] [remote 192.0.2.10:52]     storage = gnocchi_storage.get_driver(conf)
    [Tue Jun 21 07:11:00.019924 2016] [:error] [pid 7976] [remote 192.0.2.10:52]   File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 155, in get_driver
    [Tue Jun 21 07:11:00.020019 2016] [:error] [pid 7976] [remote 192.0.2.10:52]     return get_driver_class(conf)(conf.storage)
    [Tue Jun 21 07:11:00.020043 2016] [:error] [pid 7976] [remote 192.0.2.10:52]   File "/usr/lib/python2.7/site-packages/gnocchi/storage/ceph.py", line 73, in __init__
    [Tue Jun 21 07:11:00.020137 2016] [:error] [pid 7976] [remote 192.0.2.10:52]     raise ImportError("Your rados python module does not support "
    [Tue Jun 21 07:11:00.020156 2016] [:error] [pid 7976] [remote 192.0.2.10:52] ImportError: Your rados python module does not support omap feature. Install 'cradox' (recommended) or upgrade 'python-rados' >= 9.1.0
...


Though python-cradox is installed and gnocchi-metricd is working:
---------------------------------
rpm -qa | grep python-cradox
python-cradox-1.1.8-2.el7ost.x86_64



Version-Release number of selected component (if applicable):
-------------------------------------------------------------
openstack-gnocchi-common-2.1.3-1.el7ost.noarch
openstack-gnocchi-metricd-2.1.3-1.el7ost.noarch
openstack-gnocchi-carbonara-2.1.3-1.el7ost.noarch
openstack-gnocchi-indexer-sqlalchemy-2.1.3-1.el7ost.noarch
openstack-gnocchi-statsd-2.1.3-1.el7ost.noarch
python-gnocchiclient-2.2.0-1.el7ost.noarch
python-gnocchi-2.1.3-1.el7ost.noarch
openstack-gnocchi-api-2.1.3-1.el7ost.noarch

ceph-mon-0.94.5-13.el7cp.x86_64
ceph-0.94.5-13.el7cp.x86_64
ceph-osd-0.94.5-13.el7cp.x86_64
ceph-common-0.94.5-13.el7cp.x86_64


Steps to Reproduce:
1. Deploy overcloud and configure gnocchi to use ceph backend.
   openstack overcloud deploy --templates \
    --control-scale 3 --compute-scale 2 --ceph-storage-scale 1 \
    -e gnocchi_ceph.yaml --libvirt-type qemu --ntp-server clock.redhat.com

2. cat gnocchi_ceph.yaml
parameter_defaults:
    GnocchiBackend: 'rbd'


Additional info:
VirtualEnv: 3Controllers + 2Computes + 1Ceph

Comment 1 Yurii Prokulevych 2016-06-21 11:31:05 UTC
According to comment https://bugzilla.redhat.com/show_bug.cgi?id=1342571#c15 the reason is the mislabeled cradox file. Since this one was added to the image manually this might be a root cause. Will validate when bz 1348147 is fixed.


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