Bug 1829367

Summary: Can't create job from cronjob
Product: OpenShift Container Platform Reporter: jnaess
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED DUPLICATE QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: aos-bugs, jokerman, mfojtik
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-08 17:31:55 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 jnaess 2020-04-29 13:10:11 UTC
Description of problem:
oc create job --from=cronjob/curator <job_name> produces the following error:

error: failed to create job: jobs.batch "curator" is forbidden: cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion apps/v1 Kind CronJob: no matches for kind "CronJob" in version "apps/v1"

Version-Release number of selected component (if applicable):
4.3.z (confirmed on 4.3.8)

How reproducible:
very

Steps to Reproduce:
1. https://docs.openshift.com/container-platform/4.3/logging/config/cluster-logging-curator.html#cluster-logging-curator-troubleshoot_cluster-logging-curator
2. follow steps until oc create job

Actual results:
error: failed to create job: jobs.batch "curator" is forbidden: cannot set blockOwnerDeletion in this case because cannot find RESTMapping for APIVersion apps/v1 Kind CronJob: no matches for kind "CronJob" in version "apps/v1"


Expected results:
cronjob running

Additional info:

Comment 1 Maciej Szulik 2020-05-08 17:31:55 UTC

*** This bug has been marked as a duplicate of bug 1814728 ***