Project

General

Profile

Actions

Bug #27365

closed

Create host with username+SSHKey fails with error 'undefined method `id' for nil:NilClass'

Added by Vijay Singh over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Create host with username+SSHKey fails with error 'undefined method `id' for nil:NilClass'

Steps:

Hosts => Create Host => Provide the all details along with 'Username/SSH Key'

Traceback:

10:32:10 rails.1   | **********FAILURE!!!***********
10:32:10 rails.1   | Virtual Machine kathy-ridgley Created Successfully.
10:32:10 rails.1   | 2019-07-22T10:32:10 [W|app|d4b83b91] Failed to create a compute AzureCR1 (Azure Resource Manager) instance kathy-ridgley.example.com: undefined method `id' for nil:NilClass
10:32:10 rails.1   |  |  
10:32:10 rails.1   |  | NoMethodError: undefined method `id' for nil:NilClass
10:32:10 rails.1   |  | /home/rootazure/foreman_azure_rm/app/models/foreman_azure_rm/azure_rm_compute.rb:197:in `parse'
10:32:10 rails.1   |  | /home/rootazure/foreman_azure_rm/app/models/foreman_azure_rm/azure_rm.rb:441:in `create_vm'
10:32:10 rails.1   |  | /home/rootazure/foreman/app/models/concerns/orchestration/compute.rb:91:in `setCompute'
10:32:10 rails.1   |  | /home/rootazure/foreman/app/models/concerns/orchestration.rb:222:in `execute'
10:32:10 rails.1   |  | /home/rootazure/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
10:32:10 rails.1   |  | /home/rootazure/foreman/app/models/concerns/orchestration.rb:137:in `each'
10:32:10 rails.1   |  | /home/rootazure/foreman/app/models/concerns/orchestration.rb:137:in `process'
10:32:10 rails.1   |  | /home/rootazure/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'

Related issues 1 (0 open1 closed)

Related to AzureRM - Tracker #27271: AzureRM as a compute resource for Foreman with Azure Ruby SDKClosedAditi Puntambekar

Actions
Actions

Also available in: Atom PDF