Bug 1024361 - Removed packages from updated local repo are still available
Removed packages from updated local repo are still available
Status: CLOSED CURRENTRELEASE
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.0.2
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-29 10:06 EDT by Hayk Hovsepyan
Modified: 2016-10-07 11:45 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-10-07 11:45:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Hayk Hovsepyan 2013-10-29 10:06:40 EDT
Description of problem:
When we have repository on local machine and custom repo created on it, after deleting some packages from local repo, regenerating it and syncing custom repo from katello side, still it lists that packages in "package list --repo --org --product" CLI command.

Version-Release number of selected component (if applicable):
Katello-Katello-Installation-RegisterRHNClassic-1.1-4.noarch
Katello-Katello-Configuration-KatelloClient-1.1-53.noarch
pulp-rpm-handlers-2.3.0-0.24.beta.el6sat.noarch
foreman-postgresql-1.3.0-20.el6sat.noarch
pulp-selinux-2.3.0-0.24.beta.el6sat.noarch
candlepin-scl-rhino-1.7R3-1.el6_4.noarch
python-ldap-2.3.10-1.el6.x86_64
openldap-2.4.23-31.el6.x86_64
pulp-rpm-plugins-2.3.0-0.24.beta.el6sat.noarch
ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
candlepin-scl-quartz-2.1.5-5.el6_4.noarch
candlepin-tomcat6-0.8.25-1.el6sam.noarch
signo-katello-0.0.23-2.el6sat.noarch
katello-glue-candlepin-1.4.6-49.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
Katello-Katello-Installation-Satellite6Latest-1.0-13.noarch
candlepin-scl-runtime-1-5.el6_4.noarch
apr-util-ldap-1.3.9-3.el6_0.1.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
foreman-1.3.0-20.el6sat.noarch
katello-cli-1.4.3-27.el6sat.noarch
katello-configure-1.4.7-7.el6sat.noarch
pulp-puppet-plugins-2.3.0-0.24.beta.el6sat.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
pulp-nodes-parent-2.3.0-0.24.beta.el6sat.noarch
candlepin-scl-1-5.el6_4.noarch
candlepin-0.8.25-1.el6sam.noarch
candlepin-selinux-0.8.25-1.el6sam.noarch
elasticsearch-0.19.9-8.el6sat.noarch
katello-common-1.4.6-49.el6sat.noarch
katello-selinux-1.4.4-4.el6sat.noarch
katello-glue-pulp-1.4.6-49.el6sat.noarch
katello-all-1.4.6-49.el6sat.noarch
katello-configure-foreman-1.4.7-7.el6sat.noarch
ruby193-rubygem-ldap_fluff-0.2.2-2.el6sat.noarch
foreman-proxy-1.3.0-3.el6sat.noarch
candlepin-cert-consumer-poseidon.usersys.redhat.com-1.0-1.noarch
katello-agent-1.4.4-3.el6sat.noarch
katello-cli-common-1.4.3-27.el6sat.noarch
katello-certs-tools-1.4.4-1.el6sat.noarch
pulp-server-2.3.0-0.24.beta.el6sat.noarch
pulp-nodes-common-2.3.0-0.24.beta.el6sat.noarch
katello-glue-elasticsearch-1.4.6-49.el6sat.noarch
katello-1.4.6-49.el6sat.noarch
katello-foreman-all-1.4.6-49.el6sat.noarch
katello-qpid-client-key-pair-1.0-1.noarch
Katello-Katello-Installation-HammerCLI-1.0-9.noarch
signo-0.0.23-2.el6sat.noarch
Katello-Katello-Sanity-ImportKeys-1.2-1.noarch


How reproducible:
always

Steps to Reproduce:
1. Create local repo in "/var/www/html/testrepo" directory. For this we need to install "createrepo", download some RPMs for example from zoo repo, and execute "createrepo /var/www/html/testrepo"
2. Create custom provider/product/repo and link local repo url there "http://localhost/testrepo". Sync repo.
3. Try to download new RPMs and remove some RPMs from local repo. Again execute "createrepo /var/www/html/testrepo" command. Sync custom repo in katello side.
4. Try to list packages from custom repo: "package list --repo $repo --org $org --product $prod". You will see that removes RPMs are still there.

Actual results:
deleted RPMs are still in repo package list

Expected results:
they should be removed

Additional info:
in repodata ".....filelists.xml.gz" file removed RPMs are not included after ""createrepo /var/www/html/testrepo"
Comment 4 Justin Sherrill 2016-10-07 11:45:26 EDT
Satellite 6.2 now provides a sync option at the repository level called 'Mirror on Sync'.  This will do exactly what you want.  It is enabled by default on newly created repositories (after upgrading to 6.2), but will need to be turned on for existing repos on the Repository Details page.

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