Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 674067

Summary: Traceback when running package deplist with empty or non-existing repoid
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: 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    

Description Preethi Thomas 2011-01-31 14:41:21 UTC
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

Comment 1 Sayli Karmarkar 2011-02-01 19:45:56 UTC
This seems to be happening with non-existing repoid as well. Changing summary line accordingly.

Comment 2 Pradeep Kilambi 2011-02-01 21:06:38 UTC
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.

Comment 3 Jay Dobies 2011-02-02 20:07:14 UTC
Fixed in 0.134.

Comment 4 Preethi Thomas 2011-02-03 14:35:52 UTC
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

Comment 5 Preethi Thomas 2011-08-16 12:06:54 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:20:48 UTC
Closing with Community Release 15

pulp-0.0.223-4.