Bug 651900 - repo sync in foreground gives a ZeroDivisionError
Summary: repo sync in foreground gives a ZeroDivisionError
Keywords:
Status: CLOSED DUPLICATE of bug 662680
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-10 15:21 UTC by Pradeep Kilambi
Modified: 2014-03-31 01:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-13 16:38:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Pradeep Kilambi 2010-11-10 15:21:52 UTC
$ sudo pulp-admin repo sync --id=td -F
Sync for repository td started
You can safely CTRL+C this current command and it will continue
[                                                     ] 0%
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 5, in <module>
    pkg_resources.run_script('pulp==0.0.79', 'pulp-admin')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/EGG-INFO/scripts/pulp-admin", line 107, in <module>
    admin.main()
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/pulp/client/cli/base.py", line 105, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/pulp/client/core/base.py", line 116, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/pulp/client/core/base.py", line 200, in main
    self.run()
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/pulp/client/core/repo.py", line 476, in run
    self.sync_foreground(task)
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/pulp/client/core/repo.py", line 449, in sync_foreground
    self.print_sync_progress(task['progress'])
  File "/usr/lib/python2.6/site-packages/pulp-0.0.79-py2.6.egg/pulp/client/core/repo.py", line 425, in print_sync_progress
    portion = done / total
ZeroDivisionError: float division

Comment 1 Pradeep Kilambi 2010-12-13 16:38:42 UTC

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


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