Project

General

Profile

Actions

Bug #32447

closed

Katello agent tasks that error prevent re-running due to locked tasks

Added by Eric Helms almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I think katello-agent tasks should always either succeed or fail and never lock.

[root@pipe-katello-server-nightly-centos8-stream bats]# hammer host package install --host $HOSTNAME --packages gorilla
[.............................................................................................................................................................................................................                                                                     ] [75%]
Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

[root@pipe-katello-server-nightly-centos8-stream bats]# hammer host package install --host $HOSTNAME --packages gorilla
Could not install packages:
  Required lock is already taken by other running tasks.
  Please inspect their state, fix their errors and resume them.

  Conflicts with tasks:
  - https://pipe-katello-server-nightly-centos8-stream.wareagle.example.com/foreman_tasks/tasks/96992095-296e-42a3-b008-e86697feb68a

Actions #1

Updated by Eric Helms almost 3 years ago

  • Target version set to Katello 4.1.0

Adding an additional data point:

[root@pipe-katello-server-nightly-centos8 agent]# hammer host package remove --host $HOSTNAME --packages gorilla
[........................................................................................................................................................                                                   ] [75%]
No match for argument: gorilla
Error: No match for argument: gorilla
[root@pipe-katello-server-nightly-centos8 agent]# hammer host package install --host $HOSTNAME --packages gorilla
Could not install packages:
  Required lock is already taken by other running tasks.
  Please inspect their state, fix their errors and resume them.

  Conflicts with tasks:
  - https://pipe-katello-server-nightly-centos8.wareagle.example.com/foreman_tasks/tasks/cece8ba8-bec3-4a60-b38a-cfc3508d984c

Here you can see I simply tried to remove a package that was not installed and that locked up my ability to perform any other tasks.

Actions #2

Updated by Ian Ballou almost 3 years ago

  • Target version changed from Katello 4.1.0 to Katello 4.0.1
  • Triaged changed from No to Yes
Actions #3

Updated by Chris Roberts almost 3 years ago

  • Category set to Client/Agent
  • Status changed from New to Assigned
  • Assignee set to Chris Roberts
Actions #4

Updated by The Foreman Bot almost 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9358 added
Actions #5

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases Katello 4.2.0 added
Actions #6

Updated by Chris Roberts almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF