Skip to content

[Fleet] Silently swallow 404 errors when deleting ingest pipelines#91778

Merged
jen-huang merged 4 commits intoelastic:masterfrom
jen-huang:fix/epm-logs
Feb 18, 2021
Merged

[Fleet] Silently swallow 404 errors when deleting ingest pipelines#91778
jen-huang merged 4 commits intoelastic:masterfrom
jen-huang:fix/epm-logs

Conversation

@jen-huang
Copy link
Copy Markdown
Contributor

Summary

This PR resolves #91192 by silently swallowing 404 errors that get thrown when deleting ingest pipelines. For explanation of why this happens and why they are safe to ignore, see: #91192 (comment)

I also took the liberty of removing some redundant logs around transforms that always show up on Fleet setup, even when there are no transforms found.

If you'd like to test this PR, start with fresh ES data and install an older system package before navigating to Fleet (triggering setup) via:

POST <host>/api/fleet/epm/packages/system-0.10.9
{
  "force": true
}

Then navigate to Fleet to trigger setup, which will trigger upgrade of the system package. Without this PR, you will see error deleting pipeline errors in Kibana logs. With this PR, you should no longer see them.

@jen-huang jen-huang added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.12.0 v7.13.0 labels Feb 18, 2021
@jen-huang jen-huang requested a review from a team as a code owner February 18, 2021 00:42
@jen-huang jen-huang self-assigned this Feb 18, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jen-huang

@jen-huang jen-huang merged commit 0f80467 into elastic:master Feb 18, 2021
@jen-huang jen-huang deleted the fix/epm-logs branch February 18, 2021 21:43
jen-huang added a commit to jen-huang/kibana that referenced this pull request Feb 18, 2021
…lastic#91778)

* Only show transform logs when there are transforms

* Silently swallow 404 errors when deleting ingest pipelines

* Change to IngestManagerError
jen-huang added a commit that referenced this pull request Feb 19, 2021
…91778) (#91943)

* Only show transform logs when there are transforms

* Silently swallow 404 errors when deleting ingest pipelines

* Change to IngestManagerError

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jen-huang added a commit that referenced this pull request Feb 19, 2021
…91778) (#91944)

* Only show transform logs when there are transforms

* Silently swallow 404 errors when deleting ingest pipelines

* Change to IngestManagerError

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 19, 2021
* master: (111 commits)
  [Logs UI] Replace dependencies in the infra bundle (elastic#91503)
  [Search Source] Do not request unmapped fields if source filters are provided (elastic#91921)
  [APM] Kql Search Bar suggests values outside the selected time range (elastic#91918)
  Refactored component edit policy tests into separate folders and using client integration testing setup (elastic#91657)
  [Fleet] Don't error on missing package_assets value (elastic#91744)
  [Lens] Pass used histogram interval to chart (elastic#91370)
  [Indexpattern management] Use indexPatterns Service instead of savedObjects client (elastic#91839)
  [Security Solutions] Fixes Cypress tests for indicator match by making the selectors more specific (elastic#91947)
  [CI] backportrc can skip CI (elastic#91886)
  Revert "[SOM] fix flaky suites (elastic#91809)"
  [Fleet] Install Elastic Agent integration by default during setup (elastic#91676)
  [Fleet] Silently swallow 404 errors when deleting ingest pipelines (elastic#91778)
  [data.search] Use incrementCounter for search telemetry (elastic#91230)
  [Fleet] Bootstrap functional test suite (elastic#91898)
  [Alerts][Docs] Added API documentation for alerts plugin (elastic#91067)
  Use correct environment in anomaly detection setup link (elastic#91877)
  [FTSR] Convert to tasks and add jest/api integration suites (elastic#91770)
  [CI] Build and publish storybooks (elastic#87701)
  docs: add PHP agent info to docs (elastic#91773)
  [DOCS] Adds and updates Visualization advanced settings (elastic#91904)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.12.0 v7.13.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On upgrade deleting a pipeline can error an error in the log

4 participants