Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1728253

Summary: katello-remove does not remove yum versionlock
Product: Red Hat Satellite Reporter: Peter Dragun <pdragun>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: dchaudha, kgaikwad, mbacovsk, mvanderw, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-01 16:28:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Dragun 2019-07-09 12:55:09 UTC
Description of problem:
katello-remove does not remove yum versionlock, causing problems with installation after satellite removal

Version-Release number of selected component (if applicable):
Satellite 6.6 snap 10

How reproducible:
always

Steps to Reproduce:
1.have existing installation of Satellite
2.run katello-remove
3.attempt to install for example capsule

Actual results:
Package not found even though all needed repos are enabled.
The following message is shown:
Excluding 406 updates due to versionlock (use "yum versionlock status" to show them)

Expected results:
katello-remove deletes versionlock, further installations are not blocked

Additional info:

Comment 3 Martin Bacovsky 2019-08-07 12:26:00 UTC
Possible workaround is to call 

 $ foreman-maintain packages unlock

prior running katello-remove

Comment 4 Kavita 2020-06-01 16:28:21 UTC
Hello,

katello-remove is deprecated in satellite 6.7 and provided workaround in comment 3 so closing this BZ with  WONTFIX.

Refer the document - https://access.redhat.com/documentation/en-us/red_hat_satellite/6.7/html-single/release_notes/index#removed_functionality