Bug 628993

Summary: package install issue with consumer group
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cperry, pkilambi, whayutin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 13:58:23 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    
Attachments:
Description Flags
pulp.log none

Description Preethi Thomas 2010-08-31 15:34:07 UTC
Created attachment 442220 [details]
pulp.log

Description of problem:
package install on consumergroup ends in traceback when consumers are subscribed to different repos 
Step to reproduce

1. Have 2 consumers consumer-a is f13 and consumer-b is f12
2. Subscribed consumer-a to a f13 repo (consumer bind)
3. Subscribe consumer-b to a f12 repo
4.Create a consumergroup say group1
5. Add consumer-a & consumer-b to group1
6. Now I tried to install a package to the consumergroup group1

Got the following error
[root@preethi ~]# pulp-admin package install -n zsh --consumergroupid=group1
"Traceback (most recent call last):\n  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/base.py\", line 51, in report_error\n    return method(self, *args, **kwargs)\n  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/role_check.py\", line 106, in check_roles\n    result = f(instance, *fargs, **kw)\n  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumergroups.py\", line 180, in POST\n    return action(id)\n  File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumergroups.py\", line 155, in installpackages\n    return self.ok(api.installpackages(id, names))\n  File \"/usr/lib/python2.6/site-packages/pulp/server/auditing.py\", line 186, in _audit\n    result = method(*args, **kwargs)\n  File \"/usr/lib/python2.6/site-packages/pulp/server/api/consumer_group.py\", line 179, in installpackages\n    agent.packages.install(packagenames)\n  File \"/usr/lib/python2.6/site-packages/pulp/messaging/stub.py\", line 69, in __call__\n    return self.stub._send(request, opts)\n  File \"/usr/lib/python2.6/site-packages/pulp/messaging/stub.py\", line 111, in _send\n    any=opts.any)\n  File \"/usr/lib/python2.6/site-packages/pulp/messaging/policy.py\", line 121, in send\n    return self.__getreply(sn)\n  File \"/usr/lib/python2.6/site-packages/pulp/messaging/policy.py\", line 146, in __getreply\n    raise Exception, reply.exval\nException: Traceback (most recent call last):\n\n  File \"/usr/lib/python2.6/site-packages/pulp/messaging/dispatcher.py\", line 180, in __call__\n    retval = method(*args, **keywords)\n\n  File \"/usr/lib/python2.6/site-packages/pulp/client/agent/plugins/remote.py\", line 68, in install\n    pkgs = yb.pkgSack.returnNewestByName(info)\n\n  File \"/usr/lib/python2.6/site-packages/yum/__init__.py\", line 827, in <lambda>\n    pkgSack = property(fget=lambda self: self._getSacks(),\n\n  File \"/usr/lib/python2.6/site-packages/yum/__init__.py\", line 617, in _getSacks\n    self.repos.populateSack(which=repos)\n\n  File \"/usr/lib/python2.6/site-packages/yum/repos.py\", line 283, in populateSack\n    sack.populate(repo, mdtype, callback, cacheonly)\n\n  File \"/usr/lib/python2.6/site-packages/yum/yumRepo.py\", line 163, in populate\n    if self._check_db_version(repo, mydbtype):\n\n  File \"/usr/lib/python2.6/site-packages/yum/yumRepo.py\", line 221, in _check_db_version\n    return repo._check_db_version(mdtype)\n\n  File \"/usr/lib/python2.6/site-packages/yum/yumRepo.py\", line 1224, in _check_db_version\n    repoXML = self.repoXML\n\n  File \"/usr/lib/python2.6/site-packages/yum/yumRepo.py\", line 1413, in <lambda>\n    repoXML = property(fget=lambda self: self._getRepoXML(),\n\n  File \"/usr/lib/python2.6/site-packages/yum/yumRepo.py\", line 1409, in _getRepoXML\n    raise Errors.RepoError, msg\n\nRepoError: Cannot retrieve repository metadata (repomd.xml) for repository: f12. Please verify its path and try again\n\n"
[root@preethi ~]#

Comment 2 Preethi Thomas 2010-09-21 16:30:50 UTC
verified
[root@preethi ~]# rpm -qa  |grep pulp
pulp-client-0.0.65-1.fc13.noarch
pulp-common-0.0.65-1.fc13.noarch
pulp-0.0.65-1.fc13.noarch

[root@preethi ~]# pulp-admin -u admin -p admin consumergroup list
+-------------------------------------------+
    List of Available Consumer Groups 
+-------------------------------------------+

Id                      consumer-grp1            
Description                                      
Consumer ids            [u'preethi.usersys.redhat.com', u'10.16.120.215']


[root@preethi ~]# pulp-admin -u admin -p admin package install -n zsh --consumergroupid=consumer-grp1
Successfully Installed Packages [u'zsh'] on consumergroup [consumer-grp1]
[root@preethi ~]# rpm -q zsh
zsh-4.3.10-5.fc13.x86_64
 

[root@localhost ~]# rpm -q zsh
zsh-4.3.10-4.fc12.x86_64

Comment 3 Preethi Thomas 2011-08-16 13:58:23 UTC
Closing with Community Release 15

pulp-0.0.223-4.