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

No activity logs are displayed on installing agent on upgraded 7.10.0 BC2 cloud environment with 7.9.2 BC2 policy #81159

Closed
ghost opened this issue Oct 16, 2020 · 13 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0

Comments

@ghost
Copy link

ghost commented Oct 16, 2020

Kibana version:
Kibana: Upgraded 7.10.0 Kibana BC2 cloud environment with commit f1c0bdd

Elasticsearch version:
Elasticsearch: Upgraded 7.10.0 BC2 cloud environment

Host OS and Browser version:
Windows , All

Original install method (e.g. download page, yum, from source, etc.):
7.9.2 Kibana BC2 cloud environment upgrade to 7.10.0 Kibana BC2 cloud environment from https://staging.found.no

Description
No activity logs are displayed on installing agent on upgraded 7.10.0 BC2 cloud environment with 7.9.2 BC2 policy

Preconditions

  1. 7.9.2 BC2 cloud environment should be available.
  2. Login into the above Kibana environment with 'elastic' superuser.
  3. Agent configuration with name 'Rahul' and 'Rahul' should be created under "Configurations" tab in 7.9.2 BC2 Kibana cloud environment
  4. 7.10.0 BC2 agent download from location on Host:
    https://staging.elastic.co/7.10.0-174bd372/downloads/beats/elastic-agent/elastic-agent-7.10.0-windows-x86_64.zip

Steps to Reproduce

  1. Upgrade 7.9.2 BC2 cloud environment to 7.10.0 BC2 Kibana cloud environment
  2. Click on "Fleet" link from L.H.S menu section and navigate to "Fleet" page.
  3. Navigate to Policies tab
  4. Install agent with ./elastic-agent install on Host using prerequisite 'Rahul' policy enrollment token.
  5. Observe that no activity logs are displayed for above host under Agents->Host in Kibana.

Test data
N/A

Impacted Test case id
https://elastic.testrail.io/index.php?/cases/view/34209

Actual Result
No activity logs are displayed on installing agent on upgraded 7.10.0 BC2 Kibana cloud environment with 7.9.2 BC2 policy

Expected Result
Agent activity logs should be displayed on installing agent on upgraded 7.10.0 BC2 Kibana cloud environment with 7.9.2 BC2 policy

What's working

  • Agent is in Online status

What's not working

  • N/A

Screenshot
no_activity_logs_after_upgrade

Logs
elastic-agent logs.zip

@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@ghost
Copy link
Author

ghost commented Oct 16, 2020

@vipulsrivastava-qasource Please review the bug

@ghost ghost assigned ghost and EricDavisX and unassigned ghost Oct 16, 2020
@ghost
Copy link

ghost commented Oct 16, 2020

Reviewed and Assigned @EricDavisX

@EricDavisX EricDavisX assigned nchaulet and unassigned EricDavisX Oct 19, 2020
@EricDavisX
Copy link
Contributor

@rahulgupta-qasource can you do an adjacent tests to give us more data on this please:

  • if you create a new policy in 7.10 after upgrading does it work as expected on a similar host?

@nchaulet hi - any reason we can think of why 7.9 enrollment tokens would not work after upgrading the env to 7.10 and installing on a new agent? I think during a Beta we could get away with it... but for production use folks will def expect to be able to upgrade and continue to deploy with same policy / tokens right?

@nchaulet
Copy link
Member

Normally 7.9 enrollment tokens should works in 7.10, looks like there is no POLICY distributed to the agent here I am investigating and able to have a repro locally

@nchaulet
Copy link
Member

@EricDavisX
Copy link
Contributor

ok thanks. i'm moving this to Kibana repo then. cheers, and thanks for the quick fix.

@EricDavisX EricDavisX transferred this issue from elastic/beats Oct 20, 2020
@EricDavisX EricDavisX added bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 labels Oct 20, 2020
@EricDavisX
Copy link
Contributor

Nicolas notes it is fixed by:
[Fleet] Fix creation of POLICY_CHANGE action during 7.9 => 7.10 migration
#81041

@ghost
Copy link
Author

ghost commented Oct 21, 2020

Hi Eric

On creating a new policy(say Rahul_new) on upgraded 7.10.0 BC2 build(upgrade from 7.9.2 BC2 to 7.10.0 BC2) and installing agent with ./elastic-agent install on Host using new 'Rahul_new' policy enrollment token.

Observation:
we observed that only POLICY CHANGE acknowledged activity logs are displayed.

Screenshot:
activity_logs

Elastic -agent logs:
elastic-agent logs.zip

Please let us know if anything is missing from our end.

@EricDavisX
Copy link
Contributor

the fix is merged, but not built into a BC yet. It went in to 7.10 line yesterday (Tuesday) at 4:40 PM
#81229

The 7.10 builds are here: https://internal-ci.elastic.co/view/Unified%20Release%20-%20snapshot/job/elastic+unified-release+master+snapshot-build-7.10/

As far as BC3 or beyond goes, we will hear when it arrives, it may not be in that BC either, so we may have to wait.

@EricDavisX
Copy link
Contributor

BC3 is out @rahulgupta-qasource it would be ok to try this out, would be nice to close it if we can. I never heard or checked if it made it in for sure tho, sorry.

@ghost
Copy link
Author

ghost commented Oct 26, 2020

Hi @EricDavisX

We have validated the above scenario after upgrade from 7.9.2 BC2 to 7.10.0 BC3 Kibana cloud environment(with commit ed66f41) and 7.10.0 BC3 elastic-agent downloaded from below location: https://staging.elastic.co/7.10.0-aea04452/downloads/beats/elastic-agent/elastic-agent-7.10.0-windows-x86_64.zip

Observed that :

  1. Activity logs are successfully displayed after installing agent on host with prerequisite 7.9 'Rahul' policy enrollment token.
    Screenshot:
    7_9_2_BC2_policy

  2. Activity logs are successfully displayed after installing agent on host with new policy created on upgraded 7.10.0 BC3 Kibana cloud environment
    Screenshot:
    7_10_new_policy

Hence, closing the ticket.

@ghost ghost closed this as completed Oct 26, 2020
@ghost
Copy link
Author

ghost commented Nov 25, 2020

Bug Conversion:

Created 01 Testcase for this ticket:
https://elastic.testrail.io/index.php?/cases/view/35145

This issue was closed.
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 impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0
Projects
None yet
Development

No branches or pull requests

3 participants