Workload Security Agent is not configured due to failure of HTTP GET with error null
Applies to
- Cloud Insights
- Workload Security
- No proxy and firewall configuration
Issue
- Workload Security Agent is not listed in Workload Security > Collectors > Agents even after installation completes
- Agent service (
cloudsecure-agent.service) is up and running agent.logindicates agent configuration fails byFailed to retrieve the result for http request GET:/rest/v1/agents/login/<UUID> in 60 sec with error null/java.net.UnknownHostException
[INFO] [prod] [<UUID>] [<UUID>] [agent-ActorSystemImpl] - Cloudsecure agent is starting..
[INFO] [prod] [<UUID>] [<UUID>] [agent-KeyStoreUtil] - Keystore properties file exists.. taking no further action.
[INFO] [prod] [<UUID>] [<UUID>] [agent-KeyStoreUtil] - Reading keystore password from file...
[ERROR] [prod] [<UUID>] [<UUID>] [agent-CommunicationManager] - Request failed for GET /rest/v1/agents/login/<UUID>, reason: [Failed to retrieve the result for http request GET:/rest/v1/agents/login/<UUID> in 60 sec with error null], retrying again.
[ERROR] [prod] [<UUID>] [<UUID>] [agent-CommunicationManager] - Request failed for GET /rest/v1/agents/login/<UUID>, reason: [Failed to retrieve the result for http request GET:/rest/v1/agents/login/<UUID> in 60 sec with error null], retrying again.
..
[ERROR] [prod] [<UUID>] [<UUID>] [agent-ActorSystemImpl] - Failed to configure agent. Reason: Failed to retrieve the result for http request GET:/rest/v1/agents/login/<UUID> in 60 sec with error null
...
[ERROR] [prod] [<UUID>] [<UUID>] [agent-CommandProcessor] - Failed to get commands with param isRestart=false from saas layer, reason: Failed to get agent commands from CloudSecure service. Reason - Failed to retrieve the result for http request GET:/rest/v1/agents/<UUID>/commands with error java.net.UnknownHostException: <tenant_URL>.cs01-eu-1.cloudinsights.netapp.com
...
with error java.net.UnknownHostException: agentlogin.cs01-eu-1.cloudinsights.netapp.com
[ERROR] [prod] [agent uuid] [collector uuid] [agent-LogStreamingActor] - Failed to stream 128 log messages to https://xxxx.cs01-eu-1.cloudinsights.netapp.com:443/rest/v1/log-receiver/logs with error: Tcp command [Connect(xxxx.cs01-eu-1.cloudinsights.netapp.com/<unresolved>:443,None,List(),Some(10 seconds),true)] failed because of java.net.UnknownHostException: xxxx.cs01-eu-1.cloudinsights.netapp.com
