Project

Profile

Help

Issue #1349

closed

Deleting an python repo results in a TypeError on the server

Added by ipanova@redhat.com over 8 years ago. Updated about 5 years ago.

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

Description

pulp-admin python repo create --repo-id 123

Repository [123] successfully created

[ipanova@ina pulp]$ pulp-admin python repo delete --repo-id 123

This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Failed

Pulp exception occurred: PulpExecutionException

coercing to Unicode: need string or buffer, NoneType found
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912) Error received removing distributor [cli_npm_distributor] from repo [test_delete]
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912) Traceback (most recent call last):
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)   File "/home/vagrant/devel/pulp/server/pulp/server/controllers/repository.py", line 315, in delete
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)     distributor_manager.remove_distributor(repo_id, repo_distributor['id'])
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/repo/distributor.py", line 228, in remove_distributor
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)     distributor_instance.distributor_removed(transfer_repo, call_config)
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)   File "/home/vagrant/devel/pulp_npm/plugins/pulp_npm/plugins/distributors/web.py", line 133, in distributor_removed
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)     shutil.rmtree(repo_dir, ignore_errors=True)
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)   File "/usr/lib64/python2.7/shutil.py", line 228, in rmtree
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)     if os.path.islink(path):
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)   File "/usr/lib64/python2.7/posixpath.py", line 135, in islink
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912)     st = os.lstat(path)
Oct 14 08:26:06 dev pulp[3609]: pulp.server.controllers.repository:ERROR: (3609-86912) TypeError: coercing to Unicode: need string or buffer, NoneType found

Related issues

Related to Docker Support - Issue #1365: Removing a Docker repository can cause a TypeError if the repo has not been publishedCLOSED - CURRENTRELEASEipanova@redhat.comActions

Also available in: Atom PDF