xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
360 stars 171 forks source link

statelite NFS mount options are ignored #2786

Closed john-d-williams closed 7 years ago

john-d-williams commented 7 years ago

This problems occurred with x86_64, SLES 12 SP2 and xCAT v2.13.2 The nodeset command ignores the NFS mount options in statelite table i.e.

tabdump statelite

node,image,statemnt,mntopts,comments,disable

"n01",,"sn1-cnfs:/install/statelite","rsize=32768,wsize=32768",,

The tftpboot file generated for the node, by nodeset is syntactically incorrect:

  1. No space before MNTOPTS=
  2. Mount options contained within single-quotes, which is invalid.

i.e. nodeset generates: console=ttyS0,115200MNTOPTS='rsize=32768,wsize=32768' BOOTIF=01-${netX/machyp}

but should be: console=ttyS0,115200 MNTOPTS=rsize=32768,wsize=32768 BOOTIF=01-${netX/machyp}

bybai commented 7 years ago

Hi @john-d-williams, thanks for your description. I can reproduce this in my environment. And I think you know the work around, manually change the tftpboot file for the node under /tftpboot/xcat/xnba/nodes/.

bybai commented 7 years ago

The problem code: sles.pm: $kcmdline .= "MNTOPTS=\'$mntoptions\'"; should be sles.pm: $kcmdline .= " MNTOPTS=$mntoptions";

bybai commented 7 years ago

fixed in #2791