HenryGP / om_ansible

Minimalistic, disposable Ops Manager environment with Ansible
19 stars 17 forks source link

Ops Manager 4.0-rc build 4.0.0.49932.20180617T0433Z Automation Agents fail to connect to Ops Manager #7

Closed emisca closed 6 years ago

emisca commented 6 years ago

I installed Ops Manager 4.0.0.49932.20180617T0433Z using the provided scripts and the preinstalled automation agents have trouble connecting to Ops Manager:

[2018/06/20 11:27:01.785] [.info] [main/components/agent.go:LoadClusterConfig:149] [11:27:01.785] Backup cluster config does not exist.
[2018/06/20 11:27:01.785] [.error] [main/components/agent.go:LoadClusterConfig:150] [11:27:01.785] Error retrieving cluster config from 'http://192.168.1.100:8080/agents/api/automation/conf/v1/5b2a350e08382607bbfc5129?ah=n1&ahs=n1&av=5.4.5.5457&aos=linux&aa=x86_64&ab=64&at=1529492769938'
[2018/06/20 11:27:01.785] [.error] [cm/main/cm.go:mainLoop:323] [11:27:01.785] Error loading desired cluster configs : [11:27:01.785] Error retrieving cluster config from 'http://192.168.1.100:8080/agents/api/automation/conf/v1/5b2a350e08382607bbfc5129?ah=n1&ahs=n1&av=5.4.5.5457&aos=linux&aa=x86_64&ab=64&at=1529492769938'
[2018/06/20 11:27:09.977] [.error] [cm/mmssettings/mmssettings.go:refresh:130] [11:27:09.977] Error retrieving settings from MMS : Failed to fetch url http://192.168.1.100:8080/agents/api/automation/settings/v1/5b2a350e08382607bbfc5129?ah=n1&ahs=n1&av=5.4.5.5457&aos=linux&aa=x86_64&ab=64&at=1529492769938. Expected status code to be 200, but was 401. Response body: {}
[2018/06/20 11:27:09.977] [.error] [cm/mmssettings/mmssettings.go:func1:97] [11:27:09.977] Error while refreshing settings : [11:27:09.977] Error retrieving settings from MMS : Failed to fetch url http://192.168.1.100:8080/agents/api/automation/settings/v1/5b2a350e08382607bbfc5129?ah=n1&ahs=n1&av=5.4.5.5457&aos=linux&aa=x86_64&ab=64&at=1529492769938. Expected status code to be 200, but was 401. Response body: {}

It is possible that the API key used is wrong.

HenryGP commented 6 years ago

This has been resolved in the following commit: https://github.com/HenryGP/om_ansible/commit/6f558ef3e781cbcc656a5952b6ebc54e1fb8c81e