Bug 1093009 - pulp_workers, pulp_celerybeat and pulp_resource_manager is not started after an system reboot
Summary: pulp_workers, pulp_celerybeat and pulp_resource_manager is not started after ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: rel-eng
Version: 2.4 Beta
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 2.4.0
Assignee: Randy Barlow
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 950743
TreeView+ depends on / blocked
 
Reported: 2014-04-30 12:14 UTC by pgustafs
Modified: 2014-08-09 06:56 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-09 06:56:06 UTC
Embargoed:


Attachments (Terms of Use)

Description pgustafs 2014-04-30 12:14:48 UTC
Description of problem: After an system reboot pulp_workers, pulp_celerybeat and pulp_resource_manager services is not started.


Version-Release number of selected component (if applicable):

# rpm -qa | grep pulp
python-pulp-common-2.4.0-0.10.beta.el6.noarch
createrepo-0.9.9-21.2.pulp.el6.noarch
mod_wsgi-3.4-1.pulp.el6.x86_64
pulp-server-2.4.0-0.10.beta.el6.noarch
pulp-selinux-2.4.0-0.10.beta.el6.noarch
pulp-admin-client-2.4.0-0.10.beta.el6.noarch
python-isodate-0.5.0-1.pulp.el6.noarch
python-pulp-client-lib-2.4.0-0.10.beta.el6.noarch
m2crypto-0.21.1.pulp-8.el6.x86_64
python-pulp-puppet-common-2.4.0-0.10.beta.el6.noarch
pulp-puppet-plugins-2.4.0-0.10.beta.el6.noarch
pulp-rpm-admin-extensions-2.4.0-0.10.beta.el6.noarch
python-pulp-rpm-common-2.4.0-0.10.beta.el6.noarch
python-kombu-3.0.15-4.pulp.el6.noarch
pulp-rpm-plugins-2.4.0-0.10.beta.el6.noarch
python-pulp-bindings-2.4.0-0.10.beta.el6.noarch
pulp-puppet-admin-extensions-2.4.0-0.10.beta.el6.noarch

How reproducible: Always

Steps to Reproduce:
1. make sure all services is enabled.
# chkconfig --list | grep pulp
pulp_celerybeat	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pulp_resource_manager	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pulp_workers   	0:off	1:off	2:on	3:on	4:on	5:on	6:off
2. reboot the system
# shutdown -hr now
3. When the system is rebooted check the status on the services.
# service pulp_workers status
celery init v10.0.
Using config script: /etc/default/pulp_workers
cat: /var/run/pulp/*.pid: No such file or directory
bad pid file (/var/run/pulp/*.pid)

# service pulp_resource_manager status
celery init v10.0.
Using config script: /etc/default/pulp_resource_manager
cat: /var/run/pulp/*.pid: No such file or directory
bad pid file (/var/run/pulp/*.pid)

Actual results: The services is not running and no tasks can be executed.


Expected results:


Additional info:

Comment 1 Randy Barlow 2014-05-11 21:20:27 UTC
This ended up being a combination of two problems with the init scripts. See the pull request for more details:

https://github.com/pulp/pulp/pull/957

Comment 2 Randy Barlow 2014-05-12 13:50:32 UTC
Once the fix for this bug makes it into a build, you will need to "re-chkconfig" these services so that they get into a new startup order. Here's a oneliner that I didn't try out but might work:

for s in {pulp_celerybeat,pulp_resource_manager;pulp_workers}; do sudo chkconfig $s off; sudo chkconfig $s on; done;

Comment 3 Randy Barlow 2014-05-15 20:12:14 UTC
This was fixed by today's pulp-2.4.0-0.14.beta build.

Comment 4 Preethi Thomas 2014-07-02 18:07:10 UTC
verified
[root@pulp-v2-server ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.23.beta.el6.noarch
[root@pulp-v2-server ~]# 


[root@pulp-v2-server ~]# service pulp_workers status
celery init v10.0.
Using config script: /etc/default/pulp_workers
node reserved_resource_worker-0 (pid 1947) is running...
[root@pulp-v2-server ~]# service pulp_resource_manager status
celery init v10.0.
Using config script: /etc/default/pulp_resource_manager
node resource_manager (pid 1833) is running...
[root@pulp-v2-server ~]#

Comment 5 Randy Barlow 2014-08-09 06:56:06 UTC
This has been fixed in Pulp 2.4.0-1.


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