xcat2 / xcat-core

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

setroute postscript(routeop) doesn't correctly name route file when used with confignetwork -s #7082

Open kjhee43 opened 2 years ago

kjhee43 commented 2 years ago

When a node has a postscript combination of:

=confignetwork -s,setroute replace,syslog,remoteshell,syncfiles

the issue in the title presents.

On a compute node, xcat's confignetwork -s postscript creates ifcfg files named ifcfg-xcat-

But the corresponding route file is named route- which causes the routes to not be populated

Changing the routeop script in xcatpost scripts line 294 filename="/etc/sysconfig/network-scripts/route-$ifname"

to 295 filename="/etc/sysconfig/network-scripts/route-xcat-$ifname"

corrects this as a brute force method when confignetwork -s is used, but logic is needed to check if confignetwork is used with -s switch or not. Without the -s switch, the interface name has been left asifcfg-<ifname>, but with the -s switch, the name is changed to if ifcfg-xcat-<ifname>.

kjhee43 commented 2 years ago

Can anyone confirm this bug?