Giter Site home page Giter Site logo

IResourceManager GenericResources.CheckExistenceAsync call on existing VM fails with "503 Service Unavailable" about azure-libraries-for-net HOT 16 OPEN

azure avatar azure commented on July 18, 2024
IResourceManager GenericResources.CheckExistenceAsync call on existing VM fails with "503 Service Unavailable"

from azure-libraries-for-net.

Comments (16)

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 what is the version of Microsoft.Azure.Management.ResourceManager.Fluent package in your project?

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 what is your dev box configuration? I'll need to have a repro locally to investigate. Did you check fiddler logs?

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 Target framework? Do you install rollup package or just ResourceManager.Fluent?

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 I have a repro. Seems like nuget manager is broken on VS2015. I've opened the same project in VS2017 and was able to add v1.4 reference.

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

great. thanks!

target framework is 4.5.2

What about the deadlock? is it fixed in 1.4?

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

I'll need a repro for that as well. Could you post your code here (excluding sensitive data if any)?

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

https://github.com/abhi1509/fluentSdkRmGenericResourceDeadlock/tree/master/WebApplicationRepro.Tests
run the test TestStuckGenericResourcesCheckExistence

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

No repro.
On my dev box (win10, VS2015 update 3) Your solution actually checks in a loop that SimpleWinVM is created but constantly receives 404 back.

it does not hang here - https://github.com/abhi1509/fluentSdkRmGenericResourceDeadlock/blob/master/WebApplicationRepro/AzureResourceManager.cs#L110

but actually sends /resourcegroups/temp1234/providers/Microsoft.Compute//virtualMachines/SimpleWinVM?api-version=2016-04-30-preview HTTP/1.1
receives HTTP/1.1 404 Not Found
and never exits the while loop.

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

given that we started a deployment, the VM should eventually exist and then we should exit the loop. once the VM is there, this gets stuck. I have noticed that it works fine if resource is not there.

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

@hovsepm Please let me know if you can't repro it. Basically if you query for a resource which already exists, it gets deadlocked.

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 ok I got the repro and it is not a dead lock. SDK 3 times tries to query existence while Azure responds "503 Service Unavailable". Each retry has it's own wait time so that is why you see delays. This has nothing to do with the SDK but with the back end service.

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 I've contacted service team for clarification.

from azure-libraries-for-net.

abhi1509 avatar abhi1509 commented on July 18, 2024

Thanks. How long is the wait time. I modified the sample template so it now generates random dns names. otherwise the resource would never be created as there was a DNS conflict.

With the change, even when the VM is created, i still get TaskCancelledException after a long wait.

from azure-libraries-for-net.

hovsepm avatar hovsepm commented on July 18, 2024

@abhi1509 it seems to be not supported by Compute Service. Their suggested workaround for now is use Get instead of Head (CheckExistence) operation.
FYI, I've published v.1.4.1 with VS2015 issue fix.

from azure-libraries-for-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.