Project

General

Profile

Actions

Bug #17861

closed

Cannot edit host operating system

Added by Daniel Lobato Garcia over 8 years ago. Updated almost 7 years ago.

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

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).

Actions #1

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"}
Actions #2

Updated by Justin Sherrill over 8 years ago

  • Assignee set to Justin Sherrill
  • Translation missing: en.field_release set to 188
Actions #3

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?

Actions #4

Updated by Eric Helms about 8 years ago

  • Translation missing: en.field_release set to 166
Actions #5

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!

Actions

Also available in: Atom PDF