Bug 1822853

Summary: Install NetworkManager-cloud-setup into AMIs
Product: Red Hat Enterprise Linux 8 Reporter: Frank Liang <xiliang>
Component: ec2-imagesAssignee: Vitaly Kuznetsov <vkuznets>
Status: CLOSED CURRENTRELEASE QA Contact: Frank Liang <xiliang>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: bkhomuts, dgregor, eterrell, leiwang, linl, pniahodk, ribarry, thaller, till, vkuznets, yacao, ymao, yuxisun
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-24 09:17:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1868000    

Description Frank Liang 2020-04-10 06:29:41 UTC
With the RFE bug 1642461 fixed, there is a new pkg named NetworkManager-cloud-setup imported. The RHEL can configure the 2nd ip inside instance automatically now. I am suggesting to add this pkg into ec2 images for taking advantage of this feature.

After installed NetworkManager-cloud-setup, pls enable nm-cloud-setup and nm-cloud-setup.timer services.

Below is an example, there are 2 internal ips under eth0.

[ec2-user]# ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
    link/ether 0a:c0:2c:f1:25:04 brd ff:ff:ff:ff:ff:ff
    inet 10.116.2.105/24 brd 10.116.2.255 scope global dynamic eth0
       valid_lft 3318sec preferred_lft 3318sec
    inet 10.116.2.236/24 brd 10.116.2.255 scope global secondary eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::8c0:2cff:fef1:2504/64 scope link
       valid_lft forever preferred_lft foreve
Version-Release number of selected components (if applicable):

RHEL Version:
RHEL8.2(4.18.0-193.el8)

How reproducible:
100%

Steps to Reproduce:
1. Start a RHEL8.2 AMI in aws.
2. Add another ip to instance and check whether eth0 has 2 ips appears.

Actual results:
The 2nd ip does not appear automatically without this pkg installed
Expected results:
eth0 has 2 ips appears

Additional info:
- This is a new added feature in RHEL-8.2

Comment 1 Till Maas 2020-08-11 12:32:51 UTC
Dennis, what is needed to move this forward?

Comment 2 Rick Barry 2020-08-11 12:48:56 UTC
Vitaly, do you have any thoughts about this change? I've CC'd Eduardo in case there is any integration needed in cloud-init (or maybe this is independent of cloud-init?).

Comment 3 Vitaly Kuznetsov 2020-08-11 15:19:19 UTC
(In reply to Rick Barry from comment #2)
> Vitaly, do you have any thoughts about this change? I've CC'd Eduardo in
> case there is any integration needed in cloud-init (or maybe this is
> independent of cloud-init?).

I've created https://projects.engineering.redhat.com/browse/RHELCMP-1988
This shouldn't require any changes to cloud-init but some additional
testing of the AMIs will definitely be needed.