Project

General

Profile

Actions

Bug #9473

closed

Unable to update Host Group

Added by Bryce Camp almost 10 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After upgrading from Katello 2.0 to 2.1 with no errors, I am unable to edit Host Groups. I also receive error "Error while loading activation keys from Katello" whenever I open the Host Groups page.

Processing by Katello::Api::V2::ActivationKeysController#index as */*
Parameters: {"content_view_id"=>"5", "api_version"=>"v2", "environment_id"=>"Inherit parent (CentOS_7_x86-64_Default_Content_View)"}
ActiveRecord::RecordNotFound: Couldn't find Katello::KTEnvironment with id=Inherit parent (CentOS_7_x86-64_Default_Content_View)

Completed 404 Not Found in 15ms (Views: 0.4ms | ActiveRecord: 0.4ms)
Processing by HostgroupsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"aXuOa3/+1RWuLuJ4uwuRY8k4bxO0WRIhL9PoFyz0Ev4=", "hostgroup"=>{"parent_id"=>"1", "name"=>"HG-RESS", "lifecycle_environment_id"=>"Inherit parent (CentOS_7_x86-64_Default_Content_View)", "content_view_id"=>"5", "environment_id"=>"", "content_source_id"=>"", "compute_profile_id"=>"", "puppet_ca_proxy_id"=>"", "puppet_proxy_id"=>"", "puppetclass_ids"=>[""], "domain_id"=>"", "subnet_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "ptable_id"=>"", "root_pass"=>"[FILTERED]", "location_ids"=>["2", ""], "organization_ids"=>["1", ""], "id"=>"10"}, "parent_parameter_0_key"=>"", "parent_parameter_0_value"=>"[FILTERED]", "kt_activation_keys"=>"", "commit"=>"Submit", "id"=>"10-HG-Default-HG-RESS"}
Rendered common/404.html.erb within layouts/application (1.1ms)
Rendered layouts/base.html.erb (1.2ms)
Completed 404 Not Found in 111ms (Views: 3.7ms | ActiveRecord: 66.9ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.1/app/views/katello/api/v2/products/index.json.rabl within katello/api/v2/layouts/collection (8269.5ms)

  1. rpm -q foreman
    foreman-1.7.2-1.el7.noarch
  2. rpm -q katello
    katello-2.1.0-2.el7.noarch

Files

foreman-debug-Qc5Dv.tar.xz foreman-debug-Qc5Dv.tar.xz 882 KB Bryce Camp, 02/19/2015 02:21 PM

Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #9462: When using nested Host Groups, content view not displayed in Operating System > MediaClosedJustin Sherrill02/19/2015Actions
Actions #1

Updated by Bryce Camp almost 10 years ago

This is the error logged when I try to edit a host group:

Processing by HostgroupsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"aXuOa3/+1RWuLuJ4uwuRY8k4bxO0WRIhL9PoFyz0Ev4=", "hostgroup"=>{"parent_id"=>"1", "name"=>"HG-RESS", "lifecycle_environment_id"=>"Inherit parent (CentOS_7_x86-64_Default_Content_View)", "content_view_id"=>"5", "environment_id"=>"", "content_source_id"=>"", "compute_profile_id"=>"", "puppet_ca_proxy_id"=>"", "puppet_proxy_id"=>"", "puppetclass_ids"=>[""], "domain_id"=>"", "subnet_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "ptable_id"=>"", "root_pass"=>"[FILTERED]", "location_ids"=>["2", "", "3"], "organization_ids"=>["1", ""], "id"=>"10"}, "parent_parameter_0_key"=>"", "parent_parameter_0_value"=>"[FILTERED]", "kt_activation_keys"=>"", "commit"=>"Submit", "id"=>"10-HG-Default-HG-RESS"}
Rendered common/404.html.erb within layouts/application (2.4ms)
Rendered layouts/base.html.erb (1.5ms)
Completed 404 Not Found in 73ms (Views: 8.0ms | ActiveRecord: 18.7ms)

I can create a new un-nested host group, but not one that is nested.

Actions #2

Updated by Bryce Camp almost 10 years ago

The issue is the content view and lifecycle environment. If I change them to something other than "inherited" everything works as expected

Actions #3

Updated by Eric Helms almost 10 years ago

  • Target version set to 66
  • Translation missing: en.field_release set to 34
  • Triaged changed from No to Yes
Actions #4

Updated by Eric Helms almost 10 years ago

  • Target version changed from 66 to 67
Actions #5

Updated by Eric Helms almost 10 years ago

  • Is duplicate of Bug #9462: When using nested Host Groups, content view not displayed in Operating System > Media added
Actions #6

Updated by Eric Helms almost 10 years ago

  • Status changed from New to Duplicate
Actions #7

Updated by Eric Helms almost 10 years ago

  • Translation missing: en.field_release deleted (34)
Actions #8

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF