Bug 674641

Summary: pulp repos need to keep serving existing repodata while newer updates are being synced
Product: [Retired] Pulp Reporter: Pradeep Kilambi <pkilambi>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: tsanders
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 20   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:08:31 UTC Type: ---
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:    
Bug Blocks: 647488    

Description Pradeep Kilambi 2011-02-02 19:30:07 UTC
Description of problem:

pulp yum repo syncs download the metadata as the first step. Which sets up the stage for rest of the content fetch. For resyncs and pulling updates, the new metadata will need to be stored in a temp directory until the entire sync is complete before serving the new updated metadata.

Comment 1 Pradeep Kilambi 2011-02-07 19:45:51 UTC
commit a57565861fd35502ca63a49978efa942a0800fd6
Author: Pradeep Kilambi <pkilambi>
Date:   Mon Feb 7 13:46:50 2011 -0500


fix in grinder 0.0.79-1 or higher

Comment 2 Jay Dobies 2011-02-09 15:35:53 UTC
Fixed in 0.136.

Comment 3 Preethi Thomas 2011-02-10 20:04:53 UTC
Test plan

<prad> basically when you do a resync .. do a watch on /var/lib/pulp/repos/<repo-path>/
<preethi> ok
<prad> you'll see a repodata.new for a while and it will disappear
<prad> and the repodata directory will hvae that new info upon completion
<prad> ideally this is how you would test:
<prad> 1. subscribe your client to that repo
<prad> 2. perform yum operations on packages that are in source repo but not on pulp repo
<prad> so basically you need an update or a new package when you do resync
<preethi> ok
<prad> this should not succeed until the sync fails
<prad> as the new metadata is still in temp location

Comment 4 Preethi Thomas 2011-07-26 19:19:37 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.213-1.fc14.noarch
[root@preethi ~]# 

root@preethi ~]# pulp-admin repo sync --id=f14 -F
Sync for repository f14 started
Sync: Finished
1/2773 new items downloaded
2772/2773 existing items processed

[root@preethi ~]# ls -l /var/lib/pulp/repos/released/F-14/GOLD/Fedora/x86_64/os/
total 212
drwxr-sr-x. 3 apache apache   4096 Jul 25 09:05 images
drwxr-sr-x. 2 apache apache 200704 Jul 25 09:05 Packages
drwxr-sr-x. 2 apache apache   4096 Jul 26 15:26 repodata
drwxr-sr-x. 2 apache apache   4096 Jul 26 15:28 repodata.new

Comment 5 Preethi Thomas 2011-08-16 12:08:31 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:21:31 UTC
Closing with Community Release 15

pulp-0.0.223-4.