Project

General

Profile

Actions

Bug #27303

closed

VM edit fails as 'NoMethodError in Hosts#edit'

Added by Vijay Singh almost 5 years ago. Updated over 4 years ago.

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

Description

VM edit fails as 'NoMethodError in Hosts#edit'

Steps:

Hosts => Click on host => Edit

Traceback:


NoMethodError in Hosts#edit
Showing /home/rootazure/foreman_azure_rm/app/views/compute_resources_vms/form/azurerm/_base.html.erb where line #87 raised:

undefined method `location' for #<ForemanAzureRM::AzureRMCompute:0x007f3106659210>
Extracted source (around line #29):
27
28
29
30
31
32

    def region
      @azure_vm.location
    end

    def region=(setregion)

Trace of template inclusion: app/views/hosts/_compute_detail.html.erb, app/views/hosts/_compute.html.erb, app/views/hosts/_unattended.html.erb, app/views/hosts/_form.html.erb, app/views/hosts/edit.html.erb

Rails.root: /home/rootazure/foreman

Files

VM.png View VM.png 53.7 KB Virtual Machine Vijay Singh, 08/13/2019 09:18 AM
vm1.png View vm1.png 73.1 KB Interface Vijay Singh, 08/13/2019 09:18 AM

Related issues 2 (0 open2 closed)

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

Actions
Related to AzureRM - Bug #27952: Values lost on edit page (host/ compute profile)ClosedAditi PuntambekarActions
Actions #1

Updated by Vijay Singh almost 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 almost 5 years ago

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

Seems to be solved with latest changes in the PR.

Updated by Vijay Singh over 4 years ago

Vijay Singh wrote:

VM edit fails as 'NoMethodError in Hosts#edit'

Steps:

Hosts => Click on host => Edit

Traceback:

[...]

Able to click on edit however 'Virtual Machine' and 'Interface' shows values deselected .

Actions #4

Updated by Aditi Puntambekar over 4 years ago

  • Related to Bug #27952: Values lost on edit page (host/ compute profile) added
Actions #5

Updated by Aditi Puntambekar over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF