Bug 670327
| Summary: | Cloning a feedless repo produces a traceback | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | dgao |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | jconnor |
| 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-08-16 13:59:52 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 641987 | ||
I abstracted the progress reporting into a new base class: RepoProgressAction, so that bugs found in the progress reporting will not be filed twice: once for sync and once for clone. Verified pulp-admin repo create --id=feedless_repo Successfully created repository [ feedless_repo ] pulp-admin repo clone --id=feedless_repo --clone_id=feedless_clone_repo --feed=feedless -F Repository [feedless_repo] is being cloned as [feedless_clone_repo] You can safely CTRL+C this current command and it will continue [=========================] 100% Total: 0/0 items ) Clone: Finished on_qa now build 128 [root@preethi ~]# rpm -q pulp pulp-0.0.128-1.fc14.noarch [root@preethi ~]# pulp-admin repo create --id=foo Successfully created repository [ foo ] [root@preethi ~]# pulp-admin repo clone --id=foo --clone_id=bar -F Repository [foo] is being cloned as [bar] You can safely CTRL+C this current command and it will continue [=========================] 100% Total: 0/0 items ) Clone: Finished Closing with Community Release 15 pulp-0.0.223-4. |
[root@pulp-nightly ~]# pulp-admin repo create --id=foo Successfully created repository [ foo ] [root@pulp-nightly ~]# pulp-admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Id foo Name foo FeedURL None FeedType None Arch noarch Sync Schedule None Packages 0 Files 0 Distributions None Publish True Clones [] Groups None [root@pulp-nightly ~]# pulp-admin repo sync --id=foo error: operation failed: Repo [foo] is not setup for sync. Please add packages using upload. [root@pulp-nightly ~]# pulp-admin repo clone --id=foo --clone_id=bar -F Repository [foo] is being cloned as [bar] You can safely CTRL+C this current command and it will continue Traceback (most recent call last): ] 0% File "/usr/bin/pulp-admin", line 147, in <module> admin.main() File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 98, in main command.main(args[1:]) File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main action.main(args[1:]) File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 229, in main self.run() File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 350, in run self.clone_foreground(task) File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 318, in clone_foreground self.print_clone_progress(task['progress']) File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 294, in print_clone_progress portion = done / total ZeroDivisionError: float division [root@pulp-nightly ~]#