2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-12-01 14:52:20 +00:00
Commit Graph

1204 Commits

Author SHA1 Message Date
Markus Hilger f2e18689a8 Allow imgutil scratch directories on another host
build, exec, unpack and pack accept an rsync style host:/path scratch
directory, so an image of another architecture can be built natively,
for example on an aarch64 host, instead of under qemu-user emulation.

build and exec copy imgutil to a temporary directory on that host and
run the command there over ssh. Paths in -s, -r and -v are paths on
that host. A -p or -a package list that exists on this system is
copied to the host with the lists it includes.

pack copies the tree to a private staging directory under /var/tmp
and packs it locally. unpack unpacks to a staging directory and copies
the tree to the host, where the target must not exist or be an empty
directory. The copies leave out SELinux labels, pack relabels the tree
with the policy of the image.
2026-11-27 23:06:55 +01:00
Jarrod Johnson f7048f019f Merge pull request #409 from Obihoernchen/doc/include-syntax
Document include syntax for package lists and syncfiles
2026-11-27 16:51:06 -05:00
Markus Hilger 6e628e9a87 Keep placeholders in man pages
pandoc read placeholders such as <scratchdir> as HTML tags and dropped
them from the man pages, so the imgutil synopsis showed
"imgutil build []". Read the ronn files without raw HTML, so they stay
text. Ten pages lost placeholders this way, the others are unchanged.
2026-11-25 22:00:32 +01:00
Markus Hilger 64470862f9 Document include syntax for package lists and syncfiles
A <file> entry in an imgutil package list or a syncfiles file includes
another file, relative to the including file unless absolute. Describe
this in the imgutil and nodeapply man pages and add commented examples
to the default pkglist and syncfiles files.
2026-11-25 16:46:00 +01:00
Jarrod Johnson 41cc0d5a0b Fix unclean exit in nodeconsole in some scenarios
Some scenarios left the terminal in a weird state, more consistently hit cleanup code.
2026-11-23 15:33:23 -05:00
Jarrod Johnson 109bb0c7aa Merge remote-tracking branch 'xcat/master' 2026-11-23 14:01:19 -05:00
Jarrod Johnson 6e2152b43c Improve handling of pixel geometry
Some things put bad data in the pixel geometry. If the data looks too low (noted cases were 0x0 and hardset 640x480), then estimate 8xwidth, 16xheight.

Also, stop trying 14t/18t since mouse tracking is hard to cope with in that scenario.
2026-11-23 14:00:56 -05:00
Jarrod Johnson c931ffc624 Merge pull request #406 from Obihoernchen/docs/nodeattrib-aliases
Document attribute aliases in nodeattrib man page
2026-11-23 13:55:03 -05:00
Jarrod Johnson 3deb0fca03 Merge pull request #405 from Obihoernchen/docs/nodeshell-options
Document missing -e and -x options in nodeshell man page
2026-11-23 13:54:48 -05:00
Jarrod Johnson de6a9d56e2 Provide a '-s' argument to let users skip sections they don't want in /etc/hosts. 2026-11-23 09:29:28 -05:00
Markus Hilger 4c12fb85fc Document attribute aliases in nodeattrib man page 2026-11-23 03:25:34 +01:00
Markus Hilger 3b6b88c6fd Document -e and -x options in nodeshell man page 2026-11-23 02:59:12 +01:00
Markus Hilger 3e4b846b73 Fix pyrefly division-by-zero in nodediscover 2026-11-20 13:45:10 +01:00
Jarrod Johnson 5b7026384c Add ability to scan by noderange to hit ports unicast
Use LLDP and MAC FDB info for a viable list of unicast addresses to hit.

This makes it feasible to find fe80:: systems that do not respond to any multicast by default, if you ask it to scan by noderange.
2026-11-19 15:34:20 -05:00
Jarrod Johnson 17e6319f75 Leverage the askpass facility from sshutil in nodeshell
This allows a user to pass a password by environment variable.
2026-11-14 10:08:27 -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
Markus Hilger dade8ea706 imgutil: report the image kernel in exec and build 2026-11-11 00:10:36 +01:00
Markus Hilger 0581af6dcf Document running chroot tools through imgutil exec
A plain chroot, as used by ansible's chroot connection, has no DNS or
/dev in a built image. Describe what imgutil exec mounts, show ansible
running through it, and fix the exec example, which needs -- before
command options.
2026-11-09 20:01:40 +01:00
Jarrod Johnson 791d0bea69 Merge pull request #373 from Obihoernchen/docs/nodeconsole-video
Document nodeconsole video mode and recording
2026-11-05 10:12:38 -05:00
Markus Hilger 875d87332c Add imgutil build --containerfile to start an image for offline builds
An image meant to build without network access must contain every
package build checks for, and that list differs by distribution, version
and architecture and changes between releases. build --containerfile
writes a Containerfile, or with --apptainer an Apptainer definition
file, generated from the same package lists, including -p, -a and
--selinux, so it cannot drift from what build expects. The OS is that of
the -s distribution or of the build system, as for a build. --arch names
the matching build platform and --from replaces the default base image.
-r is refused, the image installs from the repositories of its base
image.
The generated EL file installs full coreutils instead of the
coreutils-single of container bases, and the Ubuntu file cleans the apt
cache.
2026-11-05 12:46:44 +01:00
Markus Hilger 4a2be59d5d Add container image sources to imgutil build
For sites that already build images elsewhere, for example in CI from a
Dockerfile, imgutil build -s also takes a container image: a SIF file,
an OCI or Docker archive, an OCI layout directory, or a podman reference
with its transport, such as docker:// or containers-storage:. Files and
directories are recognized by their content, and any other source is a
distribution as before. The image is extracted into the scratch
directory, with podman or, for a SIF file, from its squashfs partition.
It is then completed the way build does: the confluent initramfs
configuration, the default package list with the package manager and
repositories of the image, and an initramfs for every kernel. The result
works with exec and pack like any built tree, and the build info names
the image as its source.

When the image already has every package of the list, the package
manager is not run, so an image prepared in CI builds without network
access. Missing packages are named before installing them. The
architecture comes from the image, and a requested --arch is checked
before extracting it. -r is refused because the image brings its own
repositories. With --arch, the matching variant of an image for several
architectures is used. Other than a local image, podman pulls or loads
the image into a temporary storage that is removed afterwards, so the
images and tags of the system stay as they are.

Container base images are not bootable systems, so the build also
unmasks the units they mask (systemd-remount-fs, getty.target,
systemd-logind and others) and removes policy-rc.d, reporting each
change, drops the boot entries kernel-install writes (they carry the
command line of the build system, installing to disk writes its own),
and with --selinux labels the tree with full contexts. Ubuntu images get
ubuntu-minimal, which debootstrap installs but container bases lack.

EL9, Ubuntu 24.04 and SUSE 16 or later images are supported, as long as
imgutil has a package list for the release. Older releases and
architectures other than x86_64 and aarch64 are refused.
2026-11-05 12:46:44 +01:00
Markus Hilger bb59cc7fd7 Document nodeconsole video mode and recording 2026-11-04 23:43:12 +01:00
Jarrod Johnson 55a4c9e631 Merge pull request #371 from Obihoernchen/perf/imgutil-crossarch
Emulate aarch64 as a Neoverse N1 cpu in imgutil
2026-11-04 15:02:00 -05:00
Markus Hilger 72510e704e Emulate aarch64 as a Neoverse N1 cpu in imgutil
The default 'max' cpu of qemu-user emulates SVE and pointer
authentication, which aarch64 binaries use and which is expensive to
emulate. Default QEMU_CPU to neoverse-n1 for aarch64 builds and exec,
unless it is already set. neoverse-n1 needs qemu 7.1 or later, the
documentation says how to choose another cpu.

Building an EL10 image with mlnx-ofa_kernel-dkms and doca-ofed-userspace
on an EL10 x86_64 host with qemu 10.2:

    DOCA build         Total
    aarch64, master    3270 s (54.5 min)
    aarch64, branch    2399 s (40 min), −27%
    x86_64, native     251 s (4 min)

Older qemu-user-static, such as qemu 8.2 of Ubuntu 24.04, emulates
pointer authentication much more slowly, so builds there can get up to
ten times faster.
2026-11-04 20:35:29 +01:00
Jarrod Johnson 8b646b5728 Hide cursor during nodeconsole
Especially since the video is now rendered under 'text', the
cursor can be a bit weird looking
2026-11-04 11:29:07 -05:00
Jarrod Johnson 0ece84bec6 Fix terminal state on nodeconsole exit 2026-11-02 09:13:38 -05:00
Markus Hilger 7039706e4d Fix nodeattrib -e for dotted attribute names in asynclient
f9dc92ec fixed this in client.py, but nodeattrib has used asynclient.py
since 76efea7c, so it still sends the underscored name (info_note
instead of info.note) as the attribute, and a missing variable raises a
KeyError instead of a usage error. Port the client.py logic over.
2026-11-01 13:14:10 +01:00
Markus Hilger a9a57fe93b Add opt-in SELinux support to imgutil build for EL images
imgutil build --selinux installs the targeted policy and keeps SELinux enforcing.
imgutil pack labels images that enable SELinux with their own policy.
2026-10-30 20:27:53 +01:00
Markus Hilger dd353aec04 Do not report a cleared diskless profile as completed
A booted diskless node keeps its profile in deployment.pendingprofile
and records it in deployment.profile with state "booted". After
nodedeploy -c clears the pending profile, nodedeploy printed
"completed: <profile> (booted - ...)", although no deployment completed
and the node will not network boot that profile again.

Show "booted, not pending: <profile>" for that case instead.
2026-10-30 09:44:50 +01:00
Jarrod Johnson 0c57184ef1 Fix fish completion packaging for debian friendliness 2026-10-29 14:06:45 -04:00
Jarrod Johnson 302afc5b06 Fix issues with various '/' included in tab completion 2026-10-29 10:12:20 -04:00
Jarrod Johnson 472ea95314 Do not enable mouse tracking in read-only screenshot mode
When resizing, need to only capture mouse if
we are actually set to handle them.
2026-10-29 09:00:47 -04:00
Jarrod Johnson ac1ce55387 Rework drawing and resize in nodeconsole -tv
Move work out of the signal handler

Have the full resize happen in the draw worker.

Have resize events be skipped if the resize doesn't keep up.

After a redraw, discard queue items that would have had wrong geometry.

No more weird lag on resize and no more stray misshapen screenshots after resize.
2026-10-28 17:39:39 -04:00
Jarrod Johnson 7812b90097 Create fish completion files per command, as fish requires 2026-10-28 08:59:56 -04:00
Jarrod Johnson 3ac8539a9d Add fish completions 2026-10-28 08:33:09 -04:00
Jarrod Johnson 2a0ecc1cd6 Fix nodeconsole -tv resize misbehavior
After resize, mouse didn't work.

Also, if resizing during a redraw, bad things would happen. Use the draw_worker to do redraws one at a time.
2026-10-27 15:16:39 -04:00
Jarrod Johnson 310e1dd3c2 Track the relative coordinates
After sizing, report the cursor location and use that to correct for mouse coordinates.

Also, nudge kitty to draw under any text that might appear.
2026-10-27 09:45:40 -04:00
Jarrod Johnson c00230384f Add ssh://' support for CONFLUENT_HOST
This handles Unix domain forwarding over ssh on behalf of the user.

Extends to the nodeconsole -tv, which is particularly handy for faster video (VNC over ssh instead of base64 whole screen updates).
2026-10-26 13:28:36 -04:00
Jarrod Johnson 6426a081c0 Skip writing image data that matches current
For example, when a cursor is blinking and a recording is happening,
we may get the same frame as already on screen.
Skip such an update.
2026-10-26 09:32:42 -04:00
Jarrod Johnson c192fff69a Add click on titlebar behavior
Also, increase drain time as some scenarios still bled notification on the terminal.
2026-10-25 13:45:50 -04:00
Jarrod Johnson 841c0880b2 Fix alignment of mouse movement
Instead of using the total allocated cell region, correct based on the image on screen.
2026-10-25 09:51:04 -04:00
Jarrod Johnson 184e198463 Add some mouse handling
mouse can now set focus (click/ctrl-click)

mouse movement and clicks can be sent through

Still TODO:
Do something with clicks in 'title' area, and see about fixing the misalignment due to image not filling the full cell geometry.
2026-10-25 09:35:46 -04:00
Jarrod Johnson 49a0374d35 Add shift-tab to nodeconsole -tv 2026-10-23 17:06:05 -04:00
Jarrod Johnson 406fe2aff9 Implement an osdeploy export 2026-10-23 09:20:48 -04:00
Jarrod Johnson 220da39877 Request cursor encoding
OpenBMC iKVM injects nonsensical cursor without it.

For now store the cursor, but currently not used.  It's a rare payload so not worth skipping the processing.
2026-10-21 13:29:49 -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
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 6d87d3e7a1 Do not print an empty line with empty nodelist 2026-10-12 08:57:47 -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