Hide Forgot
Customer opened a ticket asking if this could implemented to RHEL, stating that this is something already doable with SuSE on AWS via 'cloud-netconfig'[1] tool: https://www.suse.com/c/multi-nic-cloud-netconfig-ec2-azure/ It would be very helpful if similar solution would be available for RHEL as well.
this needs more thought. For now, dropping from the RPL for rhel-8.1
A new tool nm-cloud-setup is to be created. Currently on review here: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/348 Currently it only supports IPv4 on EC2. Of course, that is supposed to be extended to Azure, once this is shown to work well.
Upstream merged the "nm-cloud-setup" tool. Note that this is the first shot at this tool. It's not yet production ready, but something we can start testing and improve upon. While this is not yet the full solution, I move the bug to MODIFIED and ON_QA. This was we can start testing and collect more specific bug reports about the remaining issues (if any).
Created attachment 1652955 [details] journal_t3a.large.log
setup: dnf install NetworkManager-cloud-setup sed -i "s/#Environment=NM_CLOUD_SETUP_EC2=yes/Environment=NM_CLOUD_SETUP_EC2=yes/" /usr/lib/systemd/system/nm-cloud-setup.service before running nm-cloud-setup: ip a s eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc fq_codel state UP group default qlen 1000 link/ether 0a:b8:42:8d:3b:c6 brd ff:ff:ff:ff:ff:ff inet 172.31.23.196/20 brd 172.31.31.255 scope global dynamic noprefixroute eth0 valid_lft 3194sec preferred_lft 3194sec inet6 fe80::8b8:42ff:fe8d:3bc6/64 scope link valid_lft forever preferred_lft forever after systemctl restart nm-cloud-setup 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc fq_codel state UP group default qlen 1000 link/ether 0a:b8:42:8d:3b:c6 brd ff:ff:ff:ff:ff:ff inet 172.31.23.196/20 brd 172.31.31.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever inet 172.31.23.36/20 brd 172.31.31.255 scope global secondary noprefixroute eth0 valid_lft forever preferred_lft forever This is enough to verify this bug, however test case is not written.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1847