dataplaneapi icon indicating copy to clipboard operation
dataplaneapi copied to clipboard

Unable to correctly add server by runtime endpoint with check.

Open sync667 opened this issue 2 years ago • 1 comments

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 avatar Apr 06 '23 21:04 sync667

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.

mieszko4 avatar Jun 01 '23 18:06 mieszko4