Bug 987969
| Summary: | splice-server is not able to access /etc/splice/splice.conf | ||
|---|---|---|---|
| Product: | [Retired] Subscription Asset Manager | Reporter: | Vitaly Kuznetsov <vkuznets> |
| Component: | Splice | Assignee: | Splice Developers <splice-devel> |
| Status: | CLOSED ERRATA | QA Contact: | mkovacik |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.3 | CC: | cduryee, jmatthew |
| Target Milestone: | rc | ||
| Target Release: | 1.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-01 11:14:47 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 833466 | ||
https://github.com/splice/splice-server/commit/ef6ad0670cbe94e3e1870422e9477d31af5e8290 Issue is that mod_wsgi was running as apache/apache. I've changed it so our mod_wsgi app now runs apache/splice. SNAP0 contains these bug fixes. Moving to ON_QA. Verified with splice-0.142-1.el6sam.noarch 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/RHEA-2013-1390.html |
Description of problem: SST run ends with 2013-07-24 09:17:12,957 INFO splice.common.connect connect:_request: Received '500' from 'POST /splice/api//v1/spliceserver/' Error uploading splice server data In apache log we have the following: [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] mod_wsgi (pid=4846): Exception occurred processing WSGI script '/srv/splice/webservices.wsgi'. [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] Traceback (most recent call last): [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__ [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] self.load_middleware() [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] for middleware_path in settings.MIDDLEWARE_CLASSES: [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] self._setup() [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93, in __init__ [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] mod = importlib.import_module(self.SETTINGS_MODULE) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] __import__(name) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/splice/checkin_service/settings.py", line 84, in <module> [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] CELERY_ENABLED = config.CONFIG.getboolean('celery', 'enabled') [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib64/python2.6/ConfigParser.py", line 349, in getboolean [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] v = self.get(section, option) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib64/python2.6/ConfigParser.py", line 532, in get [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] raise NoSectionError(section) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] NoSectionError: No section: 'celery' The problem is that apache user is not able to read /etc/splice/splice.conf [root@ec2-54-216-130-0 ~]# id apache uid=48(apache) gid=48(apache) groups=48(apache),182(katello) [root@ec2-54-216-130-0 ~]# ls -al /etc/splice/splice.conf -rw-r-----. 1 root splice 613 Jul 23 14:46 /etc/splice/splice.conf I suggest we add 'apache' to splice group on install or something like this.. Version-Release number of selected component (if applicable): splice-common-config-0.138-1.el6.noarch How reproducible: always Steps to Reproduce: 1. Run SST Actual results: Error 500 from splice-server Expected results: Upload works Additional info: