Commit Graph

795 Commits

Author SHA1 Message Date
Christian Goll
6c35cfd6f5 fix typo 2022-09-22 10:31:50 +02:00
Christian Goll
9f23bddfc6 assume that there is just one primary netdev 2022-09-21 19:25:34 +02:00
Christian Goll
59f9589841 try to use same network name for all nodes 2022-09-21 11:39:04 +02:00
mslacken
e497e26cb4 Use primary netdev for ssh 2022-09-20 21:05:54 +02:00
Christian Goll
fc39209fbb Merge pull request #538 from wesley800/development
remove exit from ssh_setup.*sh
2022-09-20 11:02:50 +02:00
wesley800
6954eefe5e properly truncate dest file in util.CopyFile 2022-09-19 21:11:51 +08:00
Christian Goll
8a10e623fc Merge pull request #543 from anderbubble/overlay-show-argument-handling
Fix argument handling for overlay show rendering
2022-09-19 10:01:28 +02:00
Jonathon Anderson
fd2fa9c027 Fix argument handling for overlay show rendering
Error logging for overlay show rendering incorrectly checked
the overlay name rather than the path to the file. It also
used wwlog (which goes to stderr) to output the render. This
commit replaces explicit args[] references with their named
equivalents from earlier in the function, correcting those
references along the way, and outputs the final render with
fmt.Print.
2022-09-16 22:39:51 +00:00
Jonathon Anderson
4661b02a3d Move "not found" presentation to CLI 2022-09-16 21:56:39 +00:00
Jonathon Anderson
14b45e37c0 Fix output of wwctl container show
Commit d8cd6049 introduced erroneous output coming from an
inner function of container show, and (seemingly) erroneously
replaces valid kernel versions with "not found". This commit
fixes both of those issues, and moves the output to the outer
cli function.
2022-09-16 21:33:49 +00:00
Christian Goll
c75f4e468c remove also the container image on delete 2022-09-14 14:42:33 +02:00
Christian Goll
6cc58fcfff Merge pull request #534 from anderbubble/wwlog-printf-cleanup
Replace all instances of wwlog.Printf
2022-09-14 08:18:44 +02:00
Christian Goll
2352aa0d51 Merge pull request #477 from mslacken/configure-hostfile
readded configure hostfile command
2022-09-13 11:26:23 +02: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
Jonathon Anderson
e2b5350834 Fix handling of uid and gid arguments during chown
It appears that the intended behavior of overlay chown was changed
in 00d8d42e9, but the argument handling was not updated to reflect
the removal of overlayKind. This led to a crash when only the
uid was specified, and a processing of the gid as the uid
otherwise.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 00:38:05 -06:00
Jonathon Anderson
4bda8cd29e Don't change unspecified gid to 0 during chown
Specifying 0 for gid as a default during chown causes the
gid to be changed to 0 when left unspecified. Changing the
default value to -1 causes the gid to be left unmodified
when unspecified, which is a less surprising behavior.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-10 14:51:56 -06:00
Christian Goll
edf42d61aa Merge pull request #495 from mslacken/reflections-cmdline
Use reflection for node and profile manipulation
2022-09-12 16:36:39 +02:00
Gregory M. Kurtzer
37c2229e17 Merge pull request #519 from anderbubble/anderbubble-syncusers-log-period
Removed extra period from log message
2022-09-08 08:58:53 -07:00
Gregory M. Kurtzer
707e4fec55 Merge pull request #528 from anderbubble/syncuser-argument-description-typos
Minor typo fix in syncuser argument description
2022-09-08 08:58:39 -07:00
Jonathon Anderson
903ba7417e Minor typo fix in syncuser argument description
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-08 09:52:17 -06:00
Jonathon Anderson
cd8b0d86c5 Fix a typo in symlink wwbackup implementation
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-02 15:40:45 -06:00
Christian Goll
18eb531d4b fixed deletion of network and deletion of tags 2022-09-02 16:45:37 +02:00
Jonathon Anderson
1ed5a531bb Removed extra period from log message
I think the `.` in `uid./gid not synced` is erroneous.
2022-08-31 11:53:37 -06:00
Christian Goll
255ff61dc8 adding netname option back 2022-08-31 17:05:28 +02:00
Christian Goll
cb0a7b402e Merge pull request #511 from anderbubble/issues/510
new man pages for warewulf.conf and nodes.conf
2022-08-31 11:51:05 +02:00
Jonathon Anderson
db29b9ff3e Trim whitespace from IPMI output
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 15:43:02 -06:00
Jonathon Anderson
351d5dbf0a More generic defaults for warewulf.conf
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-08-24 03:58:09 -06:00
Christian Goll
063c781710 recreate CreateFlag based on NodeConf
This will always create the network named default,
so this has to be changed if a new netowk is set
2022-08-19 16:33:46 +02:00
Christian Goll
b485ea999f removed optionStrMap in favor of NodeConf
openStrMap is a map[string]string which is sent arround. This is now
done by using a unmarshalled NodeConf instead.
2022-08-18 19:22:55 +02:00
Christian Goll
2016588f36 fallten the Nodes and NodeProfile before write 2022-08-16 17:15:39 +02:00
Christian Goll
0ca17dd454 using functor for Get and GetReal 2022-08-16 15:38:07 +02:00
Christian Goll
f744934122 fixed linting 2022-08-12 15:52:38 +02:00
Christian Goll
02d47e8f11 automatic add primary for single netdev 2022-08-12 15:41:57 +02:00
Christian Goll
bc647f0bf3 Fix IpCIDR for templates 2022-08-12 10:17:32 +02:00
Christian Goll
b2dc31e20b fixed mergin profiles into nodes 2022-08-12 09:30:16 +02:00
Christian Goll
20fa9d2e2a fix regression on container import 2022-08-11 16:38:43 +02:00
Christian Goll
8c2d40881d use reflect on overlays 2022-08-10 17:09:10 +02:00
Christian Goll
41d12888ab reflections for unmarshal 2022-08-10 14:16:48 +02:00
Christian Goll
d819eef792 tags for ipmi and kernel 2022-08-04 20:07:24 +02:00
Christian Goll
ba46e34a4d merging profile update 2022-08-03 14:49:50 +02:00
Christian Goll
ed5b2bbf35 using tag instead of key 2022-08-03 13:44:12 +02:00
Christian Goll
96731a4b87 node list imporvement 2022-08-03 11:47:25 +02:00
Christian Goll
b548d8583d reflection on constructor 2022-08-03 11:28:15 +02:00
Christian Goll
925a5a2155 Fix node set 2022-07-26 12:01:13 +02:00
Christian Goll
d252b974bf Fix Nodeadd with ipaddr count 2022-07-21 08:41:36 +02:00
Christian Goll
99e9316011 restore old node list 2022-07-20 12:13:19 +02:00
Christian Goll
e23f794166 simplified node list command 2022-07-19 17:21:27 +02:00
Christian Goll
1dd519a7e6 clean up and linting fix 2022-07-18 15:04:38 +02:00
Christian Goll
26fff30897 node add with all options now 2022-07-18 14:42:00 +02:00
Christian Goll
e6ef30ed53 porfile add has now all otions of set 2022-07-15 11:10:12 +02:00