Project

Profile

Help

Issue #3095

Unable to cancel pending unstarted tasks

Added by Anonymous about 3 years ago. Updated over 1 year ago.

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

Description

1. Created some consumers
2. Created some consumer groups for patching
3. Deleted some consumers
4. Run some package group updates
5. Task lists look Unstarted.

I am not able to cancel the tasks by running

pulp-admin tasks cancel --task-id <task-id>

Is there a workaround to remove those orphan tasks?

History

#1 Updated by dkliban@redhat.com about 3 years ago

The tasks can't be started because the consumers are missing. This currently requires manually cleaning up the database.

Connect to mongo shell:

mongo pulp_database 

Remove a task status document

db.task_status.deleteOne({"task_id":"22f0e011-57fe-4fbb-802c-7eafe2d0709c"})

Substitute the task_id you are actually trying to remove.

#2 Updated by bmbouter about 3 years ago

Another workaround could be to re-register the consumer w/ the same consumer name, then cancel all outstanding tasks, then delete the consumer. It's not great, but it is a workaround.

#3 Updated by dalley about 3 years ago

  • Category deleted (15)
  • Priority changed from Normal to Low
  • Severity changed from 4. Urgent to 2. Medium
  • Triaged changed from No to Yes

#4 Updated by Luis Mayorga (luismayorga1980@gmail.com) about 3 years ago

#5 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF