set_sched_config should throw error if it is not able to apply changes

Description

Issue:
set_sched_config should throw error if it is not able to apply changes.

Code snippet of set_sched_config:
self.logger.info(self.logprefix + "config " + str(confs))
self.sched_config = dict(self.sched_config.items() + confs.items())
if apply:
try:
self.apply_config(validate=validate)
except PbsSchedConfigError:
for k in confs:
del self.sched_config[k]
self.apply_config(validate=validate)
return True

  • set_sched_config calls "apply_config" internally

  • Currently If apply_config fails to update the entries mentioned in the tests it will delete the entries(specifed in the test) and HUP scheduler which is wrong because the "set_sched_config" API should throw error if it is not able to set attribute of scheduler

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

zulekha mahalty

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Priority

Low
Configure