Bug 1378368

Summary: [platformmanagement_public_479] User can not edit scheduledjobs
Product: OKD Reporter: weiwei jiang <wjiang>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED CURRENTRELEASE QA Contact: Chuan Yu <chuyu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, chuyu, maszulik, mmccomas, wsun
Target Milestone: ---   
Target Release: 3.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
This is a new feature so no doc update needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-09 21:51:15 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:
Embargoed:

Description weiwei jiang 2016-09-22 09:39:34 UTC
Description of problem:
When try to edit scheduledjobs, got:
# oc edit scheduledjobs sj2 
A copy of your changes has been stored to "/tmp/oc-edit-xdosz.yaml"
error: no kind "ScheduledJob" is registered for version "batch/v1"


Version-Release number of selected component (if applicable):
devenv-rhel7_5051

How reproducible:
always

Steps to Reproduce:
1. Create a scheduledjob
oc run sj2 --image=busybox --restart=Never --schedule="*/1 * * * *" -- sleep 300
2. Try to edit the scheduled job, make some change and try to save back to server
oc edit scheduledjobs sj2
3.

Actual results:
# oc edit scheduledjobs sj2 
A copy of your changes has been stored to "/tmp/oc-edit-xdosz.yaml"
error: no kind "ScheduledJob" is registered for version "batch/v1"


Expected results:
should work well

Additional info:

Comment 1 Maciej Szulik 2016-10-04 12:15:39 UTC
This should fix the problem: https://github.com/kubernetes/kubernetes/pull/34010

Comment 2 Maciej Szulik 2016-10-10 11:52:43 UTC
Origin cherry-pick https://github.com/openshift/origin/pull/11286

Comment 3 openshift-github-bot 2016-10-18 11:00:11 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/3ed3b35bca711e83944b7bc678f928ad87520805
Merge pull request #11286 from soltysh/bug1378368

Merged by openshift-bot

Comment 4 Chuan Yu 2016-10-21 05:31:28 UTC
Check with openshift v3.4.0.13, this issue has been fixed.