AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Upgrade failed from 1.8.1 to 1.8.6

Open agalisteo opened this issue 8 years ago • 9 comments

az aks upgrade --name myaks --resource-group myresourcegr --kubernetes-version 1.8.6

Deployment failed. Correlation ID: 09312a25-04f3-4e35-8f79-6b2337bb7f19. Operation failed with status: 200. Details: Resource state Failed

az aks show --name myaks --resource-group myresourcegr --output table

Name     Location    ResourceGroup    KubernetesVersion    ProvisioningState    Fqdn
-------  ----------  ---------------  -------------------  -------------------  -----------------------------------------
myaks  westeurope  myresourcegr             1.8.6                Failed               myaks-81cf39b1.hcp.westeurope.azmk8s.io

Retrying the upgrade action I get the same error above

agalisteo avatar Jan 25 '18 12:01 agalisteo

same error here. Since yesterday evening cluster was gone and in "pending" state. Did an upgrade and now in failed state. I'm definitely switch back to ACS-engine, which is much more stable than AKS. I'd not recommend to use AKS for production!

--- log output

az aks upgrade --yes --kubernetes-version 1.8.6 --name XXXX --resource-group XXXXX Exception in thread AzureOperationPoller(0d4b7523-1527-48fd-ba4f-683693013c11): Traceback (most recent call last): File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_operation.py", line 377, in _start self._poll(update_cmd) File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_operation.py", line 464, in _poll raise OperationFailed("Operation failed or cancelled") msrestazure.azure_operation.OperationFailed: Operation failed or cancelled

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/az/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/opt/az/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_operation.py", line 388, in _start self._exception = CloudError(self._response) File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_exceptions.py", line 157, in init self._build_error_data(response) File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_exceptions.py", line 173, in _build_error_data self.error = self.deserializer('CloudErrorRoot', response).error File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1021, in call value = self.deserialize_data(raw_value, attr_desc['type']) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1185, in deserialize_data return self(obj_type, data) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1028, in call return self._instantiate_model(response, d_attrs, additional_properties) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1130, in _instantiate_model response_obj = response(**kwargs) File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_exceptions.py", line 62, in init self.message = kwargs.get('message') File "/opt/az/lib/python3.6/site-packages/msrestazure/azure_exceptions.py", line 114, in message value = eval(value) File "", line 1, in NameError: name 'CloudProviderProfile' is not defined

{ "additionalProperties": { "endTime": "2018-01-28T11:31:41.1638048Z", "error": { "code": "ControlPlaneCloudProviderNotSet", "message": "CloudProviderProfile is not set" }, "startTime": "2018-01-28T11:31:05.5192369Z", "status": "Failed" }, "agentPoolProfiles": null, "dnsPrefix": null, "fqdn": null, "id": null, "kubernetesVersion": null, "linuxProfile": null, "location": null, "name": "6d087977-e6f0-a043-8b2b-26106b8d509a", "provisioningState": null, "servicePrincipalProfile": null, "tags": null, "type": null }

mcops avatar Jan 28 '18 11:01 mcops

Solved, problem with the quotas of my subscription.

agalisteo avatar Feb 01 '18 17:02 agalisteo

@agalisteo How did You resolve it?

ElanHasson avatar Feb 06 '18 06:02 ElanHasson

@agalisteo any particular quotas you had to change?

pr0nin avatar Feb 12 '18 14:02 pr0nin

We are also working on bubbling up errors from the underlying ARM deployment. The usual culprit during upgrade is reaching core or core family quotas.

slack avatar Feb 14 '18 03:02 slack

Using AKS delete and then create with the exact same configuration as before except for Kubernetes version gave me a working cluster.

For some reason my existing deployment and secrets were preserved.

I'm pretty sure the extra resource group AKS creates were deleted during AKS delete. But the fact that things from the deleted cluster remained makes me unsure if I checked properly.

pr0nin avatar Feb 14 '18 09:02 pr0nin

I got the same error when I was trying to upgrade to 1.8.7 Deployment failed. Correlation ID: ca8aa507-9e3e-453b-9c25-fce40e1622fa. Operation failed with status: 200. Details: Resource state Failed

tslavik avatar Feb 20 '18 11:02 tslavik

Got a similar error today:

$ az aks upgrade --name k8s-cluster --kubernetes-version 1.9.6
Kubernetes may be unavailable during cluster upgrades.
Are you sure you want to perform this operation? (y/n): y
Deployment failed. Correlation ID: b9acbb37-c0a3-4e39-876c-7856caa5090c. Internal server error

EU-West, can send details on resource group etc privately (don't want to post those names in public).

tomasaschan avatar Apr 20 '18 08:04 tomasaschan

@seanknox Do you have any details to share on this issue? What has changed, that motivates closing this issue?

Not questioning your decision, just asking for info :)

tomasaschan avatar Aug 03 '18 09:08 tomasaschan