Bug #17861
closedCannot edit host operating system
Description
To reproduce:
1. create a host with an operating system with synced media
2. edit the host
3. change the operating system: no matter which OS you choose, synced media will not be available.
I believe this happens because of app/assets/javascripts/host_and_hostgroup_edit.js , as
attribute_hash(['operatingsystem_id', 'organization_id', 'location_id', 'content_view_id',
'lifecycle_environment_id', 'content_source_id', 'architecture_id', 'hostgroup_id',
'medium_id', 'kickstart_repository_id']);
isn't able to pick content_view_id, lifecycle_environment_id and kickstart_repository_id (all of the attributes that are set via facets).
Updated by Daniel Lobato Garcia over 8 years ago
When I debugged the helper, the problem becomes more obvious - we are not sending some parameters to the controller, particularly the ones most important to get synced repositories:
params
=> {"host"=>
{"operatingsystem_id"=>"3",
"organization_id"=>"4",
"location_id"=>"2",
"content_view_id"=>"",
"lifecycle_environment_id"=>"",
"content_source_id"=>"1",
"architecture_id"=>"1",
"hostgroup_id"=>"1",
"medium_id"=>"",
"kickstart_repository_id"=>""},
"controller"=>"hosts",
"action"=>"os_selected",
"locale"=>"en"}
Updated by Justin Sherrill over 8 years ago
- Assignee set to Justin Sherrill
- Translation missing: en.field_release set to 188
Updated by Justin Sherrill about 8 years ago
- Translation missing: en.field_release deleted (
188)
Not able to reproduce on 3.3, removing release. Daniel, are you still able to reproduce on master?
Updated by Eric Helms about 8 years ago
- Translation missing: en.field_release set to 166
Updated by Justin Sherrill about 8 years ago
- Status changed from New to Rejected
Closing this due to inactivity, feel free to reopen if you are still seeing this. Thanks!