Bug 766660 - condor_q doesn't get name of scheduler from configuration
Summary: condor_q doesn't get name of scheduler from configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor
Version: 2.1
Hardware: All
OS: All
low
medium
Target Milestone: 2.3
: ---
Assignee: Robert Rati
QA Contact: Martin Bukatovic
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 14:41 UTC by Martin Kudlej
Modified: 2013-05-06 13:52 UTC (History)
4 users (show)

Fixed In Version: condor-7.8.2-0.1
Doc Type: Bug Fix
Doc Text:
C: Having the default scheduler be configured as an HA scheduler C: condor_q would not find the job queue without specifying the schedd name on the command line F: The condor_q command will now check the SCHEDD_NAME setting R: Performing a condor_q when the default scheduler is an HA scheduler will show the job queue
Clone Of:
Environment:
Last Closed: 2013-05-06 13:52:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Martin Kudlej 2011-12-12 14:41:27 UTC
Description of problem:
If there is scheduler name in configuration condor_q should use that name so user has not to put it into command.

$ condor_config_val SCHEDD_NAME
ha_schedd@

$ condor_q -name `condor_config_val SCHEDD_NAME`


-- Schedd: ha_schedd@ : <_205_:52784>
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held

$ condor_q

-- Failed to fetch ads from: <_153_:32861> : _153_
CEDAR:6001:Failed to connect to <_153_:32861>

$ condor_q -name ha_schedd@


-- Schedd: ha_schedd@ : <_205_:52784>
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held

Version-Release number of selected component (if applicable):
condor-7.6.5-0.8

How reproducible:
100%

Steps to Reproduce:
1. configure scheduler name for HA scheduler
2. condor_q - it returns output just on machine where scheduler is running
  
Actual results:
Condor_q doesn't use name of scheduler from configuration.

Expected results:
Condor_q will use name of scheduler from configuration.

Comment 1 Robert Rati 2012-04-13 18:40:54 UTC
# condor_config_val SCHEDD_HOST
Not defined: SCHEDD_HOST

# condor_config_val SCHEDD_NAME
ha-schedd-schedd1@

# condor_q

-- Submitter: ha-schedd-schedd1@ : <10.16.64.133:46175> : dell-pe2950-01.rhts.eng.bos.redhat.com
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 completed, 0 removed, 0 idle, 0 running, 0 held, 0 suspended


# condor_status -schedd

Name                 Machine    TotalRunningJobs TotalIdleJobs TotalHeldJobs 

ha-schedd-schedd1@   dell-pe295                0             0              0
ha-schedd-schedd2@   dell-pe295                0             0              1


# hostname
hp-xw9300-01.rhts.eng.bos.redhat.com


Above produced with:
condor-7.6.7-0.10.el6.x86_64

Can you verify issue is resolved with a later condor version?

Comment 2 Robert Rati 2012-05-03 13:42:38 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
C: Having the default scheduler be configured as an HA scheduler
C: condor_q would not find the job queue without specifying the schedd name on the command line
F: The condor_q command will now check the SCHEDD_NAME setting
R: Performing a condor_q when the default scheduler is an HA scheduler will show the job queue

Comment 5 Martin Bukatovic 2013-04-29 10:51:24 UTC
Tested on RHEL 5.9/6.4 - i386/x86_64 with packages:

condor-7.8.8-0.4.1
condor-classads-7.8.8-0.4.1

Configured condor pool with HA schedd via wallaby, on all nodes the feature works:

~~~
# condor_config_val SCHEDD_HOST
Not defined: SCHEDD_HOST

# condor_config_val SCHEDD_NAME
ha_schedd@

# condor_status -schedd

Name                 Machine    TotalRunningJobs TotalIdleJobs TotalHeldJobs

ha_schedd@           dhcp-37-14                0             0              0
                      TotalRunningJobs      TotalIdleJobs      TotalHeldJobs


               Total                 0                  0                  0

# condor_q

-- Submitter: ha_schedd@ : <10.34.37.140:38241> : dhcp-37-140.lab.eng.brq.redhat.com
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD

0 jobs; 0 completed, 0 removed, 0 idle, 0 running, 0 held, 0 suspended

# condor_q -name ha_schedd@

-- Schedd: ha_schedd@ : <10.34.37.140:38241>
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD

0 jobs; 0 completed, 0 removed, 0 idle, 0 running, 0 held, 0 suspended
~~~

Note: when using condor-7.6.5-0.8 (older version as reported in this BZ), the
feature works as well. After talk with original reporter, setting status to
VERIFIED as this feature behaves correctly anyway.

>>> VERIFIED


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