Commit Graph

456 Commits

Author SHA1 Message Date
Carter Dodd
fc8d3863d8 use wwctl to re-build provision overlays, update to pass overlaynames 2022-06-04 11:14:48 -05:00
Carter Dodd
7caabc439d separate safe/unsafe db operations 2022-06-02 22:22:19 -05:00
Carter Dodd
04fb854aa7 fixup import 2022-06-02 20:20:03 -05:00
Carter Dodd
95ca053960 Lock server node db when updating discoverable node 2022-06-02 20:06:34 -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
Gregory Kurtzer
e188edcf7a gofmt cleanup 2022-05-25 14:17:01 -07:00
Carter Dodd
9c5759c857 Remove new dhcp config options
Discussion indicated a need for more general handling of network config.
Avoids adding new options that may become deprecated in the near future.
2022-05-19 19:02:58 -05:00
Carter Dodd
7ecaae1361 Fix only serve/check Secure for runtime 2022-05-16 12:38:53 -05:00
Carter Dodd
118f20b01a Check error on init logging 2022-05-14 00:22:19 -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
8e88ac12e0 Merge pull request #404 from mslacken/only-build-assigned-overlays
only build assigned overlays
2022-05-13 10:06:19 +02:00
Christian Goll
76d8fb9088 Merge pull request #422 from mslacken/fix_syncuid
syncucer will only write witrh syncuser switch
2022-05-12 11:59:00 +02:00
Christian Goll
9c21f2bade Merge pull request #419 from jcsiadal/nodefault
Renames instances of "Default" to "Primary" in netdev source code
2022-05-12 11:58:47 +02:00
Christian Goll
80c92475b0 added backwards compatibilty for default 2022-05-12 11:51:00 +02:00
Christian Goll
2efcbe0348 syncucer will only write witrh syncuser switch
uid/gid are not synced at container import but checked. An apropriate
message is printed, regarding users which are not present on host.
The `wwctl container syncuser` needs the `--write` switch to actually
write to the container.

The command `wwctl container syncuser` will always operate at the
container level, but as the 'generic` overlay reads in the container
passwd/group, following two steps will update the passwd/group on a
running cluster:
1. Add passwd/group to container
wwctl container syncuser --write CONTAINER
2. Synchronize overlay
wwctl overlay build -N
2022-05-12 11:18:53 +02:00
Christian Goll
fea148903c Merge pull request #417 from mslacken/pretty-host-overlays
enable host overlays, inform users if not enabled
2022-05-06 16:46:46 +02:00
Christian Goll
3edb8d5294 Merge pull request #418 from mslacken/overlay-opts
add split for strings in overlays
2022-05-05 16:18:48 +02:00
Christian Goll
121c12b5e4 Readd BuildTimeUnix 2022-05-05 16:15:06 +02:00
Christian Goll
de819b5583 only add split function in templates 2022-05-05 16:13:01 +02:00
jcsiadal
4260c97552 Fix container excludes
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-05-05 04:39:36 +00:00
jcsiadal
9b6b93a5cb Rename default to primary in src
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-05-05 03:13:21 +00:00
Christian Goll
efb116919f enable host overlays, inform users if not enabled 2022-05-04 10:16:38 +02:00
Gregory M. Kurtzer
9cefa32198 Merge pull request #415 from gmkurtzer/minor_fixups_for_4.3.0
Minor fix ups for 4.3.0
2022-05-03 22:24:44 -07:00
Gregory M. Kurtzer
a7925cfeb5 Merge pull request #400 from jcsiadal/netdevfix
Fix wwctl bug deleting networks and ability to set default network
2022-05-03 22:04:53 -07:00
Gregory Kurtzer
dd1cf6f4a5 Don't force LC on node set
This makes it so we can never UNDEF/DELETE an entry as that requires
upper case. So we are doing the lower case now where it matters.
2022-05-03 21:53:47 -07:00
Christian Goll
7ce286ac3e updated overlay includes mire vars and split func 2022-05-03 14:52:17 +02: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
jcsiadal
dbd747788f wwctl profile fixes
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-04-19 21:59:34 +00:00
griznog
bada0f738b Add BuildTimeUnix containing Unix time (seconds since epoch). 2022-04-15 10:36:40 -05:00
Christian Goll
ca698182f9 direct file is now also suppored 2022-04-14 14:45:23 +02:00
Christian Goll
18e2147953 added file uri pattern for container import 2022-04-14 14:25:22 +02:00
Christian Goll
469e731adb Merge pull request #385 from mslacken/network-cidr
add NetworkCIDR for overlays
2022-04-14 13:57:23 +02:00
Christian Goll
e29aea8ae3 using stirng for ipmiwrite storage 2022-04-14 12:50:38 +02:00
Christian Goll
b3cf1dea6b setaltb for ipmi write 2022-04-14 11:47:34 +02:00
Christian Goll
edc7c04bc2 PrintB returns string 2022-04-14 11:43:02 +02:00
Christian Goll
2e9848fa5c do not unmarshall deprecated yaml 2022-04-14 11:27:09 +02:00
mslacken
f68c0a3633 add backward compatiblity for old yaml syntax 2022-04-14 09:33:30 +02:00
jcsiadal
bc0039eecd Remove redundant line
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-04-13 18:44:52 +00:00
jcsiadal
8568599627 Convert MACs to lowercase on set
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
2022-04-13 18:40:55 +00:00
Christian Goll
5adc0e3093 add NetworkCIDR for overlays 2022-04-13 20:19:35 +02:00
Christian Goll
96f220a950 Merge pull request #380 from mslacken/profile-fixup
profile fixup, checked and worked as expected
2022-04-13 14:43:13 +02:00
griznog
75e075ab52 Ignore dotfiles when building overlay list. 2022-04-11 11:15:25 -05:00
Christian Goll
e3b2ca39d8 simplified range expression 2022-04-11 14:51:35 +02:00
Christian Goll
4782d7e726 fixup profile handling 2022-04-11 14:41:43 +02:00
MatthewHink
086401a07c unit test + nil check pointers 2022-04-09 09:19:03 -04:00
Christian Goll
db26527639 Merge pull request #376 from mslacken/kernel-import
fix typo in kernel import
2022-04-09 13:35:16 +02:00
Christian Goll
68946d344d Merge pull request #370 from MatthewHink/mhink-test
Mergeing as need to on updated main for the tests to work
2022-04-09 13:34:17 +02:00