Project

General

Profile

Actions

Bug #30550

closed

Unable to create compute profile for specific vmware compute resource

Added by Shira Maximov over 4 years ago. Updated almost 3 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1856626

Unable to create a compute profile for a specific vmware compute resource. The compute resource is a vmware 6.5U2 cluster connecting via vsphere 6.7U3. When trying to create the compute profile, receiving the following error message:
Oops, we're sorry but something went wrong undefined method `gsub' for nil:NilClass

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'

a suggested fix in the customer case:
Edit the file:

path.slice((path.index(datacenter) + datacenter.length + 1)..-1).gsub('/', ' / ')

Try changing to

path.slice((path.index(datacenter) + datacenter.length + 1)..-1).to_s.gsub('/', ' / ')

Restart the Satellite services.

  1. katello-service restart

Now try to make changes to the Compute profile and share us your observations.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #28155: Cannot view Compute-Profiles from a specific Compute-ResourceClosedBernhard SuttnerActions
Actions

Also available in: Atom PDF