New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Save _schedule.conf under <proxy ID> dir #39776
Conversation
So each proxy can have its own scheduled functions, independently.
Thank you @mirceaulinic. Good catch. |
Hi @cro - thanks for looking into this. I think, but please correct me if I'm wrong, the changes from 35b8b8f are only half of what's required to solve #39775 completely. While 35b8b8f saves the |
Oh--that's what you meant. I read that other issue but didn't fully
comprehend it. I will go look over there also.
*--cro*
C. R. Oldham
Senior Platform Engineer, Integrations Team Lead, SaltStack
cr@saltstack.com / 801-564-4673
…On Thu, Mar 2, 2017 at 9:54 AM, Mircea Ulinic ***@***.***> wrote:
Hi @cro <https://github.com/cro> - thanks for looking into this. I think,
but please correct me it I'm wrong, the changes from 35b8b8f
<35b8b8f>
are only half of what's required to solve #39775
<#39775> completely. While 35b8b8f
<35b8b8f>
saves the _schedule.conf file per proxy, I think we need to specify also
to load it from there? But I didn't know where to apply the necessary
changes. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#39776 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFFe4OEJ6IFZ7eiSS9CfDDEZMu9hG0dks5rhvQxgaJpZM4MQh-_>
.
|
@cro @cachedout would you be able to provide more input on this please? I'd like to get this sorted in 2016.11.4. Thanks! |
Oh, I remember now. When we persist the data to the I think that means that it might be a little harder to handle this since ALL files in /etc/salt/proxy.d get parsed by all proxy processes that start up. I wonder if a better solution is to modify the config parser so that |
Hi @cro - thanks for replying!
The changes from this PR do this: save the schedule config file under paths such as My question is: where do we need to make the changes to load them from there? Currently it is still looking under I hope I understood your point, otherwise, please let me know! |
Yes, I was reiterating your suggestion but didn't word it very well. We would need to modify the actual configuration file parser to get it to look in subdirectories named after the proxy ids. That's kind of a risky change for a point release, but I will talk to the rest of the core team about it. |
Thanks for confirming! While I understand the risk, I consider solving a pretty serious bug, unnoticed during several releases, more important. Basically all proxies have been sharing the same configuration, while minions are designed to have individual settings. So I believe we should fix this in a dot release though. |
OK, I'm willing to do this work, let me see if I can get a PR together today before I have to leave. |
Fantastic! Thank you @cro! |
Save _schedule.conf under
<proxy ID>
dir.So each proxy can have its own scheduled functions, independently.
35b8b8f only saves the config file under the right path, but I din't find yet the way to tell Salt to load it from there. Ping @cro: any ideas how to?
What issues does this PR fix or reference?
#39775
Previous Behavior
All proxies sharing the same schedule config file.
New Behavior
Each proxy has its config file
Tests written?
No