2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-05 04:27:55 +00:00
Commit Graph

487 Commits

Author SHA1 Message Date
Vinícius Ferrão 08e73cea8c refactor(openbmc): reuse retry scheduler for 503 responses
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-07-22 19:49:41 -03:00
Vinícius Ferrão 1bca57fa2a fix: retry on HTTP 503 from OpenBMC REST API instead of failing
OpenBMC BMCs intermittently return 503 Service Unavailable when the
REST service is busy or recovering. xCAT reported the error immediately,
requiring the user to manually retry. A second attempt usually succeeds.

Retry the same request up to 3 times with a 3-second wait on 503.
If all retries fail, report the error as before. The existing 504
handling for bmcreboot is preserved.

Ref: #4264
2026-05-06 18:50:53 -03:00
Vinícius Ferrão 260ce4420d Add OpenBMC rspconfig user and alert support 2026-05-03 01:34:56 -03:00
Vinícius Ferrão dd53d1bff7 fix: rspconfig verification fails when setting BMC IP to current value
The verification logic in rspconfig_response uses a mutually exclusive
if/else to check for the old IP (origin_type) and new IP (check_result).
When setting the same IP, both match the same entry but only origin_type
gets set — check_result stays 0 and the command reports "Config IP failed".

Make the two checks independent so both can match the same IP object.

Fixes #5121
2026-04-26 04:36:07 -03:00
Mark Gurevich e4619859c0 Use correct Perl string compare operator 2021-04-02 13:13:27 -04:00
Wai Yee Wong a5535becc5 Make one correction. 2020-09-28 22:10:47 -04:00
Wai Yee Wong 0e4ce55881 Remove experimental warnings of using given-when and smartmatch. 2020-09-28 21:50:17 -04:00
Mark Gurevich cdd52eb6d9 OpenBMC rvitals command to handle varable number of fans 2020-01-28 15:06:20 -05:00
Mark Gurevich 82c03a47ea Use a different message utility to remove extra space after : 2020-01-07 11:01:41 -05:00
Mark Gurevich 2d58c5b860 Improve OpenBMC reventlog message for missing policyTable.json 2020-01-07 10:39:05 -05:00
Mark Gurevich 6ebee05df5 OpenBMC Thermal Mode {Perl] 2019-11-12 15:27:56 -05:00
Mark Gurevich ef93f188b4 OpenBMC fixes for OP940 changes 2019-09-26 15:27:16 -04:00
Mark Gurevich afdf1f56af Mask password in logs and console output 2019-09-19 13:25:48 -04:00
Mark Gurevich 5dbe9f2026 Openbmc hardware control with OP940 2019-09-12 14:38:21 -04:00
Mark Gurevich 033bc36ab5 Delay after rfalsh -d BMC reboot 2019-06-17 11:14:20 -04:00
Mark Gurevich 1ceff1ac2a Support new PowerSupplyRedundancy endpoint 2019-05-01 17:05:18 -04:00
zet809 3e219839be Merge pull request #6209 from gurevichmark/rspconfig_dump_service
Add server name to rspconfig dump output
2019-04-17 12:43:19 +08:00
Mark Gurevich 135f4cdcea Use Sys::Hostname instead of Net::Domain 2019-04-09 11:26:17 -04:00
Mark Gurevich 932bf55944 Use xCAT::MsgUtils->message instead of xCAT::SvrUtils::sendmsg 2019-04-08 16:53:11 -04:00
Mark Gurevich cf14841407 Add server name to rspconfig dump output 2019-04-08 15:00:43 -04:00
Mark Gurevich e52acb3799 Handle openbmc login errors 2019-04-03 15:59:53 -04:00
xuweibj 10a858cf61 fix issue 5719, make output of commands against openbmc same 2018-11-21 19:59:04 -05:00
xuweibj 8132701423 fix issue 5627, find verbose option and delete it for openbmc perl (#5629) 2018-09-14 18:21:40 +08:00
xuweibj d16be880e4 fix issue 5548, if ip source is dhcp will remind that could not set ntpservers 2018-08-27 03:35:48 -04:00
xuweibj 025b9f8d1a To fix issue that lose activation success log 2018-08-21 02:14:45 -04:00
bybai 25b60a5088 Merge branch 'rfla' of github.com:bybai/xcat-core into rfla 2018-08-20 04:47:28 -04:00
bybai 9969bbc7f4 enhanced 2018-08-20 04:47:08 -04:00
Yuan Bai aecfa7f011 Merge branch 'master' into rfla 2018-08-20 14:26:17 +08:00
bybai fedc352715 enhance text 2018-08-20 01:35:31 -04:00
bybai b19dcd43bc enhance rflash -d log based on comments 2018-08-12 23:47:46 -04:00
bybai b1233beae5 capture rflash -d some debug info into rflash log 2018-08-10 06:40:23 -04:00
bybai 23759f22fc check BMC state after BMCreboot in rflash -d 2018-08-03 02:34:24 -04:00
Mark Gurevich 4d0bde05d6 Merge pull request #5416 from bybai/rf
put a delay of 3 seconds to untar the firmware file for rflash -d
2018-07-23 10:33:43 -04:00
bybai 22d35a2dba polish the comments 2018-07-22 22:34:34 -04:00
xuweibj cf88447622 Merge pull request #5328 from gurevichmark/rflash_upload_error
Catch rflash firmware upload error
2018-07-23 08:53:07 +08:00
Mark Gurevich b158b5afe6 More errors to catch 2018-07-20 10:33:58 -04:00
bybai 5096b82aac put a delay of 3 seconds to untar the firmware file for rflash -d 2018-07-20 01:51:17 -04:00
bybai 37179c2ef7 add comments 2018-07-18 23:21:43 -04:00
bybai 2e5ff9bf4e add power on after reset for rflash -d 2018-07-18 05:27:39 -04:00
xuweibj d74f1eed53 fix issue 5288, print out management node when summary for rflash (#5401) 2018-07-18 10:04:10 +08:00
Mark Gurevich 432168d2ed Handle rflash BMC login errors 2018-07-11 13:51:48 -04:00
xuweibj c4ab51991d if not upload failed, rst is bmc not ready 2018-07-11 04:37:29 -04:00
Mark Gurevich cf44690cc2 Catch rflash firmware upload error 2018-06-25 16:15:43 -04:00
xuweibj 12bfd5699d if not get valid pid when waitpid, sleep (#5274) 2018-06-01 14:30:53 +08:00
Casandra Qiu 55581cb2db Modify output message for PDU outlet state 2018-05-17 15:04:53 -04:00
xuweibj 0fb441b820 fix issue for using waitpid for openbmc perl (#5208) 2018-05-15 18:12:35 +08:00
Victor Hu 8024e0a2ab Merge pull request #5093 from gurevichmark/openbmc_upload_dd_check
Processor DD version check before firmware upload
2018-04-16 11:27:04 -04:00
XuWei 9cd9017e4b modify output format of rvitals leds 2018-04-12 02:42:06 -04:00
Mark Gurevich 74874062d5 Processor DD version check in Perl 2018-04-11 15:09:23 -04:00
XuWei bd6718999b modify return code of rspconfig hostname error 2018-04-10 21:55:04 -04:00