-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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]: Status not updated for Remote Elasticsearch cluster when set to default and agent is connected. #177927
Comments
Pinging @elastic/fleet (Team:Fleet) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
…ault (#178857) ## Summary Closes #177927 Replaced "default" with real output id in full agent policy. This fixes the issue that the remote es health reporting was incorrect if the output was set as default. More explanation on the bug: #177927 (comment) To verify: - create a remote es output and set as default (both data and monitoring) - create an agent policy that uses default output - enroll an agent - expect that the agent sends system and elastic-agent metrics/logs to remote es - verify that the remote es health badge shows up on UI <img width="1283" alt="image" src="https://github.com/elastic/kibana/assets/90178898/348406d4-69e6-4eda-b396-635771d1edf3"> <img width="695" alt="image" src="https://github.com/elastic/kibana/assets/90178898/cd03310c-d50d-42ea-8f28-136bf068c52d"> ### 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
…arch type (#179218) ## Summary Related to #178857 and #177927 It seems that using output id instead of "default" in full agent policy had a higher impact than expected. There are a few places where agent relies on the name "default". ([This](elastic/elastic-agent#4454) and [this](elastic/elastic-agent#4453) pr) Because of this, doing a partial revert, to keep using "default" for elasticsearch output type to avoid breaking change. However, for other types, using the output id. This will fix the original issue of remote output health reporting. I think it is a rarely used feature to use a non-elasticsearch output as default, so it shouldn't have a big impact to not use "default" output name for those. To verify: - create a remote es output and set as default (both data and monitoring) - create an agent policy that uses default output - enroll an agent - expect that the agent sends system and elastic-agent metrics/logs to remote es - verify that the remote es health badge shows up on UI - set elasticsearch output back as default - verify that the agent policy has it as "default" in outputs section <img width="704" alt="image" src="https://github.com/elastic/kibana/assets/90178898/ab46b00d-efc2-49e1-ad7f-9acd44b2a9e5"> <img width="1251" alt="image" src="https://github.com/elastic/kibana/assets/90178898/a07c0d78-9126-43d9-bd0e-a4df193d7e78"> <img width="1791" alt="image" src="https://github.com/elastic/kibana/assets/90178898/868a054b-2cae-42f3-8f60-f2bff3b29efd"> <img width="715" alt="image" src="https://github.com/elastic/kibana/assets/90178898/721cd809-5f97-47e5-bf99-19f542d8ff83"> ### 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
We have revalidated this issue on latest 8.13.0 BC7 kibana cloud environment and had below observations: Observations:
Steps:
Screen Recording: Agents.-.Fleet.-.Elastic.-.Google.Chrome.2024-03-26.13-12-33.mp4Logs: elastic-agent-diagnostics-2024-03-26T07-53-36Z-00.zip Build details: Hence, we are reopening this issue. Further we have shared the build details with you over slack. Thanks!! |
Sorry, the fix was not backported to 8.13, so that's why it is reproducible. I'll backport it now, but it won't make it to 8.13.0 as the last BC is built. We can include in 8.13.1. |
…arch type (elastic#179218) ## Summary Related to elastic#178857 and elastic#177927 It seems that using output id instead of "default" in full agent policy had a higher impact than expected. There are a few places where agent relies on the name "default". ([This](elastic/elastic-agent#4454) and [this](elastic/elastic-agent#4453) pr) Because of this, doing a partial revert, to keep using "default" for elasticsearch output type to avoid breaking change. However, for other types, using the output id. This will fix the original issue of remote output health reporting. I think it is a rarely used feature to use a non-elasticsearch output as default, so it shouldn't have a big impact to not use "default" output name for those. To verify: - create a remote es output and set as default (both data and monitoring) - create an agent policy that uses default output - enroll an agent - expect that the agent sends system and elastic-agent metrics/logs to remote es - verify that the remote es health badge shows up on UI - set elasticsearch output back as default - verify that the agent policy has it as "default" in outputs section <img width="704" alt="image" src="https://github.com/elastic/kibana/assets/90178898/ab46b00d-efc2-49e1-ad7f-9acd44b2a9e5"> <img width="1251" alt="image" src="https://github.com/elastic/kibana/assets/90178898/a07c0d78-9126-43d9-bd0e-a4df193d7e78"> <img width="1791" alt="image" src="https://github.com/elastic/kibana/assets/90178898/868a054b-2cae-42f3-8f60-f2bff3b29efd"> <img width="715" alt="image" src="https://github.com/elastic/kibana/assets/90178898/721cd809-5f97-47e5-bf99-19f542d8ff83"> ### 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
Thank you for looking into this @juliaElastic
We have created the Token in remote cluster only However, the issue is only reproducible for the first time(inconsistent) and whenever we retry after that, it always sends the data. Further, thanks for backporting, we will retest the status issue once 8.13.1 is available. Thanks! |
Hi Team, We have revalidated this issue on latest 8.14.0 SNAPSHOT and found this issue fixed now. Observations:
Build details: Hence, we are closing and marking this issue as QA:Validated. |
Kibana Build details:
Host OS: All
Preconditions:
Steps to reproduce:
Screen Recording:
Agents.-.Fleet.-.Elastic.-.Google.Chrome.2024-03-04.17-33-15.mp4
Expected Result:
Status should get updated for Remote Elasticsearch cluster when set to default and agent should send data to the remote cluster when set to Default.
The text was updated successfully, but these errors were encountered: