Bug 677738 - parent cloning returns a traceback
Summary: parent cloning returns a traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: Sprint 21
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-15 17:42 UTC by dgao
Modified: 2015-03-23 01:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 15:14:40 UTC
Embargoed:


Attachments (Terms of Use)

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


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