Jonathon Anderson
680ecfb3fd
Minor updates to wwclient log messages
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-06-16 11:02:40 +02:00
MatthewHink
0a1d12e6d4
Fail API add node if node exists
2025-06-13 12:22:03 -07:00
Christian Goll
e72368cd26
fix wwctl profile set for disk/fs/part
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-05-27 13:56:04 -06:00
Jonathon Anderson
b5d72fb393
Address unhandled deadcode issues
...
- Fix `make deadcode` to properly fail GitHub checks
- Resolve "dead" code by refactoring other code to use it
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-05-10 11:26:11 -06:00
Matt Hink
be73ac056a
Initial cut for removing the old API.
...
Remove API reverse proxy server and google dependencies.
Remove API config.
Remove API client.
Remove API GRPC server.
Remove unused ImageCopy function. image.Duplicate is used.
Update Makefile to avoid protobuf builds.
Signed-off-by: Matt Hink <mhink@ciq.com >
2025-05-10 10:58:03 -06:00
Jonathon Anderson
4005afac4c
Add a new OpenAPI v3 REST API to warewulfd at /api
...
Co-authored-by: jason yang <jasonyangshadow@gmail.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-03 07:12:03 -06:00
Christian Goll
eb9a20fa01
fix SUSE specific udev regression
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-04-02 20:39:41 -06:00
Jonathon Anderson
51786b5e4a
Fix a panic during wwctl node list --ipmi for nodes with no ipmi configuration. #1847
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-04-01 16:48:43 -06:00
Jonathon Anderson
dd2d256179
wwctl upgrade nodes --replace-overlays avoids applying overlays multiple times
...
- Closes : #1823
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-28 03:49:22 -06:00
Jonathon Anderson
1883f2e932
Added a test for wwctl node import
...
To support this, also added `wwctl node import --yes`.
Also corrected the spelling of `--cvs` to `--csv`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 20:00:48 -06:00
Rafael Lopez
ca1830d8e1
Rename value in loop
...
Rename value from 'node' to 'nodeData' so it doesn't
coincide with the package import name.
Signed-off-by: Rafael Lopez <raflopez1@gmail.com >
2025-03-25 19:21:30 -06:00
Rafael Lopez
299f1db41c
fix import from yaml where node does not pre-exist
...
Check if node exists, if not add it first before
attempting SetNode().
Fixes : #1842
Signed-off-by: Rafael Lopez <raflopez1@gmail.com >
2025-03-25 19:21:30 -06:00
Jonathon Anderson
09488db3f6
Fix processing of UNDEF and UNSET during wwctl <node|profile> set. #1837
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 18:16:14 -06:00
Jonathon Anderson
4367b56120
Restore some default behaviors
...
- If `init` is not specified, wwinit looks for /sbin/init, /etc/init,
and /bin/init, matching dracut behavior.
- assume ipxe template=default if not set
- Display a warning during overlay build if an overlay list is empty
Issues:
- Closes : #1808
- Closes : #1813
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-25 09:07:03 +01:00
Xu YANG
9e9f37208c
Merge pull request #1841 from anderbubble/cobra-nargs
...
Explicitly enforce the number or arguments accepted by some `wwctl` subcommands
2025-03-25 13:47:14 +09:00
Jonathon Anderson
605c910c82
Update nodes and profiles when renaming an image. #1637
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:45:06 -06:00
Jonathon Anderson
9a3e48fa37
Explicitly enforce the number or arguments accepted by some wwctl subcommands. #1717
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-24 21:06:07 -06:00
Jonathon Anderson
e4a9018b80
wwclient uses WW_IPADDR, if set, to contact the Warewulf server.
...
- Closes : #1788
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-22 03:03:21 -06:00
Jonathon Anderson
c7bda5e655
Add tests for overlay import --overwrite
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-21 23:42:30 -06:00
Timothy Middelkoop
ae54fd207b
Add --overwrite to wwctl overlay import
...
- Closes : #386
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu >
2025-03-21 23:42:27 -06:00
Shane Nehring
e152db228c
Adding quotes around escapechar in ipmitool.tmpl
...
- Fixes : #1802
Signed-off-by: Shane Nehring <snehring@iastate.edu >
2025-03-21 16:41:36 -06:00
Jonathon Anderson
3919dea887
Fix display of dotted field names
...
- Fixes : #1825
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-19 02:59:47 -06:00
Jonathon Anderson
06f2c0dc5a
Properly configure a default IPMI template during wwctl upgrade nodes --add-defaults
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-19 02:20:48 -06:00
Christian Goll
ea9a013812
Handle missing ipmi fields during bmc commands
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-18 15:33:35 -06:00
Christian Goll
d256d15c20
fixup pdf build
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-03-18 12:21:03 -06:00
Christian Goll
a4035faff9
Fix warewulfd panic when netdev is only in profile
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-03-18 10:55:24 -06:00
Christian Goll
fafaaf9675
add failing test for #1817
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-03-17 11:05:34 +01:00
Christian Goll
a97c204f53
Use wwctl overlay <import|build> --workers=0 to indicate default value
...
By default, uses `runtime.NumCPU()`
The default value is rendered in the generated man pages, which made
their content dependent on build system characteristics.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-03-01 11:46:15 +01:00
Jonathon Anderson
c8c9442178
Change upgraded default kernel args to match distributed nodes.conf
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-27 02:03:26 -07:00
Jonathon Anderson
94b2c3ba84
Add support for ubuntu-style dracut image names
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-25 17:01:26 -07:00
Jonathon Anderson
9cedd835aa
Port NFS before applying defaults
...
- Closes : #1758
Fixes an issue where `wwctl upgrade nodes` applied default NFS mounts and
ported in NFS entries from warewulf.conf.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-23 16:33:14 +01:00
Christian Goll
b41a49f863
Merge pull request #1762 from anderbubble/wwbool-default-true
...
Add WWbool.BoolDefaultTrue()
2025-02-23 16:30:40 +01:00
Jonathon Anderson
fd8de8bfab
Add WWbool.BoolDefaultTrue()
...
New support in WWbool for booleans that default "true."
Used primarily for NetDev.OnBoot.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-20 01:41:10 -07:00
Christian Goll
4c1dbfb642
Set IdleConnTimeout wwlient to 2*UpdateIntervall
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2025-02-21 23:39:13 -07:00
Jonathon Anderson
279e966ce2
Reduced default verbosity of wwctl overlay build
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-20 01:40:36 -07:00
Jonathon Anderson
fd49254ac5
Display auto-detected kernel version during iPXE and GRUB
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-18 17:00:21 -07:00
Jonathon Anderson
4fa8601b75
Updated wwinit for clarity #1156
...
Also:
- Renamed /warewulf/wwinit to /warewulf/prescripts
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-17 02:48:16 -07:00
Jonathon Anderson
fb9f269fc5
Update ipxe and grub configuration for clarity #1156
...
Also:
- Defined a menu for iPXE
- Support a IPXEMenuEntry tag to select the boot method
- Merge iPXE dracut support into default.ipxe (use IPXEMenuEntry=dracut)
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-17 02:31:05 -07:00
Christian Goll
34e8aa7402
Merge pull request #1746 from anderbubble/default-nfs-resources
...
Default nfs resources
2025-02-18 17:42:24 +01:00
Jonathon Anderson
d96744afbd
Make DHCP range optional
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 23:32:22 -07:00
Jonathon Anderson
f2273fcd4a
Removed check for "discoverable" profiles during wwctl upgrade nodes
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 20:45:39 -07:00
Jonathon Anderson
b05fa4157a
Added fstab mounts for /home and /opt to initial default profile
...
- Closes : #1744
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 20:30:46 -07:00
Jonathon Anderson
7f317dff82
Add WW_HISTFILE to control shell history location during wwctl image shell
...
Co-authored-by: Christian Goll <cgoll@suse.com >
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:09:57 +01:00
Jonathon Anderson
609dc286ef
Update PS1 during wwctl image shell to include working directory
...
Optionally, use `WW_PS1` to construct the prompt.
- Closes : #1245
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-14 09:09:57 +01:00
Jonathon Anderson
8197484461
Make wwctl image syncuser --write true by default
...
It can be disabled with `wwctl image syncuser --write=false`.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
01b3c28874
Update syncuser to read passwd and group from sysconfdir
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
b56fc19f9e
Added wwctl image build --syncuser
...
- #1321
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
f2092b2854
Remove syncuser warning messages in wwctl that assume its use
...
- #1321
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:49 -07:00
Jonathon Anderson
21333482e6
Omit duplicate passwd and group entries in syncuser overlay
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2025-02-11 18:28:47 -07:00
Christian Goll
a686ddb7ad
Merge pull request #1737 from anderbubble/issue-649
...
Make .ww suffix optional during wwctl overlay show --render
2025-02-13 15:14:27 +01:00