Modify

Ticket #1047 (closed defect: fixed)

Opened 12 years ago

Last modified 9 years ago

Pkgmgr calls predicate with incorrect number of arguments

Reported by: Calen Pennington <[email protected]…> Owned by: desai
Priority: major Milestone:
Component: bcfg2-server Version:
Keywords: Cc:

Description

Unexpected failure in BindStructure?: Package wgen-python26-cx_Oracle Traceback (most recent call last):

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Core.py", line 232, in BindStructure?

self.Bind(entry, metadata)

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Core.py", line 266, in Bind

metadata)

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Pkgmgr.py", line 153, in BindEntry?

Bcfg2.Server.Plugin.PrioDir?.BindEntry?(self, entry, metadata)

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 786, in BindEntry?

attrs = self.get_attrs(entry, metadata)

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 793, in get_attrs

for src in list(self.entries.values())]:

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 743, in Cache

self.pnode.Match(metadata, cache[1])

File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Pkgmgr.py", line 50, in Match

if self.predicate(metadata):

TypeError?: <lambda>() takes exactly 2 arguments (1 given)

Attachments

0001-Fix-predicate-call-from-Pkgmgr.patch (1.2 KB) - added by Calen Pennington <[email protected]…> 12 years ago.
Proposed Fix

Change History

comment:1 Changed 12 years ago by Calen Pennington <[email protected]…>

Sorry, that stack trace was rather malformed. Trying to pretty it up:

Unexpected failure in BindStructure: Package wgoracle-client
Traceback (most recent call last):
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Core.py", line 232, in BindStructure
    self.Bind(entry, metadata)
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Core.py", line 266, in Bind
    metadata)
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Pkgmgr.py", line 153, in BindEntry
    Bcfg2.Server.Plugin.PrioDir.BindEntry(self, entry, metadata)
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 786, in BindEntry
    attrs = self.get_attrs(entry, metadata)
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 793, in get_attrs
    for src in list(self.entries.values())]:
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 743, in Cache
    self.pnode.Match(metadata, cache[1])
  File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Pkgmgr.py", line 50, in Match
    if self.predicate(metadata):
TypeError: <lambda>() takes exactly 2 arguments (1 given)

Changed 12 years ago by Calen Pennington <[email protected]…>

Proposed Fix

comment:2 Changed 12 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

Added in a3f986e98b29bfa5f1f5dfd82bac52274091c440. Thanks for the patch!

comment:3 Changed 9 years ago by Williamdype

  • Version 1.0 deleted
  • Milestone Bcfg2 1.2.0 Release deleted

Interesting helpful bugs noticed here. This is test post http://xd6lfj3z.com

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.