Created attachment 598448 [details] Screen log Description of problem: Syncing a CDS with un-associated repositories doesn't seem to remove the contents from it---the rpms are still present. Details in screen log. Version-Release number of selected component (if applicable): RHEL-6.3-RHUI-2.1-20120705.0-Server-x86_64-DVD1.iso How reproducible: Always Steps to Reproduce: 1. Associate Red Hat (and a custom) repository with a CDS 2. Synchronize CDS cluster nodes 3. Un-associate the repository from the CDS cluster 4. Synchronize CDS cluster nodes 5. on cds nodes /var/lib/pulp-cds/packages/ does still contain "unassociated" rpms Actual results: Contents isn't removed with un-associated repository CDS synchronisation Expected results: Contents is removed when syncing CDSes with some repositories un-associated Additional info: ### Trace in /var/log/pulp-cds/gofer.log: 2012-07-16 08:43:22,358 [INFO][worker-0] sync() @ cdslib.py:120 - Received sync call 2012-07-16 08:43:22,358 [INFO][worker-0] sync() @ cdslib.py:121 - {'repos': [], 'repo_base_url': 'https://ip-10-2-198-125.ec2.internal//pulp/repos', 'repo_cert_bundles': {}, 'cluster_id': 'cluster2', 'cluster_members': ['ip-10-189-149-195.ec2.internal'], 'server_ca_cert': '-----BEGIN CERTIFICATE-----\nMIIDUzCCAjugAwIBAgIJAJhkwUGC2wbEMA0GCSqGSIb3DQEBBQUAMEAxCzAJBgNV\nBAYTAlVTMQswCQYDVQQIDAJOQzEQMA4GA1UEBwwHUmFsZWlnaDESMBAGA1UEAwwJ\nbG9jYWxob3N0MB4XDTEyMDcxMjEwNTgzMFoXDTEzMDcxMjEwNTgzMFowQDELMAkG\nA1UEBhMCVVMxCzAJBgNVBAgMAk5DMRAwDgYDVQQHDAdSYWxlaWdoMRIwEAYDVQQD\nDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLDay+\nXnPUdt42C247qaF6YBrNLcCFoACul1/bYfJq6E0HredKpMAYszHd63DVbPZqHx1E\nkv8rrgGVgmt++YeMSkLFLoZ4B5+z1g1igt0B5kqJSSbVvyMk5hV8f/ZUQTZz0xpf\nOPIxn6iIyAqOzPuMFK7h70Z6joh3vRUuq8R+UpeTbCSB34GVgXf+bixGA+Jvm8Tb\nOzdq8A4Lyh0OBp68gk150noKzKqx2P+Mj2HxWupiBxVN3tcuUF7I83Z79Kcbwdqe\n+cm9sxowWfqQFAJMHyRhqZ7aXpwVNbExgs+15re0MDRWDy7KRRRLvEvHqI2CGGii\nKHp2SiyitpAc4cuHAgMBAAGjUDBOMB0GA1UdDgQWBBQ3RSdpkKpbh2czqlwxNbQz\nMMA6wzAfBgNVHSMEGDAWgBQ3RSdpkKpbh2czqlwxNbQzMMA6wzAMBgNVHRMEBTAD\nAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQC0IDfk5SpdlK47BxqxeZl0hc9ciLvo0nBf\n+079IEbXhTOLRPwEJcOsuUC7T6Fc/CsPGu5a3s4esWcAHDtEi3pm/TcqirSeYQZy\nzsOI22LhoCaisL/lsxcqYIu30UTLguE+1J0YaIZBJOGpgUBq+E7H3ppe+jZSxLKk\ncCPuF1RmuV9Z12Nsop0FdxbTGjKGxPvxm3IBG0IeYbYC8EkpCdEwEyTtdrlS2r7A\nrPEAtitD0lXslWKkWPZKiMC/nVfPeCn+gO7kwwfo2sK9JPUyVN0DmYYV2KukSGKR\nME6mbPeYjR25/0DKaRUfvNN7qktvaoYT4TI/f2FNTA1ERNN8RP3a\n-----END CERTIFICATE-----\n', 'global_cert_bundle': None} 2012-07-16 08:43:22,360 [INFO][worker-0] _delete_removed_repos() @ cdslib.py:400 - Removing old repo [/var/lib/pulp-cds/content/dist/rhel/rhui/server/6/6Server/i386/optional/source/SRPMS] 2012-07-16 08:43:22,360 [WARNING][worker-0] _delete_removed_repos() @ cdslib.py:405 - Repository at [/var/lib/pulp-cds/content/dist/rhel/rhui/server/6/6Server/i386/optional/source/SRPMS] could not be found for deletion 2012-07-16 08:43:22,361 [INFO][worker-0] _delete_removed_repos() @ cdslib.py:400 - Removing old repo [/var/lib/pulp-cds/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/source/SRPMS] 2012-07-16 08:43:22,361 [WARNING][worker-0] _delete_removed_repos() @ cdslib.py:405 - Repository at [/var/lib/pulp-cds/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/source/SRPMS] could not be found for deletion 2012-07-16 08:43:22,362 [INFO][worker-0] _delete_removed_repos() @ cdslib.py:400 - Removing old repo [/var/lib/pulp-cds/gkrellm/x86_64] 2012-07-16 08:43:22,362 [WARNING][worker-0] _delete_removed_repos() @ cdslib.py:405 - Repository at [/var/lib/pulp-cds/gkrellm/x86_64] could not be found for deletion 2012-07-16 08:43:22,363 [INFO][worker-0] update_cluster_membership() @ cdslib.py:236 - Received cluster membership update; Cluster [cluster2], Members [ip-10-189-149-195.ec2.internal] 2012-07-16 08:43:22,363 [INFO][worker-0] update_cluster_membership() @ cdslib.py:247 - No changes needed to be made to cluster memberships
*** This bug has been marked as a duplicate of bug 819985 ***