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

Unable to correctly add server by runtime endpoint with check. #299

Open
sync667 opened this issue Apr 6, 2023 · 1 comment
Open

Unable to correctly add server by runtime endpoint with check. #299

sync667 opened this issue Apr 6, 2023 · 1 comment

Comments

@sync667
Copy link

sync667 commented Apr 6, 2023

Hello,

I check many versions and so on besides only 2.7 have adding servers to backend with runtime. Maybe after so many hours i missed something, but at this point it looks like there are two problems with API. First when servers is added by /v2/services/haproxy/runtime/servers POST there is no other way to enable it (so set state to ready) then make second request to transit endpoint. Would be much easier if we could set state on add request.

But bug is when server is normally added with check enabled etc. after state transit to ready we got no health check. There is no other way to set it again after that by Data Plane API. Only fix that exists is to use Runtime API with enable health command, but this one is not implemented on Data Plane.

I think there is no point in adding here now my body from requests, because it very simple and i tried it with many params to be sure i'm not missing something.

@sync667 sync667 changed the title Unable to correctly add server with runtime with check. Unable to correctly add server by runtime endpoint with check. Apr 6, 2023
@mieszko4
Copy link

mieszko4 commented Jun 1, 2023

I think there is no point in adding here now my body from requests, because it very simple and i tried it with many params to be sure i'm not missing something.

@sync667 Actually, I think if you added curl examples that would be useful. I tried to use /v2/services/haproxy/runtime/servers POST but I was not able to provide IP for the new server.

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

2 participants