Bug 765799

Summary: not able to add filter to clone
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED DUPLICATE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-09 13:39:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-12-09 13:20:19 UTC
Description of problem:

[root@preethi ~]# pulp-admin repo clone --id=rhel6 --clone_id=rhel6-clone1 --feed=parent --relativepath=clone2 -F -f blacklist
Repository [rhel6] is being cloned as [rhel6-clone1]
Clone: Error
Item Details: 
Tree Files: 6/6
RPMs: 3528/3529
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 23, in <module>
    admin.main()
  File "/usr/lib/python2.7/site-packages/pulp/client/lib/cli.py", line 152, in main
    command.main(self.args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py", line 129, in main
    action.main(args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py", line 211, in main
    self.run()
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/repo.py", line 615, in run
    self.clone_foreground(task)
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/repo.py", line 577, in clone_foreground
    raise SyncError(task['traceback'][-1])
repo.SyncError: NameError: global name 'pkglist' is not defined



[root@preethi ~]# tail -f /var/log/pulp/pulp.log 
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 136, in _clone
    _sync(clone_id, progress_callback=progress_callback, synchronizer=synchronizer)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 272, in _sync
    progress_callback, synchronizer, max_speed, threads)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 360, in fetch_content
    added_packages = synchronizer.clone_packages_from_source(repo_id, skip_dict)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/synchronizers.py", line 306, in clone_packages_from_source
    for pkg in pkglist:
NameError: global name 'pkglist' is not defined



Version-Release number of selected component (if applicable):

[root@preethi ~]# rpm -q pulp
pulp-0.0.254-4.fc15.noarch

Comment 1 Pradeep Kilambi 2011-12-09 13:39:13 UTC

*** This bug has been marked as a duplicate of bug 760607 ***