Project

General

Profile

Actions

Bug #28059

closed

Unable to Associate a existing VM

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

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

Description

Unable to Associate a existing VM

Steps:

on UI: Infrastructure => Compute Resources => Azure CR => click on 'Associate VMs'

Actual results:

09:01:12 rails.1   | 2019-10-15T09:01:12 [I|app|00c850d4] Completed 500 Internal Server Error in 133ms (ActiveRecord: 2.2ms)
09:01:12 rails.1   |  | 
09:01:12 rails.1   |  | 
09:01:12 rails.1   | 2019-10-15T09:01:12 [F|app|00c850d4]   
09:01:12 rails.1   | 2019-10-15T09:01:12 [F|app|00c850d4] ArgumentError (wrong number of arguments (given 1, expected 0)):
09:01:12 rails.1   | 2019-10-15T09:01:12 [F|app|00c850d4]   
09:01:12 rails.1   | 2019-10-15T09:01:12 [F|app|00c850d4] /home/rootazure/foreman_azure_rm/app/models/foreman_azure_rm/azure_rm.rb:160:in `vms'
09:01:12 rails.1   |  | app/services/compute_resource_host_associator.rb:11:in `associate_hosts'
09:01:12 rails.1   |  | app/controllers/compute_resources_controller.rb:52:in `associate'
09:01:12 rails.1   |  | app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
09:01:12 rails.1   |  | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
09:01:12 rails.1   |  | app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
09:01:12 rails.1   |  | lib/foreman/middleware/telemetry.rb:10:in `call'
09:01:12 rails.1   |  | lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
09:01:12 rails.1   |  | lib/foreman/middleware/logging_context_session.rb:22:in `call'
09:01:12 rails.1   |  | lib/foreman/middleware/logging_context_request.rb:11:in `call'
09:01:12 rails.1   | 2019-10-15T09:01:12 [I|app|a92b7838]   Rendered images/_list.html.erb (201.9ms)
09:01:12 rails.1   | 2019-10-15T09:01:12 [I|app|a92b7838] Completed 200 OK in 26043ms (Views: 219.2ms | ActiveRecord: 5.8ms)
09:01:12 rails.1   |  | 

Expected results:

VM should be Associate.

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 about 5 years ago

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

Updated by Aditi Puntambekar about 5 years ago

  • Status changed from New to Resolved
  • Pull request https://github.com/theforeman/foreman_azure_rm/pull/43 added
Actions

Also available in: Atom PDF