2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 08:52:20 +00:00
Commit Graph

3542 Commits

Author SHA1 Message Date
Jarrod Johnson 209d6ef2ed Fix undefined nodeinfo in the get_chassis_info flow. 2026-11-16 16:47:19 -05:00
Jarrod Johnson 246aae08fe Change secure http to ipxe as well
It is verified that iPXE leverages the UEFI CA and does not let untrusted connections.

So let it do https as well as http, relegating boot.img for virtual media instead.

This like the plain http boot works nicely with a broader set of UEFI.
2026-11-16 16:43:11 -05:00
Jarrod Johnson bd647ebfa4 Implement chassis information separate from system
Some implementations claim to have a system, but have useless data.

We can't tell programattically that the data is useless, so provide chassis for the user to decide.
2026-11-14 08:01:31 -05:00
Jarrod Johnson 334815e9a5 Catch the target url from a 403 extended message, if required 2026-11-13 10:00:38 -05:00
Jarrod Johnson d4c2072e3f Have nvos discovery handle LLA based onboarding 2026-11-13 09:36:31 -05:00
Jarrod Johnson dd700ad1a5 Add mac address to registered address, when possible 2026-11-13 09:04:07 -05:00
Jarrod Johnson 85ff47e684 Add singleton IPv6 support to nodediscover register
This allows otherwise queried ipv6 addresses to be checked one at a time.
2026-11-13 08:13:26 -05:00
Jarrod Johnson ad2de237bc Implement management of UEFI HTTPS certificates
On supported platforms, manage the UEFI HTTPS certificate store.  This can make it easier to manage HTTPS boot.
2026-11-12 10:17:48 -05:00
Jarrod Johnson 9d78d42071 Merge remote-tracking branch 'xcat/master' 2026-11-12 10:06:02 -05:00
Jarrod Johnson bec1ed1498 Merge pull request #383 from Obihoernchen/feat/confluent-attrib-helper
Add confluent_attrib helper for profile scripts
2026-11-12 07:40:14 -05:00
Markus Hilger c949359199 Return node groups from /self/myattribs
groups is stored as a plain list rather than a value dict, so the
value check skipped it and a node could not see its own groups. Return
it as a list, the same way ansible plays get it as host vars.
2026-11-11 23:02:02 +01:00
Jarrod Johnson 5523abc435 Merge pull request #382 from Obihoernchen/fix/nodedefine-shared-groups
Copy per-node attribute data in set_node_attributes
2026-11-11 13:02:08 -05:00
Markus Hilger 69a872c208 Copy per-node attribute data in set_node_attributes
nodedefine with a noderange passed one dict for all nodes, so they
shared one stored groups list. Later group membership changes then
updated inheritance for only the first node, leaving the others with
values inherited from groups they no longer belong to.
2026-11-11 18:51:56 +01:00
Jarrod Johnson 5990303661 Fix ARM/x86 UEFI HTTP boot
Make http location tree consistent with tftp
2026-11-10 14:09:37 -05:00
Jarrod Johnson 48f82777b4 Enable iPXE based http boot
When using non-https (when we would need UEFI certificate) and if we have secureboot friendly ipxe setup, use ipxe for http boot.

This avoids the tftp requirement and preserves secureboot, but uses material that UEFI is generally better equipped to handle.

For now, take care of the IPv4 path, IPv6 path contingent on testing.
2026-11-10 10:23:42 -05:00
Jarrod Johnson 52505e6f2d Improve SSDP responder concurrency
Bulk boot could get serialized too harshly. Particularly could hiccup on name lookup delay.

Take the penalties concurrently instead.
2026-11-06 17:28:05 -05:00
Jarrod Johnson 84faa9a1c7 Properly indicate bynode or not in message state 2026-11-06 10:08:19 -05:00
Jarrod Johnson 58d4c6a5a9 Allow API caller to request raw binary images.
This can make it more straightforward as an interface, and also defer the penalty for base64 processing.
2026-11-06 09:37:58 -05:00
Jarrod Johnson b0fff4a8fe Default to json, and add binary types for screenshot to come down in a more straightforward way 2026-11-06 08:44:46 -05:00
Markus Hilger 098d0a66c3 Enable ansible pipelining for plays by default
Without pipelining every task copies the module to the node over sftp,
then makes it executable, runs it and removes it, each a separate ssh
operation. With pipelining the module is fed to the interpreter over
the ssh session, so a task takes one operation and nothing is written
to the node's temporary directory.

Pipelining breaks become through sudo with requiretty, which rarely
applies here: plays connect as root and drop become unless become_user
is set. Setting ANSIBLE_PIPELINING or ANSIBLE_SSH_PIPELINING still
overrides this default.
2026-11-04 21:59:58 +01:00
Markus Hilger e668cdabf7 Keep ansible's default ssh_args when running plays
Setting ANSIBLE_SSH_ARGS replaces ansible's ssh_args instead of adding
to them, so plays ran without the default ControlMaster and
ControlPersist options. Every task then opened a new ssh connection
and authenticated again.

Start from ansible's default ssh_args when ANSIBLE_SSH_ARGS is not
set. An ANSIBLE_SSH_ARGS from the environment is still extended as
before.
2026-11-04 21:59:58 +01:00
Jarrod Johnson 5e45bc598b Merge pull request #367 from Obihoernchen/feat/ansible-node-attributes
Pass node attributes to profile ansible plays
2026-11-04 10:06:59 -05:00
Markus Hilger 9cbe3b91d8 Decode bytes attribute values outside of dicts too 2026-11-04 15:07:32 +01:00
Jarrod Johnson 830b6892d6 Merge pull request #369 from Obihoernchen/fix/runansible-hangs
Stop hanging on ansible play processes that fail early
2026-11-04 08:38:33 -05:00
Markus Hilger ec71d0b876 Stop hanging on ansible play processes that fail early
Drain the play process output while it runs, and stop waiting for its
feedback connection once it exits.
2026-11-04 00:23:33 +01:00
Markus Hilger 48b7dc62b5 Pass node attributes to profile ansible plays
Plays run by the deployment server get the target node's attributes in
the host variable 'confluent', nested at each dot of the name, e.g.
confluent['net']['ib0']['ipv4_address']. Secrets and unset attributes
are left out, and values are never templated.
2026-11-04 00:08:38 +01:00
Markus Hilger 1cad52284d Run profile ansible plays on ansible-core 2.19 and later
Newer ansible-core only takes a stdout callback name and no longer
templates untrusted YAML. Attach the results collector directly, load
plays trusted through the DataLoader, and report a crashed play
process as a failed task.
2026-11-03 23:58:43 +01:00
Jarrod Johnson 734ea9811a Also check if shim can be downloaded using tftp 2026-11-02 11:39:25 -05:00
Jarrod Johnson 89787671cf Merge pull request #338 from Obihoernchen/fix/ssh-agent-dir-owner
Hand /run/confluent/ssh to the confluent user
2026-10-31 09:21:18 -04:00
Markus Hilger 8ff02dc772 Require confluent_ipxe 2.0.0
Fixes #317
2026-10-31 02:35:30 +01:00
Markus Hilger 905992f054 Hand /run/confluent/ssh to the confluent user
Fixes #316
2026-10-31 02:14:21 +01:00
Jarrod Johnson f3ebf3001d Merge pull request #331 from Obihoernchen/fix/runansible-multiple-plays
Run every playbook of a remote configuration
2026-10-30 17:24:53 -04:00
Markus Hilger 680ff433ed Run every playbook of a remote configuration
asyncio has no sock_close, so the first playbook ended with an
AttributeError and the remaining ones were silently skipped.
2026-10-30 19:31:00 +01:00
Markus Hilger 0e03b07939 Use ssh keepalives for ansible plays
A node reset during a play left ssh waiting forever, which blocked
every later remote configuration of that node, like an install's post.d.
2026-10-30 18:42:48 +01:00
Markus Hilger 4aa6bf8af5 Accept plain device names in deployment.storage and fail on no match
The attribute help promises "a specific device name", but getinstalldisk
only understood "m2" and "/dev/<name>". A plain "nvme0n1" aborted the
install with "Unknown deployment.storage specification", and a
"/dev/<name>" that matched no disk was silently ignored, so the OS went
to whatever disk the default ordering picked. For an attribute meant to
pin the OS disk that is the dangerous failure mode.

Accept a kernel name with or without /dev/ and resolve /dev/disk/by-*
links to their kernel name, so a disk can be pinned by a stable path.
When nothing matches, fail with "No disks match" like the m2 filter
already does. Document the accepted forms in the attribute help.
2026-10-30 09:43:54 +01:00
Jarrod Johnson d25c3f3ff0 Merge pull request #315 from Obihoernchen/fix/server-rsync-dependency
Recommend rsync for server file synchronization
2026-10-29 10:28:10 -04:00
Jarrod Johnson 8864030a76 Implement advisory rate limiting for ssh certificate signing requests 2026-10-28 13:18:55 -04:00
Jarrod Johnson 05cfea34d6 Correct check for architocture
It is incorrect and redundant within the aarch64 path
2026-10-27 13:45:39 -04:00
Jarrod Johnson 3925c6dcbc Fix arm64 and bios netboot
First, try to offer shim

Second, make sure boot.ipxe is as permissive as the shim variant.
2026-10-27 12:10:19 -04:00
Jarrod Johnson 8023f436c1 Fix URL shortening for ARM boot
The special ARM accommodation for dubious firmware behavior failed to include the URL shortening for unreasonably long profile names.
2026-10-26 15:44:49 -04:00
Jarrod Johnson 406fe2aff9 Implement an osdeploy export 2026-10-23 09:20:48 -04:00
Jarrod Johnson 81646e54c8 Implement osdeploy import for tarred profiles
Advance an ease of use for moving diskless/cloned profiles between confluents.
2026-10-22 11:41:57 -04:00
Markus Hilger d1bb59e7c8 Merge branch 'master' into fix/server-rsync-dependency 2026-10-21 20:42:29 +02:00
Jarrod Johnson 91174e4a5c Fix getaddrinfo call in redirect calls 2026-10-20 15:42:10 -04:00
Jarrod Johnson 37f6a0b061 Slide unrecognized create requests to 'update' in proxmox 2026-10-20 15:21:46 -04:00
Jarrod Johnson 3f979f2de5 Merge remote-tracking branch 'xcat/master' 2026-10-20 13:43:59 -04:00
Jarrod Johnson 337dc6c638 Adjust debian recommends 2026-10-20 13:39:56 -04:00
Markus Hilger 4e55d9f1e8 Add error message if rsync is missing 2026-10-20 19:32:47 +02:00
Markus Hilger fcdd31167b Recommend rsync for server file synchronization
Add rsync to the server RPM recommends and Debian recommends lists so syncfiles works on minimal management nodes.

Fixes #314
2026-10-20 19:26:56 +02:00
Jarrod Johnson a0657d768f Add a recommends rsync
Some functionality requires rsync.  However some want the flexibility in skipping it.

Split the difference with a recommends
2026-10-20 08:03:36 -04:00