Bug 754430
Summary: | Product promotion fails as katello-jobs doesn't start | ||
---|---|---|---|
Product: | [Retired] Katello | Reporter: | Sachin Ghai <sghai> |
Component: | Webservice API | Assignee: | Lukas Zapletal <lzap> |
Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.X | CC: | lzap |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 754306 | Environment: | |
Last Closed: | 2011-11-16 14:35:43 UTC | Type: | --- |
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: | 755097 |
Description
Sachin Ghai
2011-11-16 13:17:42 UTC
Steps to reproduce: ==================== 1. Create a product /repo and sync it 2. Create a changeset and add the product to this changeset 3. promote the product. -- katello> changeset update --name=test --org=ACME_Corporation --env=test --add_product=pulp Successfully updated changeset [ test ] katello> changeset promote --name=test --org=ACME_Corporation --env=testkatello> exit -- Hmmm I provisioned a box now and getting this during katello-configure: err: /Stage[main]/Katello::Service/Service[katello-jobs]/ensure: change from stopped to running failed: Could not start Service[katello-jobs]: Execution of '/sbin/service katello-jobs start' returned 1: at /usr/share/katello/install/puppet/modules/katello/manifests/service.pp:10 Taking. Okay, this is annoying. I provisioned several boxes and from time to time delayed_jobs do not want to start. This is the error: [root@test ~]# cat /var/log/katello/jobs-startup.log /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/pidfile.rb:94:in `initialize': Permission denied - /usr/share/katello/tmp/pids/delayed_job.pid (Errno::EACCES) from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/pidfile.rb:94:in `open' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/pidfile.rb:94:in `pid=' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/application.rb:253:in `start_proc' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/application.rb:293:in `start' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/controller.rb:70:in `run' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons.rb:195:in `run_proc' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in `call' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in `catch_exceptions' from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons.rb:194:in `run_proc' from /usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:81:in `run_process' from /usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:75:in `daemonize' from /usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:73:in `times' from /usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:73:in `daemonize' from script/delayed_job:5 The thing is /usr/share/katello/tmp/pids/ has wrong permissions - does not permit "katello" user to write there. As we do not explicitly create this directory it is created by default by the first process that starts. If it's katello-jobs thats fine (owner katello). If it's katello (thin), then this gets root owner because katello is initialized as root (and then it's owner change to katello). The solution is to distribute this directory in the RPM (with correct permissions). 979a137 754430 - Product promotion fails as katello-jobs doesn't start *** This bug has been marked as a duplicate of bug 754306 *** |