Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 721137 - [RFE] Receive evaluated form of configuration as seen by a running daemon
[RFE] Receive evaluated form of configuration as seen by a running daemon
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor (Show other bugs)
1.3
x86_64 Linux
high Severity high
: 2.5
: ---
Assigned To: Erik Erlandson
Tomas Rusnak
: FutureFeature
Depends On:
Blocks: 1045236 1069518
  Show dependency treegraph
 
Reported: 2011-07-13 15:56 EDT by Scott Spurrier
Modified: 2014-04-28 12:45 EDT (History)
12 users (show)

See Also:
Fixed In Version: condor-7.8.9-0.7
Doc Type: Enhancement
Doc Text:
Feature: Enhance condor_config_val to optionally obtain the value of a configuration macro, as evaluated in the context of a daemon's classad. Reason: This capability allows the administrator or user to verify the exact configuration value seen by a daemon. Result (if any): condor_config_val now accepts an optional flag '-evaluate', that causes it to return the value of a configuration macro evaluated with respect to a daemon's classad.
Story Points: ---
Clone Of:
: 1069518 (view as bug list)
Environment:
Last Closed: 2014-04-28 12:45:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Condor 856 None None None 2012-09-04 11:20:23 EDT
Red Hat Product Errata RHSA-2014:0440 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Grid 2.5 security, bug fix, and enhancement update 2014-04-28 16:43:37 EDT

  None (edit)
Description Scott Spurrier 2011-07-13 15:56:19 EDT
Description of problem:
For any condor configuration value involving floating point math or special booleans like time-of-day calculations, it's important to be able to tell what value the daemon actually thinks it's using. It is needed for negotiator fairshare configuration and startd-side configuration. One specific use case would be the development of a tool to process the output of condor_userprio and compare recorded use with configured fairshares. 

Upstream RFE:
https://condor-wiki.cs.wisc.edu/index.cgi/tktview?tn=856
Comment 1 Erik Erlandson 2012-03-01 16:47:40 EST
Also of interest:
https://condor-wiki.cs.wisc.edu/index.cgi/tktview?tn=2857
Comment 3 Luigi Toscano 2012-04-23 09:03:31 EDT
Will the implementation be just as described into condor ticket 856 (more information in the verbose output of condor_config_val)? Will it include also ticket 2857, or will it be out of scope for this bug? Any other relevant information?
Comment 9 Erik Erlandson 2014-02-04 12:37:10 EST
TESTING:
Use the following configuration to exercise feature cases:

======================================================
SCHEDD.TEST_PARAM_1 = 5 * 1
NEGOTIATOR.TEST_PARAM_1 = 5 * 2
STARTD.TEST_PARAM_1 = 5 * 3

SCHEDD.TEST_PARAM_2 = time()
NEGOTIATOR.TEST_PARAM_2 = time() / 2
======================================================

Now spin up a pool, and query daemons for their config values to demonstrate behavior with and without the new -evaluate option:

======================================================
$ condor_config_val -schedd TEST_PARAM_1
5 * 1
$ condor_config_val -schedd TEST_PARAM_1 -eval
5
$ condor_config_val -neg TEST_PARAM_1
5 * 2
$ condor_config_val -neg TEST_PARAM_1 -eval
10
$ condor_config_val -startd TEST_PARAM_1
5 * 3
$ condor_config_val -startd TEST_PARAM_1 -eval
Warning: Classad for startd daemon 'rorschach' is null, will evaluate expressions against empty classad
15
$ condor_config_val -schedd TEST_PARAM_2
time()
$ condor_config_val -schedd TEST_PARAM_2 -eval
1335205018
$ condor_config_val -neg TEST_PARAM_2
time() / 2
$ condor_config_val -neg TEST_PARAM_2 -eval
667602514
=====================================================
Comment 11 Tomas Rusnak 2014-02-25 10:29:56 EST
Tested on RHEL6 32/64 with CLASSADs from Comment #9 over this set of daemons:

['SCHEDD','NEGOTIATOR','STARTD','COLLECTOR']

Result:

Test Summary  : PASS   #TESTS:43  #FAILS:0

>>> VERIFIED
Comment 13 errata-xmlrpc 2014-04-28 12:45:38 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-0440.html

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