Bug #32447
closed
Katello agent tasks that error prevent re-running due to locked tasks
Added by Eric Helms over 3 years ago.
Updated over 3 years ago.
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
- 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.
- Target version changed from Katello 4.1.0 to Katello 4.0.1
- Triaged changed from No to Yes
- Category set to Client/Agent
- Status changed from New to Assigned
- Assignee set to Chris Roberts
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/9358 added
- Fixed in Releases Katello 4.2.0 added
- Status changed from Ready For Testing to Closed
Also available in: Atom
PDF