Commit Graph

444 Commits

Author SHA1 Message Date
Jonathon Anderson
032db29f87 Don't populate NetDevs[].Type or NetDevs[].Netmask during upgrade
- Closes: #1661

NetDev defaults don't behave quite the same as standard fields, because they
need to be set per-device. Meanwhile, trying to set a value may erroneously
override values that are on the default profile.

Switch this to a warning rather than attempting to take explicit action.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-03 11:00:12 +01:00
Xu YANG
87b9ad33ff Merge pull request #1693 from anderbubble/warewulf-recommends-ipmitool
Recommend installing ipmitool with Warewulf package
2025-02-03 13:55:15 +09:00
Jonathon Anderson
d56e83ab81 Remove a redundant "Building image" log message after image exec
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-30 16:58:55 -07:00
Jonathon Anderson
4f83885c5b Show each overlay only once #1675
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-01 13:40:12 +01:00
Jonathon Anderson
9a5d1ec422 Document commas in kernel arguments
- Closes: #1679

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-01 13:37:44 +01:00
Jonathon Anderson
f931eb6a0a Fixed negation for slice field elements during profile/node merge
- Fixes: #1677

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-01 13:32:10 +01:00
Jonathon Anderson
c946b25bf2 Recommend installing ipmitool with Warewulf package
- Fixes: #970

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-30 16:41:40 -07:00
Jonathon Anderson
736f9dae48 Use configured warewulf.conf path in wwctl upgrade
- Fixes: #1658

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-30 10:55:22 -07:00
Elmar Pruesse
9ebdb8612b Use sh to parse and exec IPMI command
- Fixes: #1663

Signed-off-by: Elmar Pruesse <pruessee@njhealth.org>
2025-01-30 02:14:42 -07:00
Timothy Middelkoop
84ff9800ff Fix make install when sudo does not set PWD
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-01-30 01:56:06 -07:00
Timothy Middelkoop
b66a8679c5 Fix default nodes.conf to use the new kernel command line list format
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-30 01:44:53 -07:00
Jonathon Anderson
fce3bc8aff Release v4.6.0rc1
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-29 04:03:29 -07:00
Christian Goll
755411d3cb Added warewulfd:/overlay-file/{overlay}/{path...}?render={nodeID}
Co-authored-by: Jonathon Anderson <janderson@ciq.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-29 00:08:30 -07:00
Jonathon Anderson
51f61f93c4 Refactor kernel args as a slice
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-21 09:52:58 -07:00
Jonathon Anderson
c209dadc1f Update network interface bonding configuration and documentation
- Closes: #1482
- Closes: #1280

This also corrects poor handling of whitespace around the "file" function
throughout the templates, given experiences with the network templates while
implementing the bond behavior. Since the file function actually does produce
output (that is parsed by Warewulf itself) it should not collaps prefix
whitespace.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-21 09:42:27 -07:00
Jonathon Anderson
803e65e9c1 Document building images from scratch with Apptainer
- Closes #1485

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-21 09:42:27 -07:00
Jonathon Anderson
875106a79b Include man pages and command reference in userdocs
- Closes: #1488

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-21 09:42:27 -07:00
Timothy Middelkoop
64084a471b Add Devcontainer support
Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
2025-01-24 20:25:00 +00:00
Shane Nehring
6bad4ed8d1 have dracut explicitly configure defined interfaces
Signed-off-by: Shane Nehring <snehring@iastate.edu>
2025-01-24 10:04:37 -06:00
Jonathon Anderson
8e8349ccd0 Fix newline handling in /etc/issue
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-19 13:58:19 -07:00
Jonathon Anderson
45a690ca4e Rename "container" to "image"
- Updated `wwctl upgrade` to handle updates
- Maintained `.Container` and `.ContainerName` in tstruct
- Added `ContainerName()` methods to node and profile objects
- Added `--container`, `-C` aliases to wwctl commands (`<node|profile> <add|set>`)
- Added `wwctl container` alias
- Added support for `container_exit.sh` if `image_exit.sh` is not found

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-19 05:54:19 -07:00
Jonathon Anderson
bc52f3b7d7 Recommended changes from review of #1568
- Make Resources an `interface{}` to support arbitrary yaml
- Remove `wwctl resource` as incompatible with arbitrary yaml
- Revert changes to host overlay templates
- Remove NFS mount options from warewulf.conf
- Replace NFS support / resource prefix with "fstab" resource
- Move resources to profiles
- Migrate warewulf.conf mounts to nodes.conf with `wwctl upgrade`
- Add documentation

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-17 10:33:37 -07:00
Christian Goll
847d11611b creating exports from resource
Signed-off-by: Christian Goll <cgoll@suse.com>
2025-01-16 23:00:37 -07:00
Christian Goll
c3833b5ba0 Merge pull request #1631 from ResearchIT/dracut-curl-retry
adding retry to curl in wwinit dracut module
2025-01-17 14:32:30 +01:00
Shane Nehring
e1b3a65129 adding change to CHANGELOG.md
Signed-off-by: Shane Nehring <snehring@iastate.edu>
2025-01-15 14:56:09 -06:00
Christian Goll
455d9b65e4 Fix panic ObjectIsEmpty for bool
Signed-off-by: Christian Goll <cgoll@suse.com>
2025-01-15 13:34:45 +01:00
Christian Goll
16269abf62 Merge pull request #1621 from ssimpson89/update-dnsmasq
Update dnsmasq Documentation
2025-01-13 08:49:08 +01:00
Stephen Simpson
71d02f0f07 Update dnsmasq Documentation
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
2025-01-10 17:06:10 -06:00
Jonathon Anderson
1a3b9a16ed Add wwctl container <exec|shell> --build=false
- Closes #1490
- Closes #1489

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-08 20:37:29 +01:00
Jonathon Anderson
7e742b0d8a Fix DelProfile to operate on profiles, not nodes.
- Fixes: #1622

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-27 05:58:46 -07:00
Jonathon Anderson
83af6021c0 Recast Profiles as a Profile field and support recursion
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 09:10:05 -07:00
Jonathon Anderson
c244adc7f6 Performance improvements for overlay build
Rendering overlay templates requires fetching and populating / merging all
other nodes, because overlay templates have access to all cluster node info.
This was previously being done for each template render, but is not being done
once for each render operation and re-used for each template render.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 08:48:14 -07:00
Jonathon Anderson
a59403ab3b Parallel overlay builds
- Closes #1018

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 08:48:14 -07:00
Jonathon Anderson
53e5805fbe Remove os.Umask from overlay.BuildOverlayIndir
Adds tests to ensure that the overlay image contains the correct permissions.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 08:48:14 -07:00
Jonathon Anderson
74616f578d Improve syncuser conflict help text
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-08 15:50:45 +01:00
Christian Goll
f1e587eb23 Merge pull request #1613 from anderbubble/remove-setdefault
Remove `wwctl overlay <build|import> --setdefault`
2025-01-08 15:45:10 +01:00
Jonathon Anderson
170f055c20 Log cpio errors more prominently
Previously, cpio output would only be shown as a debug message. Now it is shown
as an error message if cpio returns an error.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-25 00:34:38 -07:00
Stephen Simpson
8af74bdb69 Add machine-id note
This note informs that it may be necessary to remove /etc/machine-id for dracut to properly generate. The nodes will fail to boot otherwise
2025-01-03 16:03:55 -06:00
Jonathon Anderson
d0f4eaa9bb Remove wwctl overlay <build|import> --setdefault
- Closes: #1335

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-24 23:14:12 -07:00
Christian Goll
f65607190e added documentation for site overlays
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-12-20 11:12:46 +01:00
Christian Goll
e8f7c01283 Merge pull request #1595 from anderbubble/removeInit
Configure nodes.conf dynamically from config
2024-12-20 11:00:27 +01:00
Jonathon Anderson
39707eaccf Add tests for localtime overlay and make configurable
localtime overlay can now be configured with a "localtime" tag.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-17 18:48:00 -07:00
Christian Goll
88016309a9 soft link documentation
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-12-17 18:48:00 -07:00
Jonathon Anderson
a80ba8ee01 Configure nodes.conf path dynamically from config
Removes the use of init() to initialize the variable.

- Closes: #1596
- See also: #1569

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-17 11:04:43 -07:00
Ian Kaufman
1d3cb6f153 Add Netplan NIC support for Debian/Ubuntu #1463
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-10 19:41:27 -07:00
Jonathon Anderson
c18bcfe3bd Support importing containers from directories containing a socket
- Fixes #892

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-09 11:19:48 -07:00
Jonathon Anderson
6f4d33b19e Move wwctl kernel list to wwctl container kernels
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-09 10:02:28 +01:00
Jonathon Anderson
098c288ce2 Provide detected kernel version to overlay templates
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2024-12-09 10:02:28 +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