PTL doesn't revert the default mom's configuration file in setup

Description

Problem Description:

  • Currently PTL_framework doesn't revert back the default configuration file as part of setup. As a result of this the next test will run with non-default configuration add leads to the tests failure.

Code-snippet:
def test_test(self):
mom_config = self.mom.parse_config()
print mom_config
a = {'$prologalarm': 180}
rc = self.mom.add_config(a)
_msg = "Coudln't add the entry to mom config file"
self.assertTrue(rc, _msg)
self.logger.info("Increased prologalarm to 180 secs")
mom_config = self.mom.parse_config()
print mom_config

def test_test1(self):
mom_config = self.mom.parse_config()
print mom_config

Logs-snippet:
2018-02-12 05:01:25,591 INFO Completed TestMom_config_ext setUp
2018-02-12 05:01:25,591 INFO ==================================
2018-02-12 05:01:25,591 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/cat /var/spool/pbs/mom_priv/config
{'$clienthost': 'pbspro-master.pbspro.com'}
2018-02-12 05:01:25,604 INFO mom pbspro-master: config {'$prologalarm': 180}
2018-02-12 05:01:25,605 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/cp -p /tmp/PtlPbsZyTdLN /var/spool/pbs/mom_priv/config
2018-02-12 05:01:25,619 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/chmod 0644 /var/spool/pbs/mom_priv/config
2018-02-12 05:01:25,632 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/chown root /var/spool/pbs/mom_priv/config
2018-02-12 05:01:25,647 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/chgrp root /var/spool/pbs/mom_priv/config
2018-02-12 05:01:25,660 INFO mom pbspro-master: sent signal -HUP
2018-02-12 05:01:25,661 INFOCLI2 pbspro-master: sudo -H kill -HUP 7130
2018-02-12 05:01:25,676 INFO Increased prologalarm to 180 secs
2018-02-12 05:01:25,677 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/cat /var/spool/pbs/mom_priv/config
{'$prologalarm': '180', '$clienthost': 'pbspro-master.pbspro.com'}
2018-02-12 05:01:25,690 INFO ====================================
2018-02-12 05:01:25,691 INFO Entered TestMom_config_ext tearDown
2018-02-12 05:01:25,691 INFO ====================================
.
.
.
.
2018-02-12 05:01:28,160 INFO ==================================
2018-02-12 05:01:28,160 INFO Completed TestMom_config_ext setUp
2018-02-12 05:01:28,161 INFO ==================================
2018-02-12 05:01:28,161 INFOCLI2 pbspro-master: sudo -H /opt/tools/wrappers/cat /var/spool/pbs/mom_priv/config
{'$prologalarm': '180', '$clienthost': 'pbspro-master.pbspro.com'}

I have attached the complete logs in the ticket.

Acceptance Criteria

None

Status

Assignee

Latha Subramanian

Reporter

zulekha mahalty

Severity

3-High

OS

None

Start Date

None

Pull Request URL

Story Points

1

Components

Fix versions

Priority

High
Configure