Jonathon Anderson
c2cfe513d7
Remove remaining gRPC references with additional tests
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2026-03-23 06:54:44 -06:00
Jonathon Anderson
4cc6d03f2f
Refactor gRPC-based profile functions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2026-03-23 06:54:44 -06: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
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
d968b02153
Fix image completion
...
- Fixes #1734
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 10:23:56 -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
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
760b6e5217
wwctl <node|profile> overlay list completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:13:53 -07:00
Jonathon Anderson
3fbc2fc75c
wwctl profile args and completions
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-09 16:13:53 -07:00
Jonathon Anderson
b05e384560
Refactor to completions.Profiles
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-05 19:09:04 -07:00
Jonathon Anderson
4f83885c5b
Show each overlay only once #1675
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-01 13:40:12 +01:00
Jonathon Anderson
45a690ca4e
Rename "container" to "image"
...
- Updated `wwctl upgrade` to handle updates
- Maintained `.Container` and `.ContainerName` in tstruct
- Added `ContainerName()` methods to node and profile objects
- Added `--container`, `-C` aliases to wwctl commands (`<node|profile> <add|set>`)
- Added `wwctl container` alias
- Added support for `container_exit.sh` if `image_exit.sh` is not found
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-01-19 05:54:19 -07:00
Jonathon Anderson
a844379bc5
Merge --kerneloverride into --kernelversion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:28 +01:00
Jonathon Anderson
8f21d54243
Refactor kernel support
...
- Remove kernel imports and kmods images
- Repurpose KernelOverride as container path
- Support Kernel.Version as version prefix for kernel selection
- Compare initramfs by version
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:22 +01:00
Jonathon Anderson
0665d5dc88
Refactor node
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:47 -07:00
Jonathon Anderson
d91d273ac7
Use ProfileConf rather than NodeConf for profile commands
...
This removes node-only attributes, like a profile list, from profile commands.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 15:39:59 -04:00
Christian Goll
457c7c16b1
wwctl commands without NodeInfo
...
mostly remove Get and calls for the id
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 13:35:42 -04:00
Christian Goll
17a5aaefee
added more aliases for wwctl commands
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-03-20 21:11:14 -06:00
Jonathon Anderson
a1832ad8c1
Complete transfer of Warewulf from HPCng
...
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-26 21:35:04 -07:00
Christian Goll
45539a0d1f
Recursive handling for command line flags
...
Every struct in a NodeConf with `lopt:"foo" set is now added as a
command-line flag with the RecursiveCreateFlags call. For maps a struct
with the key UNDEF is added so that it can be parsed out.
As the flags for the command-line need variables which hold the values,
for every map an element map[UNDEF] is added. When now calling the
internal add, these map element can be filtered out and replace by the
given name. (e.g., --netname)
* rewrote node/profile add for recursive functions
* rewrote node/profile set for recursive functions
* rewrote node/profile list for recursive functions
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-08-21 16:19:13 -06:00
Christian Goll
96644be621
allow UNSET for IP addresses
...
added more tests for GetFrom
allow UNSET and handle empty hwaddr
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:38 +01:00
Christian Goll
b0602133ec
use netParseIP and ParseMAC
...
check also MAC addresses and common formating
Signed-off-by: Christian Goll <cgoll@suse.de >
reformat ipaddr for test coverage
fixed processing of default values
updated transformer tests
correct behavior for tags
add tests for tags
new tests for primary network
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:17:07 +01:00
Christian Goll
13bc378a6b
Refactor the CreateFlags command
...
* added the additional type flag, which can be bool,IP
* UNDEF is recognized for the bool flag
* 0.0.0.0 must be used as UNDEF for IP flag
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-23 11:15:50 +01:00
Christian Goll
18eb531d4b
fixed deletion of network and deletion of tags
2022-09-02 16:45:37 +02:00
Christian Goll
255ff61dc8
adding netname option back
2022-08-31 17:05:28 +02:00
Christian Goll
b485ea999f
removed optionStrMap in favor of NodeConf
...
openStrMap is a map[string]string which is sent arround. This is now
done by using a unmarshalled NodeConf instead.
2022-08-18 19:22:55 +02:00
Christian Goll
510f6a60a9
added excludellist to CreateFlags
2022-07-14 10:40:46 +02:00
Christian Goll
e0c62a81a4
testing profile set
2022-07-14 10:35:27 +02:00
Christian Goll
14b86a5e8e
added profile set over API
2022-07-13 15:56:04 +02:00
jcsiadal
9b6b93a5cb
Rename default to primary in src
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-05-05 03:13:21 +00:00
jcsiadal
dbd747788f
wwctl profile fixes
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-04-19 21:59:34 +00:00
Christian Goll
95050a44ce
add user defined keys for networks/netdev
...
Every network in the profile and for the nodes can have induvidual keys values
pairs, called Tags, which are propergated to the templates. So they can be used
for things like MTU size like
`wwct node set node01 --nettag mtu=9000`
and in in ifcfg.xml.ww
```
{{ if $netdev.Tags.mtu -}}
<mtu> {{ $netdev.Tags.mtu }} </mtu>
{{ end -}}
```
2022-04-06 21:36:17 +02:00
Christian Goll
c0f7ecf357
store the ovelats as yaml list
2022-03-24 19:45:51 +01:00
Christian Goll
5ac75661c9
Only write to IPMI if this is explictly wanted
2022-03-02 21:24:05 +01:00
Gregory M. Kurtzer
88832420ca
Merge pull request #306 from gmkurtzer/container_kernel_integration
...
Utilize containerized kernel by default
2022-02-27 18:03:25 -08:00
Gregory Kurtzer
1203186194
Support kernel overrides from the host or other containers
2022-02-17 07:37:04 +00:00
Gregory Kurtzer
104bc7527d
Restored deleted kernel components for overrides
2022-02-17 06:21:40 +00:00
MatthewHink
a01e8319d2
Allow asset tags in the profile.
...
Warn and ignore ip addresses and hardware addresses.
2022-02-16 11:41:44 -05:00
MatthewHink
a29e9ed6be
Remove unique settings from profile set. Warn if set in the node DB.
...
IP address
MAC address
Asset Tag
2022-02-15 10:58:28 -05:00
Gregory Kurtzer
5a0c13225e
Utilize containerized kernel and remove kernel Support
2022-02-15 06:49:24 +00:00
Gregory Kurtzer
30994fd60d
Setting sane defaults for node and profile selection
2022-02-12 01:27:58 +00:00
Gregory Kurtzer
ffaf794a42
Changed "key" paramaters to tags and cleaned up interface
2022-02-11 05:52:46 +00:00
Gregory Kurtzer
7381efb0fc
Fix the help output for set -N ...
2022-02-11 04:55:04 +00:00
Gregory Kurtzer
c5cbd3d6e3
Simplified default network device configuration
2022-02-10 16:35:46 +00:00
Gregory Kurtzer
d9c13c3f36
Initial commit of asset key tag security check
2022-01-24 00:32:02 +00:00
Gregory Kurtzer
e3d76f01e2
Merge branch 'main' of github.com:hpcng/warewulf into overlay_refactor
2022-01-06 00:37:17 +00:00
Gregory Kurtzer
5602fb0177
Minor fixup for not setting onboot to be true via Cobra
...
This is already done more robustly within the code
2022-01-04 02:20:06 +00:00
Gregory Kurtzer
9f53bca1bf
Various fixes found in testing
2021-12-29 17:16:53 -08:00
Gregory Kurtzer
00d8d42e9d
First pass at a rework of the overlay subsystem in Warewulf
2021-12-29 16:11:25 -08:00
Gregory Kurtzer
f5a9c0f933
Fixed backwards compatibility with --netdev and cleanups
2021-12-28 16:07:19 -08:00