salt icon indicating copy to clipboard operation
salt copied to clipboard

jobs.print_job lists target as 'unknown-target' in 2015.5

Open trevor-h opened this issue 11 years ago • 6 comments

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 avatar May 26 '15 16:05 trevor-h

@trevor-h Thank you for this information!

justinta avatar Jun 01 '15 23:06 justinta

+1

mclarkson avatar Aug 19 '15 11:08 mclarkson

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

ssgward avatar Aug 24 '15 21:08 ssgward

@trevor-h @mclarkson Are either of you using a returner or master_job_cache besides local_cache?

basepi avatar Aug 24 '15 21:08 basepi

@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.

trevor-h avatar Aug 25 '15 12:08 trevor-h

Awesome, thanks!

basepi avatar Aug 25 '15 22:08 basepi