Open
Description
Steps to reproduce
After make install
and adding a node, the node fails to fully boot because wwclient
's config file is missing. I suspect I missed an obvious config settings, but putting here just in case.
git clone warewulf
....
make all && sudo make install
...
sudo wwctl node add n0000.cluster --ipaddr 192.168.200.100 --discoverable=true
Error message
On the node, wwclient
is looking inside the same prefix as the head node. But the wwinit
overlay has the config in /etc/warewulf
(not /usr/local/...
)
On the node
/warewulf/wwclient
Error: open /usr/local/etc/warewulf/warewulf.conf: no such file or directory
ERROR: open /usr/local/etc/warewulf/warewulf.conf: no such file or directory
On head
wwctl overlay list wwinit -l |grep conf
-rw-r--r-- 0 0 wwinit etc/warewulf/warewulf.conf.ww false
-rw------- 0 0 wwinit warewulf/config.ww false
A kludge that's working for me: add --warewulfconf /etc/warewulf/warewulf.conf
to wwclient
's etc/systemd/system/wwclient.service
sudo wwctl overlay cat wwclient etc/systemd/system/wwclient.service
[Unit]
Description=Warewulf node runtime overlay update
After=network.target
After=local-fs.target
[Service]
Type=notify
EnvironmentFile=-/etc/default/wwclient
ExecStart=/warewulf/wwclient --warewulfconf /etc/warewulf/warewulf.conf
ExecReload=/bin/kill -s SIGHUP "$MAINPID"
PIDFile=/var/run/wwclient.pid
TimeoutSec=60
[Install]
WantedBy=multi-user.target
Information on your system
warewulf.conf
uses sysconfdir
with /usr/local/
prefix. switch that to /etc
results in errors on the head node's warewulfd
grep etc warewulf.conf
sysconfdir: /usr/local/etc
#sysconfdir: /etc # fails to run on head node -- files in /usr/local/etc; but client on node expects /etc
wwctl version
wwctl version: 4.6.1+22.gb89324d5-1
rpc version: apiPrefix:"rc1" apiVersion:"1" warewulfVersion:"4.6.1+22.gb89324d5-1"
sed 1q /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
General information
- I have run
wwctl version
and reported the contents of/etc/os-release
- I have searched the issues of this repo and believe this is not a duplicate
- I have captured and reported relevant error messages and logs
Metadata
Metadata
Assignees
Labels
No labels