Actions
Issue #1586
closedOrphan remove task failed error on the repo with on_demand policy
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'
Updated by jortel@redhat.com almost 9 years ago
- Priority changed from Normal to High
- Platform Release set to 2.8.0
- Triaged changed from No to Yes
Updated by jortel@redhat.com almost 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to jortel@redhat.com
Added by jortel@redhat.com almost 9 years ago
Added by jortel@redhat.com almost 9 years ago
Revision 17759676 | View on GitHub
Fix orphan purge to not fail when content not downloaded. closes #1586
Updated by jortel@redhat.com almost 9 years ago
- Status changed from ASSIGNED to POST
Updated by jortel@redhat.com almost 9 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|177596761b61a702594f7037bdc915ab4247e836.
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Fix orphan purge to not fail when content not downloaded. closes #1586