On kernels with pages larger than 4k, such as the RHEL 10 aarch64
kernel-64k, zram never completes a discard that covers only part of a
page. XFS with 4k blocks issues such discards with -o discard, and the
diskless boot hangs in update-ca-trust. Fixed upstream in
https://git.kernel.org/torvalds/c/e3668b371329
zram reports the page size as its physical block size. Using it as the
XFS block size keeps every discard page aligned. Kernels with 4k pages
keep 4k blocks.
Fixes#414
Sometimes, a caller may want specific redfish attributes that aren't available in the ipmi path nor even accelerated oem firmware inventory.
Provide a new API entry point for software to get that data.
A console whose backend could not be created, for example because the
BMC name did not resolve, logged a stack trace for every attempt even
though the error was a TargetEndpointUnreachable. The console already
shows the error to the user, so only trace unexpected failures.
onlogon read onlogpayload only after awaiting _cmdwait. If another logon
sent the payload or a logout dropped it during that wait, send_payload
got None and failed with "cannot convert 'NoneType' object to
bytearray". A command timing out during the wait can also start a
relogin that queues its own payload on a session no longer logged in.
Send the payload only if it is still pending and the session is logged
in, as raw_command checks after the same wait.
close() swaps the console output handler for _donothing to break the
reference cycle, but aiohmi awaits that handler. SOL data that arrived
after close then failed with "object NoneType can't be used in 'await'
expression".
Importing media before 'osdeploy initialize' raised a plain Exception,
which was answered as an unexpected 500 and logged with a stack trace.
Raise InvalidArgumentException so the user gets the message without a
trace, like the unsupported media case.
retrieve waited up to 10 seconds for the next result but only expected
QueueEmpty. When no switch answered within that time, wait_for raised
TimeoutError and failed the whole request, including switches that were
still about to answer. Keep waiting while workers remain. Each request
is bounded by the web client timeout.
That timeout is an asyncio.TimeoutError, which before python 3.11 is
neither TimeoutError nor OSError. fetch then reported it as an unknown
error instead of a target timeout, so catch it explicitly.
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.
hardwaremanagement.manager may carry a prefix length such as
10.0.0.1/22. Passing that to WebConnection built the base URL
https://10.0.0.1/22:443, which aiohttp rejects with
"base_url must have a trailing '/'", so remote video for openbmc
nodes failed. Other consumers of the attribute already strip it.
_recheck_nodes_backend yields with asyncio.sleep(0) inside the loop, so
other coroutines can add or remove pending nodes meanwhile and the loop
fails with 'dictionary changed size during iteration'.
The attribute was misspelled apierrocode, so the exception fell back to
500 and every occurrence was logged as a stack trace. strip_node also
dropped the error text, so a single node request such as starting a
console on a PDU reported no reason.
Retrieving the power/outlets/ collection of a geist PDU passed the
literal 'outlets' to get_outlet, which failed with
ValueError: invalid literal for int() with base 10: 'outlets'.
Enumerate the outlets from /api/dev like the raritan plugin does.
Use hardwaremanagement.manager_tls_name as another possible way to indicate conflict
If wanting to use net.bmc attributes to direct DHCP, but wanting hardwaremanagement.manager to be lla, then use manager_tls_name as a way to store a second value to indicate the BMC-ness of a value
Now API calls that don't necessarily have the ability to discern the peer mac address can be somehow spared confusion.
Without dns.domain the d-i startup set no netcfg/get_domain, so a static
network install stopped at the interactive domain name prompt. A cleared
dns.domain reaches deploycfg as '' rather than null and was preseeded
literally, giving c1.'' as the host name and search ''.
reopen-console decides before the startup scripts run whether d-i is
preseeded, by looking for /preseed.cfg or auto/url on the command line.
S25confluentinit only creates /preseed.cfg later, so d-i started on every
console (ttyS0 and tty1) and the parallel installers raced, e.g. anna
reported no kernel modules while the other instance downloaded them.
The nameserver and ntp loops quoted their list, so they ran once with
all servers in one word. Unquoted in setdebopt, that split into extra
arguments: debconf got only the first server and the preseed line got
the second server where the type belongs. Set the nameservers as one
space separated string, use the first ntp server (clock-setup takes
one) and quote the setdebopt arguments.
The debian installer startup only located the deployment server through
SSDP multicast, which does not cross a router. With DHCP relay the node
got a lease and then looped forever. Identify the node through
self/whoami on the server given by confluent=, as the other profiles do,
and fall back to SSDP if that fails.
Debian's initprofile.sh copies the EFI loaders out of efi.img with mcopy.
Under the daemon's 077 umask they became mode 0600 and could not be
served over HTTP, so UEFI boot of a fresh debian profile failed.
The identity image DHCP branch tested an unset variable, so it never ran,
and its udhcpc call would not have worked (no -i, no -q/-n) nor recorded
the interface. Probe each link like the static branch does. The deploycfg
dhcp check also misspelled v4cfgmeth.
Newer OpenSSH no longer generates DSA host keys, so ssh-keygen -A
leaves none behind and the unconditional rm printed an error during
genesis boot and el8 installs.
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.
If a network middle name has an hwaddr and a lease time, keep it from bleeding into other interfaces.
We have long allowed a viable network config to be assembled from multiple middle names, to let a user be a bit sloppy, particularly when going by uuid.
However, when trying to manage interfaces on same subnet, e.g. a bmc and the system, this is untenable. Invalidate a middle name if it is potentially going to be for non-boot activity and has a hwaddr specified and it doesn't match the request.
The installedargs of profile.yaml only reached systems installed by an
OS installer. A diskless image written to disk with installtodisk got
none of them, and keeps from the network boot only console=,
net.ifnames=, biosdevname= and quiet, so arguments meant for the
installed system had to be baked into the image.
image2disk.py now fetches the profile.yaml of the deployment and adds
its installedargs before deployment.installedargs, in the same places.
An argument the image already has, as when it was captured from a node
installed this way, is kept once, in its last position, so the node
arguments still come last, and a profile.yaml that cannot be read only
skips the profile arguments instead of failing the install.
Kernel arguments for the installed OS could only be set per profile,
with installedargs in profile.yaml. deployment.installedargs sets them
per node or group, appended after the ones of the profile.
The deploycfg served to the node carries the value as installedargs,
and the installers add it wherever they add the profile installedargs:
the kickstart bootloader line on EL and RHVH, the AutoYaST and Agama
bootloader settings on SUSE, and GRUB_CMDLINE_LINUX on Debian and
Ubuntu. Diskless images installed to disk add it to GRUB_CMDLINE_LINUX,
and on EL9 and EL10 also to /etc/kernel/cmdline and the boot loader
entries.
deploycfg is no longer wrapped at 80 columns, since the scripts read
each value from its single line.