[Pulp-list] Package update errors with test release

Jeff Ortel jortel at redhat.com
Wed Nov 30 22:36:45 UTC 2011


Hey Joel,

Resolved this on RHEL 5 as well.  Basically we use YumBase which is the core lib for yum 
for package installs in our agent.  To support specific use cases, we recently started 
having yum load INTERACTIVE plugins as well as CORE plugins.  As it turns out, the older 
version of the yum security plugin (on el5) was dorking with the command line options 
(still not sure why) during command option registration.  After looking further into how 
the YumCLI uses YumBase with regard to the OptionParser, I discovered that yum plays some 
interesting games with the optparser (even more that I originally understood).  The fix 
was pretty straight forward and will be in gofer 0.61 which will be included in our QE 
build 0.253 later today.

Thanks for you patience and working with me on this matter.

Regards,

Jeff



On 11/30/2011 02:40 PM, Golden, Joel wrote:
> Yes it is.
>
> yum-utils-1.1.16-16.el5
> yum-rhn-plugin-0.5.4-22.el5_7.2
> yum-fastestmirror-1.1.16-16.el5
> yum-metadata-parser-1.1.2-3.el5
> yum-updatesd-0.9-2.el5
> yum-3.2.22-37.el5
>
> -----Original Message-----
> From: Jeff Ortel [mailto:jortel at redhat.com]
> Sent: Wednesday, November 30, 2011 1:33 PM
> To: Golden, Joel
> Cc: pulp-list at redhat.com
> Subject: Re: [Pulp-list] Package update errors with test release
>
> Okay.  I need to run through this on RHEL 5.  Is yum up to date on your box?
>
> On 11/30/2011 01:38 PM, Golden, Joel wrote:
>> Thanks Jeff.
>>
>> Running into another issue with the yum-security package now.
>>
>> 2011-11-30 12:35:00,505 [INFO][worker-0] @ dispatcher.py:530 - dispatching:{
>>     "args": [
>>       null
>>     ],
>>     "auth": {
>>       "secret": "f2fd22e5a7978398f8d47542ae530cc2164fb6b51cc397a5c520e5654a8a74e5",
>>       "pam": null,
>>       "uuid": "kstester-dal"
>>     },
>>     "classname": "Packages",
>>     "kws": {},
>>     "cntr": null,
>>     "method": "update"
>> }
>> 2011-11-30 12:35:00,539 [ERROR][worker-0] @ dispatcher.py:488 - 'NoneType' object has no attribute 'advisory'
>> Traceback (most recent call last):
>>     File "/usr/lib/python2.4/site-packages/gofer/rmi/dispatcher.py", line 485, in __call__
>>       retval = method(*args, **keywords)
>>     File "/usr/lib64/gofer/plugins/pulpplugin.py", line 216, in update
>>       updated = p.update(names)
>>     File "/usr/lib64/gofer/plugins/package.py", line 161, in update
>>       yb = Yum(self.importkeys)
>>     File "/usr/lib64/gofer/plugins/package.py", line 40, in __init__
>>       self.conf.assumeyes = importkeys
>>     File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in<lambda>
>>       conf = property(fget=lambda self: self._getConfig(),
>>     File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 238, in _getConfig
>>       startupconf.pluginconfpath,disabled_plugins,enabled_plugins)
>>     File "/usr/lib64/gofer/plugins/package.py", line 47, in doPluginSetup
>>       YumBase.doPluginSetup(self, *args, **kwargs)
>>     File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 409, in doPluginSetup
>>       plugin_types, confpath, disabled_plugins, enabled_plugins)
>>     File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 162, in __init__
>>       self.run('config')
>>     File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
>>       func(conduitcls(self, self.base, conf, **kwargs))
>>     File "/usr/lib/yum-plugins/security.py", line 391, in config_hook
>>       parser.values.advisory = []
>> AttributeError: 'NoneType' object has no attribute 'advisory'
>>
>>
>> -----Original Message-----
>> From: Jeff Ortel [mailto:jortel at redhat.com]
>> Sent: Wednesday, November 30, 2011 11:33 AM
>> To: Golden, Joel
>> Cc: pulp-list at redhat.com
>> Subject: Re: [Pulp-list] Package update errors with test release
>>
>> Hey Joel,
>>
>> The /etc/pulp/consumer/consumer.conf has changed slightly since the last community release and it looks like the agent is reading a property from a section that does not exist.
>> Please merge the consumer.conf.rpmnew.
>>
>> We probably need to check and report configuration errors better.  I'll get it added to our backlog.
>>
>> -jeff
>>
>>
>> On 11/30/2011 12:05 PM, Golden, Joel wrote:
>>> Installations were working fine on the community release but upon
>>> updating the server and client to the test release 0.0.252-1 package installs started to fail.
>>> RHEL 5.7
>>> ## pulp-migrate
>>> database migration to version 31 complete ## /var/log/pulp/pulp.log
>>> 2011-11-30 10:54:03,923 457:1269668160: gofer.rmi.policy:INFO: policy:236 sent (kstester-dal):
>>> {
>>> "classname": "Packages",
>>> "kws": {},
>>> "args": [
>>> [
>>> "tzdata"
>>> ]
>>> ],
>>> "method": "update",
>>> "cntr": null
>>> }
>>> 2011-11-30 10:54:03,924 457:1269668160: gofer.rmi.async:INFO:
>>> async:348 tracking: {
>>> "replyto":
>>> "pulp.task;{create:always,node:{type:queue,durable:True},link:{durabl
>>> e :True,x-subscribe:{exclusive:True}}}",
>>> "any": "3e9f0354-1b7c-11e1-9798-0050569a0088",
>>> "sn": "1de1879e-c18e-41d8-b408-d5a4f7966c1a",
>>> "idx": 0,
>>> "ts": [
>>> 1322675653.923722,
>>> 1322676243.923722
>>> ]
>>> }
>>> 2011-11-30 10:54:04,029 457:1112320320: gofer.rmi.async:INFO:
>>> async:359 1de1879e-c18e-41d8-b408-d5a4f7966c1a
>>> 2011-11-30 10:54:04,071 457:1112320320: gofer.rmi.async:INFO:
>>> async:359 1de1879e-c18e-41d8-b408-d5a4f7966c1a
>>> 2011-11-30 10:54:04,072 457:1112320320: pulp.server.async:INFO:
>>> async:390 Task RMI (failed) Failed sn :
>>> 1de1879e-c18e-41d8-b408-d5a4f7966c1a
>>> origin : 95b9ea43-dcbd-474f-af9a-76e72e5d05e5
>>> user data : 3e9f0354-1b7c-11e1-9798-0050569a0088
>>> exception:
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.4/site-packages/gofer/rmi/dispatcher.py", line
>>> 484, in __call__ inst, method = self.resolve() File
>>> "/usr/lib/python2.4/site-packages/gofer/rmi/dispatcher.py", line 292,
>>> in resolve inst = self.getclass() File
>>> "/usr/lib/python2.4/site-packages/gofer/rmi/dispatcher.py", line 309,
>>> in getclass return inst(*args, **keywords) File
>>> "/usr/lib64/gofer/plugins/pulpplugin.py", line 178, in __init__
>>> self.importkeys = \ File
>>> "/usr/lib/python2.4/site-packages/pulp/client/lib/config.py", line
>>> 34, in getbool return getbools(cfg, **opt)[0] File
>>> "/usr/lib/python2.4/site-packages/pulp/client/lib/config.py", line
>>> 62, in getbools v = v.lower()
>>> TypeError: 'Undefined' object is not callable 2011-11-30 10:54:04,073
>>> 457:1112320320: pulp.server.tasking.task:ERROR: task:455 Task
>>> failed: Task 3e9f0354-1b7c-11e1-9798-0050569a0088:
>>> ConsumerGroupApi.__updatepackages(kstester-dal, ['tzdata'], )
>>> (<gofer.rmi.dispatcher.RemoteException instance at 0x2b2e6ee617a0>,)
>>> Best Regards,
>>>
>>> Joel Golden, RHCE
>>> TW Telecom
>>> Unix Support / Senior Systems Administrator v. 303.542.6617
>>>
>>> -------------
>>>
>>> The content contained in this electronic message is not intended to
>>> constitute formation of a contract binding *tw telecom*. *tw telecom*
>>> will be contractually bound only upon execution, by an authorized
>>> officer, of a contract including agreed terms and conditions or by
>>> express application of its tariffs. This message is intended only for
>>> the use of the individual or entity to which it is addressed. If the
>>> reader of this message is not the intended recipient, or the employee
>>> or agent responsible for delivering the message to the intended
>>> recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone.
>>>
>>>
>>>
>>> _______________________________________________
>>> Pulp-list mailing list
>>> Pulp-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/pulp-list
>>
>>
>>
>> -------------
>>
>>
>>
>> The content contained in this electronic message is not intended to constitute formation of a contract binding tw telecom. tw telecom will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone.
>>
>>
>
>




More information about the Pulp-list mailing list