Hide Forgot
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.
# 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?
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
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