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
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
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
981d11a012
Initial wwctl upgrade command
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:09:38 -07:00
Jonathon Anderson
fdbdf88df0
Rename NodeConf to NodesConf
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:09:02 -07:00
Jonathon Anderson
a2c778b7ee
Remove ExportedYml
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:59 -07:00
Jonathon Anderson
8a602e8a76
Return OnBoot to wwtype.WWbool
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:55 -07: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
ab293d88ea
Fix extraneous whitespace in flag definition
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:52 -07:00
Jonathon Anderson
0665d5dc88
Refactor node
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:47 -07:00
Jonathon Anderson
9ddb491ba3
Rename BmcTemplate to Template
...
Signed-off-by: Jonathon Anderson <janderson@ciq.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
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
093c74add4
Remove unused IsZero function
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-01 18:39:40 -06: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
xu yang
82aaf9b9ec
tidy and update related dependencies
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-10-31 10:34:59 -06:00
Jonathon Anderson
b331fd12af
Remove dead code
...
Verified with
```
deadcode -test ./...
```
Followed-up with a lint check.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-18 15:09:01 -06:00
Jonathon Anderson
d3cd31fdc0
Restore a commented-out test
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-18 00:06:22 -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
bb5d1d17ed
Revert NetDevs.Manual back to NetDevs.OnBoot
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 23:00:57 -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
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
0c6e7cc58a
fixes for split overlays
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:39:54 -04:00
Christian Goll
c08cd82e68
don't use net.IPMask
...
net.IPMask doesn't have any advantages, as it would
marshalled to
mask:
- 1
- 2
- 3
- 4
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30:54 -04:00
Christian Goll
9fdb9ca792
updated overlays
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 15:30: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
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
28a7b9fe84
removed NodeInfo and using NodeConf instead
...
This is a significant change in the undelying data model!
nodeDb, err := node.New()
will result in a structure which contains the on disk
values. Only
nodeDb.FindAllNodes() or nodeDb.GetNode(id) will give
the nodes with its merged in profiles.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 13:35:42 -04:00
Jonathon Anderson
cdbabfc834
Update IgnitionJson to sort the list of file systems
...
- Closes #1433
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-27 18:15:15 -06: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
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
cc617007cd
prefer profile overlay value over node one
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-04 17:10:49 -06:00
Christian Goll
6f5f6f07ee
removed dead boot method from defaults.conf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-08-02 14:32:29 -06:00
Christian Goll
76a40f1364
Entry is aware if its ment as a slice or not
...
This is needed for printing out the values, as at this part in the
code there is no access to the NodeConf and only there the information
if the Entry is ment as a slice or not is available.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-04-19 22:28:05 -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
b387c86e6e
contruct network from nodeInfo not NodeConf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-21 10:43:59 +01:00
Christian Goll
1fca0057d3
updated WW_INTERNAL to 45 for 4.5.x release
...
Internal version update is necessary as new structures were added,
most obviously the disk, partitions and file system structures.
Old configurations will work as expected.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-16 20:12:51 -07:00
Christian Goll
24cb00e068
removed doubled entries form conf.Path
...
tftp.tftproot was also avlailable under paths.tftdir, removed
paths.tftpdir
warewulfconf.datastore was also availbale under
paths.datadir, remove paths.datadir
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-16 17:38:34 -07:00
Christian Goll
dcb21af5ba
added check if commas can be set
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-02-06 23:16:59 -07: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
jason yang
d0b396b89c
fix tag ignored issue
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 15:25:48 -07:00
Jonathon Anderson
a602971146
Avoid reporting an empty "from" value
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-17 23:12:35 -07:00
Christian Goll
d6ef1a86ce
prpfiles can be exluded with ~ prefix
...
Used the ~ as prefix as ! will mess up with yaml syntax
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 22:04:05 -07:00
Christian Goll
85eaa20708
overlays from different profiles are merged
...
If a node contains several profiles and these profiles have
overlays attached, these profiles are now merged. Overlays
can't be excluded as this can not be displayed to the user
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 21:51:05 -07:00
Christian Goll
4379c4c18d
use grub/shim from host system
...
Also the boot method is now configured globaly as this is
the only way to make sure that unkonwn nodes get the right
stuff
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00