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]: Dual or incorrect status is shown on performing actions on offline or unhealthy agents. #141890

Closed
amolnater-qasource opened this issue Sep 27, 2022 · 9 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@amolnater-qasource
Copy link

Kibana version: 8.5 BC1 Kibana cloud environment

Host OS: All

Build details:
VERSION: 8.5 BC1
BUILD: 56595
COMMIT: 0d8de4d

Preconditions:

  1. 8.5 BC1 Kibana cloud environment should be available.
  2. Few agents should be available with various status say: Healthy, Unhealthy and Offline

Steps to reproduce:

  1. Install an agent and observe agent in Updating state.
  2. Immediately shutdown the agent VM and observe now agent is in dual state: Updating and Offline under Agent details page.
  3. For another agent in offline state, click unenroll agent button and observe now agent is in dual state: Updating and Offline under Agent details page.
  4. For Unhealthy agent assign it to new policy with other Healthy agents.
  5. Observe Healthy agents in Updating state and Unhealthy agents remained in the same state.

Expected Result:
Correct status Updating should be shown on performing actions on offline or unhealthy agents.

Screen Recording:
If agent VM went offline while getting enrolled:

1.mp4

On Unenrolling offline agent:

2.mp4

On Assigning Unhealthy agent to new Policy:

3.mp4

What's working fine:

  • Working fine for Healthy status.
@amolnater-qasource amolnater-qasource added bug Fixes for quality problems that affect the customer experience impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Fleet Team label for Observability Data Collection Fleet team labels Sep 27, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@amolnater-qasource
Copy link
Author

@manishgupta-qasource Please review.

@manishgupta-qasource
Copy link

Secondary review for this ticket is Done

@jlind23
Copy link
Contributor

jlind23 commented Apr 4, 2023

Related to an old version, closing

@jlind23 jlind23 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
@amolnater-qasource amolnater-qasource added the QA:Ready for Testing Code is merged and ready for QA to validate label Apr 4, 2023
@amolnater-qasource
Copy link
Author

Hi Team,
We have revalidated this issue on latest 8.8.0 SNAPSHOT and found it still reproducible.

Observations:

  • Dual or incorrect status is shown on performing actions on offline or unhealthy agents.

Build details:
VERSION: 8.8.0-SNAPSHOT
BUILD: 61970
COMMIT: 5d5e5d3

Screen Recording:

  • Unenrolling offline agent:
Agents.-.Fleet.-.Elastic.-.Google.Chrome.2023-04-05.10-24-52.mp4

Hence we are re-opening this issue.

Thanks

@amolnater-qasource amolnater-qasource removed the QA:Ready for Testing Code is merged and ready for QA to validate label Apr 5, 2023
@juliaElastic
Copy link
Contributor

The dual status was introduced here, so that is expected: #140621

@amolnater-qasource What do you consider incorrect status?

@amolnater-qasource
Copy link
Author

Hi @juliaElastic

Thank you for confirming the dual status.

Further, for incorrect status:

  • If we trigger unenroll for an offline agent, what should be the status of the agent?
    Currently it shows offline under Agents tab and under Agent details page it shows both Offline and Updating.

In this case, Agent will not get unenrolled without force unenrolling as the agent is offline.
However user might not be able to see it stuck in updating state under Agents tab.

So as per our understanding, on triggering unenroll for an offline agent, status of the agent should update to the Updating state which is the latest state of the agent.
User gets to see the agent stuck in updating for long and then user can force unenroll the stuck agent.

However, as per information under #140621 the priority for Offline agent is higher than Unhealthy or Updating states, so we can close this issue.

Please let us know if we are missing anything.
Thanks!

@juliaElastic
Copy link
Contributor

I think we can close this as expected and change later if we get feedback from users. cc @nchaulet @kpollich

@amolnater-qasource
Copy link
Author

Sure Thank you for the update.

We are closing this issue for now.

Thanks!

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

No branches or pull requests

5 participants