Project

General

Profile

Actions

Bug #37820

closed

If a smart proxy sync task fails in plan, for_resource helper does not work

Added by Samir Jha about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

We rely on for_resource scope helper to return failed tasks for a capsule. This helper queries ForemanTask::Link object which is created by the `action_subject` method in plan phase. However if there is a failure during plan phase, the changes are rolled back as part of one transaction leading to deletion of the link record between task and smart proxy record.

The for_resource helper no longer returns the failed 'unlinked' task and as a result we don't show task failure on the UI.

Actions

Also available in: Atom PDF