Project

Profile

Help

Issue #1586

closed

Orphan remove task failed error on the repo with on_demand policy

Added by pthomas@redhat.com about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Orphan remove task fails with No such file error with a repo that has the on_demand policy

Steps to reproduce

1. With the streamer service not running create a repo with --download-policy on_demand
2. Sync the repo
3. Now start the streamer service
4. Run the repo sync again
5. Delete the repo
6. Run orphan remove

[root@mgmt6 ~]# pulp-admin orphan remove --type rpm
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Failed

[Errno 2] No such file or directory:
'/var/lib/pulp/content/units/rpm/66ac/66ac4e87-abe1-4cd1-a504-ded1d476b132'

Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)     return super(Task, self).__call__(*args, **kwargs)
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 103, in __call__
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)     return super(PulpTask, self).__call__(*args, **kwargs)
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)     return self.run(*args, **kwargs)
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/content/orphan.py", line 232, in delete_orphans_by_type
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)     OrphanManager.delete_orphaned_file(storage_path)
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/content/orphan.py", line 310, in delete_orphaned_file
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944)     contents = os.listdir(path)
Jan 26 13:46:22 mgmt6 pulp: celery.worker.job:ERROR: (21815-82944) OSError: [Errno 2] No such file or directory: '/var/lib/pulp/content/units/rpm/66ac/66ac4e87-abe1-4cd1-a504-ded1d476b132'

Also available in: Atom PDF