2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-06 00:59:13 +00:00
Commit Graph

26967 Commits

Author SHA1 Message Date
Vinícius Ferrão
a6145b402b Merge pull request #7534 from VersatusHPC/fix/el10-bios-stateful-biosboot
fix: add EL10 BIOS boot partition
2026-05-03 02:36:39 +02:00
Markus Hilger
b1b0ca0396 Merge pull request #7535 from VersatusHPC/fix/plugin-error-message
fix: misleading plugin error message
2026-05-03 02:35:33 +02:00
Vinícius Ferrão
b10865c5d4 Keep plugin bug label for XS crashes without $@
The else branch handles a rare case where XS libraries (Sys::Virt,
Net::SNMP) crash without setting $@. This IS a plugin bug, so keep
that label and the debug hint. Only the common case (die with $@)
gets the clean passthrough.
2026-05-02 17:09:54 -03:00
Vinícius Ferrão
34406828b9 Pass through actual error instead of generic "plugin bug" message
When a plugin dies during request processing, xcatd wrapped the error
in a misleading "plugin bug" message that hid the real cause (e.g.
"No space left on device"). Now passes through the actual error from
the eval, making the output useful for any failure, not just disk full.

Fixes #2719
2026-05-02 17:06:18 -03:00
Vinícius Ferrão
1f9173f07a Fix some EL9 and EL10 provisioning gaps (#7530)
* Fix EL9 and EL10 provisioning gaps
2026-05-02 04:27:54 +02:00
Markus Hilger
d168dcad30 Merge pull request #7529 from VersatusHPC/fix/ubuntu-2604-support
Add Ubuntu 26.04 provisioning support
2026-05-01 23:25:09 +02:00
Vinícius Ferrão
023beff053 Add Ubuntu 26.04 provisioning support 2026-05-01 11:13:45 -03:00
Markus Hilger
10c13a3635 Merge pull request #7528 from VersatusHPC/fix/ubuntu-lts-provisioning-clean
fix: improve Ubuntu LTS provisioning support
2026-05-01 01:39:11 +02:00
Markus Hilger
568f1b8a44 Merge pull request #7523 from VersatusHPC/fix/makentp-insecure-config
fix: harden makentp generated ntp.conf
2026-04-30 10:22:50 +02:00
Vinícius Ferrão
1babd7b0e4 fix: improve Ubuntu LTS provisioning support 2026-04-29 18:19:12 -03:00
Markus Hilger
d7748b6e3a Merge pull request #7525 from VersatusHPC/kea-uefi-reservation-policy
Fix Kea UEFI reservation boot policy
2026-04-29 11:30:11 +02:00
Markus Hilger
733d076127 Merge pull request #7527 from VersatusHPC/fix/copycds-strip-alternate-suffix
fix: strip redundant alternate suffix from RHEL distnames in copycds
2026-04-29 11:29:26 +02:00
Markus Hilger
40de13dab8 Merge pull request #7526 from VersatusHPC/bump-actions-checkout-v6
Bump actions/checkout v4 to v6 for Node.js 24 compatibility
2026-04-29 11:28:07 +02:00
Vinícius Ferrão
ee26cf3f8f fix: strip redundant alternate suffix from RHEL distnames in copycds
RHEL 7 shipped ppc64le ISOs under the "alternate" label, causing
copycds to create distro paths like rhels7.6-alternate/ppc64le.
This mismatched osver() which returns rhels7.6 since /etc/os-release
has no knowledge of the alternate designation.

The architecture (ppc64le vs ppc64) already differentiates the
builds, making the alternate suffix redundant. Strip it during
auto-detection so copycds paths match osver() output.

Fixes #5593
2026-04-28 17:06:32 -03:00
Vinícius Ferrão
8d6eb04daf Bump actions/checkout v4 to v6 for Node.js 24 compatibility 2026-04-28 16:02:41 -03:00
Vinícius Ferrão
a716e8ff90 Fix DHCP CI package layout 2026-04-28 15:47:42 -03:00
Vinícius Ferrão
2c7fa228e7 retrigger CI 2026-04-28 11:37:03 -03:00
Vinícius Ferrão
0f606615b3 Fix Kea UEFI reservation boot policy 2026-04-28 03:35:53 -03:00
Markus Hilger
dd7efe5d93 Merge pull request #7524 from VersatusHPC/fix/mkdef-empty-attrs-error
fix: show useful error when mkdef is called without attributes
2026-04-27 13:35:36 +02:00
Vinícius Ferrão
57aa99e64e retrigger CI 2026-04-26 21:18:19 -03:00
Vinícius Ferrão
ec097e9d69 fix: show useful error when mkdef is called without attributes
When mkdef is called with an object name but no attributes (e.g.
mkdef -t node -o mynode), setFINALattrs produces an empty hash
and the OBJ loop has nothing to iterate. The code falls through to
"0 object definitions have been created or modified" with no
explanation of what went wrong.

Add a check after setFINALattrs: if FINALATTRS is empty, tell the
user what's missing. For nodes, mention that 'groups' is required.

Fixes #2765
2026-04-26 20:48:09 -03:00
Vinícius Ferrão
bd260c9feb fix: harden makentp generated ntp.conf
The ntpd config generated by makentp had no access restrictions,
explicitly disabled authentication, and was vulnerable to CVE-2013-5211
amplification attacks.

Add restrict lines to block unauthorized access, add iburst for faster
initial sync, replace "disable auth" with "disable monitor". Security
hardening applies to all platforms including AIX (xntpd supports the
same restrict directives).

The chrony path (EL8+) is unaffected — it delegates to setupntp.

Fixes #2435
2026-04-26 16:19:32 -03:00
Markus Hilger
4bed32987e Merge pull request #7522 from VersatusHPC/fix/xcattest-newcmdstart-upstream
fix: reset newcmdstart between files in xcattest load_case
2026-04-26 20:52:09 +02:00
Vinícius Ferrão
01150ac34b fix: reset newcmdstart between files in xcattest load_case
When a test case file is missing the end marker and the last line is a
cmd: directive, $newcmdstart stays set. The parser then appends lines
from the next file into the current command. If that next file is a
shell script (like simulatorctl.sh in the testcase tree), thousands of
lines of Perl/bash get concatenated and executed.

Reset $newcmdstart after closing each file to prevent state leaking
between files.

Fixes #5255
2026-04-26 15:28:11 -03:00
Markus Hilger
d017a941ca Merge pull request #7521 from VersatusHPC/fix/rspconfig-same-ip-verification
Fix/rspconfig same ip verification
2026-04-26 20:18:50 +02:00
Vinícius Ferrão
05a23be37a retrigger CI 2026-04-26 14:35:45 -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
Vinícius Ferrão
ca8baff388 Merge branch 'xcat2:master' into master 2026-04-26 04:35:05 -03:00
Markus Hilger
a0117699f4 Merge pull request #7519 from VersatusHPC/fix/vm-only-if-guard
fix: remove only_if mgt=kvm guard from vm table attributes
2026-04-26 03:08:50 +02:00
Markus Hilger
e448d0ac70 Merge pull request #7520 from VersatusHPC/fix/nodeset-empty-repo-template
fix: skip empty local-repository.tmpl in nodeset
2026-04-26 03:06:31 +02:00
Vinícius Ferrão
893769e7e8 Merge pull request #2 from VersatusHPC/fix/nodeset-empty-repo-template
fix: skip empty local-repository.tmpl in nodeset
2026-04-25 19:10:57 -03:00
Vinícius Ferrão
2d07295d8c fix: skip empty local-repository.tmpl in nodeset
When a pkgdir has no valid repodata, Yum.pm creates an empty
local-repository.tmpl file. Template.pm then reads it and generates
an empty yum repo config block in the kickstart. Adding a -s check
skips empty template files instead of silently including them.

Revives the fix from PR #4769 which was closed without merging.

Fixes #3572
2026-04-25 19:04:20 -03:00
Vinícius Ferrão
c5f4ac1a59 fix: remove only_if mgt=kvm guard from vm table attributes
Five vm attributes (vmhost, vmothersetting, vmmemory, vmcpus, vmnics)
had an only_if => 'mgt=kvm' guard in Schema.pm that silently hid them
from lsdef output unless mgt=kvm was set. The other 16 vm attributes
had no such guard. This inconsistency caused the documented regex
example in "Groups and Regular Expressions in Tables" to produce
incomplete output.

Fixes: xcat2/xcat-core#3006
2026-04-25 17:47:52 -03:00
Vinícius Ferrão
c881291e4a Merge pull request #1 from VersatusHPC/fix/vm-attributes-only-if-guard
fix: remove only_if mgt=kvm guard from vm table attributes
2026-04-25 17:44:30 -03:00
Vinícius Ferrão
8176947a1c fix: remove only_if mgt=kvm guard from vm table attributes
Five vm attributes (vmhost, vmothersetting, vmmemory, vmcpus, vmnics)
had an only_if => 'mgt=kvm' guard in Schema.pm that silently hid them
from lsdef output unless mgt=kvm was set. The other 16 vm attributes
had no such guard. This inconsistency caused the documented regex
example in "Groups and Regular Expressions in Tables" to produce
incomplete output.

Fixes: xcat2/xcat-core#3006
2026-04-25 16:42:42 -03:00
Markus Hilger
7b5e585dce Merge pull request #7517 from VersatusHPC/kea-dhcp-backend
Add Kea DHCP backend
2026-04-25 17:29:29 +02:00
Vinícius Ferrão
24266c8fa8 Record ppc64le Genesis blocker provenance 2026-04-24 12:19:52 -03:00
Vinícius Ferrão
1412850457 Document DHCP backend validation matrix 2026-04-23 23:19:56 -03:00
Vinícius Ferrão
e0e04f017d Render Kea additional classes by version 2026-04-23 19:39:25 -03:00
Vinícius Ferrão
714c0785b6 Preserve OPAL conf-file handling for Kea 2026-04-23 19:19:29 -03:00
Vinícius Ferrão
c2a90293ea Address DHCP backend review findings 2026-04-23 18:41:42 -03:00
Vinícius Ferrão
88579fbd77 Wire DHCP unit tests into xcattest 2026-04-23 15:10:40 -03:00
Vinícius Ferrão
792b0a07dc Clarify Kea live DHCP operations in makedhcp docs 2026-04-23 14:12:08 -03:00
Vinícius Ferrão
889b4ad254 Document the DHCP backend validation matrix 2026-04-23 11:51:09 -03:00
Vinícius Ferrão
fcd22757d2 Refine Kea xNBA handling and validation notes 2026-04-23 11:14:01 -03:00
Vinícius Ferrão
8399d88509 Address Perl quality findings 2026-04-23 03:04:37 -03:00
Vinícius Ferrão
6f3d9bb9d1 Add Kea DHCP backend 2026-04-23 02:01:33 -03:00
Markus Hilger
cf9a654b45 Merge pull request #7516 from xcat2/sunset-revert
Update sunset notice
2026-04-22 02:06:16 +02:00
Markus Hilger
ff1f1cde9b Update sunset notice 2026-04-22 02:01:41 +02:00
Markus Hilger
b6fd6148c0 Merge pull request #7515 from VersatusHPC/master
README update & Rebuild xCAT-genesis-base inside mock
2026-04-22 01:56:37 +02:00