Project

Profile

Help

Issue #1586

Orphan remove task failed error on the repo with on_demand policy

Added by pthomas@redhat.com over 4 years ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
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'

Associated revisions

Revision 17759676 View on GitHub
Added by jortel@redhat.com over 4 years ago

Fix orphan purge to not fail when content not downloaded. closes #1586

Revision 17759676 View on GitHub
Added by jortel@redhat.com over 4 years ago

Fix orphan purge to not fail when content not downloaded. closes #1586

History

#1 Updated by jortel@redhat.com over 4 years ago

  • Priority changed from Normal to High
  • Platform Release set to 2.8.0
  • Triaged changed from No to Yes

#2 Updated by jortel@redhat.com over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com

#3 Updated by jortel@redhat.com over 4 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by jortel@redhat.com over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#5 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from MODIFIED to 5

#6 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#7 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF