Few test cases of TestResvEndHook are failing due to logmatch error in Server logs

Description

Below list of test cases are failing due to log match error in Server logs.
List of test cases:
test_delete_degraded_resv
test_end_advance_resv_with_jobs
test_server_down_case_1
test_delete_resv_occurrence
test_end_resv_occurrences
test_delete_resv_occurrence_with_jobs
test_end_advance_resv
test_end_resv_occurrences_with_jobs
test_delete_advance_resv_with_jobs
test_delete_advance_resv

Failure:
2018-07-24 05:49:00,172 INFO server x43-64-sles11sp3 log match: searching for "Hook;Server@x43-64-sles11sp3.pbspro.com;Reservation ID - R12.x43-64-sles11sp3" - attempt 30

Traceback (most recent call last):
File "/home/pbsroot/TEST/tmp/tests/functional/pbs_resv_end_hook.py", line 153, in test_delete_degraded_resv
self.server.log_match(msg, tail=True, interval=2, max_attempts=30)
File "/home/pbsroot/TEST/tmp/19.2.0.20180718140606/lib/python2.7/site-packages/ptl/lib/pbs_testlib.py", line 5034, in log_match
level=level, existence=existence)
File "/home/pbsroot/TEST/tmp/19.2.0.20180718140606/lib/python2.7/site-packages/ptl/lib/pbs_testlib.py", line 4105, in _log_match
raise PtlLogMatchError(rc=1, rv=False, msg=_msg)
PtlLogMatchError: rc=1, rv=False, msg=server x43-64-sles11sp3 log match: searching for "Hook;Server@x43-64-sles11sp3.pbspro.com;Reservation ID - R12.x43-64-sles11sp3" - attempt 30

test duration: 0:01:04.399293

Server Logs
07/24/2018 05:45:26;0006;Server@x43-64-sles11sp3;Hook;Server@x43-64-sles11sp3;Reservation ID - R0.x43-64-sles11sp3

Code snippet where the failure ocured:
msg = 'Hook;Server@%s;Reservation ID - %s' %(self.server.hostname.lower(), new_rid)
In test case, log match is expected with self.server.hostname instead of self.server.shortname.
This line should be updated in all test cases wherver is necessary.

Acceptance Criteria

None

Status

Assignee

Latha Subramanian

Reporter

Shilpa Kodli

Severity

None

OS

None

Start Date

None

Pull Request URL

Story Points

1

Components

Fix versions

Affects versions

19.1.1

Priority

Low
Configure