TimServers commented on issue #12921:
URL: https://github.com/apache/cloudstack/issues/12921#issuecomment-4256858258

   @kiranchavala  I have some more details for you.
   
   It looks like the issue is not just related to HA, but in cloudstack's 
REDFISH implementation of the  ComputerSystem.Reset API call specifically, as 
well as some logic bugs.
   
   The following tests were all done via the GUI "Issue out-of-band management 
power action" feature:
   
   <img width="1659" height="880" alt="Image" 
src="https://github.com/user-attachments/assets/dcd2c596-643e-4ebf-9fee-65cbb5787726";
 />
   
   The behaviour seems to be tied to the current state of the host.
   
   ### Scenario 1 - the host is powered ON
   The following actions all work without error: 
   ```
   OFF
   RESET
   SOFT
   STATUS
   ```
   
   The following actions will all fail with the same error:
   ```
   ON
   CYCLE
   ```
   
   
   ### Scenario 2 - the host is powered OFF
   The following actions work without error: 
   ```
   ON
   STATUS
   ```
   
   The following actions will all fail with the same error:
   ```
   OFF 
   SOFT
   CYCLE
   RESET
   ```
   
   When receiving an error, it's ALWAYS the same API call that's failing:
   
   ```
   Issue out-of-band management power action
   (kvm-18-1.servercontrol.com.au) Failed to execute System power command for 
host by performing 'POST' request on URL 
'https://10.9.3.166/redfish/v1/Systems/1/Actions/ComputerSystem.Reset' and host 
address '10.9.3.166'. The expected HTTP status code is '2XX' but it got '400'.
   ```
   
   <img width="423" height="311" alt="Image" 
src="https://github.com/user-attachments/assets/f3f6ee59-d720-4590-bbb3-f63f4483cd3a";
 />
   
   So apart from the failing API call, there also look to be some logic bugs 
here as well.
   
   1. If the host is already ON, sending the ON action attempts to send the 
ComputerSystem.Reset API call and fails. Sending an ON action when the host is 
already ON should not reboot the system.
   2. If the host is already OFF, sending the OFF action attempts to send the 
ComputerSystem.Reset API call and fails. Sending an OFF action should never 
send a reset API call.
   
   I hope this information helps, let me know if you need any more details.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to