Red Hat Bugzilla – Bug 862753
Unable to remove provider: promoted repos exist (actually they don't)
Last modified: 2015-01-04 16:59:40 EST
Description of problem:
In current version of CFSE 1.1 puddle it is impossible to remove a provider that has repos synced (but *NOT* promoted). CLI complains:
Provider cannot be deleted since one of its products or repositories has already been promoted. Using a changeset, please delete the repository from existing environments before deleting it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create provider, product, add 2 repos
2.sync that repos
3.try to remove provider
no issues. Provider should get removed. proper way of handling checks on repos being promoted.
it's a regression
So this worked for me on master. Here's what I ran:
katello provider create --org=ACME_Corporation --name=bz
katello product create --org=ACME_Corporation --provider=bz --name=zoo
katello repo create --product=zoo --org=ACME_Corporation --url=http://mmccune.fedorapeople.org/discovery/zoo/ --name=zoo
katello repo create --product=zoo --org=ACME_Corporation --url=http://mmccune.fedorapeople.org/discovery/zoo_ks2/ --name=zoo_ks2
katello repo synchronize --org=ACME_Corporation --product=zoo --name=zoo
katello repo synchronize --org=ACME_Corporation --product=zoo --name=zoo_ks2
katello provider delete --org=ACME_Corporation --name=bz
And the final result:
Deleted provider [ bz ]
Removing a provider worked in the web UI too.
Garik, please reopen this if you're able to reproduce with the next puddle. Thanks.
getting rid of 6.0.0 version since that doesn't exist