3.2. Testing the Condor Roll

  1. First, make sure condor daemons are running by executing:

    # ps -ef | grep condor

    On the frontend, the output should be similar to following:

    condor    2623     1  0 Apr19 ?        00:04:26 /opt/condor/sbin/condor_master
    condor    2646  2623  0 Apr19 ?        00:20:25 condor_collector -f
    condor    2647  2623  0 Apr19 ?        00:04:56 condor_negotiator -f
    condor    2649  2623  0 Apr19 ?        00:00:02 condor_schedd -f

    And on the compute nodes, the output should be similar to following:

    condor   17007     1  0 Apr19 ?        00:01:09 /opt/condor/sbin/condor_master
    condor   17009 17007  0 Apr19 ?        00:00:02 condor_schedd -f
    condor   17010 17007  0 Apr19 ?        00:09:09 condor_startd -f
  2. Try a test job submission. If you don't already have a non-root user account, you'll need to create one:

    # useradd testuser
    # rocks sync users

    Then, to run a test job submission, execute:

    # su - testuser 
    $ cp /opt/condor/tests/hello.* .
    $ condor_submit hello.sub
  3. Check if jobs are submitted by executing:

    $ condor_q

    The output should be similar to:

    -- Submitter: jeebs.rocksclusters.org : <172.19.119.241:44626> : jeebs.rocksclusters.org
     ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               
       2.0   testuser       12/12 09:38   0+00:00:01 R  0   0.0  hello.sh          
    
    1 jobs; 0 idle, 1 running, 0 held

    R in status column(ST) means running. I means idling.

  4. Once the queue is empty (above command shows no jobs) can see the history of jobs execution with:

    $ condor_history

    To see all the nodes in the condor pool do:

    $ condor_status

    The output should be similar to:

    Name          OpSys       Arch   State      Activity   LoadAv Mem   ActvtyTime
    
    vm1@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:40:04
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:45:05
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:45:06
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:45:07
    vm1@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:35:04
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:40:05
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:40:06
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:40:07
    vm1@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:25:04
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:30:05
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:30:06
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:30:07
    vm1@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:15:05
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:20:06
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:20:07
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:20:08
    vm1@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:10:04
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:15:05
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:15:06
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:15:07
    vm1@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:00:04
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:05:05
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:05:06
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:05:07
    vm1@compute-0 LINUX       INTEL  Owner      Idle       0.860   506  0+00:00:09
    vm2@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:00:05
    vm3@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:00:06
    vm4@compute-0 LINUX       INTEL  Unclaimed  Idle       0.000   506  0+00:00:07
    
                         Machines Owner Claimed Unclaimed Matched Preempting
    
             INTEL/LINUX       28     1       0        27       0          0
    
                   Total       28     1       0        27       0          0