xcat2 / xcat-core

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

nodeset command failed with error randomly, and works after sometime #7446

Closed abhishek-sa1 closed 2 months ago

abhishek-sa1 commented 3 months ago

nodeset command failed with error randomly

command: nodeset all osimage=ubuntu22.04.3-x86_64-install-compute

Error mentioned below:

Usage: nodeset [COMMAND] [OPTIONS] [ns1 [-ixX] ns2|...]
nodeset: error: No command specified.

Same command works after sometime in same terminal.

@samveen @Obihoernchen

abhishek-sa1 commented 3 months ago

I have observed the issue due to xcat environment variables are not set. Command worked after configuring environment variables. Can we use xcat environment variables in .bashrc file?

samveen commented 3 months ago

@abhishek-sa1 That is usually the case for me. I set up environment variables via ~/.bashrc

Obihoernchen commented 2 months ago

Do you mean xcat environment variables defined in /etc/profile.d/xcat.sh ?

abhishek-sa1 commented 2 months ago

Yes..commands worked after setting envirornment variables