klog.Warningf("Failed to parse the retry error message %s",err.Error())
returnerr
}
pipRG,pipName:=matches[1],matches[2]
klog.V(3).Infof("The public IP %s referenced by load balancer %s is not in Succeeded provisioning state, will try to update it",pipName,to.String(lb.Name))
pip,_,err:=az.getPublicIPAddress(pipRG,pipName)
iferr!=nil{
klog.Warningf("Failed to get the public IP %s in resource group %s: %v",pipName,pipRG,err)
returnerr
}
// Perform a dummy update to fix the provisioning state
err=az.CreateOrUpdatePIP(service,pipRG,pip)
iferr!=nil{
klog.Warningf("Failed to update the public IP %s in resource group %s: %v",pipName,pipRG,err)
returnerr
}
// Invalidate the LB cache, return the error, and the controller manager
// would retry the LB update in the next reconcile loop