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.
The initramfs scripts try to load ib_ipoib, ib_umad, hfi1 and mlx5_ib
unconditionally. Kernels that do not ship one of them, such as hfi1 on
aarch64, print a FATAL modprobe error on the console during
'Loading drivers...'. Use modprobe -q so missing optional modules are
skipped silently.
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
libcurl 8.12.1-6 in EL 10.3 (RHEL-56966) changed its built-in CA
bundle from /etc/pki/tls/certs/ca-bundle.crt to
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem. The diskless
initramfs carries no ca-certificates content and the hook only wrote
ca-bundle.crt, so every HTTPS request in the initramfs failed
verification, functions came back empty and boot stopped with
"source_remote: command not found".
Write the deployment CA to tls-ca-bundle.pem and point ca-bundle.crt
at it, the same layout ca-certificates uses, so both old and new
libcurl builds find it.
The message gave only the interface index, which reads like a wrong
value when a node falls back to PXE over InfiniBand on a network the
deployment server has no IPv4 address on. Log the interface name and
the requesting hardware address instead.
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.
When a BMC lists several chassis and none of them carries a well known
id (e.g. AMI MegaRAC on Lenovo HR650N with BMC_0, Baseboard_0, CPU_0,
...), no chassis url was chosen and nodeinventory failed with
"'NoneType' object has no attribute 'get'".
Fall back to the chassis the system declares in Links.Chassis, and
tolerate missing chassis data and null string properties.
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.
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.