Project

General

Profile

Actions

Bug #28155

closed

Cannot view Compute-Profiles from a specific Compute-Resource

Added by Joerg Hinz over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
Compute resources - VMware
Target version:
-
Difficulty:
medium
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

After upgradeing a few Foreman-releases (from 1.13 to 1.23 (all releases have been applied)), we now noticed a bit later, that all compute-profiles from ONE specific compute-resource cannot be view/edited in the GUI anymore.

Using "Infrastructure" -> "Compute Profiles" -> select one -> then the Compute Ressources are listed.

We have 5 VMware-Compute-Resources defined.

Selecting the non-problematic-ones show the menü to set up VM-specs.

Selecting the problematic Resource displays the error page with "Oops, we're sorry but something went wrong undefined method `gsub' for nil:NilClass", the full-trace starts with:

ActionView::Template::Error
undefined method `gsub' for nil:NilClass
/usr/share/foreman/app/models/concerns/fog_extensions/vsphere/folder.rb:6:in `to_label'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/form_options_helper.rb:805:in `value_for_collection'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/form_options_helper.rb:402:in `block in options_from_collection_for_select'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/form_options_helper.rb:401:in `map'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/form_options_helper.rb:401:in `options_from_collection_for_select'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/tags/collection_select.rb:23:in `render'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/form_options_helper.rb:204:in `collection_select'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/form_options_helper.rb:835:in `collection_select'
/usr/share/foreman/app/helpers/form_helper.rb:131:in `block in select_f'
/usr/share/foreman/app/helpers/form_helper.rb:379:in `block (3 levels) in field'
[...]

Is there any solution beside deleting the problematic resource (and all profiles with it)?

We would really appreciate a hint how to solve that issue.


Related issues 1 (0 open1 closed)

Has duplicate Foreman - Bug #30550: Unable to create compute profile for specific vmware compute resourceDuplicateActions
Actions

Also available in: Atom PDF