Project

General

Profile

Actions

Bug #11909

closed

'Name can't be blank' error under parameter tab, on creating a hostgroup with activation-key

Added by Sachin Ghai about 9 years ago. Updated about 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Name can't be blank error under parameter tab, on creating a hostgroup with activation-key

Description of problem:
I was trying to create a hostgroup and associated activation_key. But when I submitted the form, UI raises error under 'Parameters' tab. Name can't be blank. I believe activation_key param should auto set.

production.log:

| Started POST "/hostgroups" for 10.65.193.85 at 2015-09-22 14:44:00 +0530
2015-09-22 14:44:00 [app] [I] Processing by HostgroupsController#create as */*
2015-09-22 14:44:00 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"0hvMpUAmzZlcOWpOJrzmHtdu+y5pHK8CQ47zgU4F13c=", "hostgroup"=>{"name"=>"sgroup", "lifecycle_environment_id"=>"2", "content_view_id"=>"2", "environment_id"=>"", "content_source_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "domain_id"=>"1", "subnet_id"=>"1", "realm_id"=>"", "architecture_id"=>"1", "operatingsystem_id"=>"2", "medium_id"=>"8", "root_pass"=>"[FILTERED]", "group_parameters_attributes"=>{"0"=>{"name"=>"", "value"=>"[FILTERED]", "hidden_value"=>"[FILTERED]", "_destroy"=>"false"}, "1442913240618"=>{"name"=>"", "value"=>"[FILTERED]", "hidden_value"=>"[FILTERED]", "_destroy"=>"false"}}, "location_ids"=>["", "2"], "organization_ids"=>["", "1"], "id"=>""}, "kt_activation_keys"=>"rhel67_ak"}
2015-09-22 14:44:00 [app] [I] Failed to save: Name can't be blank, Group parameters Please ensure the following parameters name are unique
2015-09-22 14:44:01 [app] [I] Rendered common/os_selection/_architecture.html.erb (5.8ms)
2015-09-22 14:44:01 [app] [I] Rendered common/os_selection/_operatingsystem.html.erb (38.7ms)
2015-09-22 14:44:01 [app] [I] Rendered common/os_selection/_initial.html.erb (51.6ms)
2015-09-22 14:44:01 [app] [I] Rendered puppetclasses/_class_parameters.html.erb (0.0ms)
2015-09-22 14:44:01 [app] [I] Rendered puppetclasses/_classes_parameters.html.erb (18.6ms)
2015-09-22 14:44:01 [app] [I] Rendered common_parameters/_puppetclass_parameter.html.erb (5.9ms)
2015-09-22 14:44:01 [app] [I] Rendered common_parameters/_puppetclasses_parameters.html.erb (9.0ms)
2015-09-22 14:44:01 [app] [I] Rendered common_parameters/_parameter.html.erb (3.7ms)
2015-09-22 14:44:01 [app] [I] Rendered common_parameters/_parameter.html.erb (3.2ms)
2015-09-22 14:44:01 [app] [I] Rendered common_parameters/_parameter.html.erb (2.7ms)
2015-09-22 14:44:01 [app] [I] Rendered common_parameters/_parameters.html.erb (13.8ms)
2015-09-22 14:44:01 [app] [I] Rendered taxonomies/_loc_org_tabs.html.erb (16.3ms)
2015-09-22 14:44:01 [app] [I] Rendered hostgroups/_form.html.erb (237.8ms)
2015-09-22 14:44:01 [app] [I] Rendered hostgroups/new.html.erb within layouts/application (238.9ms)
2015-09-22 14:44:01 [app] [I] Rendered home/_user_dropdown.html.erb (4.3ms)
2015-09-22 14:44:01 [app] [I] Read fragment views/tabs_and_title_records-3 (0.4ms)
2015-09-22 14:44:01 [app] [I] Rendered home/_topbar.html.erb (7.2ms)
2015-09-22 14:44:01 [app] [I] Rendered layouts/base.html.erb (9.7ms)
2015-09-22 14:44:01 [app] [I] Completed 200 OK in 387ms (Views: 225.4ms | ActiveRecord: 48.6ms)

Version-Release number of selected component (if applicable):
foreman-1.10.0-0.develop.201509180916git04fa19d.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.3.0-2.201509101340gitff06fcb.el7.noarch
foreman-release-1.10.0-0.develop.201509180916git04fa19d.el7.noarch
katello-installer-base-2.4.0-1.nightly.201509040043gitb37b92b.el7.noarch
katello-server-ca-1.0-1.noarch
katello-installer-2.4.0-1.nightly.201509040043gitb37b92b.el7.noarch
katello-service-2.4.0-6.nightly.el7.noarch
katello-2.4.0-6.nightly.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Create a CV/activation-key
2. Create a hostgroup
3. Associate activation-key
4. submit form

Actual results:
2015-09-22 14:44:00 [app] [I] Failed to save: Name can't be blank, Group parameters Please ensure the following parameters name are unique

Why this a info [I] type message. shouldn't be an error ?

Expected results:
activation-key param should auto set and form should be submitted successfuly

Additional info:


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #11928: 'Name can't be blank' error under parameter tab, on creating a hostgroup with activation-keyClosedChristine Fouant09/22/2015Actions
Actions #1

Updated by Dominic Cleal about 9 years ago

  • Project changed from Foreman to Katello
  • Category deleted (Host groups)
  • Triaged set to No

Guessing this is some client-side extension of the form, since the parameters clearly show the name is blank.

Actions #2

Updated by Eric Helms about 9 years ago

  • Translation missing: en.field_release set to 78
  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 78 to 113
Actions #4

Updated by Eric Helms over 8 years ago

  • Status changed from New to Duplicate
Actions #5

Updated by Eric Helms over 8 years ago

  • Is duplicate of Bug #11928: 'Name can't be blank' error under parameter tab, on creating a hostgroup with activation-key added
Actions

Also available in: Atom PDF