Red Hat Bugzilla – Bug 502880
Job Router hook keyword should apply to ATTRS_TO_COPY
Last modified: 2010-03-16 10:35:44 EDT
Description of problem:
Since multiple sets of hooks are allowed via hook keywords, the JOB_ROUTER_ATTRS_TO_COPY should really be attached to a set of hooks as it's possible not all hooks would have all attrs listed in JOB_ROUTER_ATTRS_TO_COPY available to copy. Doing so would also reduce the likelihood of a custom attr being copied for a set of hooks that isn't expecting it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
JOB_ROUTER_ATTRS_TO_COPY is now <hook_keyword>_ATTRS_TO_COPY, so the custom attributes copied from the routed job will be linked to the hook keyword and therefore the hooks used for the job.
Fixed in build after:
ATTRS_TO_COPY is now associated to a set of hooks (foo_ATTRS_TO_COPY, bar_ATTRS_TO_COPY). The listed attributes are correctly passed from the routed job to the original job when the update_status hook is triggered.
Tested on RHEL 4.8/5.4, i386/x86_64.
Changing the status to VERIFIED.
The fix for this bug was included in the MRG 1.2 release.