[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] How can I resolve this permission problem?



Current situation is following:

1. When I submit *.sub file directly to condor_submit, it works correctly without any problem.

2. When I submit a job by using python script, it causes permission denied error(13):

#!/usr/bin/python
p = os.popen("condor_submit", "w")
p.write()
p.write("Universe = vanilla \n")
p.write("Executable = /bin/bash\n")
p.write("Log       = /home/test/output/temp.log\n")
p.write("Output Â= /home/test/output/temp.output\n")
p.write("Error  = /home/test/temp.error\n")
p.write("queue Â1\n")
p.close()

3. This is the log file after submitting the job:

000 (073.000.000) 08/02 08:38:21 Job submitted from host: <10.160.12.180:35041?addrs=10.160.12.180-35041>
...
001 (073.000.000) 08/02 08:38:21 Job executing on host: <10.160.12.180:60070?addrs=10.160.12.180-60070>
...
006 (073.000.000) 08/02 08:38:22 Image size of job updated: 1250
  0 Â- ÂMemoryUsage of job (MB)
  0 Â- ÂResidentSetSize of job (KB)
...
005 (073.000.000) 08/02 08:38:22 Job terminated.
  (1) Normal termination (return value 0)
    Usr 0 00:00:00, Sys 0 00:00:00 Â- ÂRun Remote Usage
    Usr 0 00:00:00, Sys 0 00:00:00 Â- ÂRun Local Usage
    Usr 0 00:00:00, Sys 0 00:00:00 Â- ÂTotal Remote Usage
    Usr 0 00:00:00, Sys 0 00:00:00 Â- ÂTotal Local Usage
  0 Â- ÂRun Bytes Sent By Job
  0 Â- ÂRun Bytes Received By Job
  0 Â- ÂTotal Bytes Sent By Job
  0 Â- ÂTotal Bytes Received By Job
  Partitionable Resources :  ÂUsage ÂRequest Allocated
   ÂCpus         :         1     1
   ÂDisk (KB)      Â:   1250   1250 Â27243237
   ÂMemory (MB)     Â:    Â0    Â2   Â2009
...


4. I added hostname for IP address of my cluster nodes (e.g. test-fs 10.160.12.180, test-1 10.160.12.181) and this is my global condor_config file:

RELEASE_DIR = /usr
LOCAL_DIR = /var
LOCAL_CONFIG_FILE = /etc/condor/condor_config.local

REQUIRE_LOCAL_CONFIG_FILE = FALSE
STARTER_ALLOW_RUNAS_OWNER = TRUE
LOCAL_CONFIG_DIR = /etc/condor/config.d

use SECURITY : HOST_BASED
ALOOW_WRITE = *@test-*
ALOOW_READ = *@test-*

FLOCK_FROM =Âtest-fs.co.krtest-1.co.kr,Âtest-2.co.kr
FLOCK_TO =Âtest-fs.co.krtest-1.co.kr,Âtest-2.co.kr

UID_DOMAIN = *@aiden-*
TRUST_UID_DOMAIN = TRUE

RUN Â Â = $(LOCAL_DIR)/run/condor
LOG Â Â = $(LOCAL_DIR)/log/condor
LOCK Â Â= $(LOCAL_DIR)/lock/condor
SPOOL Â = $(LOCAL_DIR)/lib/condor/spool
EXECUTE = $(LOCAL_DIR)/lib/condor/execute
BIN Â Â = $(RELEASE_DIR)/bin
LIB Â Â = $(RELEASE_DIR)/lib/condor
INCLUDE = $(RELEASE_DIR)/include/condor
SBIN Â Â= $(RELEASE_DIR)/sbin
LIBEXEC = $(RELEASE_DIR)/lib/condor/libexec
SHARE Â = $(RELEASE_DIR)/share/condor
GANGLIA_LIB64_PATH = /lib,/usr/lib,/usr/local/lib

PROCD_ADDRESS = $(RUN)/procd_pipe

CONDOR_HOST =Âtest-fs.co.kr

DAEMON_LIST = COLLECTOR, MASTER, NEGOTIATOR, SCHEDD, STARTD


Please give me some help.

Thanks!