Bug 651900

Summary: repo sync in foreground gives a ZeroDivisionError
Product: [Retired] Pulp Reporter: Pradeep Kilambi <pkilambi>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED DUPLICATE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jason.dobies, mmccune
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: 2010-12-13 16:38:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***