Bug 674067
| Summary: | Traceback when running package deplist with empty or non-existing repoid | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | skarmark |
| Target Milestone: | --- | ||
| Target Release: | Sprint 20 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 12:06:54 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: | 647488 | ||
This seems to be happening with non-existing repoid as well. Changing summary line accordingly. fixed! $ sudo pulp-admin -u admin -p admin package deplist -n zsh --repoid=i_dont_exist Repository with id: [i_dont_exist] not found. skipping $ sudo pulp-admin -u admin -p admin package deplist -n zsh --repoid= Atleast one repoid is required to lookup dependencies. Fixed in 0.134. verified [root@preethi ~]# rpm -q pulp pulp-0.0.134-1.fc14.noarch [root@preethi ~]# pulp-admin package deplist -n zsh --repoid= Atleast one repoid is required to lookup dependencies. [root@preethi ~]# pulp-admin package deplist -n zsh --repoid=test Repository with id: [test] not found. skipping Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |
Description of problem: [root@preethi ~]# rpm -q pulp pulp-0.0.132-1.fc14.noarch [root@preethi ~]# pulp-admin package deplist -n zsh --repoid= error: operation failed: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 57, in report_error return method(self, *args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/role_check.py", line 131, in check_roles result = f(instance, *fargs, **kw) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/services.py", line 48, in PUT return self.ok(papi.package_dependency(data['pkgnames'], data['repoids'], recursive=data['recursive'])) File "/usr/lib/python2.7/site-packages/pulp/server/api/package.py", line 168, in package_dependency dsolve = DepSolver(repos, pkgnames) File "/usr/lib/python2.7/site-packages/pulp/server/api/depsolver.py", line 32, in __init__ self.setup() File "/usr/lib/python2.7/site-packages/pulp/server/api/depsolver.py", line 40, in setup self.yrepo = yum.yumRepo.YumRepository(repo['id']) TypeError: 'NoneType' object is not subscriptable