Xu Yang
7f6cfafec9
hotfix failure test suite
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-11-11 07:36:49 +00: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
f53ae48ae6
added test for power status
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 23:01:32 -07:00
Christian Goll
4597fdfaa9
use ipmitool created from template file
...
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
a0c58e4183
Simplify passing of arguments through wwctl container exec
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-06 15:43:14 -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
983214f253
Simplify wwctl server
...
- Always run in the foreground
- Always log to stdout/err (unless syslog is requested)
- Update systemd to reload with a direct signal
- Omit any pidfile for "warewulfd"
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-31 14:52:47 -06:00
xu yang
97c6772e51
Return non-zero exit code on overlay sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-10-30 20:51:44 -06:00
Christian Goll
dbdd85fe2b
add platform parameter for container import
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-29 10:35:33 -06:00
xu yang
139b9880a0
Return non-zero exit code on profile sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-10-28 16:04:25 -06:00
xu yang
9daaab2983
wwctl should return non-zero exit code on wwctl kernel sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-10-28 15:54:41 -06:00
Jonathon Anderson
fbd5ca9895
Recommended refactors
...
- make sure spec sets new cache dir
- move clean out of api
- capture warewulfconf.Paths.Cachedir+"/warewulf" in once place
- split Clean() into multiple functions
- remove WriteFileAbs
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-28 15:20:41 -06:00
Christian Goll
ff84974506
added wwctl clean to remove cache/dead overlays
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-28 15:20:41 -06:00
Jonathon Anderson
62a58c500e
Move API docs into api path
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-18 15:09:09 -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
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
Jonathon Anderson
6460ca827a
Remove debug output from a test
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 15:39:59 -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
ffef31969e
api changes for use without NodeInfo
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 13:35:42 -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
Christian Goll
62f3cfb868
Merge pull request #1440 from JasonYangShadow/issue/1439
...
wwctl should return non-zero exit code on wwctl power sub-commands
2024-09-30 08:50:05 +02:00
xu yang
65f67b79ba
wwctl should return non-zero exit code on wwctl power sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-30 06:41:53 +00:00
Jonathon Anderson
e9d3ad717c
Move umasking for overlay images to wwctl
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-27 11:53:19 -06:00
Jonathon Anderson
e4651bbc7c
Update Rocky 9 quickstart
...
- Closes #1179
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-27 10:51:25 -06:00
Christian Goll
132869f8b3
Merge pull request #1306 from anderbubble/split-test-overlays
...
Split overlays into discrete functionality and test
2024-09-27 14:59:37 +02:00
Jonathon Anderson
8d4cb37b24
Move UTC selection to testsuite environment variable
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-26 18:23:47 -06:00
Christian Goll
883de9c4fc
no panic if listing non existing container image
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-09-26 18:22:36 -06:00
Brandon Biggs
24ea5580e2
Fix a typo in wwctl power soft help text
2024-09-26 11:42:54 -06:00
Jonathon Anderson
cac6ae1cd0
Fix wwlog.Output format strings during overlay show
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-26 10:48:40 -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
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