Project

General

Profile

Bug #25443

Update for host task is no clear with what happened, and next steps

Added by Adam Ruzicka almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1649040

I see several tasks whose title is

Update for host

and whose error is

Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.

Required lock: update
Conflicts with tasks:
- https://something.somewhere.tld/foreman_tasks/tasks/c2e684d8-2ba1-4556-b0e9-71b868334f69

It is not clear what the task is or what steps need to be taken to fix this.

Please improve the task name with the name of the host. Also, some indication of what the user should do would be helpful.

Associated revisions

Revision 4e6d483b (diff)
Added by Adam Ruzicka almost 2 years ago

Fixes #25443 - Include host name in task label

Before this fix, if a Host::Update action failed because of taken
locks, the task index would show just "Update for host". By saving
the hostname before checking for lock conflicts, we can get nice
task label even if the action fails.

History

#1 Updated by The Foreman Bot almost 2 years ago

  • Assignee set to Adam Ruzicka
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7832 added

#2 Updated by Andrew Kofink almost 2 years ago

  • Triaged changed from No to Yes
  • Difficulty set to trivial
  • Target version set to Katello 3.10.0
  • Subject changed from Update for host task is no clear with what happened, and next steps to Update for host task is no clear with what happened, and next steps

#3 Updated by Adam Ruzicka almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF