Skip to content
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

[v3.*] ism-policy-cronjob job not updating policies #144

Open
valireds opened this issue May 31, 2023 · 0 comments
Open

[v3.*] ism-policy-cronjob job not updating policies #144

valireds opened this issue May 31, 2023 · 0 comments

Comments

@valireds
Copy link

While checking an anomaly with @FedericoAntoniazzi , we found out that ism-policy-cronjob correctly creates new policies but it is failing to update existing ones, throwing also an error during its execution.

This is due to the lack of two parameters (seq_no and primary_term), which are required when updating policies.

So to have a perfect idempotent job, it should probably check if a policy already exists with a GET request, which returns the aforementioned parameters, and then perform a PUT, with a correct querystring.

References

Update policy
Get policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant