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

[Agent Upgrade]: Agents gets upgraded automatically after user abort the agent upgrade. #473

Closed
ghost opened this issue May 25, 2022 · 7 comments
Labels
bug Something isn't working impact:high Short-term priority; add to current release, or definitely next. QA:Validated Validated by the QA Team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@ghost
Copy link

ghost commented May 25, 2022

Describe the bug:
Agents gets upgraded automatically even after user abort the agent upgrade.

Build Details:
VERSION: 8.3.0-SNAPSHOT
COMMIT: c993ff2a4fa10898d5a6e15aeb1d0848534ae48e
BUILD: 53035
ARTIFACT LINK: https://snapshots.elastic.co/8.3.0-a497a6ef/summary-8.3.0-SNAPSHOT.html

Preconditions:

  1. Elastic 8.3.0-SNAPSHOT environment should be deployed.
  2. 8.2.0 or lower version agents should be installed.

Steps to Reproduce:

  1. Navigate to the Fleet tab under Management.
  2. Now, under Agents tab select the Agents which are available for upgrade.
  3. Click on Action button and select the upgrade version and upgrade schedule and click on upgrade agents.
  4. Now, click on Abort upgrade and wait for 2 minutes.
  5. Observe that agents gets upgraded automatically after user abort the agent upgrade.

Expected Result:
Agents should not get upgraded automatically after user abort the agent upgrade.

Screenshot:
Screenshot (460)
Screenshot (461)
Screenshot (462)
Capture

Logs:
Windows:
Winlogs.zip
MAC:
elastic-agent-diagnostics-2022-05-25T07-09-21Z-00.zip

@ghost ghost added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team impact:high Short-term priority; add to current release, or definitely next. labels May 25, 2022
@ghost
Copy link
Author

ghost commented May 25, 2022

@manishgupta-qasource Please review.

@manishgupta-qasource
Copy link

Secondary review for this ticket is Done

@ghost ghost changed the title [Fleet]: Agents gets upgraded automatically after user abort the agent upgrade. [Agent Upgrade]: Agents gets upgraded automatically after user abort the agent upgrade. May 25, 2022
@joshdover
Copy link
Contributor

@samratbhadra-qasource What options did you use for the scheduling? I'm curious if this may actually be the same bug as elastic/kibana#136022

@ghost
Copy link

ghost commented Jul 12, 2022

Hi @joshdover,

Earlier, we have used 'Immediately' option at Maintenance Window on 'Upgrade Agent' modal.

Further, we have re-investigated it with below scenarios:
Scenario 1: Maintenance Window is selected 'Immediately' on 'Upgrade Agent' modal on selecting more than one Agents

  • Agents get upgraded automatically even after user has aborted the agent upgrade.
    image

Scenario 2: Scheduled Date and Time is set to next available active time slot from the current time on 'Upgrade Agent' modal.

  • Agents get upgraded automatically i.e. within 3-4 minutes though user has aborted the agent upgrade action.
    image

Scenario 3: Maintenance Window is selected '1 hour' on 'Upgrade Agent' modal on selecting more than one Agents

  • Agents did not get upgraded automatically after user aborted the agent upgrade. Found, It working Fine
    image

Build details:

Version: 8.4.0 SNAPSHOT
Build: 54378
Commit: 17a2bcc82856ea7720f684a5f0e2ab0664517401

Logs:
Windows:
logs.zip
elastic-agent-diagnostics-2022-07-12T09-58-01Z-00.zip

Mac:
elastic-agent-diagnostics-2022-07-12T09-48-41Z-00.zip

We will re-validate this ticket once the fixes are available.

Thanks!

@amolnater-qasource
Copy link

Bug Conversion:

We have updated 01 testcase for this scenario in our fleet test suite at:

Thanks

@jlind23
Copy link
Contributor

jlind23 commented May 27, 2024

Closing this as fixed, feel free to reopen it if need be.

@jlind23 jlind23 closed this as completed May 27, 2024
@amolnater-qasource amolnater-qasource added the QA:Ready For Testing Code is merged and ready for QA to validate label May 28, 2024
@harshitgupta-qasource
Copy link

Hi Team,

We have re-validated this issue on the latest 8.14.0 BC5 Kibana cloud environment and found it fixed now.

Observations:

  • Agents doesn't get upgraded automatically after user abort the agent upgrade.

Build details:
VERSION: 8.14.0 BC5
BUILD: 73931
COMMIT: 7ea00b6178d67183a4def9bdd060b062cced043e

Screen-Shot:
image

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

Thanks

@harshitgupta-qasource harshitgupta-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 May 28, 2024
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:high Short-term priority; add to current release, or definitely next. QA:Validated Validated by the QA Team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

5 participants