Bug 1318522

Summary: [online_private_558]Need set up runtime duration of run-once pods in master config on Online
Product: OpenShift Online Reporter: Xingxing Xia <xxia>
Component: PodAssignee: Cesar Wong <cewong>
Status: CLOSED CURRENTRELEASE QA Contact: DeShuai Ma <dma>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-23 15:09:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xingxing Xia 2016-03-17 06:55:25 UTC
Description of problem:
The dev-preview-int Online env did not set up runtime duration of run-once pods in master config. The Online should set it up according to: https://docs.openshift.org/latest/admin_guide/limit_runonce_pod_duration.html#configuring-the-runonceduration-plug-in

Version-Release number of selected component (if applicable):
dev-preview-int

How reproducible:
Always

Steps to Reproduce:
1. oc login and create a project
2. Create new app
$ oc new-app -f origin/examples/sample-app/application-template-stibuild.json
3. Check .spec.activeDeadlineSeconds of run-once pods.
1> Check deployer pod when deployer pod is not completed yet (If completed, could trigger a new one to check)
$ oc get pod database-1-deploy -o yaml
2> Check build pod
$ oc get pod ruby-sample-build-1-build -o yaml

Actual results:
3. Obviously, the Online env does not do the setup.
1> activeDeadlineSecondsOverride is 21600
2> activeDeadlineSecondsOverride is not found

Expected results:
3. Should see the values of activeDeadlineSecondsOverride are set to a reasonable value - 3600 seconds (as the US card description said):
spec:
  activeDeadlineSeconds: 3600

Additional info:

Comment 1 Cesar Wong 2016-03-17 13:36:54 UTC
Issue: https://github.com/openshift/online/issues/62

Comment 2 Xingxing Xia 2016-03-18 02:39:28 UTC
Verified against dev-preview-int today, the issue is solved. Will move to VERIFIED when changed to ON_QA