Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 862753 - Unable to remove provider: promoted repos exist (actually they don't)
Summary: Unable to remove provider: promoted repos exist (actually they don't)
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-03 13:07 UTC by Garik Khachikyan
Modified: 2015-01-04 21:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-15 15:44:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Garik Khachikyan 2012-10-03 13:07:49 UTC
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):
katello-1.1.12-12.el6cf.noarch
katello-cli-1.1.8-6.el6cf.noarch
(puddle: 2012-10-02.2)

How reproducible:
always

Steps to Reproduce:
through CLI:
1.create provider, product, add 2 repos
2.sync that repos
3.try to remove provider
  
Actual results:
error above

Expected results:
no issues. Provider should get removed. proper way of handling checks on repos being promoted.

Additional info:
it's a regression

Comment 2 David Davis 2012-10-15 14:06:44 UTC
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 ]

Comment 3 David Davis 2012-10-15 14:14:54 UTC
Removing a provider worked in the web UI too.

Comment 6 David Davis 2012-10-15 15:44:51 UTC
Garik, please reopen this if you're able to reproduce with the next puddle. Thanks.

Comment 7 Mike McCune 2013-08-16 18:11:57 UTC
getting rid of 6.0.0 version since that doesn't exist


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