update_firmware failure: InventoryGenerator() takes no arguments(2given)

Michael_E_Brown at Dell.com Michael_E_Brown at Dell.com
Fri Mar 7 01:31:38 CST 2008


For anybody who has run into this problem, I have released new, updated versions of dell-bmcflash and dell-lsiflash that will fix this problem. The new versions have no files. :) Since they are obsolete, you should remove them if you have them installed, but for those who may not be aware, the new RPMs are basically just empty placeholders that will automatically upgrade any installed versions so they dont interfere.
--
Michael


-----Original Message-----
From: linux-poweredge-bounces at dell.com on behalf of Michael_E_Brown at dell.com
Sent: Tue 3/4/2008 9:05 AM
To: jpotter-dell at codepuppy.com; linux-poweredge-Lists
Subject: RE: update_firmware failure: InventoryGenerator() takes no arguments(2given)
 
We just discussed this error yesterday on firmware-tools-devel at lists.us.dell.com. :)

Solution: "rpm -e dell-lsiflash; rpm -e dell-bmcflash"

Background: these two RPMs are now obsolete and replaced by the dell-dup package. I have an update queued for dell-dup that will use the proper RPM "Obsoletes:" tag, but havent yet released it.
--
Michael


-----Original Message-----
From: linux-poweredge-bounces at dell.com on behalf of J. Potter
Sent: Tue 3/4/2008 6:36 AM
To: linux-poweredge-Lists
Subject: update_firmware failure: InventoryGenerator() takes no arguments (2given)
 

Hi List,

I'm seeing the below error on all of our CentOS 5 (both 32 and 64 bit)  
systems. These boxes are up-to-date with the latest rpms, and I don't  
find this error message on Google. This is with firmware- 
tools-2.0.10-1.el5.

What am I missing?

Thanks!
-Jeff


% update_firmware

Running system inventory...
Traceback (most recent call last):
   File "/usr/sbin/update_firmware", line 23, in ?
     ftmain.main(sys.argv[1:])
   File "/usr/share/firmware-tools/ftmain.py", line 105, in main
     result, resultmsgs = base.doCommands()
   File "<peak.util.decorators.rewrap wrapping cli.doCommands at  
0x2AAAB0DD2500>", line 3, in doCommands
   File "/usr/lib/python2.4/site-packages/firmwaretools/ 
trace_decorator.py", line 81, in trace
     result = func(*args, **kw)
   File "/usr/share/firmware-tools/cli.py", line 133, in doCommands
     self.opts.mode, self.fullCmdLine, self.args)
   File "<peak.util.decorators.rewrap wrapping update_cmd.doCommand at  
0x2AAAB14A12A8>", line 3, in doCommand
   File "/usr/lib/python2.4/site-packages/firmwaretools/ 
trace_decorator.py", line 81, in trace
     result = func(*args, **kw)
   File "/usr/share/firmware-tools/plugins/update_cmd.py", line 59, in  
doCommand
     base.updateFirmware()
   File "<peak.util.decorators.rewrap wrapping cli.updateFirmware at  
0x2AAAB0DD2C80>", line 3, in updateFirmware
   File "/usr/lib/python2.4/site-packages/firmwaretools/ 
trace_decorator.py", line 81, in trace
     result = func(*args, **kw)
   File "/usr/share/firmware-tools/cli.py", line 147, in updateFirmware
     updateSet = self.calculateUpgradeList(cb=mycb(depFailures))
   File "<peak.util.decorators.rewrap wrapping  
firmwaretools.calculateUpgradeList at 0x2AAAB04BFA28>", line 3, in  
calculateUpgradeList
   File "/usr/lib/python2.4/site-packages/firmwaretools/ 
trace_decorator.py", line 81, in trace
     result = func(*args, **kw)
   File "/usr/lib/python2.4/site-packages/firmwaretools/__init__.py",  
line 242, in calculateUpgradeList
     self.systemInventory.addAvailablePackage(candidate)
   File "/usr/lib/python2.4/site-packages/firmwaretools/__init__.py",  
line 257, in <lambda>
     fget=lambda self: self._getInventory(),
   File "<peak.util.decorators.rewrap wrapping  
firmwaretools._getInventory at 0x2AAAAAB230C8>", line 3, in  
_getInventory
   File "/usr/lib/python2.4/site-packages/firmwaretools/ 
trace_decorator.py", line 81, in trace
     result = func(*args, **kw)
   File "/usr/lib/python2.4/site-packages/firmwaretools/__init__.py",  
line 230, in _getInventory
     for dev in func(base=self, cb=self.cb):
TypeError: InventoryGenerator() takes no arguments (2 given)



     def _getInventory(self):
         if self._systemInventory is not None:
             return self._systemInventory

         self._systemInventory = repository.SystemInventory()
         self.plugins.run("preinventory")
         for name, func in self._inventoryFuncs.items():
             self.verbose_logger.info("running inventory for module:  
%s" % name)
             callCB(self.cb, who="populateInventory",  
what="call_func", func=func)
230:            for dev in func(base=self, cb=self.cb):
                 callCB(self.cb, who="populateInventory",  
what="got_device", device=dev)
                 self._systemInventory.addDevice(dev)





_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq




More information about the Linux-PowerEdge mailing list