Skip to content

[8.7] [Fleet] always create agent upload write indices (#155729)#155845

Merged
kibanamachine merged 1 commit intoelastic:8.7from
kibanamachine:backport/8.7/pr-155729
Apr 26, 2023
Merged

[8.7] [Fleet] always create agent upload write indices (#155729)#155845
kibanamachine merged 1 commit intoelastic:8.7from
kibanamachine:backport/8.7/pr-155729

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.7:

Questions ?

Please refer to the Backport tool documentation

## Summary

Fixes elastic#155483

Always create file upload write indices for elastic_agent package, so
that Request diagnostics of a managed Fleet Server works before
installing Elastic Agent package.

To verify:
- Go to a fresh cloud deployment without Elastic Agent installed
- Go to the managed Fleet Server and click Request Diagnostics on Agent
Details
- Expect the action to work
- Check in Stack Management that the `.fleet-files-agent-000001` index
is created.

Verified on pr link that the agent write index is created before Elastic
Agent package is installed:

https://kibana-pr-155729.kb.us-west2.gcp.elastic-cloud.com:9243/app/management/data/index_management/indices?includeHiddenIndices=true

<img width="777" alt="image"
src="https://user-images.githubusercontent.com/90178898/234502605-cd91bbc2-0938-41ef-8455-1700f139a3ee.png">
<img width="1538" alt="image"
src="https://user-images.githubusercontent.com/90178898/234502727-74e84a2a-3126-4346-8328-cdb10ed26b8f.png">

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 636674c)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 26, 2023
@kibanamachine kibanamachine enabled auto-merge (squash) April 26, 2023 08:51
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 26, 2023
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

cc @juliaElastic

@kibanamachine kibanamachine merged commit 1dce8b2 into elastic:8.7 Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Fleet Team label for Observability Data Collection Fleet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants