Overlays in version 4.2

179 views
Skip to first unread message

Jeff Davis

unread,
Apr 25, 2022, 1:39:57 PM4/25/22
to Warewulf
I'm trying to upgrade from Version 3.6 to 4.2.  The examples from https://warewulf.org/docs/enchiridion/overlays don't seem to have the proper syntax:

[root@calzone runtime]# wwctl overlay edit myoverlay /etc
ERROR: accepts 3 arg(s), received 2

I'm having trouble understanding kind/name/file from the usage:

Usage:
  wwctl overlay show [flags] <overlay kind> <overlay name> <overlay file>

Any help is appreciated.  

Thanks in advance.

Jason Stover

unread,
Apr 25, 2022, 2:27:10 PM4/25/22
to Warewulf
Not sure on WW 4.... Doing a quick glance at the current code it shows:

Args: cobra.ExactArgs(2),

So, I'm assuming it's supposed to only have 2 args. For usage it shows:

"edit [OPTIONS] OVERLAY_NAME FILE"

So, totally guessing, but you *should* be able to do as you tried.

wwctl overlay edit myover_etc /etc

The previous code base seems to have had `cobra.ExactArgs(3)` .... but
that was changed 4 months ago (???). Try running:

wwctl overly edit system myoverlay /etc

The 3 arg version appears to have needed a type in there (system/runtime)

-Jason
> --
> You received this message because you are subscribed to the Google Groups "Warewulf" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to warewulf+u...@lbl.gov.
> To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/warewulf/03ed384c-1423-4b24-a49b-9e768009edc8n%40lbl.gov.

Jeff Davis

unread,
Apr 25, 2022, 4:35:02 PM4/25/22
to Warewulf, jason....@gmail.com
Thanks Jason... still having an issue with the name:

[root@calzone runtime]# wwctl overlay list -l runtime
PERM MODE    UID GID   RUNTIME-OVERLAY    FILE PATH
-rwxr-xr-x     0 0     default            /etc/
-rwxr-xr-x     0 0     default            /etc/group.ww
-rw-r--r--     0 0     default            /etc/hosts.ww
-rwxr-xr-x     0 0     default            /etc/passwd.ww
-rwxr-xr-x     0 0     default            /etc/shadow.ww
-rwxr-xr-x     0 0     default            /root/
-rwxr-xr-x     0 0     default            /root/.ssh/
-rw-r--r--     0 0     default            /root/.ssh/authorized_keys.ww
-rwxr-xr-x     0 0     testoverlay        /etc/
[root@calzone runtime]# wwctl overlay show runtime group.ww /etc
[ERROR]       Overlay does not exist: group.ww
[root@calzone runtime]# wwctl overlay show runtime group /etc
[ERROR]       Overlay does not exist: group

Christian Goll

unread,
Apr 26, 2022, 3:51:24 AM4/26/22
to ware...@lbl.gov
Hello,
as Jason noted correctly the code was fixed, so that the edit command
now works with the syntax
`wwctl overlay edit wwinit /etc/groups.ww`
so you need the relative path withing the overlay to edit the file. But
I must note here, that I barely use this command and edit the overlays
directly with e.g. `nvim
/var/lib/warewulf/overlays/wwinit/etc/groups.ww` as the pass through
wwctl does have no benefit at the moment, although future versions may
behave more like visudo.
I also strongly recommend to use the 4.3.0rc2 version, as there were
many things changed in the overlays.

kind regards,
Christian

P.S.
Most of the discussions are now happening in the slack channel, which
you can join with the following link
https://join.slack.com/t/hpcng/shared_invite/zt-qda4h1ls-OP0Uouq6sSmVE6i_0NrWdw

Am 25.04.22 um 22:35 schrieb Jeff Davis:
> <https://groups.google.com/a/lbl.gov/d/msgid/warewulf/03ed384c-1423-4b24-a49b-9e768009edc8n%40lbl.gov>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Warewulf" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to warewulf+u...@lbl.gov
> <mailto:warewulf+u...@lbl.gov>.
> To view this discussion on the web visit
> https://groups.google.com/a/lbl.gov/d/msgid/warewulf/c4fee1d1-c52a-479d-bd4d-f052d42e1126n%40lbl.gov
> <https://groups.google.com/a/lbl.gov/d/msgid/warewulf/c4fee1d1-c52a-479d-bd4d-f052d42e1126n%40lbl.gov?utm_medium=email&utm_source=footer>.

Jeff Davis

unread,
Apr 26, 2022, 9:25:48 AM4/26/22
to Warewulf, Christian Goll
Thanks guys.  I appreciate the responses.  I don't mind editing the overlays directly, "edit" was just the example I used.  I'm having trouble with most commands in general.  I'm really trying to understand the basic concept here and how it maps to the old provisioning of files from the head node in v3.6.

How can I specify the origin from the head node if I want to provision something from it's original path on the server and not over in  /var/lib/warewulf/overlays/ ?

Jeff Davis

unread,
Apr 26, 2022, 9:30:46 AM4/26/22
to Warewulf, Jeff Davis, Christian Goll
Also, just as I requested approval for 4.2 at my company, 4.3rc2 became available.  I was waiting for the official 4.3 before resubmitting the request.  Any idea on the timeframe for this?

Jeff Davis

unread,
Apr 26, 2022, 12:44:57 PM4/26/22
to Warewulf, jason....@gmail.com
So Jason, I'm a little surprised you are not using Version 4.x.  What is the recommended version to use these days?  We have an initiative to update all of our systems from RHEL6.x to RHEL8.5 and I haven't been successfull running 3.6 on 8.5 which is why I'm looking at 4.2.

On Monday, April 25, 2022 at 2:27:10 PM UTC-4 jason....@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages