Configure Host Command Fails 502 Error Code
Problem
After the execution of the configure host command [Reference KB] as part of the LTS3 Installation. The host-status shows host is in false status with following error:
Error preparing node Error: Unable to install hostagent. Invalid status code when identifiying hostagent type: 502Environment
Self Managed Cloud Platform9- v5.9.0 and v5.9.1.
Cause
While troubleshooting it is identified that the nginx service inside nginx pod is not started as it tries to resolve s3-us-west-1.amazonaws.com in air-gapped environment.
Answer
This issue has been fixed in the SMCP-5.9.2 release onwards.
Workaround
If the onprem setup does not have a private DNS, empty the
/etc/resolve.conffile and addnameserver {NODE_IP}in the file.Otherwise, if there is a custom DNS setup, add the entries of the custom NS in the
/etc/resolve.conffile.Run
/opt/pf9/airctl/airctl advanced-ddu create-mgmt --config airctl configas mentioned in the documentation published to get the management cluster up and running.After the mgmt-cluster is up and running, append the s3 url entry in the
nodelet-bootstrap-config.yamli.e, add the entry34.35.69.42 s3-us-west-1.amazonaws.com http://s3-us-west-1.amazonaws.comto the filenodelet-mgmt-cluster.yaml. The DNS field should look like the one mentioned in the below snippet.
Additional Notes
Last updated
