Repository navigation
Conversation
Update develop
Signed-off-by: Alexander Fischer <[email protected]>
gtmanfred
left a comment
There was a problem hiding this comment.
This looks great, thanks!
Signed-off-by: Alexander Fischer <[email protected]>
Signed-off-by: Alexander Fischer <[email protected]>
Signed-off-by: Alexander Fischer <[email protected]>
|
I get where you're going with this but I can't help but wonder if we should just generalize the pattern of "blocking" on a return event somewhere that we can re-use more easily. It seems like this is something that could be used in other places. Thoughts? |
…onstants into own module Signed-off-by: Alexander Fischer <[email protected]>
…onstants into own module Signed-off-by: Alexander Fischer <[email protected]>
|
Yeah, what we basically want is to be sure that minions work with the pillar, grain, state etc. information we expect them to work this, while dealing with an higher amount of saltenvs (using gitfs) which may change quickly. Still, this should be not part of this PR, as it sounds like a lot of planning and requires some deep knowledge of the code base, which I don't have :) |
Signed-off-by: Alexander Fischer <[email protected]>
|
I'm looking for a way to programmatically check if the pillar data is up to date and could be rendered. I wonder if this PR is what I'm looking for, but based on the change I can't tell if the exit code of synchronously updated pillars will be non-zero in case of an error. Could you please clarify this? |
|
To my understanding the |
Signed-off-by: Alexander Fischer <[email protected]>
isbm
left a comment
There was a problem hiding this comment.
@afischer-opentext-com OK, done. 👍
|
This may be not the smartest question, but what is the next step here, is there something I need to do? |
Signed-off-by: Alexander Fischer <[email protected]>
Allow to refresh pillar synchronously This PR adds the optional ability to run saltutil.refresh_pillar Allow to refresh pillar synchronously, saying saltutil.refresh_pillar async=False. I tried to follow the explanatory comment from @gtmanfred and I believe that this works, still I am not sure about the mentioned use of the _gather_pillar() method. I am happy to rework the PR if something is missing. [DKuzmenko] I've slightly reworked it to resolve conflicts with functionality added to master by DWoz in saltstack#54942. Co-authored-by: Dmitry Kuzmenko <[email protected]>
What does this PR do?
This PR adds the optional ability to run
saltutil.refresh_pillarAllow to refresh pillar synchronously, sayingsaltutil.refresh_pillar async=False. I tried to follow the explanatory comment from @gtmanfred and I believe that this works, still I am not sure about the mentioned use of the_gather_pillar()method. I am happy to rework the PR if something is missing.What issues does this PR fix or reference?
This PR relates to issue #50105
Previous Behavior
It was not possible to know when pillar got really refreshed and the minion is updated properly.
New Behavior
The user can ensure that pillar information is in a refreshed state.
Tests written?
Yes
Commits signed with GPG?
Yes