[torqueusers] TORQUE 4.0.0 does not allow submitting jobs as root

Shantanu Gadgil shantanugadgil at yahoo.com
Tue Mar 20 22:32:01 MDT 2012


Hi,

I tried to allow job submission by root by executing:

$> qmgr -c 's s acl_roots += root@*'

... but it doesn't seem to work! Any clue as to what else I might be missing? The same steps work for torque 3.0.4

--- snip ---
[root at server ~]# cat /etc/centos-release
CentOS release 6.2 (Final)

[root at server ~]# uname -a
Linux server 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

[root at server ~]# ls -l torque-4.0.0.tar.gz
-rwx------. 1 root root 6103619 Mar 21 01:11 torque-4.0.0.tar.gz

[root at server ~]# rpmbuild --with gui -tb torque-4.0.0.tar.gz

[root at server torque-4.0.0]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/torque-*.x86_64.rpm

[root at server torque-4.0.0]# tar xvf torque-4.0.0.tar.gz

[root at server torque-4.0.0]# ./torque.setup root
initializing TORQUE (admin: root at server)

You have selected to start pbs_server in create mode.
If the server database exists it will be overwritten.
do you wish to continue y/(n)?y
Max open servers: 9
set server operators += root at server
Max open servers: 9
set server managers += root at server

[root at server torque-4.0.0]# qterm
[root at server torque-4.0.0]# /etc/init.d/pbs_server start

[root at server torque-4.0.0]# qmgr -c 'p s'
#
# Create queues and set their attributes.
#
#
# Create and define queue batch
#
create queue batch
set queue batch queue_type = Execution
set queue batch resources_default.nodes = 1
set queue batch resources_default.walltime = 01:00:00
set queue batch enabled = True
set queue batch started = True
#
# Set server attributes.
#
set server scheduling = True
set server acl_hosts = server
set server acl_roots = root at server
set server acl_roots += root@*
set server managers = root at server
set server operators = root at server
set server default_queue = batch
set server log_events = 511
set server mail_from = adm
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 keep_completed = 300
set server next_job_number = 0
set server moab_array_compatible = True

[root at server ~]# echo "sleep 100" | qsub
qsub can not be run as root

--- snip ---


More information about the torqueusers mailing list