Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Error for Running a Job with a non existing Plan #938

Open
himanshuvar opened this issue May 8, 2020 · 2 comments
Open

500 Internal Error for Running a Job with a non existing Plan #938

himanshuvar opened this issue May 8, 2020 · 2 comments
Assignees
Labels
bug Something isn't working SODACODE2022 SODACODE2022 Hackathon Label SODAMED SODACODE2022 Hackathon Medium Priority Label
Milestone

Comments

@himanshuvar
Copy link
Member

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug

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.
JobGetIssuePOSTMAN

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:

  • Gelato(release/branch) version:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@kumarashit kumarashit added bug Something isn't working Medium Priority Medium Priority Label labels May 11, 2020
@kumarashit kumarashit added this to the May2020 milestone May 11, 2020
@PravinRanjan10 PravinRanjan10 added SODACODE2022 SODACODE2022 Hackathon Label SODAMED SODACODE2022 Hackathon Medium Priority Label and removed Medium Priority Medium Priority Label labels Feb 28, 2022
@subi9
Copy link
Contributor

subi9 commented Apr 25, 2022

Please assign to me.

@subi9
Copy link
Contributor

subi9 commented May 2, 2022

Hi Ashit, I have used a constant for the "job not exist" message and stored it in a variable but for "invalid input to object id hex" is not generic so we can keep as it is.I have pushed the code .Please review it and let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SODACODE2022 SODACODE2022 Hackathon Label SODAMED SODACODE2022 Hackathon Medium Priority Label
Projects
None yet
Development

No branches or pull requests

4 participants