500 Internal Error for Running a Job with a non existing Plan #938
Labels
bug
Something isn't working
SODACODE2022
SODACODE2022 Hackathon Label
SODAMED
SODACODE2022 Hackathon Medium Priority Label
Milestone
Is this a BUG REPORT or FEATURE REQUEST?:
What happened: Run a Job give 500 Internal Error for non-existing Plan.
What you expected to happen: Run a Job should give 404 for non-existing Plan.
How to reproduce it (as minimally and precisely as possible):
Run a Job with a non-existing plan.
Error Logs:
[2020-05-08T14:54:44+05:30] [INFO] [/root/gopath/src/github.com/opensds/multi-cloud/dataflow/pkg/service.go] [pkg.(*dataflowService).RunPlan():428] [PID:1] Run plan is called in dataflow service. [2020-05-08T14:54:44+05:30] [ERROR] [/root/gopath/src/github.com/opensds/multi-cloud/dataflow/pkg/db/drivers/mongo/mongo.go] [mongo.(*adapter).GetPlan():661] [PID:1] plan does not exist. [2020-05-08T14:54:44+05:30] [INFO] [/root/gopath/src/github.com/opensds/multi-cloud/dataflow/pkg/service.go] [pkg.(*dataflowService).RunPlan():447] [PID:1] Run plan err:plan does not exist.
Anything else we need to know?:
Environment:
uname -a
):The text was updated successfully, but these errors were encountered: