Bug 760310 - repo clone error if the repo you are cloning is not synced before cloning
Summary: repo clone error if the repo you are cloning is not synced before cloning
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 19:55 UTC by Preethi Thomas
Modified: 2013-09-09 16:35 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:13:57 UTC
Embargoed:


Attachments (Terms of Use)

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.


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