Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 667753

Summary: running repo sync with --no-packages option on a newly created repo fails
Product: [Retired] Pulp Reporter: Jason Connor <jconnor>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jmatthew, mmccune, skarmark, 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 13:58:55 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: 641987    

Description Jason Connor 2011-01-06 17:03:32 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.120-1.fc14.noarch
[root@preethi ~]# 

running repo sync with --no-packages option on a newly created repo fails OS
Error: No such file or directory



[root@preethi ~]#  pulp-admin -u admin -p admin repo create --id=f13 --name=f13
--arch=x86_64
--feed=yum:http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/ 
Successfully created repository [ f13 ]

[root@preethi ~]# pulp-admin repo sync   --no-packages --id=f13 -FSync for
repository f13 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (9 of 9 pkgs)
Sync: Error
OSError: [Errno 2] No such file or directory:
'/var/lib/pulp/repos/released/F-13/GOLD/Fedora/x86_64/os//Packages'

Comment 1 Jason Connor 2011-01-14 05:28:58 UTC
$ sudo pulp-admin -u admin -p admin repo create --id rpmfusion-free --arch=x86_64 --feed=yum:http://download1.rpmfusion.org/free/fedora/releases/14/Everything/x86_64/os/Successfully created repository [ rpmfusion-free ]

$ sudo pulp-admin -u admin -p admin repo sync --id rpmfusion-free --no-packages -F
Sync for repository rpmfusion-free started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (0 of 0 pkgs)
0/0 new items downloaded
0/0 existing items verified
Sync: Finished

Comment 2 Jay Dobies 2011-01-14 20:08:12 UTC
Fixed in build 0.124.

Comment 3 Preethi Thomas 2011-01-14 21:03:46 UTC
fails_qa

[root@preethi ~]# rpm -q pulp
pulp-0.0.124-1.fc14.noarch

[root@preethi ~]# pulp-admin -u admin -p admin repo create --id=f13 --name=f13 --arch=x86_64 --feed=yum:http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
Successfully created repository [ f13 ]

[root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f13 --no-packages -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (9 of 9 pkgs)
Sync: Error
OSError: [Errno 2] No such file or directory: '/var/lib/pulp/repos/released/F-13/GOLD/Fedora/x86_64/os//Packages'

Comment 4 Jason Connor 2011-02-07 15:31:39 UTC
It fails when it still syncs packages with the --no-packages option
I suspect it's syncing errata

Comment 5 John Matthews 2011-02-07 16:21:27 UTC
In grinder we were looking to remove old packages even if we said skip packages.

Below commit fixes the issue.
http://git.fedorahosted.org/git/?p=grinder.git;a=commit;h=b09be9fdb459cedb542027e8609f094915bfee24

Comment 6 John Matthews 2011-02-07 16:22:43 UTC
Note this will be in grinder 0.79

Comment 7 Jay Dobies 2011-02-09 15:35:54 UTC
Fixed in 0.136.

Comment 8 Preethi Thomas 2011-02-23 14:07:45 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.140-1.fc14.noarch

[root@preethi ~]#  pulp-admin -u admin -p redhat repo sync --id=f13 --no-packages -F
Sync for repository f13 started
Sync: Finished
0/9 new items downloaded
9/9 existing items processed

Item Details: 
Tree_Files: 9/9

Comment 9 Preethi Thomas 2011-08-16 13:58:55 UTC
Closing with Community Release 15

pulp-0.0.223-4.