Commit Graph

62 Commits

Author SHA1 Message Date
Christian Goll
fab7e09aeb Merge branch 'development' into container-info2 2022-10-13 10:53:49 +02:00
Christian Goll
396f3238c1 added size of containers 2022-10-13 10:35:17 +02:00
Christian Goll
72f9fdacbf Merge pull request #533 from anderbubble/container-build-exclude
Fix of container build include/exclude handling
2022-10-12 21:24:05 +02:00
wesley800
6954eefe5e properly truncate dest file in util.CopyFile 2022-09-19 21:11:51 +08:00
Jonathon Anderson
ff54fbc8d7 Simplify util.FindFilterFiles
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 19:25:40 -06:00
Jonathon Anderson
cac614a4b7 Correct handling of exclude patterns
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 19:25:40 -06:00
Jonathon Anderson
22910958b5 Replace all instances of wwlog.Printf
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 08:00:23 -06:00
Carter Dodd
7eae65e13f Add process max reserve 2022-06-06 17:43:33 -05:00
Carter Dodd
3242d2998e fixups 2022-06-05 17:37:23 -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
f14f339576 fixups 2022-06-04 11:42:16 -05:00
Carter Dodd
fc8d3863d8 use wwctl to re-build provision overlays, update to pass overlaynames 2022-06-04 11:14:48 -05:00
Carter Dodd
42cc91162d Fix error handling in goroutine 2022-05-13 23:03:04 -05:00
Carter Dodd
a27be52e3f Fix unhandled errors 2022-05-13 22:33:29 -05:00
Carter Dodd
a36467b2a8 Merge upstream 2022-05-13 19:42:18 -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
Christian Goll
bfec010e5d only build assigned overlays
If a overlay should be build, check if the overlay is assigned to
a node, and return error if otherwise.
2022-04-26 10:24:52 +02:00
Christian Goll
7f1636c9a9 created syncuids.go with code from utils.go 2022-04-06 21:44:00 +02:00
Christian Goll
29074f34ea fixed recusrive call and SliceAppendUniq 2022-03-11 16:22:26 +01:00
Christian Goll
afac77dbbe allow multiple generic and wwinit overlays 2022-03-11 11:50:38 +01:00
Christian Goll
2d223b6b67 fixed syntax for io.Copy 2022-02-28 10:29:03 +01:00
jcsiadal
bbdfefabd4 Revert filecopy method to old style
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:56:50 +00:00
jcsiadal
ab28e3a42f Rename FileCopySafe
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
jcsiadal
bfc48f7c72 Clean up show and add safe copy
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
jcsiadal
67b8018d69 TFTP update
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-02-26 22:39:50 +00:00
Yoshiaki SENDA
761acf6a3a symbolic links breaks filepath.Walk 2021-11-01 06:37:25 +00:00
Yoshiaki SENDA
67ac992cda use ctime instead of mtime to detect file owner/permission change 2021-10-29 00:32:01 -04:00
Gregory Kurtzer
6b12edc122 Add ability to increment an IPv4 address 2021-10-15 21:37:03 -07:00
Gregory Kurtzer
e5e6dee51a minor error message fix 2021-09-17 21:31:33 -07:00
Gregory M. Kurtzer
7bfe61d629 Merge pull request #114 from gmkurtzer/overlay_chown
Added overlay chown subcommand
2021-09-08 16:11:53 -07:00
WestleyR
4edc16953e Fix linting issues 2021-09-07 20:48:51 -07:00
Gregory Kurtzer
16843d8b4e Fixed issue where util.IsFile() was returning true for directories 2021-09-06 17:37:50 -07:00
Gregory Kurtzer
5c4e1e2ecd Fixed logging and cleaned up util package 2021-09-06 11:01:59 -07:00
Gregory Kurtzer
4c8edc16fe Changed API name to valid path 2021-09-02 15:34:19 -07:00
Gregory Kurtzer
3665e06cb1 Add ability to escape a split path as well 2021-09-01 21:20:36 -07:00
Gregory Kurtzer
caf9f4b80f Have more intelligence on splitting bind paths 2021-09-01 21:13:46 -07:00
Gregory Kurtzer
50e6f0daf4 Format fix. 2021-09-01 19:28:12 -07:00
Christian Goll
b7e2dbab64 added function CopyUIDGID for file file ownerships
file ownerships are preserved now in overlays
2021-09-01 11:21:11 +02:00
Yong Qin
0346d98d46 Fixed the bug with importing container/vnfs from a directory. 2021-04-07 11:25:57 -07:00
Gregory Kurtzer
8f049f9ba4 Added function for recursive file copy 2021-02-24 21:00:41 -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
Shannon V. Davidson
c43fcededc Back up /etc/hosts and allow local changes 2020-12-22 23:08:35 -06:00
Gregory Kurtzer
0095b55624 Updates around VNFS restructure and kernel restructure. More coming. 2020-12-05 16:43:30 -08:00
Gregory Kurtzer
4efb27a82f Added support for tftp service and updated service interface and config 2020-12-04 22:14:29 -08:00
Gregory Kurtzer
2f5fa95d14 Minor updates to add debugging to some utils 2020-12-01 23:34:05 -08:00
Gregory Kurtzer
2ba40c0e65 Fixup to slice manipulation functions 2020-11-27 16:39:39 -08:00
Gregory Kurtzer
2e11c21566 Additional functions and capabilities in util pkg 2020-11-26 19:17:19 -08:00
Gregory Kurtzer
a4d2e3a0c8 This is a work in progress, some of which will be reverted like overlay handling. 2020-11-25 23:58:38 -08:00
Gregory Kurtzer
5cd1dc901e Lots of updates with the node management CLI tools 2020-11-22 20:35:13 -08:00
Gregory Kurtzer
5181940952 Working through node and group configuration via CLI 2020-11-21 21:51:14 -08:00