jobs.print_job lists target as 'unknown-target' in 2015.5
In 2015.5.1 minions are targeted appropriately but the 'Target' and 'Target-type' fields returned via salt-run jobs.print_job <job_id> is 'unknown-target' and empty respectively.
Example:
salt '*' test.ping --async
Executed command with job ID: 20150526155859733467
salt-run jobs.print_job 20150526155859733467
20150526155859733467:
----------
Arguments:
Function:
test.ping
Minions:
- th-1
- th-2
- th-3
Result:
----------
th-1:
----------
return:
True
th-2:
----------
return:
True
StartTime:
2015, May 26 15:58:59.733467
Target:
unknown-target
Target-type:
User:
root`
@trevor-h Thank you for this information!
+1
I've tested this against v2015.5.5 and cannot reproduce the issue. Looks like it has been fixed.
Here are my results:
salt-run jobs.print_job 20150824204137554688
20150824204137554688:
----------
Arguments:
Function:
test.ping
Minions:
- SSE
Result:
----------
SSE:
----------
return:
True
StartTime:
2015, Aug 24 20:41:37.554688
Target:
*
Target-type:
glob
User:
root
@trevor-h @mclarkson Are either of you using a returner or master_job_cache besides local_cache?
@basepi This issue was encountered using the default local job cache/no returners. I can confirm that the findings of @ssgward is indeed correct and I can no longer reproduce in 2015.5.5 and it works as expected.
I would consider this issue closed.
Awesome, thanks!