All CPM operations may fail with the "Name or service not known" error

All CPM operations may fail with the "Name or service not known" error

CPM operations may start failing with the following error in the logs:

ERROR:  cleanup_function(.\cpmagent\agent.py:2543)  could not delete AMI ami-87654321 in policy PolicyName.Reason: [Errno -2] Name or service not known (code: None)
ERROR:  run_snapshots(.\cpmagent\agent.py:1130)  (instance: i-12345678) could not get object from aws. Reason: [Errno -2] Name or service not known Exception: [Errno -2] Name or service not known

This means that there is a problem with either DNS name resolution to AWS services or a proxy refusing connections.

To test this outside of the CPM application itself, please connect to the instance using SSH (username: cpmuser and your assigned private key) and try this command:

wget https://aws.amazon.com/

This command must return a proper IP (as well as other information) to ensure CPM is able to communicate with Amazon Web Services.

If a proper IP is not returned, please check that DHCP options in VPC settings (or custom DHCP/DNS, if used) allow name resolution to Amazon Web Services.