nicholasnet
05/29/2023, 3:07 PMprefect.exceptions.FailedRun: Submission failed. kubernetes.client.exceptions.ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': 'af4884b6-f13d-4813-9b63-79f859e962d0', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '07cd00e8-f26e-4ed1-b441-b0eb2115b3b7', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'f9d0e8bc-cf15-4ed5-8169-c4cddb53fff8', 'Date': 'Mon, 29 May 2023 15:05:49 GMT', 'Content-Length': '323'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:serviceaccount:sandbox-bidw:prefect-agent\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"dev-bidw\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}
Anybody knows how to fix this? I do not see batch options in roles/permissions section.Jamie Zieziula
05/29/2023, 11:49 PMnicholasnet
05/30/2023, 12:20 AMnicholasnet
05/30/2023, 12:21 AMJamie Zieziula
05/30/2023, 12:22 AMnicholasnet
05/30/2023, 12:24 AMnicholasnet
05/30/2023, 12:27 AMJamie Zieziula
05/30/2023, 1:11 PMnicholasnet
05/30/2023, 2:13 PMkubectl get namespace
I do not even see that namespace.Jamie Zieziula
05/30/2023, 2:14 PMnicholasnet
05/30/2023, 2:16 PMnicholasnet
05/30/2023, 2:17 PMJamie Zieziula
05/30/2023, 2:28 PMnicholasnet
05/30/2023, 2:33 PMnicholasnet
05/30/2023, 2:46 PMSubmission failed. kubernetes.client.exceptions.ApiException: (403) Reason: Forbidden HTTP response headers: HTTPHeaderDict({'Audit-Id': 'ab19faf5-61fe-4bcd-8a8e-1e7abb8c7ec0', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '07cd00e8-f26e-4ed1-b441-b0eb2115b3b7', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'f9d0e8bc-cf15-4ed5-8169-c4cddb53fff8', 'Date': 'Tue, 30 May 2023 14:42:54 GMT', 'Content-Length': '323'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:serviceaccount:sandbox-bidw:prefect-agent\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"dev-bidw\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}
Jamie Zieziula
05/30/2023, 2:48 PMsandbox-bidw
?nicholasnet
05/30/2023, 2:49 PMnicholasnet
05/30/2023, 10:31 PMFile "/opt/prefect/flows/venv/lib/python3.11/site-packages/prefect/results.py", line 398, in get
raise MissingResult("The result was not persisted and is no longer available.")
prefect.exceptions.MissingResult: The result was not persisted and is no longer available.
Jamie Zieziula
05/30/2023, 10:56 PMnicholasnet
05/31/2023, 12:00 AMdeployment = run_deployment("transform-data/poc-prefect-multiple-job-test-main-transform")
logger().info("Deployment status: transform-data/poc-
prefect-multiple-job-test-main-transform")
logger().info(deployment.state.result())
return {"result": deployment.state.result()}
nicholasnet
05/31/2023, 12:00 AMnicholasnet
05/31/2023, 12:04 AMnicholasnet
05/31/2023, 12:06 AMJamie Zieziula
05/31/2023, 12:30 AM