Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncm-pbsserver module cannot fill the /var/torque/server_priv/nodes when the file is empty #76

Open
Pansanel opened this issue May 31, 2015 · 5 comments
Labels

Comments

@Pansanel
Copy link
Contributor

When installing a new pbs-server, the /var/torque/server_priv/nodes file provided by the RPM is empty. As you can see on the following part of the code:
https://github.com/quattor/configuration-modules-grid/blob/master/ncm-pbsserver/src/main/perl/pbsserver.pm#L279
if the file is empty, the part of the code in charge of filling the file is not executed.
Another thing, if the file is missing, it is not created. Is there a good reason for that?

@Pansanel Pansanel added the bug label May 31, 2015
@stdweird
Copy link
Member

stdweird commented Jun 1, 2015

@Pansanel that part of the code does not fill the nodes file (or reads it). ncm-pbsserver doesn't touch the nodes file directly, it parses output from pbsnodes -a and uses qmgr to add/change nodes.
I remember an issue with older torque versions that qmgr didn't flush the state set in qmgr to the nodes file, but that was a bug in torque, not the component.

@Pansanel
Copy link
Contributor Author

Pansanel commented Jun 1, 2015

In fact, the /var/torque/nodes files is filled with the command on line 317:
$self->runCommand($qmgr, "create node $node") unless (defined($existingnodes{$node}));
However, it works only if the $existingnodes{$node} variable is set. This is done in the previous block, that is skipped if the /var/torque/nodes file is empty

@stdweird
Copy link
Member

stdweird commented Jun 2, 2015

@Pansanel a node is only created if it didn't not exist before. not sure what is wrong with that (if they already exist, they are updated, not recreated).

@jrha jrha added this to the 15.6 milestone Jun 2, 2015
@stdweird
Copy link
Member

@Pansanel is this still an issue? if so, can you give the torque version you are seeing this with?

@jrha jrha modified the milestones: 15.10, 15.8 Aug 26, 2015
@Pansanel
Copy link
Contributor Author

I have this issue with torque-server-2.5.13.

@jrha jrha modified the milestones: 16.2, 15.12 Dec 7, 2015
@jrha jrha removed this from the 16.2 milestone Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants