Bug 744191

Summary: Reject on removing "Red Hat" provider
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: katello-agentAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.1CC: inecas, mkoci
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:00:07 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: 747354    

Description Garik Khachikyan 2011-10-07 11:58:27 UTC
Description of problem:
Since the recent implementation of Katello UI there is seems a restriction not to be able to remove the provider "Red Hat" of type "redhat" at all.
But the API+CLI is still valid to do that. Please adjust it.

Version-Release number of selected component (if applicable):
katello-0.1.87-1.git.7.7fbebfc.fc15.noarch
katello-cli-0.1.10-1.git.585.a6c83c3.el6.noarch

How reproducible:
always 

Steps to Reproduce:
1. create an org - rhel6
2. try `provider delete --name "Red Hat" --org rhel6`
3.
  
Actual results:
it ends successfully, Red Hat provider gets removed. UI however blocks that functionality to delete the provider - only update of the url (even not the name).

Expected results:
So make possible to manage with "Red Hat" provider of an org with changing the url *only* (adjust with UI, i.e.)

Additional info:

Comment 1 Ivan Necas 2011-10-11 14:55:49 UTC
Fixed in commit 4312a6fdfc5e67ddf91841ca29a2c922432afb1a and 8288e18607eeced9444ff8a45f33acd42c2265fb

Cli now allows only updating the url for the Red Hat provider, no deletion.

Comment 2 Garik Khachikyan 2011-10-21 13:01:38 UTC
# VERIFIED

Now the proper message "Error while deleting provider [ Red Hat ]: Red Hat provider can not be deleted," appears on execution of:
---
provider delete --name "Red Hat" --org org1

update of name is impossible with:
---
katello> provider update --org org1 --name "Red Hat" --new_name test
Validation failed: the following attributes can not be updated for the Red Hat provider: [ name ]

and only the update of url is allowed there.

Comment 5 Mike McCune 2013-08-16 18:07:40 UTC
getting rid of 6.0.0 version since that doesn't exist