Project

General

Profile

Actions

Bug #2296

closed

Hostgroup fields not populating when parent fields are selected

Added by Anonymous almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
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.


Files

hostgroup-fix.patch hostgroup-fix.patch 18.7 KB Anonymous, 03/09/2013 05:31 PM
Actions #1

Updated by Anonymous almost 12 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.

Actions #2

Updated by Anonymous over 11 years ago

This is still present in 1.2-RC1

Actions #3

Updated by Ohad Levy over 11 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.

Actions #4

Updated by Ohad Levy over 11 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.

Actions #5

Updated by Amos Benari over 11 years ago

  • Status changed from New to Ready For Testing
Actions #7

Updated by Amos Benari over 11 years ago

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

Also available in: Atom PDF