Project

General

Profile

Actions

Bug #11928

closed

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

Added by Christine Fouant about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1265165
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):

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)

Has duplicate Katello - Bug #11909: 'Name can't be blank' error under parameter tab, on creating a hostgroup with activation-keyDuplicate09/22/2015Actions
Actions #1

Updated by The Foreman Bot about 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5497 added
  • Pull request deleted ()
Actions #2

Updated by Eric Helms about 9 years ago

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

Updated by Christine Fouant about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Eric Helms over 8 years ago

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

Also available in: Atom PDF