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

27999 Commits

Author SHA1 Message Date
Vinícius Ferrão 4ad9db20a4 refactor(genesis): follow mknb perl style 2026-09-04 18:03:05 -03:00
Vinícius Ferrão 0ad83ce257 test(genesis): cover s390x config failures 2026-09-04 17:41:08 -03:00
Vinícius Ferrão 288ca8b78a fix(genesis): install s390x configs safely 2026-09-04 17:41:08 -03:00
Vinícius Ferrão ecbafb4a2e docs(genesis): explain s390x config lookup 2026-09-04 17:15:24 -03:00
Vinícius Ferrão 9e65f9c45d test(genesis): cover s390x integration boundaries 2026-09-04 17:15:24 -03:00
Vinícius Ferrão bfd4442cc2 refactor(genesis): use the extension arch default 2026-09-04 17:15:23 -03:00
Vinícius Ferrão 22646de0a8 fix(genesis): match architectures literally 2026-09-04 17:15:23 -03:00
Vinícius Ferrão a8c6bd2a4a fix(genesis): harden s390x configurations 2026-09-04 17:15:23 -03:00
Vinícius Ferrão ccac4f57eb test(genesis): cover architecture reporting 2026-09-04 16:54:13 -03:00
Vinícius Ferrão 0cbeb3bb56 feat(genesis): report build architectures 2026-09-04 16:54:13 -03:00
Vinícius Ferrão 6aba71b44c test(genesis): cover s390x config name 2026-09-04 16:37:39 -03:00
Vinícius Ferrão 8217422a70 fix(genesis): use s390x config name 2026-09-04 16:37:38 -03:00
Vinícius Ferrão b7f9864528 docs(genesis): clarify s390x support 2026-09-04 16:20:38 -03:00
Vinícius Ferrão 7183fd8414 test(genesis): cover s390x boot behavior 2026-09-04 16:20:38 -03:00
Vinícius Ferrão 9d30f127b5 fix(genesis): simplify s390x network IPL 2026-09-04 16:20:38 -03:00
Vinícius Ferrão bc366dde81 docs(genesis): narrow s390x support 2026-09-04 15:31:34 -03:00
Vinícius Ferrão 6711a5ce9e test(genesis): tighten s390x coverage 2026-09-04 15:31:33 -03:00
Vinícius Ferrão a1e9948997 fix(genesis): limit s390x boot to validated path 2026-09-04 15:31:33 -03:00
Vinícius Ferrão 77ada41319 refactor(genesis): keep s390x Perl policy neutral 2026-09-04 14:55:21 -03:00
Vinícius Ferrão 582a361145 docs(genesis): define s390x validation limits 2026-09-04 14:43:41 -03:00
Vinícius Ferrão cfbbdb283b test(genesis): validate s390x build metadata 2026-09-04 14:43:35 -03:00
Vinícius Ferrão f7e3bd4a96 fix(genesis): keep s390x metadata composable 2026-09-04 14:43:18 -03:00
Vinícius Ferrão 059438d266 test(genesis): cover s390x identity fallbacks 2026-09-04 14:42:57 -03:00
Vinícius Ferrão dec2227c8e fix(genesis): scope s390x identity handling 2026-09-04 14:42:51 -03:00
Vinícius Ferrão 2bb76b523e test(genesis): cover s390x boot handoff 2026-09-04 14:42:42 -03:00
Vinícius Ferrão f549f46b51 fix(genesis): harden s390x boot handoff 2026-09-04 14:42:35 -03:00
Vinícius Ferrão 5203c17a87 refactor(genesis): clean s390x Perl code 2026-09-04 13:39:50 -03:00
Vinícius Ferrão 75b162af9a docs(genesis): clarify s390x network boot 2026-09-04 13:21:28 -03:00
Vinícius Ferrão 5a89bb5bd0 test(docs): cover the s390x Genesis target 2026-09-04 12:48:32 -03:00
Vinícius Ferrão 1fe530431c docs(genesis): document s390x target 2026-09-04 12:48:32 -03:00
Vinícius Ferrão 36ca4a369f test(genesis): cover s390x network boot 2026-09-04 12:48:32 -03:00
Vinícius Ferrão a4109f6865 feat(genesis): add s390x network boot 2026-09-04 12:48:32 -03:00
Vinícius Ferrão d140b941ad test(genesis): cover s390x identity 2026-09-04 12:48:32 -03:00
Vinícius Ferrão cb09b5033d feat(genesis): report IBM Z identity 2026-09-04 12:48:31 -03:00
Vinícius Ferrão e08804d0e8 test(genesis): cover s390x OpenEmbedded target 2026-09-04 12:48:31 -03:00
Vinícius Ferrão b63e695601 feat(genesis): add s390x OpenEmbedded target 2026-09-04 12:48:31 -03:00
Daniel Hilst fd580b901f Merge pull request #7817 from VersatusHPC/refactor/debian-arch-map
refactor(debian): map media architectures through a shared table
2026-09-04 11:07:16 -03:00
Daniel Hilst e08fe95959 Merge pull request #7799 from VersatusHPC/fix/ipmi-ipv4-literal-guardrail
fix(ipmi): reject ambiguous IPv4 literals
2026-09-03 20:27:14 -03:00
Vinícius Ferrão ca2aec5397 test(xCAT-test): cover the debootstrap architecture genimage passes
Drive the assignment genimage makes and check the name debootstrap receives for
each architecture, including the POWER LE spelling that debootstrap rejects.
2026-09-03 19:57:11 -03:00
Vinícius Ferrão 1efeef4895 refactor(genimage): take the debootstrap architecture from the shared mapping
genimage translated one architecture for debootstrap, x86_64 to amd64, and
compared against a bareword rather than a string, which only resolves because
the script does not enable strict subs.

Read the name from xCAT::Utils, which genimage already loads. Every
architecture reaches debootstrap with the name it does today.
2026-09-03 19:44:14 -03:00
Vinícius Ferrão e982e16181 test(xCAT-test): cover the Debian architecture mapping
Pin both directions for every architecture xCAT supports on Ubuntu, the
pass-through for names Debian shares, and the round trip that copycd and
debootstrap depend on agreeing about.
2026-09-03 19:44:13 -03:00
Vinícius Ferrão bf56116732 refactor(debian): map media architectures through a shared table
copycd translated the architecture the Ubuntu media reports with its own
if/elsif chain, and genimage translates the same names back for debootstrap with
another one. Neither can be reused, so a new architecture has to be added to
both.

Put both directions in xCAT::Utils and have copycd read from there. The names
and the fallback do not change: media that xCAT has no name for still leave the
architecture as the media reported it.
2026-09-03 19:44:13 -03:00
Daniel Hilst 9f4e53e380 Merge pull request #7800 from VersatusHPC/refactor/dhcp-omapi-command-runner
refactor(dhcp): share OMAPI command runner
2026-09-03 19:34:10 -03:00
Daniel Hilst 994601c4d6 Merge pull request #7815 from VersatusHPC/refactor/ubuntu-media-kernel-probe
refactor(debian): resolve the install kernel and initrd from a table
2026-09-03 19:32:59 -03:00
Vinícius Ferrão b97c6feb2d test(xCAT-test): cover the install kernel and initrd resolution
Build each Ubuntu media layout on disk and ask the resolver for its kernel and
initrd: the netboot trees, the flat netboot layout, both casper images, and the
POWER layouts where the kernel and the initrd sit in different directories.

Pin the precedence the installer depends on, a netboot tree over a live image
and a hardware-enablement kernel over the release one, and pin the three ways
media resolve to nothing.
2026-09-03 18:49:07 -03:00
Vinícius Ferrão 4312fe8337 refactor(debian): resolve the install kernel and initrd from a table
The probe spelled out every candidate path twice inside one nested condition,
once to test it and once to assign it, so adding an architecture meant adding
another branch of the same shape. Move the candidates into a table keyed by
architecture family and walk it in order.

Same paths, same precedence, same failure behaviour: a media tree that matches
nothing leaves the caller on the "install image not found" path as before.
2026-09-03 18:49:07 -03:00
Vinícius Ferrão 95defee20b test(dhcp): exercise source-owned OMAPI behavior
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-03 18:14:00 -03:00
Vinícius Ferrão 1a2bbda692 test(dhcp): verify OMAPI writer flush ordering
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-03 18:14:00 -03:00
Vinícius Ferrão 3836ae937e test(dhcp): cover OMAPI inherited handle safety
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-03 18:13:59 -03:00
Vinícius Ferrão b2b188302a fix(dhcp): protect inherited handles in OMAPI child
Use xCAT::Utils->xfork so child-side setup or exec failures do not destroy database handles inherited from the caller.

Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-03 18:13:59 -03:00