Bug 754934

Summary: Error message changed - try to remove provider "Red Hat"
Product: [Retired] Katello Reporter: Garik Khachikyan <gkhachik>
Component: ClientAssignee: Lukas Zapletal <lzap>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: inecas, mkoci
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-19 17:29:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 766906, 768390    

Description Garik Khachikyan 2011-11-18 09:33:53 UTC
Description of problem:
since last builds seems there is "changed" the error message returning back during provider delete of "Red Hat". now it says:
---
User admin is not allowed to access api/providers/destroy

Version-Release number of selected component (if applicable):
katello-0.1.108-2.el6.x86_64
katello-cli-0.1.13-1.git.0.28ff7d5.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. try to invoke: `provider delete --org ACME_Corporation --name "Red Hat"`
2.
3.
  
Actual results:
Error is: User admin is not allowed to access api/providers/destroy

Expected results:
"Error while deleting provider [ Red Hat ]: Red Hat provider can not be deleted,"

Additional info:

Comment 1 Ivan Necas 2011-11-18 09:46:06 UTC
Aligned with UI, we unified the way that red hat provider is checked before deleting and this way doesn't provide custom error messages yet.

I will discuss with UI team the best way to handle this.

Comment 2 Bryan Kearney 2011-12-15 15:02:04 UTC
this looks like a permissions issue.

Comment 3 Lukas Zapletal 2012-01-19 17:29:33 UTC
If the provider is "Red Hat" type, there is hardcoded permission that does not allow to delete it. Its a feature. For now it is designed this way, the error message is not nice, but this is it for V1.

[root@ofed katello]# kk provider delete --org ACME_Corporation --name "Red Hat"
User admin is not allowed to access api/providers/destroy