Project

Profile

Help

Issue #1349

Deleting an python repo results in a TypeError on the server

Added by ipanova@redhat.com almost 5 years ago. Updated over 1 year 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 - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by mhrivnak almost 5 years ago

  • Triaged changed from No to Yes

#2 Updated by rbarlow almost 5 years ago

  • Related to Issue #1365: Removing a Docker repository can cause a TypeError if the repo has not been published added

#3 Updated by ipanova@redhat.com almost 5 years ago

  • Status changed from ASSIGNED to MODIFIED

#4 Updated by rbarlow over 4 years ago

  • Status changed from MODIFIED to 5

#5 Updated by semyers over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF