Bug 1575193
Summary: | File repo type does not handle updates to files on manifest during re-sync correctly | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Craig Donnelly <cdonnell> |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.1 | CC: | bbuckingham, bmbouter, cdonnell, daviddavis, dkliban, ehelms, ggainey, ipanova, jcallaha, lhellebr, mhrivnak, mmccune, pcreech, pthomas, rchan, satellite6-bugs, swadeley, ttereshc, wpinheir |
Target Milestone: | 6.4.0 | Keywords: | PrioBumpGSS, PrioBumpPM, Regression, 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: | 1452212 | Environment: | |
Last Closed: | 2018-10-16 19:11:13 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: | |||
Bug Depends On: | 1452212 | ||
Bug Blocks: |
Description
Craig Donnelly
2018-05-05 03:38:48 UTC
Actions taken to reproduce: # cd /var/www/html/pub # mkdir file_repo # cd file_repo # rpm -q python-pulp-manifest python-pulp-manifest-2.13.4.8-1.el7sat.noarch # for i in 1 2 3;do echo "File$i" >> file$i.txt;done # ll total 12 -rw-r--r--. 1 root root 6 May 5 05:23 file1.txt -rw-r--r--. 1 root root 6 May 5 05:23 file2.txt -rw-r--r--. 1 root root 6 May 5 05:23 file3.txt # md5sum file* f3b203c69dabc6fc8029764a3d5ee1e0 file1.txt cd71eba7bb4a821022ec1c2004a2b1ae file2.txt f1dae39ae2855d00f2299f341094de77 file3.txt # cat file* File1 File2 File3 # pulp-manifest . # ll total 16 -rw-r--r--. 1 root root 6 May 5 05:23 file1.txt -rw-r--r--. 1 root root 6 May 5 05:23 file2.txt -rw-r--r--. 1 root root 6 May 5 05:23 file3.txt -rw-r--r--. 1 root root 231 May 5 05:23 PULP_MANIFEST # cat PULP_MANIFEST file1.txt,ebea1137c5ece3f8a58f0e1a0da1411fe0a2648501419d190b3b154f3f191259,6 file2.txt,d111177254889051153a91fa445b85a19144f6fd63624393df6d1e9066406f62,6 file3.txt,3be4cac02ac5009c10286b6bdbd1b8e9eb9cb11a33344112d594acc1b1645e76,6 At this point, create custom product + custom repository: http://sat.fqdn/pub/file_repo Sync said repo. First results on Satellite are great, everything as expected: i.e. PULP_MANIFEST in Satellite repo looks fine and like the one that was manually generated. Now changes the files (not add, but change): # for i in 1 2 3;do echo "File$i Updated" > file$i.txt;done # ll total 16 -rw-r--r--. 1 root root 14 May 5 05:30 file1.txt -rw-r--r--. 1 root root 14 May 5 05:30 file2.txt -rw-r--r--. 1 root root 14 May 5 05:30 file3.txt -rw-r--r--. 1 root root 231 May 5 05:23 PULP_MANIFEST # cat file* File1 Updated File2 Updated File3 Updated # md5sum file* 3dbcecec63d35c032f2a1a17d6fe25a2 file1.txt ec9416093a9503863ec2a68ff00b1bcb file2.txt 19ac24bd99dea28dad195967af9cc001 file3.txt # cat PULP_MANIFEST file1.txt,ebea1137c5ece3f8a58f0e1a0da1411fe0a2648501419d190b3b154f3f191259,6 file2.txt,d111177254889051153a91fa445b85a19144f6fd63624393df6d1e9066406f62,6 file3.txt,3be4cac02ac5009c10286b6bdbd1b8e9eb9cb11a33344112d594acc1b1645e76,6 # pulp-manifest . # cat PULP_MANIFEST file1.txt,582bd05dcf5d75d823c503066e046eb8bfa3df87647d157d709801fe410e8c52,14 file2.txt,84a0ecc2cb21bd9d47cd059a7ba2dbc5cf4259b06fec2016d89226ec0774bf73,14 file3.txt,c84e33433db61cef58a5932946ddf292320b8a5c830b7e5928e0336bc2f89196,14 This manually generated PULP_MANIFEST is fine. Now sync repo again, and review PULP_MANIFEST inside satellite: http://sat.fqdn/pulp/isos/Default_Organization/Library/custom/Custom_Repos/file_repo/PULP_MANIFEST: file1.txt,ebea1137c5ece3f8a58f0e1a0da1411fe0a2648501419d190b3b154f3f191259,6 file2.txt,d111177254889051153a91fa445b85a19144f6fd63624393df6d1e9066406f62,6 file2.txt,84a0ecc2cb21bd9d47cd059a7ba2dbc5cf4259b06fec2016d89226ec0774bf73,14 file1.txt,582bd05dcf5d75d823c503066e046eb8bfa3df87647d157d709801fe410e8c52,14 file3.txt,c84e33433db61cef58a5932946ddf292320b8a5c830b7e5928e0336bc2f89196,14 Depending on the order of how that broken file gets generated, sometimes the files in the repo actually DO NOT GET UPDATED. The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug. The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug. The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. The Pulp upstream bug priority is at High. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug. The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. Verified on Sat 6.4 snap 11, pulp manifest is correctly updated after resync of edited file content Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2927 The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. |