Bug 1829367 - Can't create job from cronjob
Summary: Can't create job from cronjob
Keywords:
Status: CLOSED DUPLICATE of bug 1814728
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.3.z
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-29 13:10 UTC by jnaess
Modified: 2020-05-08 17:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-08 17:31:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.