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

[Infra UI] Host Anomaly Detection job creation always shows incorrect error message when there are no hosts #170498

Closed
roshan-elastic opened this issue Nov 3, 2023 · 10 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:ObsHosts Hosts feature within Observability Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@roshan-elastic
Copy link

roshan-elastic commented Nov 3, 2023

Description

When creating an host anomaly detection job in serverless, the job will always say that it has failed regardless:

User experience when creating job
image

API response when 'error' occurs
image

When trying to create again, it shows it actually works (so it didn't fail)
image

Video

serverless.anomaly.detection.creation.mp4

Expectation

It is expected that when the job is enabled, the user should be presented with information indicating the true state (i.e. the job wasn't able to be immediately created but it is being queued to be setup) - much like what you see if you try again:

Example message when you try to recreate

image
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 3, 2023
@roshan-elastic roshan-elastic added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team and removed needs-team Issues missing a team label labels Nov 3, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@roshan-elastic roshan-elastic added the bug Fixes for quality problems that affect the customer experience label Nov 3, 2023
@roshan-elastic
Copy link
Author

@smith - here is the bug. This feels like it should be a high priority in serverless to me.

WDYT?

@roshan-elastic
Copy link
Author

@vinaychandrasekhar FYI
(cc @grabowskit)

@roshan-elastic
Copy link
Author

@chrisdistasio FYI this is something users are likely to see if they try and create anomaly detection jobs via the Infra UI in serverless...

Note : this is pretty related to the not-so-good error handling in the anomaly detection job creation workflow present in stateful too:

It's close to top of the backlog here but realistically I can't see this being resolved in serverless before users experience it.

cc @smith @grabowskit

@neptunian
Copy link
Contributor

@roshan-elastic Are you creating an ml job on an empty cluster (no metrics data)? Because you will get that error whether you are in serverless or not, if so. Not great error handling for sure but probably not a common case to be creating them when you have no data. Did you try creating in on a cluster with data?

@roshan-elastic roshan-elastic changed the title [Infra UI] Host Anomaly Detection job creation always incorrectly shows failure in Serverless [Infra UI] Host Anomaly Detection job creation always shows incorrect error message in Serverless when there are no hosts Nov 10, 2023
@roshan-elastic
Copy link
Author

roshan-elastic commented Nov 10, 2023

Hey @neptunian - good catch! I didn't even realise that I was using a project with no hosts.

I just tried on a project with hosts and it worked fine first time - it's only when there are no hosts does it give the incorrect dialogue (and if I refresh it shows the jobs have started to be created).

I wonder if this is actually serverless specific or whether it is a generic issue? I just tried a new cloud deployment with no hosts and I think I see a similar behaviour:

Creating host anomaly detection job on an empty stateful cloud deployment
image

If this is the same problem, it looks like it's a been a problem for a long time for customers already so it's not something new that users haven't been experiencing before (so may affect the priority).

@neptunian
Copy link
Contributor

@roshan-elastic It's not serverless specific. The error is saying it doesn't have mappings because there is no data.

@roshan-elastic roshan-elastic changed the title [Infra UI] Host Anomaly Detection job creation always shows incorrect error message in Serverless when there are no hosts [Infra UI] Host Anomaly Detection job creation always shows incorrect error message when there are no hosts Nov 13, 2023
@roshan-elastic
Copy link
Author

Thanks for confirming @neptunian.

@smith - I think we can lower the priority on this given that (a) this only happens when you have no metrics data so unlikely to happen very often (b) this is not something that serverless users are likely to encounter more than anyone else.

I've moved these out of the backlog as I don't think there's an urgency to resolve these and I figure these can be prioritised once there is a PM to support you with the backlog (although in the interim, I'm happy to help)

@botelastic
Copy link

botelastic bot commented May 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the stale Used to mark issues that were closed for being stale label May 11, 2024
@smith smith added the Feature:ObsHosts Hosts feature within Observability label May 18, 2024
@botelastic botelastic bot removed the stale Used to mark issues that were closed for being stale label May 18, 2024
@roshan-elastic
Copy link
Author

Closing - the error message will now pass through the error returned from the API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:ObsHosts Hosts feature within Observability Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

4 participants