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 #1

Updated by Ondřej Ezr about 3 years ago

  • Subject changed from Unable to create compute profile for specific vmware compute resource to Unable to create compute profile for specific vmware compute resource
  • Status changed from New to Duplicate
  • Bugzilla link deleted (1856626)

Dup of #28155

Actions #2

Updated by Ondřej Ezr about 3 years ago

  • Is duplicate of Bug #28155: Cannot view Compute-Profiles from a specific Compute-Resource added
Actions #3

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases 3.2.0 added
Actions #4

Updated by Ewoud Kohl van Wijngaarden almost 3 years ago

  • Target version set to 3.1.1
  • Triaged changed from No to Yes
  • Fixed in Releases 3.1.1 added
Actions

Also available in: Atom PDF