dataplaneapi
dataplaneapi copied to clipboard
ACL configuration line deletion gives this error while committing
I'm trying to delete an ACL endpoint using its index - in this case, the index is 1 and the call is like this
DELETE METHOD to baseurl/services/haproxy/configuration/acls/1?parent_name=http_443&parent_type=frontend&transaction_id=07df637f-0608-48ea-8f73-dda340769718
but it returns an error while trying to reload like this and the commit fails altogether.
b'{"code":400,"message":"14: err transactionId=07df637f-0608-48ea-8f73-dda340769718 \nline=53 msg=\"error detected while parsing switching rule no such ACL 'host_c1f13a0f-c36c-45f4-bd43-2100bed10326-console'.\"\nmsg=\"Error(s) found in configuration file /tmp/haproxy/haproxy.cfg.07df637f-0608-48ea-8f73-dda340769718\"\nmsg=\"Fatal errors found in configuration.\""}\n'
I solved the problem myself. It was because of a backend switching rule using the ACL that prevented it from being deleted. The errors are so misguiding
This is the message that is returned using haproxy -c
validation check.