Skip to content

[8.10] [Fleet] copy inactivity_timeout when duplicating agent policy (#164544)#164564

Merged
kibanamachine merged 1 commit intoelastic:8.10from
kibanamachine:backport/8.10/pr-164544
Aug 23, 2023
Merged

[8.10] [Fleet] copy inactivity_timeout when duplicating agent policy (#164544)#164564
kibanamachine merged 1 commit intoelastic:8.10from
kibanamachine:backport/8.10/pr-164544

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.10:

Questions ?

Please refer to the Backport tool documentation

…tic#164544)

## Summary

Closes elastic#164532

`inactivity_timeout` and a lot of other properties on the agent policy
saved object were not being copied over when duplicating an agent
policy.

The other properties that are now duplicated when cloning an agent
policy are :

- `inactivity_timeout`
- `unenroll_timeout`
- `agent_features` - this contains the hostname mode
- `overrides`
- `data_output_id`
- `monitoring_output_id`
- `download_source_id`
- `fleet_server_host_id`

Automated test added.

(cherry picked from commit ce2c18d)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Aug 23, 2023
@kibanamachine kibanamachine enabled auto-merge (squash) August 23, 2023 11:19
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Aug 23, 2023
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibanamachine kibanamachine merged commit 267e578 into elastic:8.10 Aug 23, 2023
@kibana-ci
Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #9 / copy to space with security copy to spaces user with no access from the default space single-namespace types "after each" hook for "should return 403 when copying to space without conflicts with references"
  • [job] [logs] FTR Configs #31 / logstash pipeline list route "after all" hook for "shows example pipelines"
  • [job] [logs] FTR Configs #31 / logstash pipeline list route "before each" hook for "toggles selection for all rows"

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
fleet 46 45 -1

Total ESLint disabled count

id before after diff
fleet 57 56 -1

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

cc @hop-dev

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