Project

Profile

Help

Issue #3095

closed

Unable to cancel pending unstarted tasks

Added by Anonymous about 7 years ago. Updated over 5 years 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?

Actions #1

Updated by dkliban@redhat.com about 7 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.

Actions #2

Updated by bmbouter about 7 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.

Actions #3

Updated by dalley about 7 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
Actions #4

Updated by Luis Mayorga (luismayorga1980@gmail.com) about 7 years ago

Actions #5

Updated by bmbouter over 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #6

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF