diff --git a/cloud-controller-manager/controller/node/controller.go b/cloud-controller-manager/controller/node/controller.go index 32e9c348e..90da82dc9 100644 --- a/cloud-controller-manager/controller/node/controller.go +++ b/cloud-controller-manager/controller/node/controller.go @@ -390,7 +390,8 @@ func (cnc *CloudNodeController) doAddCloudNode(node *v1.Node) error { // This condition marks the node as unusable until routes are initialized in the cloud provider // Aoxn: Hack for alibaba cloud if route.Options.ConfigCloudRoutes && - cnc.cloud.ProviderName() == "alicloud" { + cnc.cloud.ProviderName() == "alicloud" && + !utils.IsExcludedNode(node) { if err := cnc.setNodeCondition(node); err != nil { klog.Errorf("set node %s condition error: %s", node.Name, err.Error()) return false, nil diff --git a/cloud-controller-manager/listeners.go b/cloud-controller-manager/listeners.go index 1b810edc5..974fba1df 100644 --- a/cloud-controller-manager/listeners.go +++ b/cloud-controller-manager/listeners.go @@ -1513,10 +1513,9 @@ func (n *Listener) listenerHasUserManagedNode(ctx context.Context) (bool, error) } for _, backend := range remoteVg.BackendServers.BackendServer { - klog.V(5).Infof("remote: %s, local: %s ", backend.Description, n.NamedKey.Reference(int32(backend.Port))) - if isUserManagedNode(backend.Description, n.NamedKey.Reference(int32(backend.Port))) { - klog.Infof("%s vgroup %s has user managed node, node ip is %s, node id is %s", - n.NamedKey, n.VServerGroupId, backend.ServerIp, backend.ServerId) + if isUserManagedNode(backend.Description, remoteVg.VServerGroupName) { + klog.Infof("%s has user managed node %s, description %s, vGroupName: %s", + n.VServerGroupId, backend.ServerId, backend.Description, remoteVg.VServerGroupName) return true, nil } }