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

[Fleet] Elastic Cloud agent policy configuration change is not persistent #110533

Closed
nimarezainia opened this issue Aug 26, 2021 · 6 comments · Fixed by #116523
Closed

[Fleet] Elastic Cloud agent policy configuration change is not persistent #110533

nimarezainia opened this issue Aug 26, 2021 · 6 comments · Fixed by #116523
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@nimarezainia
Copy link
Contributor

Please post all questions and issues on https://discuss.elastic.co/c/beats
before opening a Github Issue. Your questions will reach a wider audience there,
and if we confirm that there is a bug, then you can open a new issue.

For security vulnerabilities please only send reports to [email protected].
See https://www.elastic.co/community/security for more information.

Please include configurations and logs if available.

For confirmed bugs, please report:

  • Version: 7.14.0
  • Operating System: MacOs 11.4 (using firefox)
  • Discuss Forum URL:
  • Steps to Reproduce:

navigate to fleet-->agent policy --> Elastic Cloud agent policy and select "Agent Monitoring". Save the config. It will show saved.

Attachment

...... then reload the page. Config is not accepted. and not receiving monitoring data either.

Attachment-1

In fact seems like no other config on this page is being saved. Also tried on different browsers with the same effect.

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@mostlyjason
Copy link
Contributor

I was able to reproduce this. If I navigated using links the boxes still showed as clicked. If I did a hard refresh they showed as unchecked. Also, I noticed that the agent policy is out of date and it is not updating. It shows as last activity 5 hours ago. I reported that bug here https://github.com/elastic/obs-dc-team/issues/575.

@nimarezainia is your agent with fleet server getting the policy update?

@mostlyjason
Copy link
Contributor

mostlyjason commented Aug 30, 2021

I created another deployment and I am getting logs and metrics data from fleet server. However, when I hard refresh the policy page it shows as unchecked.

@mostlyjason
Copy link
Contributor

Now the logging is turned off and I haven't received any data for 15 minutes. It appears it collected data only for a minute or two before it turned off again. It seems like there is some kind of race condition issue.

@jen-huang
Copy link
Contributor

jen-huang commented Aug 30, 2021

I believe this is somewhat expected behavior due to changes we made here: #103722

The intent behind this set of changes is to to enable us to modify is_managed agent policy settings on Cloud via kibana.yml between versions (i.e. introduce the new TTL field and values), but the downside is that it prevents the user from editing other settings as we will overwrite them with the values in kibana.yml whenever Fleet setup is triggered.

@mostlyjason I think we should establish some additional business rules for managed policies. The simple take is that managed agent policies cannot be edited at all (and we should update the UI to disable more fields), but I can see a valid case for the user wanting to change the namespace value, at least. I would not extend this to the agent monitoring settings as it seems like we intentionally turned that off for the default Cloud policy. What do you think?

@jen-huang jen-huang transferred this issue from elastic/beats Aug 30, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Aug 30, 2021
@jen-huang jen-huang added the Team:Fleet Team label for Observability Data Collection Fleet team label Aug 30, 2021
@botelastic botelastic bot removed the needs-team Issues missing a team label label Aug 30, 2021
@jen-huang jen-huang added bug Fixes for quality problems that affect the customer experience needs-team Issues missing a team label labels Aug 30, 2021
@botelastic botelastic bot removed the needs-team Issues missing a team label label Aug 30, 2021
@jen-huang jen-huang changed the title [Fleet] Elastic Cloud agent policy configuraton change is not persistent [Fleet] Elastic Cloud agent policy configuration change is not persistent Aug 30, 2021
@mostlyjason
Copy link
Contributor

@jen-huang It looks like #103187 allows for marking fields as frozen, and only accepting changes from kibana.yml when its not frozen. Am I understanding the existing logic correctly? Do you know if the agent monitoring and namespace inputs are marked as frozen? If not, they should not be overridden by kibana.yml?

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 Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants