Project

Profile

Help

Issue #747

el7 rpms should stop services on uninstall

Added by cristi.falcas@gmail.com almost 7 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.6.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Currently, after uninstalling pulp, services are still up and spamming the logs with errors.

History

#1 Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
  • Severity set to Medium
  • Platform Release set to 2.6.1

#2 Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from POST to MODIFIED

To test, install Pulp. Start pulp_workers, pulp_resource_manager, and pulp_celerybeat. Then capture output of

ps -awfux | grep celery

Then uninstall pulp without stopping the services. Run the above command again. You should not see any running processes.

#5 Updated by dkliban@redhat.com almost 7 years ago

  • Triaged changed from No to Yes

#6 Updated by bmbouter almost 7 years ago

  • Severity changed from Medium to 2. Medium

#7 Updated by bcourt almost 7 years ago

  • Status changed from MODIFIED to 5

#8 Updated by igulina@redhat.com almost 7 years ago

  • Status changed from 5 to 6

rpm -qa pulp-server

pulp-server-2.6.1-0.2.beta.el7.noarch

ps -awfux | grep celery

root 28220 0.0 0.0 112640 964 pts/0 S+ 07:38 0:00 \_ grep --color=auto celery
apache 27939 1.1 0.7 710784 29480 ? Ssl 07:31 0:04 /usr/bin/python /usr/bin/celery beat --scheduler=pulp.server.async.scheduler.Scheduler
apache 27955 0.9 1.3 651260 50720 ? Ssl 07:31 0:04 /usr/bin/python /usr/bin/celery worker -A pulp.server.async.app -n resource_manager@%h -Q resource_manager -c 1 --events --umask 18
apache 28034 0.0 1.1 577140 43752 ? Sl 07:31 0:00 \_ /usr/bin/python /usr/bin/celery worker -A pulp.server.async.app -n resource_manager@%h -Q resource_manager -c 1 --events --umask 18
apache 27983 0.9 1.3 651248 50716 ? Ssl 07:31 0:04 /usr/bin/python /usr/bin/celery worker -n reserved_resource_worker-0@%h -A pulp.server.async.app -c 1 --events --umask 18
apache 28060 0.2 1.4 798232 54392 ? Sl 07:31 0:01 \_ /usr/bin/python /usr/bin/celery worker -n reserved_resource_worker-0@%h -A pulp.server.async.app -c 1 --events --umask 18

rpm -e pulp-server-2.6.1-0.2.beta.el7

error: Failed dependencies:
pulp-server = 2.6.1 is needed by (installed) pulp-puppet-plugins-2.6.1-0.2.beta.el7.noarch
pulp-server = 2.6.1 is needed by (installed) pulp-rpm-plugins-2.6.1-0.2.beta.el7.noarch
pulp-server >= 2.5.0 is needed by (installed) pulp-docker-plugins-1.0.0-1.el7.noarch

rpm -e pulp-puppet-plugins-2.6.1-0.2.beta.el7
rpm -e pulp-rpm-plugins-2.6.1-0.2.beta.el7
rpm -e pulp-docker-plugins-1.0.0-1.el7
rpm -e pulp-server-2.6.1-0.2.beta.el7

warning: /etc/pulp/server.conf saved as /etc/pulp/server.conf.rpmsave

ps -awfux | grep celery

root 28257 0.0 0.0 112640 960 pts/0 S+ 07:50 0:00 \_ grep --color=auto celery

/var/log/messages :

Mar 27 07:50:39 ip-XXX systemd: Stopping Pulp Celery Workers...
Mar 27 07:50:40 ip-XXX systemd: Stopping Pulp Worker #0...
Mar 27 07:50:40 ip-XXX celery: worker: Cold shutdown (MainProcess)
Mar 27 07:50:40 ip-XXX pulp: pulp.server.async.worker_watcher:INFO: Worker 'reserved_resource_worker-0@ip-XXX' shutdown
Mar 27 07:50:40 ip-XXX qpidd: 2015-03-27 07:50:40 [Store] notice Journal "reserved_resource_worker-0@ip-XXX": Destroyed
Mar 27 07:50:40 ip-XXX celery: reserved_resource_worker-0@ip-XXX ready.
Mar 27 07:50:40 ip-XXX systemd: Stopped Pulp Worker #0.
Mar 27 07:50:40 ip-XXX systemd: Stopped Pulp Celery Workers.
Mar 27 07:50:40 ip-XXX systemd: Stopping Pulp's Celerybeat...
Mar 27 07:50:40 ip-XXX celery: celery beat v3.1.11 (Cipater) is starting.
Mar 27 07:50:40 ip-XXX celery: _ - ... _ - _
Mar 27 07:50:40 ip-XXX celery: Configuration ->
Mar 27 07:50:40 ip-XXX celery: . broker -> amqp://guest:**localhost:5672// Mar 27 07:50:40 ip-XXX celery: . loader -> celery.loaders.default.Loader Mar 27 07:50:40 ip-XXX celery: . scheduler -> pulp.server.async.scheduler.Scheduler Mar 27 07:50:40 ip-XXX celery: . logfile -> [stderr]%INFO
Mar 27 07:50:40 ip-XXX celery: . maxinterval -> now (0s)
Mar 27 07:50:40 ip-XXX systemd: Stopped Pulp's Celerybeat.
Mar 27 07:50:40 ip-XXX systemd: Stopping Pulp Resource Manager...
Mar 27 07:50:40 ip-XXX celery: worker: Warm shutdown (MainProcess)
Mar 27 07:50:40 ip-XXX qpidd: 2015-03-27 07:50:40 [Store] notice Journal "resource_manager@ip-XXX": Destroyed
Mar 27 07:50:41 ip-XXX celery: resource_manager@ip-XXX ready.
Mar 27 07:50:42 ip-XXX systemd: Stopped Pulp Resource Manager.
Mar 27 07:50:42 ip-XXX systemd: Reloading.

#9 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#11 Updated by bmbouter almost 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF