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:
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.
this looks like a permissions issue.
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