Home yum update in EC2 user_data failed with Could not contact any CDS load balancers
Reply: 0

yum update in EC2 user_data failed with Could not contact any CDS load balancers

Lovababu
1#
Lovababu Published in 2017-12-07 12:57:11Z

I have configured below shell script as user_data in my LaunchConfiguration and it is failed during yum install step due to network connectivity.

But when i run the same script after ssh to same EC2 machine it went fine without any errors.

#!/bin/bash -ex

exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1

echo BEGIN

yum install wget unzip -y

echo "Environment ${environment}"

curl -O https://bootstrap.pypa.io/get-pip.py

python get-pip.py --user

export PATH=~/.local/bin:$PATH

Complete error:

Could not contact any CDS load balancers: rhui2-cds01.eu-west-1.aws.ce.redhat.com, rhui2-cds02.eu-west-1.aws.ce.redhat.com.
Could not contact CDS load balancer rhui2-cds01.eu-west-1.aws.ce.redhat.com, trying others.

And security-group which attached to EC2 machine has proper OutBound rules.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300623 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO