Cleanup old mine data on master

285 views
Skip to first unread message

Marek Obuchowicz

unread,
Mar 20, 2014, 12:46:00 PM3/20/14
to salt-...@googlegroups.com
Hello,

I'm dynamically adding/removing nodes to my cluster (via salt-cloud). I have noticed, that whenever I remove a node, master still keeps it's mine information cached and sends it to all minions. Calling salt '*' mine.flush doesn't help, as master still has old mine data from not existing nodes. Calling salt-run cache.clear_mine on master also seems to leave all the cached data on master unchanged. I had to go to /var/cache/salt/master/minons and manually remove directories for minions, which don't exist anymore.
Is there any way to automate this process? Maybe it will be good idea to expire mine data on masters?

Best,
  Marek Obuchowicz
  Korekontrol.eu System Engineering

David Anderson

unread,
Mar 20, 2014, 12:55:18 PM3/20/14
to salt-...@googlegroups.com
This is because the cache runner module checks to make sure the minion
id is valid. I agree that it should be able to delete data from minions
that no longer exist. Can you open a github issue and post the issue
number here? I will make the code change in the next few days.
--
Dave
> --
> 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
> <mailto:salt-users+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Marek Obuchowicz

unread,
Mar 20, 2014, 1:16:28 PM3/20/14
to salt-...@googlegroups.com
I've created GitHub issue: https://github.com/saltstack/salt/issues/11389
-- 
  Marek Obuchowicz
  Korekontrol.eu System Engineering

Reply all
Reply to author
Forward
0 new messages