Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflect the restricted vm sizes in the sdk #5710

Closed
lpuskas opened this issue Sep 6, 2019 · 7 comments
Closed

reflect the restricted vm sizes in the sdk #5710

lpuskas opened this issue Sep 6, 2019 · 7 comments
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Container Instances customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@lpuskas
Copy link

lpuskas commented Sep 6, 2019

Bug Report

  • import path:
    github.com/!azure/azure-sdk-for-go@v24.1.0+incompatible/services/containerservice/mgmt/2018-03-31/containerservice/models.go

  • SDK version
    affects most versions

  • What happened?
    AKS cluster creation failed due to invalid machine type

  • What did you expect or want to happen?
    the SDK provides only machine types supported by the container service (the ones listed as restricted in the documentation are excluded)

The error message we got:

containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="The VM SKU chosen for this cluster `Standard_A1_v2` does not have enough CPU/memory to run as an AKS node. Please see https://aka.ms/aks/restricted-skus for more details."
@ArcturusZhang
Copy link
Member

ArcturusZhang commented Sep 9, 2019

Hi @lpuskas sorry about the inconvenience, but this behaviour is defined by the rest api, which does not separate the VMSize that is acceptable for different scenes of usage. This is not regarded as a bug in service team I suppose, and will not be fixed.

@stoader
Copy link

stoader commented Sep 9, 2019

@ArcturusZhang we're using containerservice.PossibleVMSizeTypesValues to determine what VMSize is valid for AKS.

Should we use the list stored in containerservice.PossibleVMSizeTypesValues for querying VMSizes for AKS or a different API? If the later what API should we use to query VMSizes that are accepted by AKS?

@ArcturusZhang
Copy link
Member

@ArcturusZhang we're using containerservice.PossibleVMSizeTypesValues to determine what VMSize is valid for AKS.

Should we use the list stored in containerservice.PossibleVMSizeTypesValues for querying VMSizes for AKS or a different API? If the later what API should we use to query VMSizes that are accepted by AKS?

Actually, this kind of method exists for every enum type, which just returns all possible values for that enum type. To acheive what you want, you may have to write a method that filters the valid enum by your self.

@stoader
Copy link

stoader commented Sep 9, 2019

@kaerm kaerm added Container Instances customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. Service Attention Workflow: This issue is responsible by Azure service team. labels Sep 9, 2019
@triage-new-issues triage-new-issues bot removed the triage label Sep 9, 2019
@ArcturusZhang
Copy link
Member

@ArcturusZhang where the values of this enum type are generated from? are these generated from https://github.com/Azure/azure-rest-api-specs/blob/5c0a27ed2b2048cfcfea5f201bc3bb2d62dd75b7/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json#L783 ?

Yes, everything in the services folder is generated from the spec swagger json.

@stoader
Copy link

stoader commented Sep 10, 2019

@ArcturusZhang than if I understand it correctly if this Azure/azure-rest-api-specs#7153 is addressed then the enum in the services folder will reflect those changes.

@ArcturusZhang
Copy link
Member

@ArcturusZhang than if I understand it correctly if this Azure/azure-rest-api-specs#7153 is addressed then the enum in the services folder will reflect those changes.

Sure, thanks!

@RickWinter RickWinter added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 19, 2021
@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jul 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Container Instances customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants