Commit Graph

1950 Commits

Author SHA1 Message Date
Jonathon Anderson
4cf230cadd Merge pull request #946 from mslacken/MTUScript
set MTU in different network confs
2023-10-14 01:42:54 -06:00
Christian Goll
f4ae168f5a set MTU in different network confs
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 01:00:24 -06:00
Jonathon Anderson
e3fbf9d936 Merge pull request #943 from mslacken/ipmiWrite
only write ipmi of IpmiWrite is true
2023-10-14 00:50:19 -06:00
Christian Goll
e2603cf8e8 only write ipmi of IpmiWrite is true
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 00:46:50 -06:00
Jonathon Anderson
2f9ec8103e Merge pull request #955 from mslacken/TestFramework
added general testing framework
2023-10-13 23:40:17 -06:00
Jonathon Anderson
6c344cd5b0 Refactor ww4test to testenv
- Remove global state
- Remove redundant data
- Remove unused functionality (e.g., file permissions)
- Separate directory creation from file writing
- Additional helper functions for file reading and cleanup

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-13 14:35:28 +02:00
Christian Goll
b5979e41d2 added general testing framework
framework creates all the necessary configuration file for warewulf
under a temporary directory. Individual warewulf.conf and nodes.conf
can be provided.

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-11 12:07:28 +02:00
Jonathon Anderson
3115703ed5 Merge pull request #778 from hpcng/fixPrimaryNetdev
return the primary network interface for discoverd
2023-10-10 22:44:50 -06:00
Jonathon Anderson
f9cdda1ee9 Add tests for FindDiscoverableNode
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-10 22:40:23 -06:00
Christian Goll
84d2389aaf return the primary network interface for discoverd
close #775

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-10 22:40:02 -06:00
Jonathon Anderson
03d94322cd Merge pull request #945 from anderbubble/update-vendor-phony
Mark vendor target phony and update
2023-10-06 00:48:12 -06:00
Jonathon Anderson
d08aeb2adc Mark vendor target phony and update
The vendor target can't reliably determine when it needs to run, so mark
it phony. At the same time, update go.mod.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-06 00:41:48 -06:00
Jonathon Anderson
ced1239e21 Merge pull request #925 from mslacken/NoProtoDownload
do not download protobuf stuff on offline builds
2023-10-06 00:36:57 -06:00
Jonathon Anderson
ff22633261 Consolidate OFFLINE_BUILD behavior
Rather than implementing OFFLINE_BUILD individually within each relevant
target, define all such target dependencies once.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-06 00:24:27 -06:00
Jonathon Anderson
799542b154 Merge pull request #843 from anderbubble/resf-license
Update LICENSE.md for formatting and contributors
2023-09-29 17:11:28 -06:00
Jonathon Anderson
cf5bc7544e Update LICENSE.md for formatting and RESF
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-28 13:47:48 -06:00
Jonathon Anderson
a1003361bc Merge pull request #886 from anderbubble/contributing-dco-signoff
Add CONTRIBUTING documentation with a DCO
2023-09-26 16:59:06 -06:00
Christian Goll
c16755d2c0 Merge pull request #928 from anderbubble/issue-templates
Update GitHub issue templates
2023-09-21 07:58:17 +02:00
Christian Goll
b9bd3ff521 Merge pull request #927 from anderbubble/overlay-name-changelog
Update CHANGELOG for changes to overlay names
2023-09-21 07:56:57 +02:00
Christian Goll
a152beec49 do not download protobuf stuff on offline builds
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-20 17:28:14 +02:00
Jonathon Anderson
faaa408127 Add CONTRIBUTING documentation with a DCO
Requires commit sign-off and documents the meaning of signing off for the
project.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-19 17:15:35 -06:00
Christian Goll
d5c1e7b520 Merge pull request #766 from JasonYangShadow/issue/689
add support to install efi and bios from system path
2023-09-19 14:45:11 +02:00
Christian Goll
b30f124acc Merge pull request #813 from mslacken/AdvCmdline
advanced command line completion for wwctl overlay
2023-09-13 12:09:29 +02:00
Christian Goll
ff7608251a advanced command line completion for wwctl overlay
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-13 12:03:43 +02:00
Christian Goll
4d1711f46f Merge pull request #898 from mslacken/PrimaryNetdev
Disable per-netdev primary flag
2023-09-13 11:51:49 +02:00
Christian Goll
c3a4eba514 Disable per-netdev primary flag
Primary network devices are now identified by a per-node attribute,
rather than a per-netdev boolean. While the legacy data can still be
parsed, the argument for setting the per-netdev boolean at the
command-line is no longer available.
Correct behavior is tested.

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-13 11:31:04 +02:00
Christian Goll
3acac6077a Merge pull request #897 from mslacken/EphermalMount
Epehermal container mounts on same fs as chroot
2023-09-13 11:24:06 +02:00
Christian Goll
a3e40d62fd Merge pull request #902 from anderbubble/overlay-edit
Update overlay edit with tempfile and mtime
2023-09-11 11:56:55 +02:00
Christian Goll
2685cbf030 Merge pull request #900 from anderbubble/fix-build
Updated Makefile to account for vendor/ in dist
2023-09-11 11:54:41 +02:00
Christian Goll
e27aa9cbd4 Merge pull request #903 from anderbubble/896-overlay-names
Fix warewulfd for new contextual overlay names
2023-09-11 10:12:42 +02:00
Jonathon Anderson
2e4fc832c4 Update GitHub issue templates
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-08 18:37:22 -06:00
Jonathon Anderson
be4d3f9e78 Update CHANGELOG for changes to overlay names
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-08 17:40:05 -06:00
Christian Goll
791159c926 Merge pull request #853 from mslacken/fixBuildNoNetwork
fix SIGSEV if build host has no network
2023-09-07 12:21:22 +02:00
Christian Goll
c98be14fe6 Merge branch 'development' into fixBuildNoNetwork 2023-09-07 12:21:12 +02:00
Christian Goll
39d42c6b97 added @Kangie to Contribnutors
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-07 12:17:10 +02:00
Christian Goll
b8c75b1578 Merge pull request #908 from hpcng/revert-906-fix-ip-lookup
Revert "add error handling to dynamic network configuration"
2023-09-07 12:13:42 +02:00
Christian Goll
bb0c37763b Revert "add error handling to dynamic network configuration" 2023-09-07 12:09:23 +02:00
Christian Goll
7dc2061b20 Merge pull request #906 from Kangie/fix-ip-lookup
add error handling to dynamic network configuration
2023-09-07 12:07:53 +02:00
Matt Jolly
0364f1c9ca add error handling to dynamic network configuration 2023-09-07 19:54:17 +10:00
Christian Goll
f1eab8c363 Merge pull request #827 from mslacken/gendersTemplate
added genders examples
2023-09-06 14:16:50 +02:00
Christian Goll
1e13d5025e Merge branch 'development' into gendersTemplate 2023-09-06 14:08:09 +02:00
Christian Goll
bb160363dd Merge pull request #904 from ArnaudLcm/feature/canary
Canary feature & Little Makefile fix
2023-09-06 11:18:39 +02:00
Arnaud LECOMTE
aeb7793fba Switching cp to copy 2023-09-05 14:37:29 +02:00
Jonathon Anderson
9cf47da963 Fix warewulfd for new contextual overlay names
The recent PR #883 replaced the standard overlay naming convention with
static names for each of the runtime and wwinit/system contexts; but the
method by which it left the "legacy" naming convention in place led to a
bug where warewulfd was still attempting to serve overlays with the
previous naming convention, though this name wasn't being built.

This PR refactors contextual overlay image naming to be, I think, a more
typical golang pattern, and updates affected code to match.

This PR also included tests for all functions modified by this change.

Fixes #896

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-02 11:18:38 -06:00
Jonathon Anderson
6df8b4907b Add cleanproto target
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-01 07:31:51 -06:00
Jonathon Anderson
ebe676c385 Separate proto golang files in Makefile
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-01 07:27:47 -06:00
Jonathon Anderson
39a463c152 Fix missing definition of cleantools target
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-01 02:58:11 -06:00
Jonathon Anderson
f6ea3a21a8 Update protoc metadata after extraction
`unzip` preserves the mtime from the zipfile by default. Touching the
file during `make` ensures that `make` can track when the file was
fetched.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-01 02:51:43 -06:00
Jonathon Anderson
87bcec1cb2 Simply detection of PROTOC archive file name
The introduction of a new ARCH variable was unnecessary, as ARCH already
exists. That said, the .zip provided for PROTOC isn't a natural fit
here either, as upsream uses `aarch_64` rather than `aarch64`.

In stead, I've used `notdir` to get the filename from the
already-defined `PROTOC_URL`.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-01 02:49:40 -06:00
Jonathon Anderson
7e4e2a3f71 Fix and update initial overlay template
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-31 17:44:46 -06:00