| Summary: | Preserve metadata is not functioning on re-sync if source modifies content | |||
|---|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | John Matthews <jmatthew> | |
| Component: | RHUA | Assignee: | James Slagle <jslagle> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 2.0.2 | CC: | jslagle, kbidarka, sghai, tsanders | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 750933 (view as bug list) | Environment: | ||
| Last Closed: | 2012-03-12 19:40:07 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 750933 | |||
patch has already been applied to the rhui branch, just needs to be released. commits: 7db220abfbd9aaedc6c018c7fd611b2794d195f8 85e71183be14ccf5b0e533396591c2fa79223b1f QA: After each repo sync, you should need so processes of createrepo running. Sorry, realize I typo'd my previous comment. It should read: "you should not see any processes of createrepo running" The idea here is that the source has the correct metadata that has been updated to reflect the change in the repository. Since pulp copies the metadata during a sync operation, there is no need for pulp to regenerate the metadata, thus you should never see createrepo running. Ah! then in that case, as none of the logs show that the createrepo command has run, moving this to verified state. Since this bug affects 2.0 and 2.0.1, we've decided to backport those patches and release a hotfix. new pulp packages for 2.0.1 are at: https://brewweb.devel.redhat.com/buildinfo?buildID=201381 Released in RHUI 2.0.2 |
Description of problem: Scenario is: 1) Initial sync is successful, preserve metadata works 2) Source repo makes some changes, say an errata is deleted 3) Pulp performs a resync a) sees errata is deleted or package is removed b) createrepo is triggered Log example below. I confirmed that this repo was marked as "preserve_metadata":true from mongo. 2011-10-31 14:20:37,782 5129:139946610390784: pulp.server.util:ERROR: util:404 createrepo on /var/lib/pulp//repos/content/dist/rhel/rhui/server/5/5Server/x86_64/os failed 2011-10-31 14:20:37,816 5129:139946610390784: pulp.server.api.synchronizers:ERROR: synchronizers:369 sh: line 1: 16279 Killed createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server/5/5Server/x86_64/os/repodata/87b78cae8caf76f232374d6a8f8392b8c7fb0239-comps-rhel-x86_64-server-5.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server/5/5Server/x86_64/os Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 363, in sync_updateinfo_data repo_api.delete_erratum(repo['id'], e['id']) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 1073, in delete_erratum self._update_errata_packages(repoid, [erratumid], action='delete') File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 1044, in _update_errata_packages self.remove_packages(repo['id'], rmids) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 963, in remove_packages pulp.server.util.create_repo(repo_path, checksum_type=repo["checksum_type"]) File "/usr/lib/python2.6/site-packages/pulp/server/util.py", line 421, in create_repo _create_repo(dir, groups=groups, checksum_type=checksum_type) File "/usr/lib/python2.6/site-packages/pulp/server/util.py", line 405, in _create_repo raise CreateRepoError(out) CreateRepoError: sh: line 1: 16279 Killed createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server/5/5Server/x86_64/os/repodata/87b78cae8caf76f232374d6a8f8392b8c7fb0239-comps-rhel-x86_64-server-5.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server/5/5Server/x86_64/os