Bug 1240716 - Changing hostgroup puppet class or parameter results in error "Operation FAILED: Validation failed: Taxonomy has already been taken"
Summary: Changing hostgroup puppet class or parameter results in error "Operation FAIL...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Organizations and Locations
Version: 6.0.8
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Kavita
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-07 14:51 UTC by Mahesh Taru
Modified: 2022-10-05 19:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 18:05:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 13620 0 'Normal' 'New' 'Changing hostgroup puppet class or parameter results in error "Operation FAILED: Validation failed: Taxonomy has alread... 2019-12-04 08:47:38 UTC

Description Mahesh Taru 2015-07-07 14:51:59 UTC
Description of problem:
User without administrator permission but having role with appropriate permissions results in error "Operation FAILED: Validation failed: Taxonomy has already been taken" when trying to make changes to hostgroup which is associated to host system.

Version-Release number of selected component (if applicable):
6.0.8

How reproducible:
Not always

Steps to Reproduce:
1. Create host group
2. Associate host with host group
3. Create role with permissions

Host Group 	view_hostgroups, create_hostgroups, edit_hostgroups, destroy_hostgroups 		 	
Host/managed 	view_hosts, create_hosts, edit_hosts, destroy_hosts

Host class 	edit_classes

Almost similar to Manager role.

4. Try to edit the host group and make changes to puppet class & parameters & submit

Actual results:

Fails with error "Operation FAILED: Validation failed: Taxonomy has already been taken".

Expected results:

The changes should get submitted without any error as the required permissions are already granted in assigned role.

Additional info:
Following entries found in production logs:
**********************
Processing by HostgroupsController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"lORs7aw1sdLZD/mfq+YSC/A6TVrzpLf0BqdUo2Tm+Ns=", "hostgroup"=>{"name"=>"mosaic-rhel-7-desktop-rolling", "env
ironment_id"=>"6", "content_source_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>["", "12", "21", "20", "19", "31", "32", "
10", "18", "26", "22", "16", "15", "11", "2", "8", "9", "30", "23"], "domain_id"=>"1", "subnet_id"=>"", "realm_id"=>"", "architecture_id"=>"1", "operatingsys
tem_id"=>"3", "medium_id"=>"7", "ptable_id"=>"11", "root_pass"=>"[FILTERED]", "lookup_values_attributes"=>"[FILTERED]", "group_parameters_attributes"=>{"0"=>
{"name"=>"kt_activation_keys", "value"=>"[FILTERED]", "_destroy"=>"false", "nested"=>"", "id"=>"50"}, "1"=>{"name"=>"kt_cv", "value"=>"[FILTERED]", "_destroy
"=>"false", "nested"=>"", "id"=>"53"}, "2"=>{"name"=>"kt_env", "value"=>"[FILTERED]", "_destroy"=>"false", "nested"=>"", "id"=>"52"}, "3"=>{"name"=>"kt_org",
 "value"=>"[FILTERED]", "_destroy"=>"false", "nested"=>"", "id"=>"51"}}, "location_ids"=>["4", ""], "organization_ids"=>["6", ""]}, "kt_environment_id"=>"UNC
C-ENGR/Library", "kt_activation_keys"=>"Mosaic-RHEL-7-Desktop-Rolling-8f10cec", "commit"=>"Submit", "id"=>"14-mosaic-rhel-7-desktop-rolling"}
Operation FAILED: Validation failed: Taxonomy has already been taken
  Rendered common/500.html.erb within layouts/application (5.6ms)
  Rendered layouts/base.html.erb (1.4ms)
Completed 500 Internal Server Error in 328ms (Views: 9.8ms | ActiveRecord: 15.5ms)
***********************

- Re-adding below filters fixed this issue in this case but this is temporary solution.

Host Group 	view_hostgroups, create_hostgroups, edit_hostgroups, destroy_hostgroups 		 	
Host/managed 	view_hosts, create_hosts, edit_hosts, destroy_hosts

Comment 2 RHEL Program Management 2015-07-07 15:04:47 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2016-02-09 14:16:06 UTC
Created redmine issue http://projects.theforeman.org/issues/13620 from this bug

Comment 5 Bryan Kearney 2016-02-09 15:12:41 UTC
Upstream bug component is Multi Org

Comment 9 Satellite Program 2017-01-05 16:09:12 UTC
Upstream bug assigned to kgaikwad

Comment 11 Bryan Kearney 2018-09-04 18:05:13 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


Note You need to log in before you can comment on or make changes to this bug.