Bug 1821787 - nm-cloud-setup: add support for Google Cloud load-balancing routes
Summary: nm-cloud-setup: add support for Google Cloud load-balancing routes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Antonio Cardace
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1623084 1807630
TreeView+ depends on / blocked
 
Reported: 2020-04-07 15:50 UTC by Thomas Haller
Modified: 2020-11-04 01:55 UTC (History)
13 users (show)

Fixed In Version: NetworkManager-1.26.0-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:49:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4499 0 None None None 2020-11-04 01:50:19 UTC

Description Thomas Haller 2020-04-07 15:50:56 UTC
$SUBJECT.

More details at upstream bug https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/407

Comment 1 Antonio Cardace 2020-06-18 16:46:24 UTC
MR up for review: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/546.

Tested on Google Cloud Platform VMs with a configured load balancer.

Comment 8 Vladimir Benes 2020-09-01 12:23:32 UTC
As Wei Shi <wshi> wrote:

forwarded_ip (in metadata) will be set to the Frontend IP (LB) after the load balancer is created,

# curl --silent -L -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/forwarded-ips/0"
10.1.2.99

---

The configure steps I used to mimic the LB setup:
https://cloud.google.com/load-balancing/docs/internal/setting-up-internal#configure-test-environment

Image: RHEL-8.3.0-Snapshot-2.0 (NetworkManager-cloud-setup-1.26.0-6.el8.x86_64)

After LB is created, forwarded_ip in metadata will be set.
# curl --silent -L -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/forwarded-ips/0"
10.1.2.99

stop nginx on all machines except vm-a1

Connect to the iLB addr will get error:
vm-client:~# curl http://10.1.2.99
curl: (7) Failed to connect to 10.1.2.99 port 80: Connection refused

Uncomment "Environment=NM_CLOUD_SETUP_GCP=yes" in /lib/systemd/system/nm-cloud-setup.service

vm-a1# systemctl restart nm-cloud-setup

vm-a1# ip route show table local
...
local 10.1.2.99 dev eth0 proto static scope host metric 100
...

Connect to the iLB addr will get the nginx sample page on vm-a1:
vm-client:~# curl http://10.1.2.99
HTTP/1.1 200 OK
...
...

Comment 11 errata-xmlrpc 2020-11-04 01:49:42 UTC
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 (NetworkManager bug fix and enhancement update), 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:4499


Note You need to log in before you can comment on or make changes to this bug.