Bug 760310

Summary: repo clone error if the repo you are cloning is not synced before cloning
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:13:57 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-05 19:55:37 UTC
Description of problem:

If you create a repo an try to clone it before syncing, the following error occurs


[root@preethi ~]# pulp-admin -u admin -p admin  repo clone --id=protected_test_repo --clone_id=protected-clone2 --feed=origin -F
Repository [protected_test_repo] is being cloned as [protected-clone2]
Waiting /
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 575, in clone_foreground
    self.print_clone_finish(task['state'], task['progress'])
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/repo.py", line 556, in print_clone_finish
    current += self.form_progress_item_details(progress["details"])
TypeError: 'NoneType' object is not subscriptable
[root@preethi ~]# 


Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.254-1.fc15.noarch

Comment 1 Pradeep Kilambi 2011-12-08 14:49:05 UTC
commit f025c5d094113a090a3a672d258763127fc4ad9b

Comment 2 Preethi Thomas 2011-12-12 15:01:20 UTC
verified

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

[root@preethi ~]#   pulp-admin repo status --id=rhel6 
+------------------------------------------+
              Status for rhel6
+------------------------------------------+
Repository: rhel6
Number of Packages: 0
Last Sync: never

[root@preethi ~]#   pulp-admin repo clone --id=rhel6 --clone_id=rhel6-clone --clone_name=rhel6-clone --groupid=clone -F
Repository [rhel6] is being cloned as [rhel6-clone]
Clone: Finished
Item Details:

Comment 3 Preethi Thomas 2012-02-24 20:13:57 UTC
Pulp v1.0 is released
Closed Current Release.