Project

General

Profile

Bug #2296

Hostgroup fields not populating when parent fields are selected

Added by Jason Montleon about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

If I select a domain when creating a Hostgroup the subnet field does not become available for selection. But if I save, or attempt to save without entering a name, the field becomes selectable.

The same thing happens on the Operating System tab. If I select an Arch the Operating Systems Field does not become selectable unless I save or attempt to save without a name. Likewise when I pick the Operating System the Media and Partition Table fields do not become populated or selectable unless I save or attempt to save.

This is happening on a clean install of 1.1 stable3 with one Location and over a dozen Organizations, though I have a test server that has been upgraded a number of times with one Location and 2 Organizations that does not exhibit this behavior.

hostgroup-fix.patch hostgroup-fix.patch 18.7 KB Jason Montleon, 03/09/2013 05:31 PM

Associated revisions

Revision 04157eed (diff)
Added by Amos Benari almost 6 years ago

fixes #2296 Hostgroup subnet field was not enabled after selecting domain

Revision 5f4ab7b8 (diff)
Added by Amos Benari almost 6 years ago

fixes #2296 Hostgroup subnet field was not enabled after selecting domain
(cherry picked from commit 04157eeddffa70104c82d7b6529c3a5aad3daefb)

History

#1 Updated by Jason Montleon about 6 years ago

The patch I just attached is more or less the same as for issue 2222, save one hunk that fails to apply against 1.1 stables app/helpers/layout_helper.rb.

One applied the subnet and os issues are resolved.

#2 Updated by Jason Montleon almost 6 years ago

This is still present in 1.2-RC1

#3 Updated by Ohad Levy almost 6 years ago

  • Category set to Web Interface
  • Assignee set to Amos Benari
  • Target version set to 1.2.0

similar fix to 66afbc33721b which handle hosts should be applied to hostgroups.

#4 Updated by Ohad Levy almost 6 years ago

side effect is an unusable error message:

Started POST "/foreman/hostgroups" for 127.0.0.1 at 2013-06-04 09:43:28 -0400
Processing by HostgroupsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"2aMzo6DbPV6vgYHtNcPVPpb04gzGDAHqb/k5vAfWA5s=", "hostgroup"=>{"parent_id"=>"", "name"=>"qegroup2", "environment_id"=>"7", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>[""], "domain_id"=>"3", "subnet_id"=>"1", "architecture_id"=>"1", "operatingsystem_id"=>"1", "medium_id"=>"6", "ptable_id"=>"1", "root_pass"=>"[FILTERED]", "group_parameters_attributes"=>{"1370353408723"=>{"name"=>"kt_activation_keys", "value"=>"[FILTERED]", "_destroy"=>"kt_activation_keys", "nested"=>""}, "1370353408733"=>{"name"=>"kt_org", "value"=>"[FILTERED]", "_destroy"=>"kt_org", "nested"=>""}, "1370353408739"=>{"name"=>"kt_env", "value"=>"[FILTERED]", "_destroy"=>"kt_env", "nested"=>""}, "1370353408745"=>{"name"=>"kt_cv", "value"=>"[FILTERED]", "_destroy"=>"kt_cv", "nested"=>""}}, "organization_ids"=>["", "", "2"]}, "kt_activation_keys"=>"ActivationKey1", "commit"=>"Submit"}
Failed to save: 
  Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)

notice the Failed to save without a useful error message.

#5 Updated by Amos Benari almost 6 years ago

  • Status changed from New to Ready For Testing

#7 Updated by Amos Benari almost 6 years ago

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

Also available in: Atom PDF