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

Network interface is being doubled when async create VirtualMachine #1189

Closed
jkubrynski opened this issue Oct 12, 2016 · 3 comments
Closed
Assignees
Milestone

Comments

@jkubrynski
Copy link

When I invoke createAsync() on the Azure.virtualMachines() definition it doubles the network interface setting. With normal create() it works OK.

"networkProfile": {
    "networkInterfaces": [
        {
            "id": "/subscriptions/XXXXXXX/resourceGroups/YYYY/providers/Microsoft.Network/networkInterfaces/ZZZZ",
            "properties": {
                "primary": true
            }
        },
        {
            "id": "/subscriptions/XXXXXXX/resourceGroups/YYYY/providers/Microsoft.Network/networkInterfaces/ZZZZ",
            "properties": {
                "primary": true
            }
        }
    ]
}
@martinsawicki
Copy link

odd that it's even possible...

@anuchandy
Copy link
Member

@jkubrynski sorry for the delay in responding.

We had a rework in the underlying dependency graph in Dec 2016, in that work we tried to eliminate any race conditions in the core, adding duplicate entries to NIC array looks like a race condition.

But still i am trying to see this is reproducible, createAsync() of virtual machine return Observable<Indexable>, at some point of time consumer needs to subscribe to it - directly by calling Subscribe or indirectly by applying operators chain and calling Subscribe at the end of chain. Do you think you can share the code you use which shows how you subscribe and WAIT for operation to finish.

@martinsawicki
Copy link

closing due to inactivity/lack of repro/maybe already fixed

sima-zhu pushed a commit to sima-zhu/azure-sdk-for-java that referenced this issue Mar 21, 2019
…o generated sub-folder (Azure#1189)

* Restructuring generated Ruby & Azure.Ruby code into generated sub-folder

* Update Ruby and Azure.Ruby tests to look inside generated folder

* Moving version file back inside the sdkpath
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants