Project

Profile

Help

Issue #1221

Error on deleting docker repo

Added by pthomas@redhat.com over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
Target Release - Docker:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Docker repo delete is error out with task failed message.

[root@mgmt13 ~]# pulp-admin docker repo delete --repo-id docker1
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Failed

Pulp exception occurred: PulpExecutionException

No plugin found: docker_importer

No plugin found: docker_distributor_web

No plugin found: docker_distributor_export

[root@mgmt13 ~]# rpm -qa pulp-docker
[root@mgmt13 ~]# 
[root@mgmt13 ~]# 
[root@mgmt13 ~]# rpm -qa |grep pulp-docker
pulp-docker-plugins-1.0.2-0.2.beta.fc21.noarch
pulp-docker-admin-extensions-1.0.2-0.2.beta.fc21.noarch
python-pulp-docker-common-1.0.2-0.2.beta.fc21.noarch
[root@mgmt13 ~]# 
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1933]: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._queue_reserved_task[072a672c-6171-455d-bcbc-0cdd34adc8a9]
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.strategy:INFO: Received task: pulp.server.tasks.repository.delete[b7d71839-a165-400a-a1a8-c463c3d3073b]
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) Error received removing importer [docker_importer] from repo [docker1]
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) Traceback (most recent call last):
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py", line 230, in delete_repo
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     importer_manager.remove_importer(repo_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/importer.py", line 227, in remove_importer
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     importer_instance, plugin_config = plugin_api.get_importer_by_id(importer_type_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 329, in get_importer_by_id
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     cls, cfg = _MANAGER.importers.get_plugin_by_id(importer_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 84, in get_plugin_by_id
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     raise loader_exceptions.PluginNotFound(_('No plugin found: %%(n)s') %% {'n': id})
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) PluginNotFound: No plugin found: docker_importer
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) Error received removing distributor [docker_web_distributor_name_cli] from repo [docker1]
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) Traceback (most recent call last):
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py", line 241, in delete_repo
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     distributor_manager.remove_distributor(repo_id, repo_distributor['id'])
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/distributor.py", line 233, in remove_distributor
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     distributor_instance, plugin_config = plugin_api.get_distributor_by_id(distributor_type_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 315, in get_distributor_by_id
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     cls, cfg = _MANAGER.distributors.get_plugin_by_id(distributor_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 84, in get_plugin_by_id
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     raise loader_exceptions.PluginNotFound(_('No plugin found: %%(n)s') %% {'n': id})
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) PluginNotFound: No plugin found: docker_distributor_web
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) Error received removing distributor [docker_export_distributor_name_cli] from repo [docker1]
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) Traceback (most recent call last):
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py", line 241, in delete_repo
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     distributor_manager.remove_distributor(repo_id, repo_distributor['id'])
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/distributor.py", line 233, in remove_distributor
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     distributor_instance, plugin_config = plugin_api.get_distributor_by_id(distributor_type_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 315, in get_distributor_by_id
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     cls, cfg = _MANAGER.distributors.get_plugin_by_id(distributor_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)   File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/manager.py", line 84, in get_plugin_by_id
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904)     raise loader_exceptions.PluginNotFound(_('No plugin found: %%(n)s') %% {'n': id})
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1933]: celery.worker.job:INFO: Task pulp.server.async.tasks._queue_reserved_task[072a672c-6171-455d-bcbc-0cdd34adc8a9] succeeded in 0.0350841960026s: None
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1910]: pulp.server.managers.repo.cud:ERROR: (1910-71904) PluginNotFound: No plugin found: docker_distributor_export
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[524efb8f-020f-4762-abd9-2cb7906b2cc1]
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904) Task pulp.server.tasks.repository.delete[b7d71839-a165-400a-a1a8-c463c3d3073b] raised unexpected: PulpExecutionException()
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904) Traceback (most recent call last):
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)     R = retval = fun(*args, **kwargs)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 328, in __call__
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)     return super(Task, self).__call__(*args, **kwargs)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)     return self.run(*args, **kwargs)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py", line 41, in delete
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)     manager.delete_repo(repo_id)
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py", line 286, in delete_repo
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904)     raise pe
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:ERROR: (1807-71904) PulpExecutionException: Pulp exception occurred: PulpExecutionException
Sep 01 15:43:18 mgmt13.rhq.lab.eng.bos.redhat.com pulp[1807]: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[524efb8f-020f-4762-abd9-2cb7906b2cc1] succeeded in 0.0302572979999s: None

History

#1 Updated by rbarlow over 6 years ago

Can you confirm that the docker plugins are installed on this machine?
The error messages seem to be suggesting that the plugins are not installed.

#2 Updated by pthomas@redhat.com over 6 years ago

[root@mgmt13 ~]# 
[root@mgmt13 ~]# 
[root@mgmt13 ~]# 
[root@mgmt13 ~]# rpm -qa |grep pulp-docker
pulp-docker-plugins-1.0.2-0.2.beta.fc21.noarch
pulp-docker-admin-extensions-1.0.2-0.2.beta.fc21.noarch
python-pulp-docker-common-1.0.2-0.2.beta.fc21.noarch
[root@mgmt13 ~]# pulp-admin docker repo list
+----------------------------------------------------------------------+
                          Docker Repositories
+----------------------------------------------------------------------+

[root@mgmt13 ~]# pulp-admin docker repo create --repo-id docker1
Repository [docker1] successfully created

[root@mgmt13 ~]# pulp-admin docker repo list
+----------------------------------------------------------------------+
                          Docker Repositories
+----------------------------------------------------------------------+

Id:                  docker1
Display Name:        docker1
Description:         None
Content Unit Counts: 

[root@mgmt13 ~]# pulp-admin docker repo delete --repo-id docker1
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Failed

Pulp exception occurred: PulpExecutionException

No plugin found: docker_importer

No plugin found: docker_distributor_web

No plugin found: docker_distributor_export

[root@mgmt13 ~]# 

#3 Updated by mhrivnak about 6 years ago

Please try again after stopping all celery workers, and then restarting them.

#4 Updated by pthomas@redhat.com about 6 years ago

verified that restarting the pulp services fixed the issue

[root@mgmt13 ~]# systemctl restart pulp_workers
[root@mgmt13 ~]# systemctl restart pulp_celerybeat
[root@mgmt13 ~]# systemctl restart pulp_resource_manager
[root@mgmt13 ~]# 
[root@mgmt13 ~]# 
[root@mgmt13 ~]# 
[root@mgmt13 ~]# 
[root@mgmt13 ~]# pulp-admin docker repo list
+----------------------------------------------------------------------+
                          Docker Repositories
+----------------------------------------------------------------------+

[root@mgmt13 ~]# pulp-admin docker repo create --repo-id docker1
Repository [docker1] successfully created

[root@mgmt13 ~]# pulp-admin docker repo list
+----------------------------------------------------------------------+
                          Docker Repositories
+----------------------------------------------------------------------+

Id:                  docker1
Display Name:        docker1
Description:         None
Content Unit Counts: 

[root@mgmt13 ~]# pulp-admin docker repo delete --repo-id docker1
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Repository [docker1] successfully deleted

#5 Updated by pthomas@redhat.com about 6 years ago

  • Status changed from NEW to CLOSED - NOTABUG

#6 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF