Closed Anika-Sol closed 3 years ago
Sorry for the very late answer on this.
Regarding your issue:
The skiperrors
flag is intended to not interupt deployments in case of networking issues. Which is why the check for it is placed right after the download of the installer: https://github.com/Dynatrace/libbuildpack-dynatrace/blob/master/hook.go#L91
Which is also documented here: https://github.com/Dynatrace/libbuildpack-dynatrace#configuration
If the download endpoint returns a 200, we of course assume everything is alright and continue. We intentionally don't skip over issues with the downloaded installer (or whatever was delivered from the endpoint), because that would potentially bury issues. Like in your case a faulty api-url configuration :-)
Hi,
We are using the
skiperrors
flag to make sure that our cf application is also able to be staged in the case that our Dynatrace managed cluster is not available.Under normal circumstances (e.g. cluster responds with a 404 or 502) the
skiperrors
flag works perfectly, but we recently experienced the application staging to fail, even ifskiperrors
is set to"true"
.The scenario: We create a user provided service with the following parameters ("/api" is missing in the path of the
apiurl
:We restage the application and get the following error:
I think the reason why the
skiperrors
flag is not working in this case is, that the download URL returns a 200 status code while it should return 404.When I try the agent link in my browser, I get a 404 status code. But if I try it with curl, I get a 200 OK status code with a HTML response body, telling me that my browser is not supported.
In this case (200 status code) the request is not discovered as failure and the staging fails in the next step when executing the oneagent installer (which wasn't downloaded).
I guess this behaviour is not intended especially if the user set the
skiperrors
flag to true, please let me know if you need more details.