Jonathon Anderson
a18913924d
Benchmarking for wwctl overlay build
...
- Benchmarks overlay build in an environment with 1000 nodes
- Updates testenv to support both benchmarks and tests
To execute:
```
go test github.com/warewulf/warewulf/internal/app/wwctl/overlay/build -bench Benchmark_Overlay_Build
```
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 12:34:23 -07:00
Christian Goll
8ef063a093
Check ip addresses formatting
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-12-25 09:10:05 -07:00
Jonathon Anderson
83af6021c0
Recast Profiles as a Profile field and support recursion
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:10:05 -07:00
Jonathon Anderson
deaf9c99d7
Remove DEBUG logging in test suite
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:10:02 -07:00
Jonathon Anderson
1a3d037703
Refactor GetNode merging with new MergeNode method
...
- Adds many tests for node+profile merging
- Ensures that tracked fields match mergo results
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 09:07:28 -07:00
Jonathon Anderson
717241aa18
Add methods to config.New().Paths for site and distribution overlays
...
- SiteOverlaySourcedir() uses WWOverlaydir (/var/lib/warewulf/overlays)
- DistributionOverlaySourcedir() uses Datadir (/usr/share/warewulf/overlays)
- config.New().Warewulf.DataStore moved to config.New().Paths.Datadir
- FindOverlays() ignores missing distribution overlay directory
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-20 11:12:47 +01:00
Jonathon Anderson
a80ba8ee01
Configure nodes.conf path dynamically from config
...
Removes the use of init() to initialize the variable.
- Closes : #1596
- See also: #1569
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-17 11:04:43 -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
e098455f7c
Fix display of profiles in node list
...
- Closes #1496
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-25 11:32:03 +01:00
Christian Goll
c0d2e3714c
add tag to tags not nettag
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-14 17:17:43 -07:00
Christian Goll
a05c494638
fix tests after refactor
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-11 10:56:30 +01:00
Christian Goll
a9eb4c3e26
Merge pull request #1524 from anderbubble/refactor-node-and-upgrade
...
Support cross-version upgrades
2024-11-11 10:45:47 +01:00
Xu Yang
0c2fc13a1d
fix issue that --neettagdel does not work properly
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-11-11 07:54:05 +00:00
Xu Yang
7f6cfafec9
hotfix failure test suite
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-11-11 07:36:49 +00:00
Jonathon Anderson
a7325b6ffa
Remove WW_INTERNAL
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:54 -07:00
Jonathon Anderson
0665d5dc88
Refactor node
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:47 -07:00
Christian Goll
e6f5c63c21
Merge pull request #1539 from anderbubble/restore-skipped-tests
...
Restore skipped tests
2024-11-09 19:49:46 +01:00
Jonathon Anderson
9c3b52b27f
Restore skipped tests
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-08 07:12:35 -07:00
Jonathon Anderson
8efec499a2
Revert changes to testenv and fix bmc tests
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 23:01:32 -07:00
Jonathon Anderson
c25eaa8855
Move default ipmi template to default profile
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 23:01:32 -07:00
Jonathon Anderson
141bcd8d40
Refactor ipmi tests as table-driven tests
...
Also prefix each sensor line.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 23:01:32 -07:00
Jonathon Anderson
2e2a7d7de3
rebased for the use without NodeInfo
...
make fanout configureable via commanline
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 23:01:32 -07:00
Christian Goll
10ea0ac78d
use ipmi interface from node.NodeConf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 23:01:32 -07:00
Christian Goll
0dd0317740
replaced errors.Wrap with fmt.Errorf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 22:57:29 -07:00
Jonathon Anderson
a8554b0af5
Replace olekukonko/tablewriter with cheynewallace/tabby
...
- Closes #1497
- Closes #1498
This library is simpler and doesn't produce extraneous whitespace around
the output.
A local helper function restores "--" for empty output.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 22:44:50 -07:00
Jonathon Anderson
a3ede90093
Use "default" netname during add, set
...
- Closes #1499
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 22:40:58 -07:00
Jonathon Anderson
fcc15eb8ef
Fix boolean pointer handling
...
- Refactor field reflection for clarity
- Update tests for clarity
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-31 15:52:01 -06:00
Jonathon Anderson
4b4234994c
Misc whitespace handling fixes
...
Also fixes handling of mtu value in Debian networking.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-18 00:31:19 -04:00
Jonathon Anderson
30ac144044
Restored profile list tests and resolved exposed bugs
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:58:37 -04:00
Jonathon Anderson
0be1e8464a
End-line whitespace cleanup
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:11:33 -04:00
Jonathon Anderson
df37018f79
Fix wwctl node edit
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:00:52 -04:00
Jonathon Anderson
322a47033a
Remove commented-out code
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 15:39:59 -04:00
Christian Goll
0c6e7cc58a
fixes for split overlays
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:39:54 -04:00
Christian Goll
342236b9b9
updated test for yaml/v3
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:54 -04:00
Christian Goll
4c8a07f1dc
changes for yaml/v3 for wwctl commands
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:54 -04:00
Christian Goll
5bd4fd4712
use yaml/v3 and don't export Nodes
...
introduced wwbool and don't export
Nodes and NodeConfs. This requires new
explict Yaml (un)marshaling as the standard
marshaller won't touch these fields
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:54 -04:00
Christian Goll
ac6cd69ca6
fix test to run without NodeInfo
...
Also removed --fullall from node list and profile list
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:47 -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
xu yang
f973733130
wwctl node set requires mandatory pattern input
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-30 12:50:20 +00:00
Jonathon Anderson
053dd9953a
Split overlays into discrete functionality and test
...
- Closes #987
To make the overlays testable in isolation, and after discussion with
the TSC, removed host/time/source from overlay files.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-26 10:48:38 -06:00
xu yang
3f120f2c4b
Return non-zero exit code on node sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-26 06:15:02 +00:00
Jonathon Anderson
e99e8c3dbb
Update use of wwlog.Info to specify a format string
...
Since wwlog.Info() expect a format string, accidental inclusion of a
format string in the payload causes an error.
See also #1382 , #1363
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-25 13:49:11 -06:00
xu yang
aa8282ad10
Fix excessive line spacing issue when listing nodes
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-25 13:49:08 -06:00
Jonathon Anderson
4a5c1cad12
Simplified slice ordering fix and extended for runtime overlay
...
- Extends #1357
- Fixes #1259
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-04 19:59:59 -06:00
xu yang
bfa6ad6be8
add test case
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-04 17:10:50 -06:00
Christian Goll
fc80c4745c
add various tests for wwctl node list -a
...
Altough getting and setting values is correct, `wwctl list -a`
will print superseded values as a list and mark them not as
superseded. Tests will fail after this commit.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-04-19 22:24:54 -06: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
Xu Yang
16183e603c
add multiple formats support
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-03-19 01:48:08 -06:00
Christian Goll
b3638ac1ff
failing test for node list without network
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-21 10:34:03 +01:00