Commit Graph

21 Commits

Author SHA1 Message Date
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
griznog
13c426de1c Add an argument to the runtime/system overlay related functions to carry the context to getOverlayFile() for building the img name. 2023-07-27 07:27:20 -05:00
Carter Dodd
30ba916703 Move overlay build logic to util, add limit to spawned processes 2022-06-05 17:28:14 -05:00
Carter Dodd
fc8d3863d8 use wwctl to re-build provision overlays, update to pass overlaynames 2022-06-04 11:14:48 -05:00
Gregory Kurtzer
bf9ca54b8e Don't read in binary data blobs to memory before sending to HTTP writer 2022-05-25 23:11:26 -07:00
Carter Dodd
7ecaae1361 Fix only serve/check Secure for runtime 2022-05-16 12:38:53 -05:00
Carter Dodd
a27be52e3f Fix unhandled errors 2022-05-13 22:33:29 -05:00
Carter Dodd
379faad51d Refactor of server, logging, building of images, template updates
* Combine provision response handling, add hwaddr and interface to dhcp
* Simplify stage cases, add backward compatible uri parse
* Move control of image compression to client
* Fix kernel search path for ubuntu, buffer template generation
* Implement cpio and gz as functions, add log named functions
* Generalize fs image creation routine
* Combine daemonLogf to generalized wwlog
* Fix template newline insertion, update dhcp and hosts tmpl
* Update IPXE template to handle non-compressed files
* Update DHCP template to set network interfaces and server IP assignment
* Update DHCP/hosts templates to choose a host-name self-consistently
2022-05-13 16:52:59 -05:00
Gregory Kurtzer
1bc1d7e34f removed unused function 2022-01-24 01:31:27 +00:00
Gregory Kurtzer
d9c13c3f36 Initial commit of asset key tag security check 2022-01-24 00:32:02 +00:00
Gregory Kurtzer
719de68410 Initial refactor and cleanup of wwlog 2021-10-01 00:28:40 -07:00
Gregory Kurtzer
6e78f1e89b Fix lint errors 2021-09-30 23:43:24 -07:00
Gregory Kurtzer
238b61a682 Daemon logging to syslog (#152) 2021-09-30 23:40:16 -07:00
Gregory Kurtzer
e3eb57efcd Adding timestamps to log output (re: #121) 2021-09-09 21:16:07 -07:00
WestleyR
4edc16953e Fix linting issues 2021-09-07 20:48:51 -07:00
Gregory Kurtzer
c60be743ba Update sources to use upstream errors package 2021-09-06 14:50:27 -07:00
Gregory Kurtzer
667c512bb7 Merge branch 'main' of github.com:ctrliq/warewulf into main 2021-02-23 19:54:04 -08:00
Gregory Kurtzer
33e68eaeac Minor fixups to daemon process and reloading the database on configuring a new node 2021-02-23 19:52:39 -08:00
Ian Kaneshiro
846b45524c Tidy up
- Ran goimports to format code and imports
- Removed unused module from go.mod
- Added .editorconfig to keep formatting standard across contributors
2021-02-16 11:54:12 -08:00
Gregory Kurtzer
d00ea3ba00 Index node database for daemon to make lookups always instantaneous 2021-02-12 22:58:22 -08:00
Gregory Kurtzer
90246f227f Moved warewulfd commandline program into wwctl 2020-12-11 23:30:29 -08:00