Bug 674641 - pulp repos need to keep serving existing repodata while newer updates are being synced
Summary: pulp repos need to keep serving existing repodata while newer updates are bei...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 20
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-02 19:30 UTC by Pradeep Kilambi
Modified: 2011-08-16 12:21 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:08:31 UTC
Embargoed:


Attachments (Terms of Use)

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.


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