Closed emmapeng321 closed 3 years ago
Thanks for the submit. We will take a look and see if we can reproduce.
The issue goes away if we run ilorest first. But we would like to know if there's a solution without running ilorest first.
-sh-4.2# ilorest serverinfo --fan
iLOrest : RESTful Interface Tool version 2.5
Copyright (c) 2014, 2019 Hewlett Packard Enterprise Development LP
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ERROR: local variable 'data' referenced before assignment
-sh-4.2# ilorest
iLOrest : RESTful Interface Tool version 2.5
Copyright (c) 2014, 2019 Hewlett Packard Enterprise Development LP
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
iLOrest > exit
Logging session out.
Bye for now
-sh-4.2# ilorest serverinfo --fan
iLOrest : RESTful Interface Tool version 2.5
Copyright (c) 2014, 2019 Hewlett Packard Enterprise Development LP
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Local login initiated...
Discovering data...Done
It looks like it may be an issue with serverinfo parsing login. Can you run ilorest login
first and then ilorest serverinfo --fan
and see if that works? Also, can you try with the latest release if that doesn't work? 3.0 just came out a few days ago. https://github.com/HewlettPackard/python-redfish-utility/releases/latest
Running ilorest login first will fix our issue! Thanks! We are not allowed to install 3.0 yet but will give it a try as well once we can upgrade.
Thank you. I will keep this open until we have confirmation the issue is fixed on iLOrest 3.0.
Fixed in 3.1