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 4 years ago. Updated over 4 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 #1

Updated by Vijay Singh over 4 years ago

  • Related to Tracker #27271: AzureRM as a compute resource for Foreman with Azure Ruby SDK added
Actions #2

Updated by Aditi Puntambekar over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_azure_rm/pull/36 added
Actions #3

Updated by Aditi Puntambekar over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF