2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-04 08:26:59 +00:00
Commit Graph

355 Commits

Author SHA1 Message Date
Daniel Hilst e5bc261811 Merge pull request #7667 from VersatusHPC/harvest/ipmi-fpc-neverwait
fix(ipmi): never rate-limit packets to an FPC during reseat
2026-07-27 11:11:52 -03:00
Daniel Hilst caffd43e2d Merge pull request #7660 from VersatusHPC/harvest/ipmi-lenovo-recognition
fix(ipmi): recognize additional Lenovo IMM firmware prefixes and energy code
2026-07-27 10:55:02 -03:00
Daniel Hilst 2533c4ac62 Merge pull request #7635 from VersatusHPC/harvest/rinv-deterministic-sort
fix(rinv): sort FRU output deterministically
2026-07-27 08:26:08 -03:00
Vinícius Ferrão 854babe0c5 fix(rspconfig): clearer error when no option is given
Running rspconfig against an mgt=ipmi node with no option fell through to the
generic "Unsupported command: rspconfig " message (with an empty option),
which does not tell the user what is wrong. Detect the empty option in
preprocess_request and report that options are required.

Recovered from the unmerged lenovobuild branch (original 08ae94bd).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-25 21:41:11 -03:00
Vinícius Ferrão d08a264e9d fix(rinv): sort FRU output deterministically
The FRU key sort used only `$a <=> $b`, a numeric comparison that returns 0
for the non-numeric FRU field names, leaving them in hash-iteration order.
That order is randomized per process, so `rinv <node> all` printed its fields
in a different order on each run. Add `$a cmp $b` as a tiebreaker so the
output is stable.

Recovered from the unmerged lenovobuild branch (original 9cd3fac6).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-25 21:41:03 -03:00
Vinícius Ferrão 7ff2830bf6 fix(ipmi): never rate-limit packets to an FPC during reseat
reseat_node opens an IPMI session to the FPC/CMM to reseat a node. The FPC
needs packets sent without maxpending flow-control, but that state is only held
transiently. Add a persistent per-session 'neverwait' flag, set it on the FPC
reseat session, and honor it in sendpayload.

The flag defaults off, so it is a no-op for every other IPMI session; only the
FPC reseat path opts in. (The lenovobuild original also reworked the shared
login/admin_level_set nowait handling; that part is left out to avoid changing
flow-control for all BMCs.)

Not lab-validated (no NeXtScale FPC/CMM available).

Recovered from the unmerged lenovobuild branch (eda85df3, neverwait hunks only).
2026-07-23 19:32:58 -03:00
Vinícius Ferrão f86a0c377c fix(rvitals): treat energy code 0xc1 as 'not supported'
The energy-manager (IEM) command handler treated response code 0xcb as the
'not present / not supported' signal. Some BMCs return 0xc1 for the same
condition, which was left unhandled. Accept 0xc1 as well.

Recovered from the unmerged lenovobuild branch (06d7097).
2026-07-23 17:55:16 -03:00
Vinícius Ferrão 259b63da8c fix(rinv): recognize TEI, CDI and PSI IMM firmware prefixes
The rinv firmware-inventory path detects a Lenovo IMM by matching the firmware
build-ID prefix (yuoo, 1aoo, tcoo). Some IMM firmware families report a tei, cdi
or psi prefix and were therefore not recognized as an IMM. Add them.

Recovered from the unmerged lenovobuild branch (e50cf37, 201b2de).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-23 17:54:59 -03:00
Markus Hilger c7915645b3 Merge pull request #7541 from VersatusHPC/fix/ipmi-rspconfig-set-readback
Improve rspconfig SET readback and fix backupgateway SET target
2026-05-04 17:19:38 +02:00
Vinícius Ferrão d71c7f7ac6 Improve rspconfig SET readback and fix backupgateway SET target
On some BMCs (notably Supermicro), a GET immediately after SET
returns the old value until the BMC applies the change. This made
rspconfig output misleading for network setting operations.

- Store the canonical SET value after normalization and compare
  with the GET readback for ip, netmask, gateway, and backupgateway.
  When they differ, annotate the output:
  "BMC Gateway: 10.20.0.1 (requested 10.20.0.254, not yet reflected)"
- Consolidate ip/netmask/gateway/backupgateway display into one block
- Fix backupgateway SET: was routed through the gateway branch
  writing parameter 0x0C instead of 0x0E. Now has its own branch
  writing the correct IPMI parameter.
- ip=dhcp is unaffected (separate code path, never stores a value)

Tested on Supermicro IPMI BMC (10.20.0.51).

Fixes #3445
2026-05-03 21:01:42 -03:00
Vinícius Ferrão 2fa7fca1ad Allow rspconfig to disable VLAN on IPMI BMCs
rspconfig vlan= only accepted values 1-4096 with no way to disable
VLAN tagging. Users had to resort to raw IPMI commands to clear a
stale VLAN after ip=dhcp.

- Accept vlan=off/disable/disabled to clear VLAN tagging via
  standard IPMI parameter 0x14 with the enable bit unset
- Fix valid range from 1-4096 to 1-4094 (IEEE 802.1Q)
- Use strict digit matching to reject malformed inputs

To clear VLAN after a DHCP reset: rspconfig <node> vlan=off

Tested on Supermicro IPMI BMC (10.20.0.51).

Partially addresses #3725
2026-05-03 12:04:21 -03:00
Vinícius Ferrão 40977b717f Fix alert handler precedence and tighten input matching in setnetinfo
Two pre-existing bugs in the alert on/off conditions:

1. Operator precedence: 'and' with 'or' without parens caused any
   subcommand with argument matching /^en/ or /^dis/ to silently
   trigger the alert handler.

2. Loose prefix matching: /^en/ and /^dis/ accepted typos like
   "enterprise" or "discover". Replace with exact token matching
   while preserving the "en"/"dis" abbreviations used by snmpmon.pm.
2026-05-03 12:04:07 -03:00
Jarrod Johnson b4bda3e80f Add support for non-zero LUN
Systems are now more likely to do non-zero LUN
2024-02-28 12:34:27 +01:00
Obihörnchen 7fd9970c77 Fix OpenPOWER detection regex
The old regex matches product IDs containing a 0 (like 1230 or 1023, ...), too.
This causes issues for some x86 Supermicro servers resulting in the following error:
  rpower node01 cycle
  node01: [xcat]: Error: unsupported command rpower cycle for OpenPOWER
The new regex fixes this issue and matches ^0$ only.
2022-01-25 12:14:47 +01:00
Mark Gurevich a6a0f92096 Use number of SDR records for SDR cache filename 2020-10-22 13:53:02 -04:00
Mark Gurevich caea18c0f5 rinv dimm display for Power nodes 2020-10-14 14:38:45 -04:00
Mark Gurevich d5e61bafc6 Make rflash -c match output of hpm check 2019-04-30 14:48:22 -04:00
xuweibj 32abba7a45 Merge branch 'master' of github.com:xcat2/xcat-core into I5548 2018-08-28 02:36:16 -04:00
yangsbj cc3d317823 capture retrieve_fd fatal error, log the underlie message 2018-08-26 23:08:25 -04:00
GONG Jie 56aa430e28 Remove trailing spaces in file xCAT-server/lib/xcat/plugins/ipmi.pm 2017-12-31 23:59:59 +00:00
zet809 b4bc1e9996 Merge pull request #5486 from jjohnson42/fixconfigfpc
fix configfpc with no gateway
2018-08-17 15:13:33 +08:00
ertaozh d7b0c0e11b fix issue 5499: rflash option needed to update PNOR or BMC individually for P9 OpenPower servers 2018-08-13 06:11:37 -04:00
Jarrod Johnson a71a6c40b0 fix configfpc with no gateway 2018-08-09 09:43:38 -04:00
Mark Gurevich 902debb3b8 Status update for FW flash (#5422) 2018-07-24 10:23:49 +08:00
ertaozh a89b4b6fd4 Small modification about rflash ipmi enhance in PR #5346 2018-07-11 17:17:52 +08:00
Mark Gurevich 9f629c5176 Improvement from review 2018-06-27 15:36:07 -04:00
Mark Gurevich 40ecdec4d4 rflash for ipmi machines enhancements 2018-06-27 12:48:48 -04:00
Victor Hu 7c331d87a5 Add model type for 'stratton' boxes, 8001-12C model type 2018-06-26 20:46:21 -04:00
Bin Xu c3ae956dd3 report ipmi_debug message under node name (#5033) 2018-04-05 10:41:08 +08:00
zet809 53a98cfecc Merge pull request #5018 from gurevichmark/openbmc_pnor_usage
Replace usage of PNOR with Host
2018-03-30 11:20:23 +08:00
Mark Gurevich 8cfe5b546e Replace usage of PNOR with Host 2018-03-28 13:09:48 -04:00
zet809 468a64ac6b Merge pull request #4898 from xuweibj/I4728
show node name with error msg for ipmi
2018-03-28 17:36:26 +08:00
XuWei 8f2ba27897 modified depending on comments 2018-03-26 21:21:51 -04:00
Mark Gurevich 20e7dcd7de Better message for --recover option 2018-03-22 14:47:05 -04:00
XuWei 3f31da4351 modified depending on comments 2018-03-20 02:17:04 -04:00
XuWei 0d5317df7f show node name with error msg for ipmi 2018-03-07 02:10:28 -05:00
ertaozh cb78be8f4d fix issue 3913: support rpower cycle for ipmi managing severs 2018-02-08 01:40:59 -05:00
Jarrod Johnson e718235ae2 macdata can be a string, ignore that as well 2018-01-16 11:13:37 -05:00
Mark Gurevich a4e9fbf01f Changes after review 2018-01-15 09:45:54 -05:00
Mark Gurevich 2ea43cc01b Enhance rflash -c output for ipmi controlled machines 2018-01-11 13:51:43 -05:00
Jarrod Johnson 7c66aec2ea Skip connection to BMC on rpower reseat
rpower reseat gets directed at the chassis manager.  Skip the
superfluous connection to the BMC and keep it from interfering
with the reseat.
2017-11-07 15:18:33 -05:00
Matt Ezell 628df6c47c Manage /var/log/xcat/rflash permissions 2017-10-23 15:17:07 -04:00
Victor Hu d605a39c45 For IPMI and OpenBMC managed nodes, rbeacon can only perform
the on or off action, nothing else is supported.
2017-10-05 21:47:15 -04:00
chenglch 5c532433a8 Do not check the directory if pUpdate is not used
fix-issue: #3972
2017-09-21 09:11:44 +08:00
Mark Gurevich 743df92e44 Treat 5104-22C as a ESS Boston node for rflash command 2017-09-18 14:15:45 -04:00
chenglch 64ab7dbd27 Add rflash recovery support for Supermicro based firmware
This commit add recover option for rflash command to upload
bmc image with tftp when the BMC is in Brick Protection state.

Example:
```
rflash <node> --recover <image>
```
implement #3873
2017-09-11 02:44:22 -04:00
Mark Gurevich c8c1fc276f Allow -d <directory name> flag for rflash 2017-08-21 15:12:41 -04:00
Mark Gurevich f3a506496d hangle rflash relative path and more Boston product ids 2017-08-16 15:19:48 -04:00
chenglch 3139353de1 Merge pull request #3531 from gurevichmark/supermicro_rflash_ready_check
Supermicro rflash wait for ready RC from BMC
2017-07-28 21:36:49 +08:00
Mark Gurevich 8dc51bcf38 Merge pull request #3540 from zet809/fix_issue_3460
fix issue 3460: Changes required for 'rflash -c' to support more deta…
2017-07-27 09:48:48 -04:00