Bug 192 - qmgr fails if input is a file with more than 9 commands
: qmgr fails if input is a file with more than 9 commands
Status: RESOLVED FIXED
Product: TORQUE
clients
: 4.0.*
: PC Linux
: P5 normal
Assigned To: Ken Nielson
:
:
:
  Show dependency treegraph
 
Reported: 2012-05-08 08:08 MDT by Roy Dragseth
Modified: 2012-05-10 14:58 MDT (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Roy Dragseth 2012-05-08 08:08:16 MDT
qmgr refuses to take more than 9 commands from an input file.

See transcript below.  qmgr will barf on the 10th command in the input file. 
This coincides with the Max open servers which is 9 ????

This is on torque 4.0.1, used to work fine on torque 3 and below.

[root@hpc1 ~]# qmgr < /opt/torque/pbs.default 
Max open servers: 9
#
# Create and define queue default
#
create queue default
qmgr obj=default svr=default: Queue already exists
set queue default queue_type = Execution
set queue default keep_completed = 120
set queue default enabled = True
set queue default started = True
#
# Set server attributes.
#
set server scheduling = True
set server acl_host_enable = False
set server server_name = hpc1.local
set server managers = root@hpc1.local
set server managers += maui@hpc1.local
qmgr: max server connections reached.
qmgr: Error from server
set server default_queue = default
qmgr: max server connections reached.
qmgr: Error from server
set server log_events = 511
qmgr: max server connections reached.
qmgr: Error from server
set server mail_from = adm
qmgr: max server connections reached.
qmgr: Error from server
set server query_other_jobs = True
qmgr: max server connections reached.
qmgr: Error from server
set server allow_node_submit = True
qmgr: max server connections reached.
qmgr: Error from server
set server moab_array_compatible = True
qmgr: max server connections reached.
qmgr: Error from server

If you take the pbs.default file and run it as individual commands it works
fine

[root@hpc1 ~]# grep -v -e \#  /opt/torque/pbs.default | xargs -i qmgr -c "{}"
qmgr obj=default svr=default: Queue already exists
[root@hpc1 ~]# qmgr -c 'p s'
#
# Create queues and set their attributes.
#
#
# Create and define queue default
#
create queue default
set queue default queue_type = Execution
set queue default keep_completed = 120
set queue default enabled = True
set queue default started = True
#
# Set server attributes.
#
set server scheduling = True
set server acl_host_enable = False
set server acl_hosts = hpc1.local
set server managers = maui@hpc1.local
set server managers += root@hpc1.local
set server default_queue = default
set server log_events = 511
set server mail_from = adm
set server query_other_jobs = True
set server scheduler_iteration = 600
set server node_check_rate = 150
set server tcp_timeout = 300
set server job_stat_rate = 45
set server poll_jobs = True
set server mom_job_sync = True
set server allow_node_submit = True
set server next_job_number = 8
set server server_name = hpc1.local
set server moab_array_compatible = True
Comment 1 Ken Nielson 2012-05-10 14:58:45 MDT
Fixed in revision 6133 of 4.0-fixes