Project

General

Profile

Bug #32447

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

Added by Eric Helms 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
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

Associated revisions

Revision be946872 (diff)
Added by Chris Roberts 8 months ago

Fixes #32447 - Have task goto warn state instead of paused on error

History

#1 Updated by Eric Helms 9 months 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.

#2 Updated by Ian Ballou 9 months ago

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

#3 Updated by Chris Roberts 9 months ago

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

#4 Updated by The Foreman Bot 9 months ago

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

#5 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases Katello 4.2.0 added

#6 Updated by Chris Roberts 8 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF