test_scheduler_down_case_2 of TestResvEndHook failing with 'pbs_rsub: Bad time specification(s)'

Description

test_scheduler_down_case_2 of TestResvEndHook failing with 'pbs_rsub: Bad time specification(s)'

Build: 19.2.0.20180809140658

Failure:

2018-08-11 22:49:59,827 INFOCLI2 x19-64-sles11-altix: /opt/tools/wrappers/rm /tmp/PtlPbsDT_Q6_
2018-08-11 22:49:59,844 INFOCLI x19-64-sles11-altix: sudo -H -u pbsuser /opt/pbs/bin/pbs_rsub -R 201808112250.09 -E 201808112250.19 -l select=1:ncpus=1
2018-08-11 22:50:16,781 INFO submit to x19-64-sles11-altix as pbsuser: reservation OrderedDict([('reserve_start', 1534053009), ('reserve_end', 1534053019), ('Resource_List.select', '1:ncpus=1')])

Traceback (most recent call last):
File "/home/pbsroot/TEST/tmp/tests/functional/pbs_resv_end_hook.py", line 592, in test_scheduler_down_case_2
rid = self.submit_resv(offset, duration)
File "/home/pbsroot/TEST/tmp/tests/functional/pbs_resv_end_hook.py", line 105, in submit_resv
rid = self.server.submit(Reservation(TEST_USER, attrs))
File "/home/pbsroot/TEST/tmp/19.2.0.20180809140658/lib/python2.7/site-packages/ptl/lib/pbs_testlib.py", line 6098, in submit
post=self._disconnect, conn=c)
PbsSubmitError: rc=238, rv=None, msg=['pbs_rsub: Bad time specification(s)']

Analysis:

There is a race condition while submitting reservations:

Reservation is submitted with start time = current_time+10seconds where as in automation it might take > 10 secs when reservation is submitted.

In above logs, reservation is submitted with start_time:22:50:09(HH:MM:SS)

But it is acyually submitted at time : 22:50:16 which is 07 seconds ahead of start_time.

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

Shilpa Kodli

Severity

None

OS

None

Start Date

None

Pull Request URL

Story Points

1

Components

Affects versions

Priority

Low
Configure