set_sched_config not editing sched_config correctly

Description

Seen this for an existing test TestFairshare.test_fairshare_formula5

2017-12-03 19:55:17,064 INFO scheduler x77-r6-altix log match: searching for "Sched;reconfigure;Scheduler is reconfiguring"... OK
2017-12-03 19:55:17,065 INFO scheduler x77-r6-altix log match: searching for "Error reading line"... OK

Traceback (most recent call last):
File "/home/pbsroot/TEST/tmp/tests/functional/pbs_fairshare.py", line 227, in test_fairshare_formula5
self.scheduler.set_sched_config(a)
File "/home/pbsroot/TEST/tmp/18.2.0.20171130010654/lib/python2.7/site-packages/ptl/lib/pbs_testlib.py", line 10844, in set_sched_config
self.apply_config(validate=validate)
File "/home/pbsroot/TEST/tmp/18.2.0.20171130010654/lib/python2.7/site-packages/ptl/lib/pbs_testlib.py", line 10821, in apply_config
msg=_msg)
PbsSchedConfigError: rc=1, rv=False, msg=Error in validating sched_config changes

sched_log had following:
12/03/2017 19:55:16;0002;pbs_sched;Svr;restart;restart on signal 1
12/03/2017 19:55:16;0040;pbs_sched;Sched;reconfigure;Scheduler is reconfiguring
12/03/2017 19:55:16;0040;pbs_sched;Fil;sched_config;Obsolete config name sort_queues
12/03/2017 19:55:16;0040;pbs_sched;Fil;sched_config;Error reading line 269:
12/03/2017 19:55:16;0004;pbs_sched;Fil;holidays;The holiday file is out of date; please update it.
12/03/2017 19:55:17;0002;pbs_sched;Svr;Log;Log closed
12/03/2017 19:55:17;0002;pbs_sched;Svr;Log;Log opened
12/03/2017 19:55:17;0002;pbs_sched;Svr;pbs_sched;pbs_version=18.2.0.20171130010654
12/03/2017 19:55:17;0002;pbs_sched;Svr;pbs_sched;pbs_build=mach=N/A:security=N/A:configure_args=N/A
12/03/2017 19:55:17;0002;pbs_sched;Svr;pbs_sched;hostname=x77-r6-altix.pbspro.com;pbs_leaf_name=N/A;pbs_mom_node_name=N/A
12/03/2017 19:55:17;0002;pbs_sched;Svr;pbs_sched;ipv4 interface lo: localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
12/03/2017 19:55:17;0002;pbs_sched;Svr;pbs_sched;ipv4 interface eth0: x77-r6-altix.pbspro.com
12/03/2017 19:55:17;0002;pbs_sched;Svr;pbs_sched;ipv6 interface lo: localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
12/03/2017 19:55:17;0002;pbs_sched;Svr;restart;restart on signal 1
12/03/2017 19:55:17;0040;pbs_sched;Sched;reconfigure;Scheduler is reconfiguring
12/03/2017 19:55:17;0040;pbs_sched;Fil;sched_config;Obsolete config name sort_queues
12/03/2017 19:55:17;0004;pbs_sched;Fil;holidays;The holiday file is out of date; please update it.

sched_config has No data for some options for example see below:

  1.  

    1.  

      1.  

        1. FAIRSHARE OPTIONS

  1. NOTE: to define fairshare tree see $PBS_HOME/sched_priv/resources_group file

#

  1. fair_share
    # Schedule jobs based on usage and share values
    #
    # PRIME OPTION
    #

#

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

anamika upadhyay

Severity

3-High

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Priority

High
Configure