Bug 677738

Summary: parent cloning returns a traceback
Product: [Retired] Pulp Reporter: dgao
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: cperry
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 21   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 15:14:40 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 dgao 2011-02-15 17:42:35 UTC
[root@pulp-nightly ~]# pulp-admin repo create --id=foo --feed=yum:http://10.16.76.78/pub/updates
Successfully created repository [ foo ]

[root@pulp-nightly ~]# pulp-admin repo sync --id=foo
Sync for repository foo started
Use "repo status" to check on the progress
[root@pulp-nightly ~]# pulp-admin repo sync --id=foo -F
Sync for repository foo started
Sync: Finished
0/7 new items downloaded
7/7 existing items processed

Item Details: 
Rpms: 7/7

[root@pulp-nightly ~]# pulp-admin repo clone --id=foo --clone_id=parent_clone_repo --feed=parent -F
Repository [foo] is being cloned as [parent_clone_repo]
Clone: Error
Item Details: 
Rpms: 0/7
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 147, in <module>
    admin.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 98, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 231, in main
    self.run()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 519, in run
    self.clone_foreground(task)
  File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 495, in clone_foreground
    raise SyncError(task['traceback'][-1])
pulp.client.core.repo.SyncError: PulpException: u'Repo cloning of [foo] failed'


This might be a separate issue, but when there's an error in cloning a repo, I notice the failed clone remains in the system. Should cloning be more atomic?

Comment 1 Sayli Karmarkar 2011-02-23 06:42:44 UTC
Fixed. The error was actually a general repo local sync bug which was calculating package checksum incorrectly, so I would suggest running a few tests on local sync as well (especially creating 2 different repos from same content and syncing them) when verifying this bug.

$ sudo pulp-admin repo create --id=foo --feed=yum:http://10.16.76.78/pub/updates/
Successfully created repository [ foo ]

$ sudo pulp-admin repo sync --id foo -F
Sync for repository foo started
Sync: Finished
7/7 new items downloaded
0/7 existing items processed

Item Details: 
Rpms: 7/7

$ sudo pulp-admin repo clone --id=foo --clone_id=clone_foo1 -F
Repository [foo] is being cloned as [clone_foo1]
Clone: Finished
Item Details: 
Rpms: 7/7

Comment 2 Jeff Ortel 2011-02-23 17:59:54 UTC
Build: 0.141

Comment 3 Preethi Thomas 2011-03-07 15:31:42 UTC
verified

[root@preethi ~]# pulp-admin repo create --id=pulp-repo --name=pulp-repo --feed=yum:http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-14/x86_64/
Successfully created repository [ pulp-repo ]


[root@preethi ~]# pulp-admin repo sync --id=foo -F
Sync for repository foo started
Sync: Finished
7/7 new items downloaded
0/7 existing items processed

Item Details: 
Rpms: 7/7


[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]#  pulp-admin repo clone --id=foo  --clone_id=parent_clone_repo --feed=parent -F
Repository [foo] is being cloned as [parent_clone_repo]
Clone: Finished
Item Details: 
Rpms: 7/7

Comment 4 Preethi Thomas 2011-08-15 15:14:40 UTC
Closing with current community release

pulp-0.0.223