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