firmwaretool fails on CentOS 5.2 x86_64 Dell 1950

Patrik Karen dell-lists at familjenkaren.se
Thu Jan 29 06:09:22 CST 2009


There is a bug in dell_inventory_collector v5.5 that no-one seems to be willing to fix :-( that makes the program crash if you have a Perc5/i controller.
You can get around it by backing dell_inventory_collector to v5.4 or patching the current version yourself.
/usr/lib/python2.4/site-packages/dell_dup/svm.py line 121 needs to read "int(device, 16)" instead of "int(device, 10)"

(Backing the version works for me. I haven't tried the patch but that should work as well.)

See http://lists.us.dell.com/pipermail/linux-poweredge/2009-January/038384.html and http://lists.us.dell.com/pipermail/firmware-tools-devel/2008-December/000407.html

//Patrik

Craig Isdahl wrote:
> Hello,
> 
> We are receving the following error when trying to update firmware on this
> server.  It is a new installation, OpenManage etc works fine but I'd like to
> get the firmware updated.  I don't have another 1950 running CentOS 5.2 but I
> have and 1850 that works w/out problems.  Any pointers?
> 
> Thanks!
> Craig
> 
> ------
> 
> [root at t2s-hn1 tmp]# cat /etc/redhat-release
> CentOS release 5.2 (Final)
> 
> [root at t2s-hn1 tmp]# uname -a
> Linux t2s-hn1.dashsystems.com 2.6.18-92.1.18.el5.028stab060.2 #1 SMP Tue Jan
> 13 11:38:36 MSK 2009 x86_64 x86_64 x86_64 GNU/Linux
> 
> [root at t2s-hn1 tmp]# rpm -qa | grep firmware
> firmware-addon-dell-2.1.2-4.3.el5
> dell-firmware-repository-1-4
> firmware-tools-2.1.5-1.1.el5
> 
> 
> [root at t2s-hn1 tmp]# firmwaretool --inventory
> Wait while we inventory system:
> /       inventory_collector_inventory: Running Inventory: This may take sev
> ...Traceback (most recent call last):
>   File "/usr/sbin/firmwaretool", line 23, in ?
>     ftmain.main(sys.argv[1:])
>   File "/usr/share/firmware-tools/ftmain.py", line 109, in main
>     result, resultmsgs = base.doCommands()
>   File "<firmwaretools.peak_util_decorators.rewrap wrapping cli.doCommands at
> 0x2B6BFA090230>", 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 134, in doCommands
>     self.opts.mode, self.fullCmdLine, self.args)
>   File "<firmwaretools.peak_util_decorators.rewrap wrapping
> inventory_cmd.doCommand at 0x2B6BFA75CE60>", 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/inventory_cmd.py", line 62, in
> doCommand
>     for pkg in base.yieldInventory(cb=cli.mycb({})):
>   File "/usr/lib/python2.4/site-packages/firmwaretools/__init__.py", line 287,
> in yieldInventory
>     for dev in self.systemInventory.iterDevices():
>   File "/usr/lib/python2.4/site-packages/firmwaretools/__init__.py", line 252,
> in <lambda>
>     fget=lambda self: self._getInventory(),
>   File "<firmwaretools.peak_util_decorators.rewrap wrapping
> firmwaretools._getInventory at 0x2B6BF97839B0>", 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 227,
> in _getInventory
>     self.plugins.run("inventory", inventory=self._systemInventory)
>   File "<firmwaretools.peak_util_decorators.rewrap wrapping
> firmwaretools.plugins.run at 0x2B6BF9787CF8>", line 3, in run
>   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/plugins.py", line 182,
> in run
>     getattr(module, hook)(conduitcls(self, self.base, conf), *args, **kargs)
>   File "<firmwaretools.peak_util_decorators.rewrap wrapping
> dell_dup.dup.inventory_hook at 0x2B6BFA743A28>", line 3, in inventory_hook
>   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/dell_dup/dup.py", line 168, in
> inventory_hook
>     for device in svm.genPackagesFromSvmXml(inventoryXml):
>   File "/usr/lib/python2.4/site-packages/dell_dup/svm.py", line 121, in
> genPackagesFromSvmXml
>     device = int(device, 10)
> ValueError: invalid literal for int(): e
> 
> _______________________________________________
> firmware-tools-devel mailing list
> firmware-tools-devel at lists.us.dell.com
> http://lists.us.dell.com/mailman/listinfo/firmware-tools-devel
> 



More information about the firmware-tools-devel mailing list