8000 `make install` generated `wwclient` looks for `/usr/local/etc` prefix config in nodes; overlay has `/etc` · Issue #1920 · warewulf/warewulf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
make install generated wwclient looks for /usr/local/etc prefix config in nodes; overlay has /etc #1920
Open
@WillForan

Description

@WillForan

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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0