Pillar data not getting refreshed on minions even after saltutil.refresh_pillar

471 views
Skip to first unread message

moop-moop

unread,
Jan 20, 2017, 2:02:56 AM1/20/17
to Salt-users
My pillar data is external (Git) and pillar.items targeted to a minion pulls the correct uncached data from the master.
However, even after running saltutil.refresh_pillar targeted to a minion, pillar.get does not return any information.
If I restart the salt-minion service (RedHat minion) the locally cached pillar data is returned correctly for pillar.get.

Version 2016.3.3 on master and minions.

What is going on here?

I have noticed somewhat similar behavior in grains too.
If I do a grain.set it returns true. A following grains.get return nothing.
Restart the minion service and the grains.get returns the correctly set value finally.

Matthew Phillips

unread,
Jan 20, 2017, 8:39:14 AM1/20/17
to salt-...@googlegroups.com
refresh_pillar just signals minion to rerender its pillar via the masters pillar contents. you want to refresh the masters pillar contents via the https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.git_pillar.html git_pillar runner instead, then minion refresh.

Cheers

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/df1cc667-765d-4655-98f8-76748da1f588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

moop-moop

unread,
Jan 20, 2017, 3:09:02 PM1/20/17
to Salt-users
Doesn't pillar.items show what pillar information is available on the master (uncached) ?
My return from this was updated, implying the master had the correct updated pillar info? 


On Friday, January 20, 2017 at 7:39:14 AM UTC-6, Matthew Phillips wrote:
refresh_pillar just signals minion to rerender its pillar via the masters pillar contents. you want to refresh the masters pillar contents via the https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.git_pillar.html git_pillar runner instead, then minion refresh.

Cheers
On Fri, Jan 20, 2017 at 2:02 AM, moop-moop <morris...@gmail.com> wrote:
My pillar data is external (Git) and pillar.items targeted to a minion pulls the correct uncached data from the master.
However, even after running saltutil.refresh_pillar targeted to a minion, pillar.get does not return any information.
If I restart the salt-minion service (RedHat minion) the locally cached pillar data is returned correctly for pillar.get.

Version 2016.3.3 on master and minions.

What is going on here?

I have noticed somewhat similar behavior in grains too.
If I do a grain.set it returns true. A following grains.get return nothing.
Restart the minion service and the grains.get returns the correctly set value finally.

--
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.
Reply all
Reply to author
Forward
0 new messages