Bug #30550
closedUnable to create compute profile for specific vmware compute resource
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.
- katello-service restart
Now try to make changes to the Compute profile and share us your observations.
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
Updated by Ondřej Ezr about 3 years ago
- Is duplicate of Bug #28155: Cannot view Compute-Profiles from a specific Compute-Resource added
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