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

Do not fails hard if dashboard are not found #8977

Merged
merged 4 commits into from
Nov 7, 2018

Conversation

ph
Copy link
Contributor

@ph ph commented Nov 7, 2018

Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: #8949 and #8933

Notes: We could do a bit more refactoring to allow the dashboard importer to better communication any hiccups, this was the minimal changes to make it work without adding too much risk.

Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: elastic#8949 and elastic#8933
@@ -4,6 +4,7 @@
import subprocess
from nose.plugins.attrib import attr
import unittest
from unittest import SkipTest
Copy link
Contributor Author

@ph ph Nov 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hit this error when running the integration test with a 6.4 installation.

@ph ph added the needs_backport PR is waiting to be backported to other branches. label Nov 7, 2018
@ph
Copy link
Contributor Author

ph commented Nov 7, 2018

@urso updated, I have removed the line in the python code and fixed the err.Wrap.

@ph ph merged commit 4e812da into elastic:master Nov 7, 2018
ph added a commit to ph/beats that referenced this pull request Nov 7, 2018
Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: elastic#8949 and elastic#8933 

**Notes:** We could do a bit more refactoring to allow the dashboard importer to better communication any hiccups, this was the minimal changes to make it work without adding too much risk.

(cherry picked from commit 4e812da)
@ph ph added v6.6.0 and removed needs_backport PR is waiting to be backported to other branches. labels Nov 7, 2018
ph added a commit to ph/beats that referenced this pull request Nov 7, 2018
Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: elastic#8949 and elastic#8933 

**Notes:** We could do a bit more refactoring to allow the dashboard importer to better communication any hiccups, this was the minimal changes to make it work without adding too much risk.

(cherry picked from commit 4e812da)
@ph ph added the v6.5.0 label Nov 7, 2018
ph added a commit that referenced this pull request Nov 7, 2018
#8981)

Cherry-pick of PR #8977 to 6.x branch. Original message: 

Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: #8949 and #8933 

**Notes:** We could do a bit more refactoring to allow the dashboard importer to better communication any hiccups, this was the minimal changes to make it work without adding too much risk.
ph added a commit that referenced this pull request Nov 8, 2018
#8982)

* Do not fails hard if dashboard are not found (#8977)

Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: #8949 and #8933 

**Notes:** We could do a bit more refactoring to allow the dashboard importer to better communication any hiccups, this was the minimal changes to make it work without adding too much risk.

(cherry picked from commit 4e812da)

* fix
@urso urso mentioned this pull request Nov 8, 2018
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…ot found (elastic#8982)

* Do not fails hard if dashboard are not found (elastic#8977)

Its possible that a beat doesn't have any dashboards, instead of
failling hard on that case we simply return the message to the user and
we continue on any setup task.

This commit wrap the minimum error related to dashboard and filesystem
using errors.wrap after the beat setup command will inspect any error
returned by the import dashboard, if they are of type ErrNotFound we
will just display a message to the user and continue with the execution.

Fixes: elastic#8949 and elastic#8933 

**Notes:** We could do a bit more refactoring to allow the dashboard importer to better communication any hiccups, this was the minimal changes to make it work without adding too much risk.

(cherry picked from commit 1775ce9)

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants