On Thu, 14 Jan 2010 12:35:54 -0600, <[email protected]> wrote:

>> # bootstrap_firmware
>> [Errno 2] No such file or
>> directory:u'/usr/libexec/dell_dup/dell_ie_rac_5-1.0.8/inv.xml'
>
>bootstrap_firmware will run all the modules under /usr/libexec/dell_dup to try 
>to determine which pieces of hardware is present on your system. That output 
>is provided to yum so yum can try to install any firmware rpms available in 
>the repository.
>
>Looks like 'dell_ie_rac_5' is not creating it's output file 'inv.xml' when 
>invoked, don't know why. firmware-tools will fail at the moment, it would be 
>better if it logged the error and continued. To work around the issue, you can 
>remove the 'dell_ie_rac_5' rpm, but you won't be able to update your DRAC5. 
>The 'dell_ft_install' meta-rpm will need to be removed too, as it depends on 
>'dell_ie_rac_5'.
>
>For more insight on what is going on, you can run 'inventory_firmware -v' to 
>get verbose output. Might give a clue on why the drac 5 module is failing.

Thanks, using verbose mode (didn't know about that option) I managed to
solve my problem, then bootstrap-firmware ran ok and I could download the
payloads.

But then I came across the same issue in update_firmware (ExpatError)
detailed here:
http://lists.us.dell.com/pipermail/linux-poweredge/2009-December/040807.html
so at the end of this email I'm attaching the update_firmware verbose output
as you asked in that thread.

===== Details of original problem (due to sub-optimal $TERM test)
===== missing /usr/libexec/dell_dup/dell_ie_rac_5-1.0.8/inv.xml
# inventory_firmware -v
...
...

Running IE Submodule for /usr/libexec/dell_dup/dell_ie_rac_5-1.0.8
        Plugin command is svm.sh -i -o inv.xml
        Output file is inv.xml
        Plugin timeout is 300
[Errno 2] No such file or directory:
u'/usr/libexec/dell_dup/dell_ie_rac_5-1.0.8/inv.xml'

So I did
# cd /usr/libexec/dell_dup/dell_ie_rac_5-1.0.8
# ./svm.sh -i -o inv.xml
./svm.sh: line 31: exec: xterm: not found
#

This is because I was using TERM=vt220; so I edited svm.sh and changed
vt100* into vt* so that vt220 is handled as "do nothing" as it should, and
then

# ./svm.sh -i -o inv.xml
<?xml version="1.0" encoding="UTF-8" ?>
<SVMInventory lang="en">
</SVMInventory>
#

and now all the bootstrap_firmware command work as expected.

BTW, I had the same problem (vt100* -> vt*) in 
        /opt/dell/srvadmin/sbin/invcol
in the past, so that I had already taken care of.


===== Details about update_firmware error:
===== xml.parsers.expat.ExpatError: no element found: line 1, column 0
I'm using CENTOS 5.4 32bit, PE T300

# cd /usr/libexec/dell_dup/dell_ie_nic_broadcom-1.0.8/
# ./dup_inv
Segmentation fault
# ldd ./dup_inv
linux-gate.so.1 =>  (0x40000000)
libbmapi.so.6 => ./libbmapi.so.6 (0x40002000)
libc.so.6 => /lib/libc.so.6 (0x00a5d000)
/lib/ld-linux.so.2 (0x00a3f000)
# strace ./dup_inv
...
...
--- SIGCHLD (Child exited) @ 0 (0) ---
read(4, "", 4096)                       = 0
close(4)                                = 0
waitpid(19377, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 19377
munmap(0x40056000, 4096)                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
ioctl(4, SIOCETHTOOL, 0xbfb376d0)       = 0
open("/dev/mem", O_RDONLY)              = 5
mmap2(NULL, 524288, PROT_READ, MAP_PRIVATE, 5, 0x80) = 0x4005f000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
#


== complete output of "update_firmware -v"
Checking Plugin (bootstrap_pci)
        Loaded bootstrap_pci plugin
Checking Plugin (extract_dell_dup)
        Plugin raised DisablePlugin exception. skipping.
Checking Plugin (bootstrap_cmd)
        Loaded bootstrap_cmd plugin
Checking Plugin (mock_inventory_bootstrap)
        Plugin mock_inventory_bootstrap not loaded: doesnt match load type 
((4,))
Checking Plugin (dell_ft_ie_interface)
        Loaded dell_ft_ie_interface plugin
Checking Plugin (buildrpm_dell_dup)
        Plugin raised DisablePlugin exception. skipping.
Checking Plugin (update_cmd)
        Loaded update_cmd plugin
Checking Plugin (listplugins_cmd)
        Loaded listplugins_cmd plugin
Checking Plugin (dellbios)
        Loaded dellbios plugin
Checking Plugin (mock_repository)
        Plugin mock_repository not loaded: doesnt match load type ((4,))
Checking Plugin (inventory_cmd)
        Loaded inventory_cmd plugin
Checking Plugin (dellbios_extract)
        Plugin raised DisablePlugin exception. skipping.
Checking Plugin (dell_dup)
        Loaded dell_dup plugin
hello world from update module doCheck()
loading xml from: /usr/libexec/dell_dup/FRMW_BMC/PIEConfig.xml
loaded.
loading xml from: /usr/libexec/dell_dup/FRMW_BMC/PIEConfig.xml
loaded.
loading xml from: /usr/libexec/dell_dup/BIOS_NONE/PIEConfig.xml
loaded.
loading xml from: /usr/libexec/dell_dup/SASBP_SASBP/PIEConfig.xml
loaded.
loading xml from: /usr/libexec/dell_dup/BROADCOM_FRMW/PIEConfig.xml
loaded.
loading xml from: /usr/libexec/dell_dup/SAS6_SAS/PIEConfig.xml
loaded.
Not a Inventory Collector.
Not a Inventory Collector.
Not a Inventory Collector.
Not a Inventory Collector.
Not a Inventory Collector.
not verbose --> INFO: hi there
verobse INFO: hi there
Running IE Submodule for /usr/libexec/dell_dup/dell_ie_tape_prostor-1.0.8
        Plugin command is DUPwrapper -s -i inv.xml
        Output file is inv.xml
        Plugin timeout is 300
output from the cmd was: 
<?xml version="1.0" encoding="UTF-8"?>
<SVMInventory lang="en">
</SVMInventory>

Running IE Submodule for /usr/libexec/dell_dup/dell_ie_rac_5-1.0.8
        Plugin command is svm.sh -i -o inv.xml
        Output file is inv.xml
        Plugin timeout is 300
output from the cmd was: 
<?xml version="1.0" encoding="UTF-8" ?>
<SVMInventory lang="en">
</SVMInventory>

Running IE Submodule for /usr/libexec/dell_dup/dell_ie_sas-1.0.8
        Plugin command is sasdupie -i -o inv.xml
        Output file is inv.xml
        Plugin timeout is 600
output from the cmd was: 
<?xml version="1.0" encoding="UTF-8"?><SVMInventory lang="en"><Device 
vendorID="1000" deviceID="0058" subDeviceID="1f0e" subVendorID="1028" bus="3" 
device="0" function="0" display="SAS6IR Controller 0" 
impactsTPMmeasurements="TRUE"><Application componentType="FRMW" 
version="00.25.47.00.06.22.03.00" display="SAS6IR Controller 0 
Firmware"/></Device><Device componentID="11204" enum="CtrlId 1000000 DeviceId 0 
Backplane" display="SAS/SATA Backplane 0:0 Backplane"><Application 
componentType="FRMW" version="1.06" display="SAS/SATA Backplane 0:0 Backplane 
Firmware"/></Device><Device componentID="00000" enum="CtrlId 1000000 DeviceId 
1" display="WDC WD5002ABYS-1"><Application componentType="FRMW" version="3B04" 
display="WDC WD5002ABYS-1 Firmware"/></Device><Device componentID="00000" 
enum="CtrlId 1000000 DeviceId 2" display="WDC WD5002ABYS-1"><Application 
componentType="FRMW" version="3B04" display="WDC WD5002ABYS-1 
Firmware"/></Device></SVMInventory>
Added DEVICE: pci_firmware(ven_0x1000_dev_0x0058_subven_0x1028_subdev_0x1f0e)
Added DEVICE: dell_dup_componentid_11204
Added DEVICE: dell_dup_componentid_00000
Added DEVICE: dell_dup_componentid_00000
Running IE Submodule for /usr/libexec/dell_dup/dell_ie_tape_tandberg-1.0.8
        Plugin command is dupswrapper -c
        Output file is scsiInv.txt
        Plugin timeout is 400
output from the cmd was: 
<SVMInventory lang="en">
</SVMInventory>

Running IE Submodule for /usr/libexec/dell_dup/dell_ie_zappa-1.0.8
        Plugin command is PV2XX -i -x > inv.xml
        Output file is inv.xml
        Plugin timeout is 600
output from the cmd was: 
<SVMInventory lang="en">
<SPStatus result="true"><Message id="1" >inventory 
successful</Message></SPStatus >
</SVMInventory>

Running IE Submodule for /usr/libexec/dell_dup/dell_ie_bios-1.0.8
        Plugin command is biosie.bin -i inv.xml
        Output file is inv.xml
        Plugin timeout is 300
output from the cmd was: 
<?xml version="1.0" encoding="UTF-8" ?><SVMInventory lang="en"><Device 
componentID= "159" display="BIOS" impactsTPMmeasurements="TRUE"><Application 
componentType= "BIOS" version="1.4.3" display = "BIOS" 
/></Device></SVMInventory>
Added DEVICE: dell_dup_componentid_00159
Running IE Submodule for /usr/libexec/dell_dup/dell_ie_bmc-1.0.8
        Plugin command is bmcie.sh -xml > inv.xml
        Output file is inv.xml
        Plugin timeout is 300
output from the cmd was: 
<?xml version="1.0" encoding="UTF-8" ?>
<SVMInventory lang="en">
   <Device componentID="5814" display="Baseboard Management Controller">
      <Application componentType="FRMW" version="2.46" display="BMC" />
   </Device>
</SVMInventory>

Added DEVICE: dell_dup_componentid_05814
Running IE Submodule for /usr/libexec/dell_dup/dell_ie_tape_ibm-1.0.8
        Plugin command is IbmDupwrapper -silent
        Output file is scsiInv.txt
        Plugin timeout is 500
output from the cmd was: 
<?xml version="1.0" encoding="UTF-8"?>
<SVMInventory lang="en">
</SVMInventory>

Running IE Submodule for /usr/libexec/dell_dup/dell_ie_nic_broadcom-1.0.8
        Plugin command is dup_inv
        Output file is brcmfwinventory.xml
        Plugin timeout is 300
output from the cmd was: 


Running system inventory...
Traceback (most recent call last):
  File "/usr/bin/update_firmware", 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 
0x40887FB4>", 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 
update_cmd.doCommand at 0x409C6D84>", 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 69, in doCommand
    base.updateFirmware(base.opts.show_unknown)
  File "<firmwaretools.peak_util_decorators.rewrap wrapping cli.updateFirmware 
at 0x40888374>", 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 148, in updateFirmware
    updateSet = self.calculateUpgradeList(cb=mycb(depFailures))
  File "<firmwaretools.peak_util_decorators.rewrap wrapping 
firmwaretools.calculateUpgradeList at 0x4086D10C>", 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 237, 
in calculateUpgradeList
    self.systemInventory.addAvailablePackage(candidate)
  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 0x4086B1EC>", 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 0x407F2F44>", 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_ft_ie_interface.ie_interface.inventory_hook at 0x409C64C4>", 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_ft_ie_interface/ie_interface.py", 
line 213, in inventory_hook
    for device in svm.genPackagesFromSvmXml(stdout):
  File "/usr/lib/python2.4/site-packages/dell_ft_ie_interface/svm.py", line 69, 
in genPackagesFromSvmXml
    dom = xml.dom.minidom.parseString(xmlstr)
  File "/usr/lib/python2.4/xml/dom/minidom.py", line 1925, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.4/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.4/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
-- 
[email protected]

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

Reply via email to