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

Data is visible with host name under metrics-* index temporarily after upgrade, if fqdn type is set before upgrade. #2693

Closed
amolnater-qasource opened this issue May 15, 2023 · 9 comments
Assignees
Labels
bug Something isn't working impact:low Long-term priority, unless it's a quick fix. QA:Validated Validated by the QA Team Team:Elastic-Agent Label for the Agent team

Comments

@amolnater-qasource
Copy link

amolnater-qasource commented May 15, 2023

Kibana Build details:

VERSION: 8.8 BC3 kibana cloud environment
BUILD: 62994
COMMIT: 85b22d307ab93fca95c1698ede4cb61d85f3d314

Host OS and Browser version: Windows, MAC and Linux, All

Preconditions:

  1. 8.8 BC3 kibana cloud environment should be available.
  2. 8.7.1 Agents should be installed.

Steps to reproduce:

  1. Set FQDN host name type for all the 8.7.1 agents.
  2. Wait for sometime, until only FQDN hostname data is visible.
  3. Upgrade the agents and observe post upgrade, data is visible with host name temporarily under Discover tab.

Expected:
Data should be visible with fqdn type only under metrics-* index after upgrade too, if fqdn type is set before upgrade.

Screen Recording:
7

Agents.-.Fleet.-.Elastic.-.Google.Chrome.2023-05-15.15-30-06.mp4

image

@amolnater-qasource amolnater-qasource added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team impact:low Long-term priority, unless it's a quick fix. labels May 15, 2023
@amolnater-qasource
Copy link
Author

@manishgupta-qasource Please review.

@manishgupta-qasource
Copy link

Secondary review for this ticket is Done

@amolnater-qasource
Copy link
Author

FYI @ycombinator

@ycombinator
Copy link
Contributor

ycombinator commented May 15, 2023

Upgrade the agents and observe post upgrade, data is visible with host name temporarily under Discover tab:

Just to clarify, you mean that post-upgrade, you can see some documents in metrics-* still containing the short hostname (as opposed to the longer FQDN)?

@amolnater-qasource
Copy link
Author

Hi @ycombinator

Thank you for looking into this, yes post-upgrade we observed some entries with metrics-* index.
Please let us know if anything else is required from our end.

Thanks!

@cmacknz
Copy link
Member

cmacknz commented May 17, 2023

@amolnater-qasource does running elastic-agent restart produce the same result? Wondering if the agent restart done as part of the upgrade causes this. There will be a period of time where the agent doesn't have the feature flag configuration from the agent yet, and it could perform writes to Elasticsearch in that period.

@cmacknz cmacknz added Team:Elastic-Agent Label for the Agent team and removed Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels May 17, 2023
@amolnater-qasource
Copy link
Author

Hi @cmacknz

Thank you for looking into this issue.
We have revalidated this issue on latest 8.8 BC5 Kibana cloud environment and found it reproducible with agent restart too.

Observations:

  • Both logs-* and metrics-* are available for the upgraded agents with host name if fqdn type is set.
  • Even on restart logs-* and metrics-* are available for the agents with host name.

Screen Recording:
Post upgrade:

Discover.-.Elastic.-.Google.Chrome.2023-05-18.16-46-55.mp4

On Restart:

Discover.-.Elastic.-.Google.Chrome.2023-05-18.16-47-30.mp4
Discover.-.Elastic.-.Google.Chrome.2023-05-18.16-47-59.mp4

Build details:

VERSION: 8.8.0 BC5 Kibana cloud environment
BUILD: 63092
COMMIT: ba9b182a3422f5e162c1ca74baafb91833eca059

Please let us know if anything else is required from our end.

Thanks!

@jlind23
Copy link
Contributor

jlind23 commented Jun 14, 2023

Closed by elastic/beats#35736

@jlind23 jlind23 closed this as completed Jun 14, 2023
@jlind23 jlind23 added QA:Needs Validation Needs validation by the QA Team QA:Ready For Testing Code is merged and ready for QA to validate and removed QA:Needs Validation Needs validation by the QA Team labels Jun 14, 2023
@amolnater-qasource
Copy link
Author

Hi Team,

We have revalidated this issue on latest 8.9.0 BC2 Kibana cloud environment and found it fixed now.

Observations:

  • Data is visible with fqdn type only under metrics-* index after upgrade too, if fqdn type is set before upgrade.

Screen Recording:

Discover.-.Elastic.-.Google.Chrome.2023-07-06.13-24-48.mp4

Build details:
BUILD: 64459
COMMIT: 6950a2b8207d8388ee8c842d6c0e2b1e1031fd36
Artifact Link: https://staging.elastic.co/8.9.0-826fd88d/downloads/beats/elastic-agent/elastic-agent-8.9.0-windows-x86_64.zip

Hence, we are marking this issue as QA:Validated.

Thanks

@amolnater-qasource amolnater-qasource added QA:Validated Validated by the QA Team and removed QA:Ready For Testing Code is merged and ready for QA to validate labels Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working impact:low Long-term priority, unless it's a quick fix. QA:Validated Validated by the QA Team Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

6 participants