can submit an STF job if soft_walltime is set as default

Description

as per EDD of PP-482:
"An STF job requesting soft_walltime will be rejected"

Qmgr: s s resources_default.soft_walltime=120
Qmgr: q
[anamika@testdev-04-r6p2 functional]$ qsub -lmin_walltime=50 -lmax_walltime=100 – /bin/sleep 200
229.testdev-04-r6p2
[anamika@testdev-04-r6p2 functional]$ qstat -f | grep walltime
Resource_List.max_walltime = 00:01:40
Resource_List.min_walltime = 00:00:50
Resource_List.soft_walltime = 00:02:00
Submit_arguments = -lmin_walltime=50 -lmax_walltime=100 – /bin/sleep 200

[anamika@testdev-04-r6p2 functional]$ qalter -lmax_walltime=40 229
qalter: soft_walltime is not supported with Shrink to Fit jobs 229.testdev-04-r6p2
[anamika@testdev-04-r6p2 functional]$ qstat -f | grep walltime
Resource_List.max_walltime = 00:01:40
Resource_List.min_walltime = 00:00:50
Resource_List.soft_walltime = 00:02:00
Submit_arguments = -lmin_walltime=50 -lmax_walltime=100 – /bin/sleep 200

if submits only with min_walltime.

[anamika@testdev-04-r6p2 functional]$ qsub -lmin_walltime=50 – /bin/sleep 200
230.testdev-04-r6p2
[anamika@testdev-04-r6p2 functional]$ qstat -f | grep walltime
resources_used.walltime = 00:00:00
Resource_List.min_walltime = 00:00:50
Resource_List.soft_walltime = 00:02:00
Resource_List.walltime = 00:02:00
Submit_arguments = -lmin_walltime=50 – /bin/sleep 200

Acceptance Criteria

None

Activity

Show:
anamika upadhyay
October 28, 2017, 3:30 AM
Edited

another case is walltime too. job is accepted if walltime is less than soft_walltime.

[anamika@testdev-04-r6p2 functional]$ qsub -lwalltime=5 – /bin/sleep 10
235.testdev-04-r6p2
[anamika@testdev-04-r6p2 functional]$ qstat -f | grep walltime
resources_used.walltime = 00:00:00
Resource_List.soft_walltime = 00:00:15
Resource_List.walltime = 00:00:05
Submit_arguments = -lwalltime=5 – /bin/sleep 10

due to this test case "test_walltime_default" from pbs_soft_walltime.py will be skipped. That should be unskipped as part of this bug fix.

Assignee

Unassigned

Reporter

anamika upadhyay

Severity

3-High

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Affects versions

Priority

Medium
Configure