Jonathon Anderson
32ca0a9170
Atomic overlay file application in wwclient
...
Update wwclient such that each file in the runtime overlay is applied
atomically, and only if modified.
- Closes : #1307
- Closes : #1975
- Closes : #1226
Also adds --once flag to allow wwclient to be run one time.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-28 07:45:35 -06:00
Jonathon Anderson
66450a7dcd
Simpler names for overlay methods
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:33:18 -06:00
Jonathon Anderson
6fd858899d
Fix warewulfd api behavior when deleting distribution overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-27 22:25:21 -06:00
Christian Goll
6f4fd60d8f
refactored overlay class
...
overlay.GetOverlay(name) returns now an error if the overlay doesn't
exist. This is the most canonical way to act if there is no overlay.
2025-08-27 22:24:31 -06:00
Christian Goll
1e54d02f70
Revert "Atomic overlay file application in wwclient"
...
This reverts commit 9f11b4a2b9 .
2025-08-13 09:57:31 +02:00
Jonathon Anderson
9f11b4a2b9
Atomic overlay file application in wwclient
...
Update wwclient such that each file in the runtime overlay is applied
atomically.
- Closes : #1307
- Closes : #1975
- Closes : #1226
Also adds --once flag to allow wwclient to be run one time.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-12 23:16:03 -06:00
Jonathon Anderson
b3a6f3d905
Fix a race condition in wwctl overlay edit
...
Switches to using sha256 rather than mtime to detect changes to an
overlay file.
- Fixes : #1947
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-08-01 01:57:02 -06:00
Christian Goll
2c51ca7fff
added warewuld configure option
...
Co-authored-by: Jonathon Anderson <janderson@ciq.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-31 21:47:08 -06:00
Tobias Ribizel
c2a51c2a7e
format and changelog
...
Signed-off-by: Tobias Ribizel <mail@ribizel.de >
2025-07-07 15:44:11 +02:00
Tobias Ribizel
301082cdd7
add docstring for node patterns
...
Signed-off-by: Tobias Ribizel <mail@ribizel.de >
2025-07-06 16:36:45 +02:00
Jonathon Anderson
2ba6e28215
Remove wwctl node import --csv
...
- Closes #1862
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-02 21:25:54 -06:00
Jonathon Anderson
48bace55f6
Preserve file permissions during wwctl overlay edit
...
- Fixes : #1886
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-02 08:06:13 -06:00
Jonathon Anderson
3db131eadf
Fix width of wwctl image shell --help
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-07-02 13:54:56 +02:00
Jonathon Anderson
680ecfb3fd
Minor updates to wwclient log messages
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-06-16 11:02:40 +02:00
Christian Goll
e72368cd26
fix wwctl profile set for disk/fs/part
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-05-27 13:56:04 -06:00
Matt Hink
be73ac056a
Initial cut for removing the old API.
...
Remove API reverse proxy server and google dependencies.
Remove API config.
Remove API client.
Remove API GRPC server.
Remove unused ImageCopy function. image.Duplicate is used.
Update Makefile to avoid protobuf builds.
Signed-off-by: Matt Hink <mhink@ciq.com >
2025-05-10 10:58:03 -06:00
Jonathon Anderson
4005afac4c
Add a new OpenAPI v3 REST API to warewulfd at /api
...
Co-authored-by: jason yang <jasonyangshadow@gmail.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-03 07:12:03 -06:00
Jonathon Anderson
51786b5e4a
Fix a panic during wwctl node list --ipmi for nodes with no ipmi configuration. #1847
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-01 16:48:43 -06:00
Jonathon Anderson
1883f2e932
Added a test for wwctl node import
...
To support this, also added `wwctl node import --yes`.
Also corrected the spelling of `--cvs` to `--csv`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 20:00:48 -06:00
Jonathon Anderson
09488db3f6
Fix processing of UNDEF and UNSET during wwctl <node|profile> set. #1837
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 18:16:14 -06:00
Xu YANG
9e9f37208c
Merge pull request #1841 from anderbubble/cobra-nargs
...
Explicitly enforce the number or arguments accepted by some `wwctl` subcommands
2025-03-25 13:47:14 +09:00
Jonathon Anderson
605c910c82
Update nodes and profiles when renaming an image. #1637
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:45:06 -06:00
Jonathon Anderson
9a3e48fa37
Explicitly enforce the number or arguments accepted by some wwctl subcommands. #1717
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:06:07 -06:00
Jonathon Anderson
e4a9018b80
wwclient uses WW_IPADDR, if set, to contact the Warewulf server.
...
- Closes : #1788
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-22 03:03:21 -06:00
Jonathon Anderson
c7bda5e655
Add tests for overlay import --overwrite
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-21 23:42:30 -06:00
Timothy Middelkoop
ae54fd207b
Add --overwrite to wwctl overlay import
...
- Closes : #386
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu >
2025-03-21 23:42:27 -06:00
Christian Goll
ea9a013812
Handle missing ipmi fields during bmc commands
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-18 15:33:35 -06:00
Christian Goll
d256d15c20
fixup pdf build
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-03-18 12:21:03 -06:00
Christian Goll
a97c204f53
Use wwctl overlay <import|build> --workers=0 to indicate default value
...
By default, uses `runtime.NumCPU()`
The default value is rendered in the generated man pages, which made
their content dependent on build system characteristics.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-01 11:46:15 +01:00
Christian Goll
4c1dbfb642
Set IdleConnTimeout wwlient to 2*UpdateIntervall
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-02-21 23:39:13 -07:00
Jonathon Anderson
7f317dff82
Add WW_HISTFILE to control shell history location during wwctl image shell
...
Co-authored-by: Christian Goll <cgoll@suse.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:09:57 +01:00
Jonathon Anderson
609dc286ef
Update PS1 during wwctl image shell to include working directory
...
Optionally, use `WW_PS1` to construct the prompt.
- Closes : #1245
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:09:57 +01:00
Jonathon Anderson
8197484461
Make wwctl image syncuser --write true by default
...
It can be disabled with `wwctl image syncuser --write=false`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
01b3c28874
Update syncuser to read passwd and group from sysconfdir
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
b56fc19f9e
Added wwctl image build --syncuser
...
- #1321
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
f2092b2854
Remove syncuser warning messages in wwctl that assume its use
...
- #1321
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Christian Goll
a686ddb7ad
Merge pull request #1737 from anderbubble/issue-649
...
Make .ww suffix optional during wwctl overlay show --render
2025-02-13 15:14:27 +01:00
Jonathon Anderson
d968b02153
Fix image completion
...
- Fixes #1734
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 10:23:56 -07:00
Jonathon Anderson
444c0924f1
Don't add "default" profile to new nodes if it does not exist.
...
- Fixes : #1721
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-12 09:22:51 +01:00
Christian Goll
cd68b9d889
Merge pull request #1729 from anderbubble/wwctl-hidden-commands
...
Hide internal `wwctl completion` and `wwctl genconfig` commands
2025-02-12 09:21:21 +01:00
Christian Goll
2211df64eb
Merge pull request #1728 from anderbubble/fix-1718
...
Updated `wwctl node export` to include node IDs
2025-02-12 09:20:41 +01:00
Jonathon Anderson
4862d44aad
Make .ww suffix optional during wwctl overlay show --render
...
- Closes : #649
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 10:14:18 -07:00
Jonathon Anderson
5cd28fb894
Mark --container flag as deprecated
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 19:17:15 -07:00
Jonathon Anderson
f71483035b
Updated overlay flags
...
New flags: `wwctl <node|profile> <add|set> [--runtime-overlays|--system-overlays]`.
Previous flags retained hidden for backwards-compatibility.
- Closes : #1495
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 19:17:08 -07:00
Jonathon Anderson
8d9c99f739
Hide internal wwctl completion and wwctl genconfig commands
...
Also remove the redundant `wwctl genconfig completions` command.
- Closes : #1716
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 14:22:22 -07:00
Jonathon Anderson
900426ce81
Updated wwctl node export to include node IDs
...
- Fixed : #1718
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-10 13:41:40 -07:00
Jonathon Anderson
3b963ee5a6
Simplify node, profile, and image completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:38:27 -07:00
Jonathon Anderson
984c056b03
Add missing hostlist support for wwctl nodes
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:14:10 -07:00
Jonathon Anderson
862cc8163f
wwctl upgrade args and completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:14:10 -07:00
Jonathon Anderson
ee3ac172a0
wwctl ssh args and completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:14:10 -07:00