Operating System - Linux
1752795 Members
6401 Online
108789 Solutions
New Discussion

ilorest tool on Centos/RHEL - flashfwpkg

 
NeillC
Occasional Contributor

ilorest tool on Centos/RHEL - flashfwpkg

The ilorest flasfwpkg tool fails on Linux with an error like:

ERROR: [Errno 2] No such file or directory:  '$HOME/.iLOrest/cache/jtvuuqlqcdom\\payload.json'

There is a file $HOME/.iLOrest/cache/jtvuuqlqcdom/payload.json'

It looks like the ilorest tool is using the wrong separator for the file path.

Does anyone know how to fix/work around this?

Note: using the Windows version of ilorest is not a viable option.

5 REPLIES 5
josh_koontz
Occasional Visitor

Re: ilorest tool on Centos/RHEL - flashfwpkg

I'm seeing the exact same behavior.  Has anybody found the solution?

I tried the --nocache option, but that didn't change the error message.

ramana_85
HPE Pro

Re: ilorest tool on Centos/RHEL - flashfwpkg

Which version ILO REST tool is being used for this issue. If you are using 2.4. Kindly use Version 2.3 and let us know the result

I am a HPE Employee
NeillC
Occasional Contributor

Re: ilorest tool on Centos/RHEL - flashfwpkg

Using the latest version from the HP website.

We eventually downloaded the source code from github and changed the file separator.

Problems lines are in src/extensions/iLO REPOSITORY COMMANDS/FwpkgCommand.py

Lines 205 and 263  both use string concatenation and a hardcoded separator of '\\' to create the filename. Changing that constant to '/' fixes the problem on Linux, but would not work on Windows.

Using os.path.join (https://docs.python.org/2/library/os.path.html#os.path.join) would make the code platform independent. Or at least use os.sep (https://docs.python.org/2/library/os.html#os.sep)

As a side comment - distributing this as an executable compiled with pyinstaller adds considerably to the difficulty of making changes. If seuptools was used instead the source code would be much easier to work with.

Jimmy Vance
HPE Pro

Re: ilorest tool on Centos/RHEL - flashfwpkg

I've passed your comments on to the team that maintains ilorest

No support by private messages. Please ask the forum! 
Jimmy Vance
HPE Pro

Re: ilorest tool on Centos/RHEL - flashfwpkg

Response from the ilorest team

We are aware of this issue and already have applied a fix which we be available in the next release.

 The tool is avalable as source instead of an executable on github. 
https://github.com/HewlettPackard/python-redfish-utility

 

No support by private messages. Please ask the forum!