ubccr / grendel

Bare Metal Provisioning system for HPC Linux clusters
https://grendel.readthedocs.io
GNU General Public License v3.0
57 stars 13 forks source link

unknown network kickstart URL $kickstart #15

Closed zhouzhuoCSUFT closed 2 years ago

zhouzhuoCSUFT commented 2 years ago

Hi, When I use the latest version of grendel, I will report the following error

# ./grendel --verbose serve -c /usr/share/grendel/etc/grendel.toml --hosts /usr/share/grendel/etc/hosts.json --images /usr/share/grendel/etc/images.json

image

But I use the old version before, this step is normal

# ./grendel.bak --verbose serve -c /usr/share/grendel/etc/grendel.toml --hosts /usr/share/grendel/etc/hosts.json --images /usr/share/grendel/etc/images.json

image

How to deal with this problem? some info :

[root@node01 bin]# md5sum grendel 
e7fb63985e795c5a9d6ccc57d5dfc841  grendel
[root@node01 bin]# md5sum grendel.bak 
14f6727929f1854802b284249e80ffef  grendel.bak

[root@node01 bin]# cat /usr/share/grendel/etc/images.json 
[
 {
    "name": "test_node",
    "kernel": "/var/lib/grendel/repo/isolinux/vmlinuz",
    "initrd": [
        "/var/lib/grendel/repo/isolinux/initrd.img"
    ],
    "provision_template": "test_node.ks.tmpl",
    "cmdline": "ks=$kickstart network ksdevice=bootif ks.device=bootif inst.sshd"
  }
]
aebruno commented 2 years ago

@zhouzhuoCSUFT Thanks for submitting this issue. The latest version of grendel changed the way the cmdline is processed to use go templates. Try this new syntax instead:

"cmdline": "ks={{ $.kickstart }} network ksdevice=bootif ks.device=bootif inst.sshd"

We'll make a note of this in the docs to better alert users to this change.

zhouzhuoCSUFT commented 2 years ago

thanks ,it works!