azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Missing enum UltraSSD_LRS in StorageAccountTypes

Open samyak4680 opened this issue 7 years ago • 14 comments

I am using Ultra SSD disks (available in the preview mode). Using Python SDK, I am getting the following output while getting the VM details in REST API:

-> Deserializer is not able to find UltraSSD_LRS as valid enum in <enum 'StorageAccountTypes'> <-

Can you please get the UltraSSD_LRS enum added to the StorageAccountTypes to fix this issue?

I am using following azure versions: azure==4.0.0 azure-storage==0.36.0 azure-storage-blob==1.5.0 azure-storage-common==1.4.2 azure-storage-file==1.4.0 azure-storage-queue==1.4.0

samyak4680 avatar Aug 28 '19 06:08 samyak4680

Hi @samyak4680 thanks for letting us know! Our team will take a look at this.

kaerm avatar Aug 28 '19 18:08 kaerm

Thanks @samyak4680 - I believe you may need to update to a newer version of the SDK. Adding @zezha-msft and @xiafu-msft who will be able to help :)

annatisch avatar Aug 28 '19 18:08 annatisch

Hi @samyak4680, this seems to be an issue in the management-plane SDK, not the data-plane ones you've listed. Could you please provide a full pip freeze?

On a side note, it appears that you have both the legacy monolithic library azure-storage and the split packages installed at the same time. Please uninstall and then re-install the split packages only.

zezha-msft avatar Aug 28 '19 23:08 zezha-msft

Thanks @zezha-msft, and all for looking in this issue.

I have tried uninstalling all the azure sdk, and then install the specific ones. Following is the pip freeze output:

#pip freeze | grep azure azure-common==1.1.23 azure-mgmt-compute==6.0.0 azure-mgmt-dns==3.0.0 azure-mgmt-network==5.0.0 azure-nspkg==3.0.2 azure-storage==0.36.0 msrestazure==0.6.1

Still I am getting the same output:

Deserializer is not able to find UltraSSD_LRS as valid enum in <enum 'StorageAccountTypes'>

Can you please confirm if above packages are not the latest ones, or if I am missing something.

Thanks.

samyak4680 avatar Aug 29 '19 10:08 samyak4680

@annatisch could you please tag the management plane SDK's maintainer here?

zezha-msft avatar Aug 29 '19 23:08 zezha-msft

Thanks @zezha-msft - though I believe this is a generated SDK driven by the swagger spec. Adding the swagger code owners: @jasonyang-msft @xiaonlimsft

FYI @lmazuel

annatisch avatar Aug 30 '19 22:08 annatisch

Any updates on this..?

samyak4680 avatar Sep 17 '19 09:09 samyak4680

Hi @samyak4680,

Sorry about the delay of response! Let's ping the swagger code owner to see if they have any idea 😀

@JasonYang-MSFT @XiaoningLiu Do you have any insight about this?

xiafu-msft avatar Sep 17 '19 17:09 xiafu-msft

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

ghost avatar Apr 17 '20 16:04 ghost

@blueww , can you take a look from mgmt SDK perspective.

vinjiang avatar Sep 17 '20 23:09 vinjiang

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @vaibhav-agar, @amjads1.

ghost avatar Sep 18 '20 03:09 ghost

'StorageAccountTypes' is defined in compute management plane swagger, not in storage swagger. The API is owned by compute team. https://github.com/Azure/azure-rest-api-specs/blob/535109d5f9dae0e789affb02cb13bce8727feb44/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json#L7106

So remove storage tag, and add compute tag.

blueww avatar Sep 18 '20 03:09 blueww

Since the issue was opened very close to the actual launch of Ultra SSD, this might just be due to the changes rolling after the issue was created. Can @samyak4680 or someone verify if the issue still exists? If not, I will like to close this. Thanks!

Vaibhav-Agar avatar Oct 01 '20 20:10 Vaibhav-Agar

Hi @samyak4680,

I am resolving this now as I don't believe that this issue exists anymore. If you still see this, please feel free to re-open.

Vaibhav-Agar avatar Oct 08 '20 19:10 Vaibhav-Agar