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

Cannot create multi-VMs. 404 Error that Azure cannot assign a pubic IP and fails to create VMs when creating multiple VMs using Vagrant file #229

Open
rsrivastPers opened this issue Jul 9, 2019 · 0 comments

Comments

@rsrivastPers
Copy link

$ vagrant up

==> vagrant: A new version of Vagrant is available: 2.2.5 (installed version: 2.2.4)!

==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html

 

DIR: C:/Perspecta/work/github/k8s-devop_pipeline/perspecta-dojo/tools/vagrant/demo/azure

DIR: C:/Perspecta/work/github/k8s-devop_pipeline/perspecta-dojo/tools/vagrant/demo/azure

DIR: C:/Perspecta/work/github/k8s-devop_pipeline/perspecta-dojo/tools/vagrant/demo/azure

DIR: C:/Perspecta/work/github/k8s-devop_pipeline/perspecta-dojo/tools/vagrant/demo/azure

Bringing machine 'dojo-lb-2' up with 'azure' provider...

Bringing machine 'dojo-app01-2' up with 'azure' provider...

Bringing machine 'dojo-app02-2' up with 'azure' provider...

Bringing machine 'dojo-db01-2' up with 'azure' provider...

==> dojo-app01-2: Launching an instance with the following settings...

==> dojo-app01-2: -- Management Endpoint: https://management.azure.com

==> dojo-app01-2: -- Subscription Id: 2b30ee77-2f35-4f2c-a111-65152dace793

==> dojo-app01-2: -- Resource Group Name: OfferingRSVagAnsRG

==> dojo-app01-2: -- Location: eastus

==> dojo-app01-2: -- SSH User Name: centos

==> dojo-app02-2: Launching an instance with the following settings...

==> dojo-app01-2: -- Admin Username: [email protected]

==> dojo-app02-2: -- Management Endpoint: https://management.azure.com

==> dojo-app01-2: -- VM Name: dojo-app01-2

==> dojo-app02-2: -- Subscription Id: 2b30ee77-2f35-4f2c-a111-65152dace793

==> dojo-app01-2: -- VM Storage Account Type: Premium_LRS

==> dojo-app02-2: -- Resource Group Name: OfferingRSVagAnsRG

==> dojo-app01-2: -- VM Size: Standard_DS2_v2

==> dojo-app02-2: -- Location: eastus

==> dojo-app01-2: -- Image URN: OpenLogic:CentOS:7.5:latest

==> dojo-app02-2: -- SSH User Name: centos

==> dojo-app01-2: -- DNS Label Prefix: dojo-app01-2

==> dojo-app02-2: -- Admin Username: [email protected]

==> dojo-app02-2: -- VM Name: dojo-app02-2

==> dojo-app02-2: -- VM Storage Account Type: Premium_LRS

==> dojo-app02-2: -- VM Size: Standard_DS2_v2

==> dojo-app02-2: -- Image URN: OpenLogic:CentOS:7.5:latest

==> dojo-app02-2: -- DNS Label Prefix: dojo-app02-2

==> dojo-lb-2: Launching an instance with the following settings...

==> dojo-lb-2: -- Management Endpoint: https://management.azure.com

==> dojo-lb-2: -- Subscription Id: 2b30ee77-2f35-4f2c-a111-65152dace793

==> dojo-lb-2: -- Resource Group Name: OfferingRSVagAnsRG

==> dojo-lb-2: -- Location: eastus

==> dojo-lb-2: -- SSH User Name: centos

==> dojo-lb-2: -- Admin Username: [email protected]

==> dojo-lb-2: -- VM Name: dojo-lb-2

==> dojo-db01-2: Launching an instance with the following settings...

==> dojo-lb-2: -- VM Storage Account Type: Premium_LRS

==> dojo-db01-2: -- Management Endpoint: https://management.azure.com

==> dojo-lb-2: -- VM Size: Standard_DS2_v2

==> dojo-db01-2: -- Subscription Id: 2b30ee77-2f35-4f2c-a111-65152dace793

==> dojo-lb-2: -- Image URN: OpenLogic:CentOS:7.5:latest

==> dojo-db01-2: -- Resource Group Name: OfferingRSVagAnsRG

==> dojo-lb-2: -- DNS Label Prefix: dojo-lb-2

==> dojo-db01-2: -- Location: eastus

==> dojo-db01-2: -- SSH User Name: centos

==> dojo-db01-2: -- Admin Username: [email protected]

==> dojo-db01-2: -- VM Name: dojo-db01-2

==> dojo-db01-2: -- VM Storage Account Type: Premium_LRS

==> dojo-db01-2: -- VM Size: Standard_DS2_v2

==> dojo-db01-2: -- Image URN: OpenLogic:CentOS:7.5:latest

==> dojo-db01-2: -- DNS Label Prefix: dojo-db01-2

==> dojo-db01-2: -- Create or Update of Resource Group: OfferingRSVagAnsRG

==> dojo-app02-2: -- Create or Update of Resource Group: OfferingRSVagAnsRG

==> dojo-lb-2: -- Create or Update of Resource Group: OfferingRSVagAnsRG

==> dojo-app01-2: -- Create or Update of Resource Group: OfferingRSVagAnsRG

==> dojo-app02-2: -- Starting deployment

==> dojo-app01-2: -- Starting deployment

==> dojo-lb-2: -- Starting deployment

==> dojo-db01-2: -- Starting deployment

==> dojo-app02-2: -- Finished deploying

==> dojo-db01-2: -- Finished deploying

==> dojo-app01-2: -- Finished deploying

==> dojo-lb-2: -- Finished deploying

==> dojo-app02-2: Waiting for SSH to become available...

==> dojo-app01-2: Waiting for SSH to become available...

==> dojo-db01-2: Waiting for SSH to become available...

==> dojo-lb-2: Waiting for SSH to become available...

==> dojo-db01-2: Machine is booted and ready for use!

==> dojo-db01-2: Running provisioner: file...

==> dojo-app02-2: Machine is booted and ready for use!

==> dojo-app02-2: Running provisioner: file...

dojo-app02-2: ../../../ansible => ./ansible

dojo-db01-2: ../../../ansible => ./ansible

==> dojo-app02-2: Running provisioner: file...

==> dojo-db01-2: Running provisioner: file...

dojo-app02-2: ~/.ssh/id_rsa => ~/.ssh/id_rsa

dojo-db01-2: ~/.ssh/id_rsa => ~/.ssh/id_rsa

==> dojo-app02-2: Running provisioner: file...

==> dojo-db01-2: Running provisioner: file...

dojo-db01-2: ~/.ssh/id_rsa.pub => ~/.ssh/id_rsa.pub

dojo-app02-2: ~/.ssh/id_rsa.pub => ~/.ssh/id_rsa.pub

==> dojo-db01-2: Running provisioner: file...

==> dojo-app02-2: Running provisioner: file...

dojo-db01-2: ../../../ansible/demo/playbooks/files/config => ~/.ssh/config

dojo-app02-2: ../../../ansible/demo/playbooks/files/config => ~/.ssh/config

==> dojo-db01-2: Running provisioner: shell...

==> dojo-app02-2: Running provisioner: shell...

==> dojo-lb-2: An error occurred. The error will be shown after all tasks complete.

==> dojo-app01-2: An error occurred. The error will be shown after all tasks complete.

dojo-app02-2: Running: inline script

dojo-db01-2: Running: inline script

dojo-app02-2: /tmp/vagrant-shell: line 1: /root/.ssh/authorized_keys: No such file or directory

dojo-app02-2: chmod: cannot access ‘/root/.ssh/*’: No such file or directory

dojo-app02-2: chown: cannot access ‘/root/.ssh/*’: No such file or directory

==> dojo-app02-2: An error occurred. The error will be shown after all tasks complete.

dojo-db01-2: /tmp/vagrant-shell: line 1: /root/.ssh/authorized_keys: No such file or directory

dojo-db01-2: chmod: cannot access ‘/root/.ssh/*’

dojo-db01-2: : No such file or directory

dojo-db01-2: chown: cannot access ‘/root/.ssh/*’: No such file or directory

==> dojo-db01-2: 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

'dojo-lb-2' machine. Please report this as a bug:

 

{

"message": "MsRestAzure::AzureOperationError: ResourceNotFound: The Resource 'Microsoft.Network/publicIPAddresses/dojo-lb-2-vagrantPublicIP' under resource group 'OfferingRSVagAnsRG' 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": "OfferingRSVagAnsRG",

"publicIpAddressName": "dojo-lb-2-vagrantPublicIP",

"subscriptionId": "2b30ee77-2f35-4f2c-a111-65152dace793"

},

"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": "ed6813a2-4093-4b43-8139-8bb965d11bc8"

},

"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/dojo-lb-2-vagrantPublicIP' under resource group 'OfferingRSVagAnsRG' 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": "08aa2651-f841-40f8-8f88-d8bfb013d694",

"x-ms-correlation-request-id": "08aa2651-f841-40f8-8f88-d8bfb013d694",

"x-ms-routing-request-id": "EASTUS:20190701T145200Z:08aa2651-f841-40f8-8f88-d8bfb013d694",

"strict-transport-security": "max-age=31536000; includeSubDomains",

"x-content-type-options": "nosniff",

"date": "Mon, 01 Jul 2019 14:51:59 GMT",

"connection": "close",

"content-length": "183"

},

"status": 404

}

}

 

C:/Users/Rahul.Srivastava--la/.vagrant.d/gems/2.4.4/gems/azure_mgmt_network-0.10.0/lib/generated/azure_mgmt_network/public_ipaddresses.rb:136:in `block in get_async'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/promise.rb:533:in `block in on_fulfill'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/safe_task_executor.rb:24:in `block in execute'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in `block in synchronize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in `synchronize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in `synchronize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/safe_task_executor.rb:19:in `execute'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/promise.rb:563:in `block in realize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'

 

An unexpected error occurred when executing the action on the

'dojo-app01-2' machine. Please report this as a bug:

 

{

"message": "MsRestAzure::AzureOperationError: ResourceNotFound: The Resource 'Microsoft.Network/publicIPAddresses/dojo-app01-2-vagrantPublicIP' under resource group 'OfferingRSVagAnsRG' 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": "OfferingRSVagAnsRG",

"publicIpAddressName": "dojo-app01-2-vagrantPublicIP",

"subscriptionId": "2b30ee77-2f35-4f2c-a111-65152dace793"

},

"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": "d619f61b-ce8d-458b-b94f-2fd8026c0108"

},

"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/dojo-app01-2-vagrantPublicIP' under resource group 'OfferingRSVagAnsRG' 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": "e5348315-5ce6-4733-b97b-2c267f5515ce",

"x-ms-correlation-request-id": "e5348315-5ce6-4733-b97b-2c267f5515ce",

"x-ms-routing-request-id": "EASTUS:20190701T145200Z:e5348315-5ce6-4733-b97b-2c267f5515ce",

"strict-transport-security": "max-age=31536000; includeSubDomains",

"x-content-type-options": "nosniff",

"date": "Mon, 01 Jul 2019 14:51:59 GMT",

"connection": "close",

"content-length": "186"

},

"status": 404

}

}

 

C:/Users/Rahul.Srivastava--la/.vagrant.d/gems/2.4.4/gems/azure_mgmt_network-0.10.0/lib/generated/azure_mgmt_network/public_ipaddresses.rb:136:in `block in get_async'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/promise.rb:533:in `block in on_fulfill'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/safe_task_executor.rb:24:in `block in execute'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in `block in synchronize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in `synchronize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in `synchronize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/safe_task_executor.rb:19:in `execute'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/promise.rb:563:in `block in realize'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'

C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'

 

An error occurred while executing the action on the 'dojo-app02-2'

machine. Please handle this error then try again:

 

The SSH command responded with a non-zero exit status. Vagrant

assumes that this means the command failed. The output for this command

should be in the log above. Please read the output to determine what

went wrong.

 

An error occurred while executing the action on the 'dojo-db01-2'

machine. Please handle this error then try again:

 

The SSH command responded with a non-zero exit status. Vagrant

assumes that this means the command failed. The output for this command

should be in the log above. Please read the output to determine what

went wrong.

 

Rahul.Srivastava--la@GSWY1N2 MINGW64 /c/Perspecta/work/github/k8s-devop_pipeline/perspecta-dojo/tools/vagrant/demo/azure (master)

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

1 participant