2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-10-20 06:35:33 +00:00
Commit Graph

6995 Commits

Author SHA1 Message Date
Jarrod Johnson ed9062f7bd Merge pull request #312 from Obihoernchen/ci/nightly-packages
Build and publish nightly packages
nightly
2026-10-15 14:21:39 -04:00
Markus Hilger bb7563ec51 Add status badges to the README
Replace the static license badge with a live one, and add badges for CI,
the nightly build, the latest release and the documentation. The docs
badge carries the Octicons book icon (MIT, GitHub Inc.) inline, as
Simple Icons has no generic one.
2026-10-15 20:12:49 +02:00
Markus Hilger 6c48cb4fad Build and publish nightly packages
Build the rpms for EL9, EL10 and SUSE 16 and the debs for Ubuntu noble
and resolute, each for x86_64 and aarch64, install every set on a clean
container and publish them as a rolling nightly pre-release. Each
release asset is one target's bundle: all of its packages, repository
metadata and an INSTALL.txt.

Besides the in-tree components this packages confluent_ipxe from the
iPXE release roms and the browserfs and vinz helpers from their own
repositories. The osdeploy utils are built where buildrpm builds them,
el7 for the x86_64 el8bin set, so they still run on the oldest targets.
Genesis is left out for now.

Noarch packages are built once, in the x86_64 legs, and the aarch64 legs
build only what is architecture specific. Build tools are installed
without weak dependencies, while the smoke tests keep the distribution
defaults, since they stand in for a user's install.

Scheduled runs skip the build when neither confluent nor the helper
repositories moved since the last published nightly. Pull requests that
touch the packaging build and test without publishing.
2026-10-15 20:12:49 +02:00
Jarrod Johnson c36f99e250 Merge pull request #311 from Obihoernchen/fix/nightly-packaging
Packaging fixes for clean installs on EL9, EL10 and SUSE 16
2026-10-15 14:10:21 -04:00
Markus Hilger f25d121fc5 Version the Python package rpms with ~dev as well
confluent_client and confluent_server rpms took the PEP 440 version
setup.py needs, 4.0.1.dev5+g..., which rpm sorts after 4.0.1: a
released package did not upgrade a development build of it. Stamp the
rpm with the ~dev form the other packages already use and keep .dev only
for setup.py and the sdist name. The debs already sort right, since
stdeb rewrites .dev to ~dev.
2026-10-15 19:20:16 +02:00
Markus Hilger b1ed925e40 Fall back to libcrypt when no crypt module imports
Python 3.13 dropped crypt from the stdlib, and openSUSE Leap 16 packages
neither legacycrypt nor crypt_r, so the server did not start there
without a pip install. Both of those only call crypt(3) from libcrypt,
which every distribution ships, so do that through ctypes as the last
resort, serialized because crypt(3) returns a static buffer. Its hashes
match the stdlib module byte for byte.

Move the import chain both callers carried into confluent.pwcrypt. The
legacycrypt Recommends is no longer needed.
2026-10-15 19:20:16 +02:00
Markus Hilger b86e0aa27f Make webauthn and eficompressor optional server dependencies
Neither is packaged by EPEL or Ubuntu, so the hard dependency made the
server uninstallable there without --nodeps or a stub package. Both are
already optional in the code: httpapi drops passkey support when
webauthn does not import, and the Lenovo IMM2 BIOS settings path reports
the missing module as unsupported functionality. Recommend them instead,
as the SUSE branch already does for webauthn.

See xcat2/confluent#192.
2026-10-15 19:20:16 +02:00
Markus Hilger 41ecfeccf4 Drop pasted shell session from the iPXE spec
The spec carried a copy of a terminal session after %changelog: a shell
prompt followed by a second full copy of the spec. Also fix the
debug_package macro name typo.
2026-10-15 19:20:16 +02:00
Jarrod Johnson 3bb3b48cd0 Remove directive ruff doesn't need or want 4.0.0 2026-10-14 09:07:30 -04:00
Jarrod Johnson 7460f66e23 Workaround some bad pysnmp assumptions about importing importlib 2026-10-14 09:04:43 -04:00
Jarrod Johnson 059f4811fe Merge pull request #310 from Obihoernchen/feature/trustnodes-none
Allow ssh.trustnodes=none to trust no other nodes
2026-10-13 13:02:11 -04:00
Markus Hilger 1b446f4773 Add empty nodegroup hint to ssh.trustnodes 2026-10-13 18:52:22 +02:00
Jarrod Johnson 964fe24c57 Fix the tls profile syntax of setupnokia example script 2026-10-13 11:18:11 -04:00
Jarrod Johnson 25ecf590dd Persist error during streaming
Also, do not start input tasks until handshake actually completese.
2026-10-13 10:21:36 -04:00
Jarrod Johnson 5f4b41c501 Cleanup and handle reconnection of nodeconsole -tv
Also fix screenshot to vnconly target
2026-10-13 09:29:08 -04:00
Jarrod Johnson ddc0339dd7 Add strictness to TLS cipher list 2026-10-13 08:16:14 -04:00
Jarrod Johnson 28316ae9bd Make close async 2026-10-12 15:24:22 -04:00
Jarrod Johnson 3d805fa342 Fixup for closing vnc session 2026-10-12 13:27:56 -04:00
Jarrod Johnson 6d87d3e7a1 Do not print an empty line with empty nodelist 2026-10-12 08:57:47 -04:00
Jarrod Johnson eb6c026ac8 Enable aggressive rescan to specifically note Lenovo XCC 2026-10-09 16:58:02 -04:00
Jarrod Johnson a6e89c1543 Fix register
Ensure info_identifier is set if it was not set by way of safe_detected first.
2026-10-09 16:44:51 -04:00
Jarrod Johnson ea926aab12 Improve snoop behavior
For one, at the time an XCC emits a NOTIFY, it's DeviceDescription.json is also very sluggish.  Extend timeout
knowing this may be delayed.

Further, if snoop comes back with only one address family, do not
perturb existing address families.
2026-10-09 16:32:49 -04:00
Jarrod Johnson 5a201e1bde Handle pysnmp5 from ubuntu 24.04 repos 2026-10-09 15:26:41 -04:00
Jarrod Johnson ed1a002704 Merge pull request #307 from qisback/proxmox-fixes
Proxmox fixes
2026-10-09 09:20:12 -04:00
Laurence bf94c84da4 proxmox: pin the API certificate where it can be stored; accept API tokens
- A manager that is not a confluent node is pinned on the guest's node
  (pubkeys.tls_hardwaremanager), as the console already does.
- user@realm!tokenid with the token secret is accepted as the login;
  VNC needs a password login and says so.
2026-10-08 22:04:29 +01:00
Laurence 8c743b934c InputBootDevice: keep a per-node persistent flag as the persistent flag
A per-node request stored 'persistent' in bootmodebynode, so
persistent() stayed False and bootmode() returned a boolean.
2026-10-08 22:04:26 +01:00
Laurence 4fada65934 proxmox: fix the plugin's error handling, power and boot order
- Route every API call through one checked path: non-2xx answers raise
  with PVE's message, a 401 logs in again, a migrated guest is re-mapped.
- Report login failures other than 401 instead of a TypeError.
- Power changes are bounded and reported per node; 'on' when on is a
  no-op; every live QEMU state counts as on.
- Read and set the boot order in every form PVE accepts, keeping disks.
- Stop toggling Content-Type on the shared client headers.
- Inventory from the current config, all SMBIOS forms.
- Refuse ambiguous guest names; skip templates.
- Keep the serial console alive and report how it ends.
- Let the self-test run without a config manager.
2026-10-08 22:04:24 +01:00
Jarrod Johnson 1c1a56f764 Merge pull request #306 from Obihoernchen/proxmox-vnc-manager
Connect Proxmox VNC sessions through the manager
2026-10-08 14:35:35 -04:00
Jarrod Johnson 97ded65130 Avoid incurring some warnings
asyncssh relationship with cryptography can be messy, but it's not up to us, so discard those.

Change osdeploy to not use fork to avoid that deprecationwarning.
2026-10-08 14:10:45 -04:00
Jarrod Johnson 52fb5c42dd Offer boot.ipxe if boot.ipxe.shim does not exist. 2026-10-07 19:29:20 -04:00
Markus Hilger 6cc0567c2d Connect Proxmox VNC sessions through the manager
The vncwebsocket URL used the name of the Proxmox node running the
guest as host. That name often does not resolve on the management
node, and the fingerprint checked is the one of the manager anyway.
Connect to the manager instead, which forwards the websocket to the
right node.
2026-10-08 01:27:56 +02:00
Jarrod Johnson def5fa3753 Have a separate file for shim boot
Legacy boot with iPXE adapters will cause issues with the relatively new 'shim'
command.  It's useless for BIOS anyway, so omit it.
2026-10-07 19:10:46 -04:00
Jarrod Johnson dfe5627609 Fix askpass location 2026-10-07 18:53:19 -04:00
Jarrod Johnson 346bfa41b9 Remove cleanup for no longer existing directory 2026-10-07 17:36:10 -04:00
Jarrod Johnson fed7a2ba74 Change from a dynamically written askpass
/tmp can be hardened to noexec, /run is also sometimes noexeced.

However, we don't need a varying askpass, so just do one in a libexec directory.
o
2026-10-07 17:30:15 -04:00
Jarrod Johnson 910aef879c Drop frames when the queue backs up
Avoid accumulating lag when the
2026-10-07 16:36:38 -04:00
Jarrod Johnson c0c5d39a8c After successful set of an attribute, clear any now-stale broken diagnostic infoa 2026-10-07 07:53:37 -04:00
Jarrod Johnson 3a9e256869 Add a warning to nodefirmware. 2026-10-05 15:27:25 -04:00
Jarrod Johnson 2f3b074380 Cleanly shut down the drawing thread 2026-10-02 15:23:49 -04:00
Jarrod Johnson edaf55ba62 Try to scope DNS to interfaces if possible
netplan and NetworkManager both scope dns to interface.

In certain cases, it can really mean it, so try to match the nameservers to the appropriate interface,
falling back to adding to every interface with a gateway.
2026-10-02 10:44:26 -04:00
Jarrod Johnson 33165fc750 Make sure parent directories to a shim are world accessible for web server 2026-10-01 11:50:24 -04:00
Jarrod Johnson 8c4bddef7b Try to identify currently communicating redfish bmc in discovery
Some devices have multiple BMCs, but we don't know
the 'right' one.

In such a scenario, search for BMC NICs for any that match the address we are using.
2026-09-29 16:48:25 -04:00
Jarrod Johnson 838a017563 Allow cachied sensor readings up to a second old.
In the process of reworking cache logic, a temporary disabling was left in.

Before the logic change, 'cache' of '1' meant 'True', but the intent was a max age to decline to reply.  This allows very close together requests to be cached.
2026-09-28 16:10:12 -04:00
Jarrod Johnson 649eb107d7 Prevent async protocol violation
The callback registration can result in a callback before we send ASYNCID.

Guard by waiting for readiness to be signaled by loop.
2026-09-28 15:06:38 -04:00
Jarrod Johnson a7f1511c78 Provide method for user to query whether API keys are active.
We don't have a record of all API keys, but we can at least indicate whether any have been provisioned and are valid.
2026-09-28 14:59:13 -04:00
Jarrod Johnson a1df0c6939 Users can request and revoke API keys
Proivde support for API keys.  Users can register by doing a POST like:
/confluent-api/sessions/current/apikey/create with body of '{"expiration":null}

API keys can be reset by doing a POST to /confluent-api/sessions/current/apikey/revokeall

A secret is provisioned per user to allow them to clear all keys, while remaining mostly stateless to avoid having to manage every key server side.
2026-09-28 11:34:17 -04:00
Jarrod Johnson dbe194d6fb Supersede generic behavior for SMM3
SMM3 puts everything on chassis, expose that.
2026-09-25 17:03:14 -04:00
Jarrod Johnson ae1afcabf8 Replace generic unsupported error with more specific
The generic error was unclear for a fairly common attempt to check power state.
2026-09-25 16:50:49 -04:00
Jarrod Johnson 03a3786f93 Fix webauthid keyname in user 2026-09-25 16:18:39 -04:00
Jarrod Johnson 2759404f4c Merge remote-tracking branch 'xcat/master' 2026-09-25 16:14:34 -04:00