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

[BUG] Status changed to PROVISIONING when failed #195

Closed
owaiskazi19 opened this issue Nov 24, 2023 · 3 comments
Closed

[BUG] Status changed to PROVISIONING when failed #195

owaiskazi19 opened this issue Nov 24, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@owaiskazi19
Copy link
Member

What is the bug?

[2023-11-24T03:01:22,448][ERROR][o.o.f.t.ProvisionWorkflowTransportAction] [ip-172-31-56-214] Provisioning failed for workflow IKRG_4sB9nj1vxRLOlJI : org.opensearch.flowframework.exception.FlowFrameworkException: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class org.opensearch.ml.common.agent.LLMSpec (java.util.HashMap is in module java.base of loader 'bootstrap'; org.opensearch.ml.common.agent.LLMSpec is in unnamed module of loader java.net.FactoryURLClassLoader @2ba5aa7a)
[2023-11-24T03:01:22,470][INFO ][o.o.f.t.ProvisionWorkflowTransportAction] [ip-172-31-56-214] updated workflow IKRG_4sB9nj1vxRLOlJI state to PROVISIONING

How can one reproduce the bug?

  1. Try to create a case where the provisioning fails
  2. Status changes to PROVISIONING

What is the expected behavior?

Status should be changed to FAILED.

What is your host/environment?

Ubuntu

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

Add any other context about the problem.

@owaiskazi19 owaiskazi19 added bug Something isn't working untriaged labels Nov 24, 2023
@amitgalitz
Copy link
Member

Which branch was this on, I have previously tested that we wrote status as FAILED when provisioning failed. Might have gone wrong in some PR since

@owaiskazi19
Copy link
Member Author

Which branch was this on, I have previously tested that we wrote status as FAILED when provisioning failed. Might have gone wrong in some PR since

feature/agent_framework, not sure about main

@amitgalitz
Copy link
Member

Fixed by both moving update of state index to happen after the step and also changing the logs statement. #253

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

No branches or pull requests

3 participants