Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Not able to deploy Multi VM's using azure plugin #213

Open
shubhamrajvanshi opened this issue May 3, 2018 · 3 comments
Open

Not able to deploy Multi VM's using azure plugin #213

shubhamrajvanshi opened this issue May 3, 2018 · 3 comments

Comments

@shubhamrajvanshi
Copy link

vagrant up amqp cco
Bringing machine 'amqp' up with 'azure' provider...
Bringing machine 'cco' up with 'azure' provider...
==> cco: Launching an instance with the following settings...
==> cco: -- Management Endpoint: https://management.azure.com
==> cco: -- Subscription Id: ############
==> cco: -- Resource Group Name: shubham-rg
==> cco: -- Location: westus
==> cco: -- Admin Username: centos
==> cco: -- VM Name: cco
==> cco: -- VM Storage Account Type: Premium_LRS
==> cco: -- VM Size: Standard_DS2_v2
==> cco: -- Image URN: OpenLogic:CentOS:7.3:latest
==> cco: -- TCP Endpoints: [80, 5701, 8443, 27017]
==> cco: -- DNS Label Prefix: cco
==> amqp: Launching an instance with the following settings...
==> amqp: -- Management Endpoint: https://management.azure.com
==> amqp: -- Subscription Id: #########
==> amqp: -- Resource Group Name: shubham-rg
==> amqp: -- Location: westus
==> amqp: -- Admin Username: centos
==> amqp: -- VM Name: amqp
==> amqp: -- VM Storage Account Type: Premium_LRS
==> amqp: -- VM Size: Standard_DS2_v2
==> amqp: -- Image URN: OpenLogic:CentOS:7.3:latest
==> amqp: -- TCP Endpoints: [80, 443, 4369, 5671, 7788, 7789, 15672, 25672]
==> amqp: -- DNS Label Prefix: amqp
==> cco: -- Create or Update of Resource Group: shubham-rg
==> amqp: -- Create or Update of Resource Group: shubham-rg
==> cco: -- Starting deployment
==> amqp: -- Starting deployment
==> cco: -- Finished deploying
==> cco: Waiting for SSH to become available...
==> amqp: -- Finished deploying
==> amqp: Waiting for SSH to become available...
==> amqp: Machine is booted and ready for use!
==> amqp: Rsyncing folder: /Users/srajvans/vagrant/azure/default/ => /vagrant
==> amqp: Running provisioner: shell...
==> cco: An error occurred. The error will be shown after all tasks complete.
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.

An unexpected error occurred when executing the action on the
'cco' machine. Please report this as a bug:

{
"message": "MsRestAzure::AzureOperationError: ResourceNotFound: The Resource 'Microsoft.Network/publicIPAddresses/cco-vagrantPublicIP' under resource group 'shubham-rg' was not found.",
"request": {
"base_uri": "https://management.azure.com",
"path_template": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}",
"method": "get",
"path_params": {
"resourceGroupName": "shubham-rg",
"publicIpAddressName": "cco-vagrantPublicIP",
"subscriptionId": "########"
},
"skip_encoding_path_params": null,
"query_params": {
"api-version": "2016-12-01",
"$expand": null
},
"skip_encoding_query_params": null,
"headers": {
"Content-Type": "application/json;charset=utf-8",
"accept-language": "en-US",
"x-ms-client-request-id": "f0ee7383-2521-43d1-bfc3-e9c65c083204"
},
"body": null,
"middlewares": [
[
"MsRest::RetryPolicyMiddleware",
{
"times": 3,
"retry": 0.02
}
],
[
"cookie_jar"
]
],
"log": null
},
"response": {
"body": "{"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.Network/publicIPAddresses/cco-vagrantPublicIP' under resource group 'shubham-rg' was not found."}}",
"headers": {
"cache-control": "no-cache",
"pragma": "no-cache",
"content-type": "application/json; charset=utf-8",
"expires": "-1",
"x-ms-failure-cause": "gateway",
"x-ms-request-id": "42ed11e3-3606-4969-8355-40087583e7d1",
"x-ms-correlation-request-id": "42ed11e3-3606-4969-8355-40087583e7d1",
"x-ms-routing-request-id": "WESTUS2:20180503T221637Z:42ed11e3-3606-4969-8355-40087583e7d1",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"x-content-type-options": "nosniff",
"date": "Thu, 03 May 2018 22:16:37 GMT",
"connection": "close",
"content-length": "169"
},
"status": 404
}
}

I have redacted Susbscription Id

@shubhamrajvanshi
Copy link
Author

Get the same issue when I run below command

vagrant up --parallel

@kdomanski
Copy link

I'm also experiencing the issue, when creating multiple VMs in the same resource group. It looks like a race condition related to creation of a resource group.

@kdomanski
Copy link

Works properly with --no-parallel

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

2 participants