Jonathon Anderson
e80c639b11
Convert config to *bool
...
Supports leaving booleans unspecified in YAML.
Boolean methods allow the templates to continue using previous names for
boolean values.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:09:48 -07:00
Jonathon Anderson
a7325b6ffa
Remove WW_INTERNAL
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:08:54 -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
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
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
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
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
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
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
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
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
Christian Goll
d24a92965f
Merge pull request #1406 from anderbubble/1389-rundir-help-text
...
Additional help test when container.RunDir already exists
2024-09-25 11:10:22 +02: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
Jonathon Anderson
b9a35ac664
Merge pull request #1358 from JasonYangShadow/fix/1344
...
Add --syncuser flag to wwctl shell
2024-09-23 11:32:30 -06:00
Jonathon Anderson
512f244067
Merge pull request #1404 from JasonYangShadow/issue/1378
...
Add flag --build to wwctl container copy, default false
2024-09-20 17:43:57 -06: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
xu yang
aa35ce93e5
Return non-zero exit code on container copy failure
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-19 23:58:32 +00:00
Jonathon Anderson
836b791d74
Additional help test when container.RunDir already exists
...
- Closes #1389
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-19 11:40:10 -06:00
Jonathon Anderson
96119484d8
Move syncuser pass from shell to exec
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-17 21:26:32 -06:00
xu yang
0b3eace403
Add syncuser to wwctl container shell and switch to mtime
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-09-17 21:26:30 -06:00
Jonathon Anderson
5860334a89
Improve error handling during container file copy removal
...
Based on feedback at #1365
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-09 11:09:10 +02:00
Jonathon Anderson
9e91b1c19a
Rename :cow to :copy
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-09 11:09:10 +02:00
Jonathon Anderson
3a36016707
Refactor of new copy-on-write feature
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-09 11:09:09 +02:00
Jonathon Anderson
173546348f
Edited documentation for new copy-on-write feature
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-09 11:09:09 +02:00
Christian Goll
dc263425e2
Added cow option to bind
...
The option cow can now be set for files which are then
mounted during exec, but copied into the image and removed
if not modified.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-09-09 11:09:04 +02:00
Jonathon Anderson
9e0f255fe3
Use wwctl container import --password by default
...
Retains support for --passwd as a hidden flag targeting the same
variable.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-09-04 16:52:16 -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
Jonathon Anderson
f02af9f242
Container list shows size if any size option specified
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-08-02 16:36:15 -06: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
6028a6eb58
Minor adjustments to exitEval and msgStr
...
For grammar clarity, and consistency.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-08-02 13:29:59 -06:00
Christian Goll
9d2853ad64
Show pending container build status during container exec, shell
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-08-02 11:43:05 -06:00
Christian Goll
cfacb4d520
mount /sys and /run during container exec
...
Also unify mounting of sys, run, proc, and dev as occuring within the
chroot and without bind mounts from the host.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-07-04 07:54:55 +02:00
xu yang
c28404ea6c
Add test cases for container exec
...
Signed-off-by: xu yang <xyang@ciq.com >
2024-06-11 23:59:36 -06:00
Jonathon Anderson
5bb13c8baf
Fix regression in container exec argument parsing
...
- Fixes #1250
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-06-11 23:57:58 -06:00
Jonathon Anderson
2c5e079d33
Refactor overlayDir to container.RunDir()
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-06-07 14:18:19 -06:00
Christian Goll
0eba837950
use warewulf.conf from parent on child
...
The directories for the overlays needed for the bind
mount are now created under conf.Paths.WWChrootdir/$CONTAINERNAME
with the pattern $CONTAINERNAME-run-xxxxxx. This pattern can be
used as lock, so that there can't be congruent shell/exec calls
to the same container.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-06-06 16:46:10 -04:00
Christian Goll
dc6db3d565
using the right overlay directory and remove it
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-06-06 16:46:10 -04: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
17a5aaefee
added more aliases for wwctl commands
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-03-20 21:11:14 -06: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
Xu Yang
259c1780c5
resolve conflicts
...
Signed-off-by: Xu Yang <xyang@ciq.com >
2024-02-14 21:18:41 -07:00
jason yang
4072730172
add container build after container sync
...
Signed-off-by: jason yang <xyang@ciq.com >
2024-02-14 21:18:41 -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
Jonathon Anderson
eded560cbc
Use "mv" as the alias for "rename"
...
The `mv` command is typically used to rename files in a Linux
environment, so keep that convention here for container rename.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-24 15:11:21 -07:00
Jonathon Anderson
acfd70a645
Return an error if rename arguments != 2
...
The original implementation presented a warning if more than two
arguments were presented, and didn't handle the case where fewer than
two arguments were provided. This change requires precisely two
arguments and returns an error otherwise.
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