Project

Profile

Help

Issue #2574

closed

pulp-admin sometimes errors when watching tasks

Added by Ichimonji10 about 7 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Low
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Under both Pulp 2.11 and 2.12, and on all supported platforms, Puppet repository syncs sometimes fail. This failure can be triggered somewhat reliably by Pulp Smash, by executing the following command:

python -m unittest pulp_smash.tests.puppet.cli.test_sync

The test executed by Pulp Smash is pretty simple. It essentially does the following, which can also be used to trigger the failure:

#!/usr/bin/env bash

pulp-admin puppet repo create --repo-id foo --feed http://forge.puppetlabs.com --queries "pulp-pulp-1.0.0"
pulp-admin puppet repo sync run --repo-id foo
pulp-admin puppet repo delete --repo-id foo

For some reason, only the former command causes any errors to be logged. Here's an example of the error:

Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040) Task pulp.server.managers.repo.publish.publish[b4591031-d99b-4ba6-93dd-d04df64446a9] raised unexpected: MissingResource({'resource_id': {'repository': 
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040) Traceback (most recent call last):
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)     R = retval = fun(*args, **kwargs)
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 505, in __call__
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)     return super(Task, self).__call__(*args, **kwargs)
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 108, in __call__
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)     return super(PulpTask, self).__call__(*args, **kwargs)
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)     return self.run(*args, **kwargs)
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 1086, in publish
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)     repo_obj = model.Repository.objects.get_repo_or_missing_resource(repo_id)
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)   File "/usr/lib/python2.7/site-packages/pulp/server/db/querysets.py", line 139, in get_repo_or_missing_resource
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040)     raise pulp_exceptions.MissingResource(repository=repo_id)
Feb 07 15:59:19 fedora-24-pulp-2-12 pulp[31854]: celery.worker.job:ERROR: (31854-47040) MissingResource: Missing resource(s): repository=704a2ec0-2946-46af-9b4c-c76a3558c214

As you can see, the target repository used for a publish apparently doesn't exist. Weird. This is so weird that I've taken two videos of the issue, in an attempt to better describe exactly what's going on. The video files are attached.

As mentioned, this issue occurs for at least Pulp 2.11 and 2.12, on a variety of platforms. For the record, here's the relevant packages installed on one of my test systems:

[root@fedora-24-pulp-2-12 ~]# rpm -qa | grep -i pulp | sort
pulp-admin-client-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
pulp-docker-admin-extensions-2.3.1-0.1.alpha.git.1.ad83c84.fc24.noarch
pulp-docker-plugins-2.3.1-0.1.alpha.git.1.ad83c84.fc24.noarch
pulp-ostree-admin-extensions-1.2.1-0.1.alpha.git.22.19760f7.fc24.noarch
pulp-ostree-plugins-1.2.1-0.1.alpha.git.22.19760f7.fc24.noarch
pulp-puppet-admin-extensions-2.12.1-0.1.alpha.git.1.d407541.fc24.noarch
pulp-puppet-plugins-2.12.1-0.1.alpha.git.1.d407541.fc24.noarch
pulp-python-admin-extensions-2.0.1-0.1.alpha.git.2.be7d11e.fc24.noarch
pulp-python-plugins-2.0.1-0.1.alpha.git.2.be7d11e.fc24.noarch
pulp-rpm-admin-extensions-2.12.1-0.1.alpha.git.11.bdbacef.fc24.noarch
pulp-rpm-plugins-2.12.1-0.1.alpha.git.11.bdbacef.fc24.noarch
pulp-selinux-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
pulp-server-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
python-kombu-3.0.33-6.pulp.fc24.noarch
python-pulp-bindings-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
python-pulp-client-lib-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
python-pulp-common-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
python-pulp-docker-common-2.3.1-0.1.alpha.git.1.ad83c84.fc24.noarch
python-pulp-oid_validation-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
python-pulp-ostree-common-1.2.1-0.1.alpha.git.22.19760f7.fc24.noarch
python-pulp-puppet-common-2.12.1-0.1.alpha.git.1.d407541.fc24.noarch
python-pulp-python-common-2.0.1-0.1.alpha.git.2.be7d11e.fc24.noarch
python-pulp-repoauth-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch
python-pulp-rpm-common-2.12.1-0.1.alpha.git.11.bdbacef.fc24.noarch
python-pulp-streamer-2.12.1-0.1.alpha.git.46.47a425e.fc24.noarch

Files

cli.ogv (18.8 MB) cli.ogv Ichimonji10, 02/07/2017 10:28 PM
pulp-smash.ogv (38.5 MB) pulp-smash.ogv Ichimonji10, 02/07/2017 10:31 PM
fedora-24-pulp-2-13.log (33.9 KB) fedora-24-pulp-2-13.log Ichimonji10, 02/08/2017 09:01 PM

Also available in: Atom PDF