@@ -917,6 +917,7 @@ func getVmssAndResourceGroupNameByVMProviderID(providerID string) (string, strin
917
917
}
918
918
919
919
func (ss * scaleSet ) ensureVMSSInPool (service * v1.Service , nodes []* v1.Node , backendPoolID string , vmSetName string ) error {
920
+ klog .V (2 ).Infof ("ensureVMSSInPool: ensuring VMSS with backendPoolID %s" , backendPoolID )
920
921
vmssNamesMap := make (map [string ]bool )
921
922
922
923
// the standard load balancer supports multiple vmss in its backend while the basic sku doesn't
@@ -926,7 +927,7 @@ func (ss *scaleSet) ensureVMSSInPool(service *v1.Service, nodes []*v1.Node, back
926
927
continue
927
928
}
928
929
// in this scenario the vmSetName is an empty string and the name of vmss should be obtained from the provider IDs of nodes
929
- vmssName , resourceGroupName , err := getVmssAndResourceGroupNameByVMProviderID (node .Spec .ProviderID )
930
+ resourceGroupName , vmssName , err := getVmssAndResourceGroupNameByVMProviderID (node .Spec .ProviderID )
930
931
if err != nil {
931
932
klog .V (4 ).Infof ("ensureVMSSInPool: found VMAS node %s, will skip checking and continue" , node .Name )
932
933
continue
@@ -940,6 +941,7 @@ func (ss *scaleSet) ensureVMSSInPool(service *v1.Service, nodes []*v1.Node, back
940
941
vmssNamesMap [vmSetName ] = true
941
942
}
942
943
944
+ klog .V (2 ).Infof ("ensureVMSSInPool begins to update VMSS %v with backendPoolID %s" , vmssNamesMap , backendPoolID )
943
945
for vmssName := range vmssNamesMap {
944
946
vmss , err := ss .getVMSS (vmssName , azcache .CacheReadTypeDefault )
945
947
if err != nil {
0 commit comments