Pengfei Ni
de9c127c94
Add events for azure-cloud-provider
...
When errors occur on azure cloud provider, events now are added so that users
could easily find the underground errors on Azure API.
2018-09-14 10:41:19 +08:00
Pengfei Ni
071eb9f6bf
Fix panic when processing http response
2018-09-04 14:26:19 +08:00
Pengfei Ni
8aaeafa166
Get VirtualMachineScaleSets and VirtualMachineScaleSetVMs from cached resource groups
2018-08-20 23:21:06 +08:00
Pengfei Ni
f83fb14452
Get VirtualMachines with cached resource groups
2018-08-20 23:21:06 +08:00
Pengfei Ni
5bf3b2119b
Update compute API to 2018-04-01
2018-07-25 17:39:32 +08:00
Pengfei Ni
b9b6a9e98d
Add verbose logs for azure cloud provider
2018-05-24 13:20:46 +08:00
Pengfei Ni
12c9d2736a
use new azure clients
2018-05-04 14:09:33 +08:00
Pengfei Ni
435df2b007
Use new Azure SDK APIs for load balancer and public IP operations
2018-04-28 16:45:05 +08:00
Pengfei Ni
079f9b85f8
Use new clients in azure cloud provider
2018-04-26 09:38:48 +08:00
Brendan Burns
d263c255bf
Update code for new SDK.
2018-04-02 10:34:30 -07:00
Pengfei Ni
bace00689b
Ensure cloudprovider.InstanceNotFound is reported when the VM is not found on Azure
2018-03-23 09:22:27 +08:00
Pengfei Ni
3ae114cf08
Get external IP for azure standard nodes
2018-03-09 11:10:44 +08:00
Pengfei Ni
5042cea857
Use new clients for vmss cache
2018-02-12 14:07:05 +08:00
Pengfei Ni
7634eacb4f
Add error handling and new tests
2018-02-09 20:38:29 +08:00
Pengfei Ni
21c8a63689
Add cache for network security groups
2018-02-09 09:09:25 +08:00
Pengfei Ni
d22b6d9ebe
Add cache for load balancer
2018-02-09 09:09:25 +08:00
zhangmingld
5a5f7fc42c
use info instead of infof when no format
2018-01-29 14:37:08 +08:00
Brendan Burns
1217395b5a
Add additional unit tests.
2018-01-23 04:37:31 +00:00
Cosmin Cojocar
24762b9f43
Extend the ListNextResults methods with the resource group and instrument them
2018-01-15 10:02:00 +01:00
Pengfei Ni
2423e7c52b
Clean up azure rateLimiter and verbose logs
2018-01-10 14:02:08 +08:00
Dong Liu
1836e567a9
Return actual error when backoff fails
2018-01-04 11:46:29 +08:00
Dong Liu
71d3cffd1f
Remove VirtualMachineClientGetWithRetry
2018-01-03 15:16:16 +08:00
Dong Liu
1ac4be5841
Remove exists return value from getVirtualMachine
2018-01-03 15:14:20 +08:00
Pengfei Ni
c07ab68005
Support multiple scale sets in same cluster
2017-12-25 10:30:54 +08:00
chshou
9c83e800fb
reapplied the changes after merge
2017-12-17 11:27:13 -08:00
chshou
9f26becae1
get rg inside 'ensure' methods
2017-12-17 11:26:30 -08:00
chshou
03730a3e90
delete pip by matching name and rg
2017-12-17 11:26:30 -08:00
chshou
9054137d05
annotate service with resource group
2017-12-17 11:25:07 -08:00
Pengfei Ni
7944bc3117
Add scale set implementation of VMSet interface
2017-12-13 14:16:01 +08:00
Pengfei Ni
65c0738a82
Support getting instanceID, type and IP for vmss instances
2017-11-21 07:14:07 +00:00
NIkhil Bhatia
e8c65f7130
address more code review comments
2017-11-20 09:32:46 -08:00
Jingtao Ren
69abfa676d
naming, comment, typo correction
2017-11-20 09:32:46 -08:00
Jingtao Ren
edfb2ad552
Azure load balancer general improvement
2017-11-20 09:32:46 -08:00
Unknown
faecedb174
Fix format specifiers in Azure cloud provider
2017-08-31 15:54:36 +12:00
Kubernetes Submit Queue
ea18935670
Merge pull request #45540 from edevil/azure_extra_logging
...
Automatic merge from submit-queue (batch tested with PRs 49083, 45540, 46862)
Add extra logging to azure API get calls
**What this PR does / why we need it**:
This PR adds extra logging for external calls to the Azure API, specifically get calls.
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
This will help troubleshoot problems arising from the usage of this cloudprovider. For example, it looks like #43516 is caused by a call to the cloudprovider taking too much time.
2017-07-19 21:18:25 -07:00
André Cruz
4071a36c12
Add extra logging to azure API calls
2017-07-18 14:40:28 +01:00
Jack Francis
f76ef29512
backing off az.getIPForMachine in az.NodeAddresses
...
also rate limiting the call to az.getVirtualMachine inside az.getIPForMachine
2017-07-14 17:13:40 -07:00
Jack Francis
2525ef9983
VirtualMachinesClient.Get backoff in lb pool logic
...
EnsureHostInPool() submits a GET to azure API for VM info. We’re seeing this on agent node kubelets and would like to enable configurable backoff engagement for 4xx responses to be able to slow down the rate of reconciliation, when appropriate.
2017-07-14 15:16:47 -07:00
Brendan Burns
29a0c6f56a
Code updates for new SDK.
2017-07-12 06:09:31 -07:00
Jack Francis
148e923f65
az.getVirtualMachine already rate-limited
...
we don’t need to rate limit the calls _to_ it
2017-06-06 14:55:07 -07:00
Jack Francis
3f3aa279b9
configurable backoff
...
- leveraging Config struct (—cloud-config) to store backoff and rate limit on/off and performance configuration
- added add’l error logging
- enabled backoff for vm GET requests
2017-06-05 16:06:50 -07:00
Jack Francis
7e6c689e58
backoff logging, error handling, wait.ConditionFunc
...
- added info and error logs for appropriate backoff conditions/states
- rationalized log idioms across all resource requests that are backoff-enabled
- processRetryResponse as a wait.ConditionFunc needs to supress errors if it wants the caller to continue backing off
2017-06-02 15:35:20 -07:00
Jack Francis
17f8dc53af
two optimizations
...
- removed unnecessary return statements
- optimized HTTP response code evaluations as numeric comparisons
2017-06-01 13:58:11 -07:00
Jack Francis
c95af06154
errata
...
arg cruft in CreateOrUpdateSGWithRetry function declaration
2017-05-31 12:03:22 -07:00
Jack Francis
c6c6cc790e
errata, wait.ExponentialBackoff, regex HTTP codes
...
- corrected Copyright copy/paste
- now actually implementing exponential backoff instead of regular interval retries
- using more general HTTP response code success/failure determination (e.g., 5xx for retry)
- net/http constants ftw
2017-05-31 11:53:02 -07:00
Jack Francis
f200f9a1e8
Azure cloudprovider retry using flowcontrol
...
An initial attempt at engaging exponential backoff for API error responses.
Uses k8s.io/client-go/util/flowcontrol; implementation inspired by GCE
cloudprovider backoff.
2017-05-30 14:50:31 -07:00