Jarrod Johnson
3496f90fb7
Make sure a child can't except out of a forked child
...
If an exception were incurred in child in fork, the code could break out.
2026-08-25 09:05:04 -04:00
Jarrod Johnson
8fe87bf0eb
Fix getfetchable hidden argument
2026-08-13 16:34:22 -04:00
Jarrod Johnson
f7815bd7cf
Improve tab completion of fetch
2026-08-13 16:23:09 -04:00
Jarrod Johnson
2660842b9a
Add signature validation when possible to image fetch
2026-08-13 16:08:14 -04:00
Jarrod Johnson
9be1136ba4
Normalize destination directory in osdeploy fetch
2026-08-13 15:27:11 -04:00
Jarrod Johnson
b84cf35d79
Show progress with osdeploy fetch
2026-08-13 14:52:03 -04:00
Jarrod Johnson
a2a1f76ff2
Attempt a new 'osdeploy fetch' to help with downloading some of the ISOs.
2026-08-13 14:25:04 -04:00
Markus Hilger
151fb1efc8
Await the coroutines in osdeploy local node trust setup
...
local_node_trust_setup() called get_cluster_list() and sign_host_key() without
awaiting them, so "osdeploy initialize -l" aborted with "TypeError: cannot
unpack non-iterable coroutine object" before doing any work.
Both awaits have to land together: sign_host_key() is called in a loop that
unlinks the existing ssh_host_*_key-cert.pub before writing the new one, so
fixing only the unpack would delete every host certificate and then fail.
2026-08-10 23:05:44 +02:00
Markus Hilger
9956845009
Do not block the import poll loop with time.sleep
...
osimport polls import progress from a coroutine, so a blocking sleep
between reads stalls the whole client loop. It was the only use of time
in the script, so the import goes with it.
2026-07-27 18:49:48 +02:00
Jarrod Johnson
6f12062ef2
Add mokmanager to symlinks
2026-05-22 16:13:54 -04:00
Jarrod Johnson
060bfb0926
Add a '-r' argument to refresh site contents
...
If an environment manually manages all materials,
provide -r to let
them request packing of those materials
without trying to generate any of the content.
2026-05-06 08:46:09 -04:00
Jarrod Johnson
7f604e3e35
Fix async handling of passed file descriptors
2026-04-30 09:25:09 -04:00
Jarrod Johnson
347c7fdc1e
Fix osdeploy list
2026-04-28 16:08:24 -04:00
Jarrod Johnson
2c75571a84
Fixes to allow a test deployment to complete under asyncio
2026-03-04 10:47:33 -05:00
Jarrod Johnson
bfb41de43b
Further asyncio conversion work
2026-03-03 16:06:14 -05:00
Jarrod Johnson
3636e14628
Rework netutil for async and dependent functions
2026-02-26 17:27:04 -05:00
Jarrod Johnson
b46aecbeed
Fix PXE afterm merge and have rebase work with async
2024-08-25 18:40:26 -04:00
Jarrod Johnson
2f415caead
Fix osdeploy updateboot with asyncio
2024-08-16 17:06:16 -04:00
Jarrod Johnson
bdb7f064d6
Rework a number of subprecess calls and osdeploy
...
Some subprocess calls were reworked to use asyncio friendly
variants.
Also, osdeploy initialize was checked, and reworked the ssh and tls
handling.
osdeploy import was also reworked to functional with async only.
2024-05-31 17:22:26 -04:00
Jarrod Johnson
5e222041bf
Merge branch 'master' into async
2024-05-03 10:27:31 -04:00
Jarrod Johnson
b7a5101a34
Provide extra warning about redoing SSH materials
2024-05-03 10:27:01 -04:00
Jarrod Johnson
ee6f869cea
Port utilities to asyncio, selfcheck and osdeploy
...
confluent_selfcheck removes eventlet dependency,
osdeploy reworked to use async methods to work with new client.
2024-04-30 14:30:01 -04:00
Jarrod Johnson
cdefb400f9
Expose fingerprinting and better error handling to osdeploy
...
This allows custom name and pre-import checking.
2024-03-11 13:33:15 -04:00
Jarrod Johnson
4f92e3413a
Expose fingerprinting and better error handling to osdeploy
...
This allows custom name and pre-import checking.
2024-03-11 13:32:45 -04:00
Jarrod Johnson
c9452e65e8
Fix some osdeploy ordering issues
...
osdeploy initialization dependencies have been
improved and marked if absolutely dependent.
2023-11-15 11:30:20 -05:00
Jarrod Johnson
f475d58955
Various permission fixes for osdeploy initialize
...
Fix a few scenarios where certain ordering of
initialize creates unworkable permissions.
2023-11-13 15:43:11 -05:00
Jarrod Johnson
1777223232
Fixes for osdeploy arm ipxe init
2023-01-27 08:40:31 -05:00
Jarrod Johnson
648290ffbc
Begin implementing aarch64 deploy support
2023-01-27 08:00:38 -05:00
Jarrod Johnson
01f939b871
Have SuSE path also not be bothered by inability to restart web service
2023-01-18 08:50:30 -05:00
Jarrod Johnson
d1265af828
Handle more errors
...
subprocess may throw other errors that aren't calledprocesserrors,
in newer python versions. Handle the case more broadly.
2023-01-17 10:04:10 -05:00
Jarrod Johnson
4802c52854
If attempt to auto-restart service, reduce severity of result
...
Provide feedback as a warning rather than aborting the command entirely
2022-11-01 10:05:24 -04:00
Jarrod Johnson
908e51221c
Correct minor formatting mistake in warning
2022-08-29 12:22:14 -04:00
Jarrod Johnson
570611f22b
Have osdeploy initialize skip SSH regen
...
When generating new key materials, most people say 'yes' and cause problems
where they cycle valid keys without
realizing the significance.
Replace prompting with an emphasized warning instead.
2022-08-29 11:10:45 -04:00
Jarrod Johnson
352da94005
Implement rebase feature ofr osdeploy
...
Permit user to opt into a rebase of a
profile, to pick up potential updates
from the confluent packaged stock
profiles for files the user has not yet
customized.
2022-08-25 15:21:49 -04:00
Jarrod Johnson
a3cce144bc
Extend manager principals for ssh
...
When doing osdeploy initialize -l (not recommended usually),
add on more forms of the name and ip addresses
to be consistent with node ssh behavior.
2022-05-24 07:24:56 -04:00
Jarrod Johnson
8ef91c16c0
Do not let an existing /var/lib/confluent block the requisite chown
2022-04-05 09:35:05 -04:00
Jarrod Johnson
21bfc29a89
Make more clear the default behavior when prompting
2022-03-24 11:18:37 -04:00
Jarrod Johnson
fdd3ec4233
Fix check for confluent service having started
...
Give confluent full chance to set things up prior
to proceeding.
2022-03-16 10:28:44 -04:00
Jarrod Johnson
15e7e4464e
Keep known_hosts cleaner
...
When repeating osdeploy initialize
of local known_hosts, more
gracefeully avoid duplicate entries.
2022-03-02 16:04:01 -05:00
Jarrod Johnson
b809514ef9
Fix osdeploy initialize dependency on master key
...
Make sure confluent has made /etc/confluent, and further always initialize the
encryption key, as it will almost certainly
be needed and easiest to just always
generate on first startup.
2022-02-08 16:40:41 -05:00
Jarrod Johnson
b1032d8c4c
Specify write mode for confluent_uuid file
2022-02-08 12:31:04 -05:00
Jarrod Johnson
6e03f6ee0a
Correct syntax typo
2022-02-08 10:49:42 -05:00
Jarrod Johnson
358b719cec
Implement deployment binding for new installs
...
When doing osdeploy initialize,
save the uuid and have deployment
targets specifically pair back with site via
uuid.
2022-02-08 10:41:27 -05:00
Jarrod Johnson
2d13921d54
Amend deployment initialize for consistent ownership
...
Depending on the options selected/not selected, the
/var/lib/confluent directory may have been initialized
incorrectly. Have all the potential paths begin with
ensuring /var/lib/confluent is correct, and then
use seteuid consistently to take care of the rest.
2022-01-14 15:08:19 -05:00
Jarrod Johnson
8b95e8f507
Improve osdeploy import error handling
...
Before, conditions that were unexpected
would result in hangs. Now
transition to and report error state.
2022-01-14 09:23:54 -05:00
Jarrod Johnson
d47b088753
Fix mistake in error output
2021-12-22 23:29:21 -05:00
Jarrod Johnson
faa20660ed
Assure confluent myname file is owned correctly
...
A lot of osdeploy initialize (which runs as root)
may induce creation of 'myname' file. Fix by
becoming confluent user, if applicable.
2021-12-14 07:24:47 -05:00
Jarrod Johnson
42f766d5f4
Fix osdeploy initialize when only ssh or tls is done
...
ssh is technically opt-in, though strongly recommended, so
osdeploy should cope with that.
TLS is pretty much required, but perhaps not done immediately,
so it gets similar treatmennt.
2021-12-02 11:38:18 -05:00
Jarrod Johnson
a9bd31a9c4
Provide error when makedirs fails in genesis
2021-10-23 13:08:14 -04:00
Jarrod Johnson
2073926256
Improve ctrl-c and other behaviors of osdeploy import
...
More reliably delete an import attempt to avoid odd behaviors.
2021-05-27 16:10:06 -04:00