From c0d1520cd6043017c4f8de1519e18632dda7e2ed Mon Sep 17 00:00:00 2001 From: rpotla Date: Thu, 19 Sep 2024 11:50:07 -0400 Subject: [PATCH 1/3] log IPs of nodes --- cloud/linode/loadbalancers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/linode/loadbalancers.go b/cloud/linode/loadbalancers.go index 4ff829c7..4a396ccf 100644 --- a/cloud/linode/loadbalancers.go +++ b/cloud/linode/loadbalancers.go @@ -903,6 +903,7 @@ func getNodePrivateIP(node *v1.Node) string { return address } + klog.Infof("Node %s, assigned IP addresses: %v", node.Name, node.Status.Addresses) for _, addr := range node.Status.Addresses { if addr.Type == v1.NodeInternalIP { return addr.Address From 373793c1c124a24d9011aa76631c1ac429fd324b Mon Sep 17 00:00:00 2001 From: rpotla Date: Fri, 20 Sep 2024 10:08:42 -0400 Subject: [PATCH 2/3] log nodes when setting IP address --- cloud/linode/instances.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/linode/instances.go b/cloud/linode/instances.go index f2f467c3..8ef712ac 100644 --- a/cloud/linode/instances.go +++ b/cloud/linode/instances.go @@ -59,6 +59,7 @@ func (nc *nodeCache) getInstanceAddresses(instance linodego.Instance, vpcips []s ips = append(ips, nodeIP{ip: strings.TrimSuffix(instance.IPv6, "/128"), ipType: v1.NodeExternalIP}) } + klog.Infof("Instance %s, assembled IP addresses: %v", instance.Label, ips) return ips } From 95aebc62b30a9b973c781757f8d0d2767c218018 Mon Sep 17 00:00:00 2001 From: rpotla Date: Fri, 20 Sep 2024 10:26:34 -0400 Subject: [PATCH 3/3] log instancemetadata --- cloud/linode/instances.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/linode/instances.go b/cloud/linode/instances.go index 8ef712ac..21711745 100644 --- a/cloud/linode/instances.go +++ b/cloud/linode/instances.go @@ -59,7 +59,6 @@ func (nc *nodeCache) getInstanceAddresses(instance linodego.Instance, vpcips []s ips = append(ips, nodeIP{ip: strings.TrimSuffix(instance.IPv6, "/128"), ipType: v1.NodeExternalIP}) } - klog.Infof("Instance %s, assembled IP addresses: %v", instance.Label, ips) return ips } @@ -286,6 +285,7 @@ func (i *instances) InstanceMetadata(ctx context.Context, node *v1.Node) (*cloud addresses = append(addresses, v1.NodeAddress{Type: ip.ipType, Address: ip.ip}) } + klog.Infof("Instance %s, assembled IP addresses: %v", node.Name, addresses) // note that Zone is omitted as it's not a thing in Linode meta := &cloudprovider.InstanceMetadata{ ProviderID: fmt.Sprintf("%v%v", providerIDPrefix, linode.ID),