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

How to use the only_validate option on the raw configuration endpoint ? #360

Open
qaoru opened this issue Feb 14, 2025 · 2 comments
Open

Comments

@qaoru
Copy link

qaoru commented Feb 14, 2025

Hi,

I'm trying to use the raw configuration update endpoint with the validation option but I cannot get it working.

The version that I'm using is

HAProxy Data Plane API v3.0.4-ee1 d354a7ec

When I use the only_validate option, I only have this response :

validation error: exit status 1

I tired to put some commands in the parameters as mentioned in #342 without success.
I even tried with a /bin/true as validate_cmd and still got the same error.

Am I missing something ? Debug logs do not add any informations regarding the error

@oliwer
Copy link
Contributor

oliwer commented Feb 26, 2025

Since this is regarding the enterprise version, this issue has been handled by HAProxy's support.

But for other people reading this issue:

  • the validate_cmd option has no impact here because it is only used with transactions, not the /raw API
  • the issue is certainly a miss-configured haproxy (or hapee-lb for enterprise) binary
  • we have improved the only_validate feature to return HAProxy's errors in the response, instead of just returning the exit status. This will be available in the next release.

@mjuraga
Copy link
Collaborator

mjuraga commented Mar 6, 2025

This should be fixed in the latest version.

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

3 participants