Salt: How Salt-Master End a Salt-job ?

Created on 11 Dec 2014  路  4Comments  路  Source: saltstack/salt

Hi, I did some job by salt, and found something maybe confusing:

# I set the salt-master use a domain name
master: domainname

and salt-minion connect salt-master ok when it's up.
But if there is someone changed the DNS settings in /etc/resolve.conf, and make salt-master's domain name cannot be resolved, it will make all pub job be running forever.

Just like:

#master
salt '*' cmd.run 'w'

#minion
run w and cannot return

How salt-master cancel a salt-job? If there is some forever-running dead job, salt-master will still send "saltutil.find_job" and waste time to wait???

thks.

Question stale

Most helpful comment

You can find running jobs with salt <minion> saltutil.running. From that output you can kill the job with salt <minion> saltutil.kill_job <jid>, see http://docs.saltstack.com/en/latest/topics/jobs/index.html.

All 4 comments

@Colstuwjx, thanks for reporting this.

You can find running jobs with salt <minion> saltutil.running. From that output you can kill the job with salt <minion> saltutil.kill_job <jid>, see http://docs.saltstack.com/en/latest/topics/jobs/index.html.

My point is that when minion's DNS changed, all salt-master pubed jobs will still be running at minion side as it cannot resolve the Salt-master's DNS.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sfozz picture sfozz  路  3Comments

Oloremo picture Oloremo  路  3Comments

saurabhnemade picture saurabhnemade  路  3Comments

Inveracity picture Inveracity  路  3Comments

Arguros picture Arguros  路  3Comments