Project

General

Profile

Bug #17861

Cannot edit host operating system

Added by Daniel Lobato Garcia over 5 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

History

#1 Updated by Daniel Lobato Garcia over 5 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"}

#2 Updated by Justin Sherrill over 5 years ago

  • Assignee set to Justin Sherrill
  • Legacy Backlogs Release (now unused) set to 188

#3 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) deleted (188)

Not able to reproduce on 3.3, removing release. Daniel, are you still able to reproduce on master?

#4 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

#5 Updated by Justin Sherrill over 5 years ago

  • Status changed from New to Rejected

Closing this due to inactivity, feel free to reopen if you are still seeing this. Thanks!

Also available in: Atom PDF