FAQ
Having the same problem. Tried to kill job, but it doesn't work. See
console output:

[root@kdev salt]# salt kdev0016 state.highstate
kdev0016:
     Data failed to compile:
----------
     The function "state.highstate" is running as PID 1242 and was started
at 2015, Feb 25 13:35:12.748637 with jid 20150225133512748637

[root@kdev salt]# salt 'kdev0016' saltutil.kill_job 1242
kdev0016:

[root@kdev salt]# salt-run jobs.active
20150225133512748637:
     ----------
     Arguments:
     Function:
         state.highstate
     Returned:
     Running:
_
           ----------
           kdev0016:
               1242
     Target:
         kdev0016
     Target-type:
         glob
     User:
         root
On Thursday, 17 April 2014 21:13:17 UTC+2, Seth House wrote:

The saltutil module has various job-related functions you can use to
find running jobs, signal jobs, kill jobs, etc.


http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.kill_job

On Thu, Apr 17, 2014 at 12:54 PM, Estevo U. C. Castro
<eucc...@gmail.com <javascript:>> wrote:
Just in case this may help anyone else:

I found a /var/cache/salt/minion/proc/20140416185658369395 in the minion.
Deleting it fixed the problem.

El jueves, 17 de abril de 2014 20:43:10 UTC+2, Estevo U. C. Castro
escribió:
I have this minion in a stuck state, where it will refuse to execute
state.highstate because it (or the master?) believes it is still
executing
some highstate job I launched yesterday.

# salt-call state.highstate
local:
Data failed to compile:
----------
The function "state.highstate" is running as PID 1019 and was
started
at 2014, Apr 16 18:56:58.369395 with jid 20140416185658369395

There is no process with PID 1019 in this minion. Problem persist even
if
I reboot the master and the minion. How do I reset this state so this
machine can run highstate again?
--
You received this message because you are subscribed to the Google Groups
"Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to salt-users+...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Tim H Baker at Feb 25, 2015 at 8:10 pm
    Hi Dirk,

    I think saltutil.kill_job takes the jobID not the processID as
    its argument.

    cheers,
    Tim

    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dmitry Golubenko at Feb 26, 2015 at 3:38 am

    В Срд, 25/02/2015 в 12:10 -0800, tim.h.baker@gmail.com пишет:
    Hi Dirk,

    I think saltutil.kill_job takes the jobID not the processID as
    its argument.
    also check for duplicate minion processes, this leads to same error for
    any highstate jobs: one process take highstate job first, then second
    responds with "highstate is running"
    cheers,
    Tim


    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dirk Warnich at Feb 26, 2015 at 6:37 am
    Ah of course.

    Thanks Tim
    On Wednesday, 25 February 2015 22:10:07 UTC+2, tim.h...@gmail.com wrote:

    Hi Dirk,

    I think saltutil.kill_job takes the jobID not the processID as
    its argument.

    cheers,
    Tim
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedFeb 25, '15 at 1:50p
activeFeb 26, '15 at 6:37a
posts4
users3

People

Translate

site design / logo © 2021 Grokbase