View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0018391||CentOS-7||cloud-init||public||2022-01-24 19:24||2022-01-27 07:33|
|Summary||0018391: cloud-init script does not update the secondary network interface details in EC2 instance|
|Description||There are 2 interfaces created in the EC2 instance. Once the VM is up and logged in we see only file as |
for the eth1 there are no files created. Also there is no route or rules file created from the eth1.
Since the NetworkManager is up and running ip gets assigned to the interface. but ping and out traffic flow does not happen as the proper rules and routes for eth1 is not created.
Cloud-init version is 19.4
|Tags||"Network", cloud-init, eth1, interface, NetworkManager|
What is the exact version of cloud-init that is installed? rpm -q cloud-init
CentOS 7 has had a "19.4" version of cloud-init since March 2020 and there have been 12 separate updates to it since then.
$ rpm -q cloud-init
|sir, if needed we can have a session to show the issue so that we can get some work-around if possible.|
Got the solution for this issue. Below are the steps to compile and install the net-utils in the CenOS7
# yum -y install git make systemd systemd-units rpm-build
# git clone --branch=1.x --single-branch --depth 1 https://github.com/aws/amazon-ec2-net-utils.git
# cd amazon-ec2-net-utils/
# curl -LO 'https://github.com/aws/amazon-ec2-net-utils/archive/1.5.tar.gz'
# rpmbuild --define "_sourcedir $PWD" -bb amazon-ec2-net-utils.spec
# ls ~/rpmbuild/RPMS/noarch/
# yum localinstall ls ~/rpmbuild/RPMS/noarch/amazon-ec2-net-utils-1.5-1.el7.noarch.rpm
|2022-01-24 19:24||gaurav.mittal||New Issue|
|2022-01-24 19:24||gaurav.mittal||Tag Attached: "Network"|
|2022-01-24 19:24||gaurav.mittal||Tag Attached: cloud-init|
|2022-01-24 19:24||gaurav.mittal||Tag Attached: eth1|
|2022-01-24 19:24||gaurav.mittal||Tag Attached: interface|
|2022-01-24 19:24||gaurav.mittal||Tag Attached: NetworkManager|
|2022-01-24 19:49||TrevorH||Note Added: 0038825|
|2022-01-25 03:11||gaurav.mittal||Note Added: 0038826|
|2022-01-26 02:56||gaurav.mittal||Note Added: 0038829|
|2022-01-27 07:33||gaurav.mittal||Note Added: 0038832|