openhpi2 / Open-HPI

Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
Other
3 stars 1 forks source link

Some times saHpiResourcePowerStateSet return is not correct #2571

Closed openhpi2 closed 8 years ago

openhpi2 commented 9 years ago

saHpiResourcePowerStateSet returns success to power down a server. But the server is actually not powered down in some circumstances. OA sends the command and returns success, but sometimes server does not execute the command (power down) One way to test it is to turn of acpid daemon. There are other situations too.

Reported by: dr_mohan

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

The following situations exist too. When a user is logged in, depending on the OS, the shutdown request may send a message to the user and wait for x seconds (60 seconds by default) before shutting down the system. If there are no users logged in then the shutdown is immediate. It is observed that when virtualbox is running on centos 6.4 it waited for the user input when shutdown was issued. This was infinite wait. In the above cases the saHpiResourcePowerStateSet could return INVALID_STATE after the timeout period as the request was not carried out.

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Original comment by: dr_mohan

openhpi2 commented 9 years ago

Fixed with checkin #7625

Original comment by: dr_mohan