Commit Graph

2643 Commits

Author SHA1 Message Date
Christian Goll
9ba1aa8d63 api changes to modify unexported fields
changes can now not be done directly but must
go to SetNode or SetProfile. Although its also
now possible to access the field direclty with
GetNodePtr

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
1740a8c11d update to yaml/v3 for project files
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-10-17 15:30:54 -04:00
Christian Goll
bddcdfcac4 added new types for primitves
this types like WWbool are needed so that they can
have their own command line parses which allows a UNDEF
for e.g. bool or ints.

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
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
Christian Goll
dc8fb2d6f2 Merge pull request #1450 from JasonYangShadow/issue/1449
Fix issue that domain globs not supported during wwctl node delete.
2024-10-11 12:07:51 +02:00
xu yang
f7c4b32fc2 Fix issue that domain globs not supported during wwctl node delete.
Signed-off-by: xu yang <xyang@ciq.com>
2024-10-11 09:50:48 +00:00
Christian Goll
f0e4dccf57 Merge pull request #1451 from JasonYangShadow/issue/964
fix issue that pattern matching broken on node set
2024-10-11 11:40:46 +02:00
xu yang
f51808bc75 fix issue that pattern matching broken on node set
Signed-off-by: xu yang <xyang@ciq.com>
2024-10-11 02:27:33 +00:00
Christian Goll
f102bb9a72 Merge pull request #1444 from metalllinux/metalllinux
Updated configuration.rst, CONTRIBUTORS.md and CHANGELOG.md
2024-10-07 10:09:36 +02:00
metalllinux
cf5ae78f7e Updated configuration.rst, CONTRIBUTORS.md and CHANGELOG.md 2024-10-07 16:37:53 +09:00
Jonathon Anderson
95a93812c7 Release v4.5.8
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-30 17:04:40 -06:00
Jonathon Anderson
7bd1420e8d Merge pull request #1425 from anderbubble/wwinit-string-quote-regression
Fix a missing string quote
2024-09-30 16:05:42 -06:00
Jonathon Anderson
c39fa75048 Fix a missing string quote
Regression introduced in #1401

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-30 16:03:09 -06:00
Christian Goll
7d003532f6 Merge pull request #1431 from JasonYangShadow/issue/502
`wwctl node set` requires mandatory pattern input
2024-09-30 14:59:31 +02: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
Christian Goll
20e243a106 Merge pull request #1432 from JasonYangShadow/issue/1388
Change the permission of overlay dir to `0750` and generated overlays to `0660`
2024-09-30 08:41:56 +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
Christian Goll
eefb95969c Merge pull request #1434 from anderbubble/ignition-sort-filesystems
Update IgnitionJson to sort the list of file systems
2024-09-30 08:35:21 +02: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
e9d3ad717c Move umasking for overlay images to wwctl
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-27 11:53:19 -06:00
xu yang
d59ace3792 Change the permission of overlay dir to and generated overlays to
Signed-off-by: xu yang <xyang@ciq.com>
2024-09-27 11:48:44 -06:00
Jonathon Anderson
617e1b9e5a Merge pull request #1427 from anderbubble/ignition-documentation
Document that ignition is not available for Rocky Linux 8
2024-09-27 11:34:31 -06:00
Jonathon Anderson
35bbca18e3 Document that ignition is not available for Rocky Linux 8
- Closes #1373
- Closes #1272

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-27 11:23:06 -06:00
Jonathon Anderson
6848d5ffe2 Merge pull request #1429 from anderbubble/building-ipxe-locally
Building ipxe locally
2024-09-27 11:19:42 -06:00
Jonathon Anderson
ea72f2b5c5 Minor fixes for documentation formatting
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-27 11:17:15 -06:00
Jonathon Anderson
e78316673b New documentation for building iPXE locally
Closes #1114

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-27 11:16:12 -06:00
Jonathon Anderson
bf4cce92ad Merge pull request #1430 from anderbubble/import-copy-socket
Add workaround documentation for importing containers with sockets
2024-09-27 11:14:56 -06:00
Jonathon Anderson
63656789e5 Added workaround documentation for importing containers with sockets.
- Workaround for #892

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-27 11:12:21 -06:00
Jonathon Anderson
b3ed7d3a5d Merge pull request #1428 from anderbubble/ramfs-docs
Update SELinux documentation to address rootfstype=ramfs
2024-09-27 11:09:44 -06:00
Jonathon Anderson
3af2d3afae Update SELinux documentation to address rootfstype=ramfs
Previous versions of Warewulf v4 required a kernel argument
rootfstype=ramfs to be set, in addition to --root=tmpfs. This was fixed
in #1401.

- Closes #1001

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-27 11:02:59 -06:00
Jonathon Anderson
e7c92f0d8a Merge pull request #1426 from anderbubble/1179/rocky-quickstart-fix
Fixes for EL quickstart
2024-09-27 10:57:28 -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
acfbdbc228 Merge pull request #1395 from mslacken/FixPanicContList
Fix panic when getting a long container list before building the container
2024-09-26 18:47:27 -06: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
Jonathon Anderson
c0c93b153a Merge pull request #1234 from anderbubble/troubleshooting-guide
New troubleshooting guide
2024-09-26 17:37:57 -06:00
Jonathon Anderson
f9aeb764d5 New troubleshooting guide
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-26 17:34:20 -06:00
Jonathon Anderson
187432aaee Merge branch '1420-wwctl-power-soft-typo'
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-26 11:47:00 -06:00
Brandon Biggs
24ea5580e2 Fix a typo in wwctl power soft help text 2024-09-26 11:42:54 -06:00
Jonathon Anderson
57f7a8f158 Omit internal tests from overlay installation
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-26 10:48:40 -06:00
Jonathon Anderson
61df65fc5f Remove test/batch-test.go
Tests already exist for this at internal/pkg/batch/batch_test.go

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-09-26 10:48:40 -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