Project

General

Profile

Actions

Bug #8590

closed

undefined method `template' for nil:NilClass when listing VMs

Added by Dominic Cleal about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Something in vSphere instances seems to have no hardware "config" so triggers the following stack trace when listing VMs for the compute resource:

Operation FAILED: undefined method `template' for nil:NilClass
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:28:in `block in allvmsbyfolder'
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:23:in `each'
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:23:in `allvmsbyfolder'
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:25:in `block in allvmsbyfolder'
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:23:in `each'
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:23:in `allvmsbyfolder'
/usr/share/foreman/app/services/fog_extensions/vsphere/mini_servers.rb:13:in `all'
/usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:5:in `index'

(reported by satar on #theforeman)

Actions

Also available in: Atom PDF