Issue #2468
Updated by elyezer almost 8 years ago
During the process of upgrading from latest Pulp 2.10 stable to latest Pulp 2.11 beta pulp-manage-db asks the following: There are still running workers, continuing could corrupt your Pulp installation. Are you sure you wish to continue? (y/N): Even when all Pulp services are gracefully stopped. Steps to reproduce: # 1. Install latest Pulp 2.10 stable (was used the pulp_packaging ansible playbook to do this) # 2. Upgrade the system following the steps: * Update the pulp.repo file to point to the latest 2.11 beta repository * Stop all Pulp services: httpd, pulp_workers, pulp_celerybeat, pulp_resource_manager * Clean package cache yum clean all * Update packages: yum -y update * Run pulp-manage-db: sudo -u apache pulp-manage-db The upgrade steps were also executed from within an Ansible playbook and stuck when running the pulp-manage-db since it was expecting an input in order to proceed. I've sshed into the machine and tried the pulp-manage-db command manually after checking the processes status: <pre> # systemctl status httpd pulp_celerybeat pulp_resource_manager pulp_workers ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: inactive (dead) since Mon 2016-12-05 09:08:45 EST; 2h 33min ago Docs: man:httpd(8) man:apachectl(8) Main PID: 17163 (code=exited, status=0/SUCCESS) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" ● pulp_celerybeat.service - Pulp's Celerybeat Loaded: loaded (/usr/lib/systemd/system/pulp_celerybeat.service; enabled; vendor preset: disabled) Active: inactive (dead) since Mon 2016-12-05 09:08:55 EST; 2h 32min ago Main PID: 17658 (code=exited, status=0/SUCCESS) ● pulp_resource_manager.service - Pulp Resource Manager Loaded: loaded (/usr/lib/systemd/system/pulp_resource_manager.service; enabled; vendor preset: disabled) Active: inactive (dead) since Mon 2016-12-05 09:09:00 EST; 2h 32min ago Main PID: 17701 (code=exited, status=0/SUCCESS) ● pulp_workers.service - Pulp Celery Workers Loaded: loaded (/usr/lib/systemd/system/pulp_workers.service; enabled; vendor preset: disabled) Active: inactive (dead) since Mon 2016-12-05 09:08:51 EST; 2h 32min ago Main PID: 17436 (code=exited, status=0/SUCCESS) # sudo -u apache pulp-manage-db Attempting to connect to localhost:27017 Attempting to connect to localhost:27017 Write concern for Mongo connection: {} There are still running workers, continuing could corrupt your Pulp installation. Are you sure you wish to continue? (y/N): n </pre> I've removed the logging entries from the systemctl output above. All the steps were run on a RHEL7 machine and after the upgrade the system has the following pulp packages: <pre> # rpm -qa | grep pulp python-pulp-docker-common-2.2.0-0.2.beta.el7.noarch python-pulp-puppet-common-2.11.0-0.4.beta.el7.noarch pulp-admin-client-2.11.0-0.4.beta.el7.noarch pulp-docker-plugins-2.2.0-0.2.beta.el7.noarch pulp-ostree-admin-extensions-1.2.0-0.3.beta.el7.noarch pulp-python-admin-extensions-1.1.3-1.el7.noarch python-pulp-common-2.11.0-0.4.beta.el7.noarch python-pulp-ostree-common-1.2.0-0.3.beta.el7.noarch python-pulp-rpm-common-2.11.0-0.4.beta.el7.noarch python-pulp-oid_validation-2.11.0-0.4.beta.el7.noarch python-pulp-bindings-2.11.0-0.4.beta.el7.noarch pulp-selinux-2.11.0-0.4.beta.el7.noarch python-pulp-streamer-2.11.0-0.4.beta.el7.noarch pulp-ostree-plugins-1.2.0-0.3.beta.el7.noarch pulp-puppet-plugins-2.11.0-0.4.beta.el7.noarch pulp-rpm-admin-extensions-2.11.0-0.4.beta.el7.noarch pulp-docker-admin-extensions-2.2.0-0.2.beta.el7.noarch python-kombu-3.0.33-6.pulp.el7.noarch python-pulp-python-common-1.1.3-1.el7.noarch pulp-python-plugins-1.1.3-1.el7.noarch python-pulp-repoauth-2.11.0-0.4.beta.el7.noarch python-pulp-client-lib-2.11.0-0.4.beta.el7.noarch pulp-server-2.11.0-0.4.beta.el7.noarch pulp-rpm-plugins-2.11.0-0.4.beta.el7.noarch pulp-puppet-admin-extensions-2.11.0-0.4.beta.el7.noarch python-isodate-0.5.0-4.pulp.el7.noarch [root@sat-qe-4 ~]# rpm -qa | grep pulp | sort pulp-admin-client-2.11.0-0.4.beta.el7.noarch pulp-docker-admin-extensions-2.2.0-0.2.beta.el7.noarch pulp-docker-plugins-2.2.0-0.2.beta.el7.noarch pulp-ostree-admin-extensions-1.2.0-0.3.beta.el7.noarch pulp-ostree-plugins-1.2.0-0.3.beta.el7.noarch pulp-puppet-admin-extensions-2.11.0-0.4.beta.el7.noarch pulp-puppet-plugins-2.11.0-0.4.beta.el7.noarch pulp-python-admin-extensions-1.1.3-1.el7.noarch pulp-python-plugins-1.1.3-1.el7.noarch pulp-rpm-admin-extensions-2.11.0-0.4.beta.el7.noarch pulp-rpm-plugins-2.11.0-0.4.beta.el7.noarch pulp-selinux-2.11.0-0.4.beta.el7.noarch pulp-server-2.11.0-0.4.beta.el7.noarch python-isodate-0.5.0-4.pulp.el7.noarch python-kombu-3.0.33-6.pulp.el7.noarch python-pulp-bindings-2.11.0-0.4.beta.el7.noarch python-pulp-client-lib-2.11.0-0.4.beta.el7.noarch python-pulp-common-2.11.0-0.4.beta.el7.noarch python-pulp-docker-common-2.2.0-0.2.beta.el7.noarch python-pulp-oid_validation-2.11.0-0.4.beta.el7.noarch python-pulp-ostree-common-1.2.0-0.3.beta.el7.noarch python-pulp-puppet-common-2.11.0-0.4.beta.el7.noarch python-pulp-python-common-1.1.3-1.el7.noarch python-pulp-repoauth-2.11.0-0.4.beta.el7.noarch python-pulp-rpm-common-2.11.0-0.4.beta.el7.noarch python-pulp-streamer-2.11.0-0.4.beta.el7.noarch </pre>