Jonathon Anderson
facba28e0f
Rename "preferred" kernel to "default" kernel
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-09 10:02:29 +01: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
Jonathon Anderson
5834b82f93
Format errors in logs as strings
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-23 22:47:48 -07: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
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
0665d5dc88
Refactor node
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:47 -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
3cbb295e7b
Remove escape character from IPMI attribute list
...
This wasn't in the header, and usually wasn't displaying anything
anyway.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 22:44:50 -07:00
Jonathon Anderson
4e9b097eb6
Only output node and profile list headers once
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-07 22:44:50 -07: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
Jonathon Anderson
ccb096104a
Remove an erroneous colon suffix from a log message
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-25 14:58:03 -06:00
Christian Goll
cb9e6e8be0
Removed rest of direct yaml.v2 deps
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-25 14:33:57 -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
5fbeaa1873
Remove an extraneous tab
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-17 15:39:59 -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
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
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
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
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
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
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
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
xu yang
94e203dd2e
return non-zero exit code on container sub-commands
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-25 08:50:50 +00:00
xu yang
1f492dfed5
Add flag --build to wwctl container copy, default false
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-20 17:31:17 -06:00
Christian Goll
13349bbf66
adding WAREWULF_OCI vars to wwctl
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-09-04 20:52:43 +02:00
Tobias Poschwatta
b4e1b9cb24
Fix typo in "profile with name ... already exists" message
...
Signed-off-by: Tobias Poschwatta <poschwatta@zib.de >
2024-08-30 11:45:43 +02:00
Christian Goll
553e401fe0
enhanced container list
...
Container list has now options for full, kernel and size listing. Without any
arguments only available containers are listed. Size is no more fine granular
showing also size of the image, chroot and compressed image
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-08-02 16:34:54 -06:00
Jonathon Anderson
6b8ca378d8
Refactor syncuser to reduce walking the container fs
...
- Closes #1209
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-06-03 19:18:25 -06:00
Christian Goll
2ba9efa57c
created kernel.FindKernel reduces code complexity
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-04-19 16:12:22 -06:00
Xu Yang
5956f2e9a1
use marshalindent instead of marshal
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-03-19 03:04:20 -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
Yong Qin
0aca225ef7
Fixed a bug with profile list when kernelargs are set with 'var=val'
...
format. This also removed the unnecessary '--' for the source profile
since it's never used.
2024-03-11 11:04:21 +01:00
xu yang
7746854732
Fix error when editing node
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-01-30 17:10:52 -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
c0b9c0996a
move hostlist code into internal folder
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 22:00:07 -07:00
Jonathon Anderson
45542827dd
Remove built images when renaming a container
...
Renaming a container causes its images to be abandoned in the previous
name. This causes those images to be removed after a successful rename.
New images can be rebuilt during the rename using the `--build`
argument.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-24 15:11:21 -07:00
jason yang
d262ec10ef
Add container rename support
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2024-01-24 15:11:16 -07:00
Jonathon Anderson
5d6ef1882d
Remove whitespace damage
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-21 00:18:38 -07:00
Christian Goll
725176cfed
cleanup code after review
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -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
Christian Goll
03ef7447e9
copy shim/grub on default profile container change
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 18:02:04 -07:00
jason yang
5785d15497
enable the build flag
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-12-12 17:29:50 -07:00
jason yang
231987ecfc
fix a bug when replacing existing containers
...
Signed-off-by: jason yang <jasonyangshadow@gmail.com >
2023-12-12 17:06:28 -07:00
Jonathon Anderson
64d0d54c92
Fix some formatting errors with make fmt
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-12-08 21:18:14 -07:00
Andreas Skau
c635fecbc6
Almost missed a :
2023-12-04 22:18:13 +01:00