Skip to content

[8.19] [Security Soluton][Endpoint] Fix run_sentinelone_host dev script to retry when checking S1 agent status on VM (#227067)#227241

Merged
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-227067
Jul 9, 2025
Merged

[8.19] [Security Soluton][Endpoint] Fix run_sentinelone_host dev script to retry when checking S1 agent status on VM (#227067)#227241
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-227067

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

… retry when checking S1 agent status on VM (elastic#227067)

## Summary

- Add retry attempts when getting a status of the SentinelOne agent
running on the host VM
- It seems that it now takes the S1 a bit of time to start up, which was
causing the command to get its run status to fail (see error below)

Error:

```
│ERROR Error: Command failed with exit code 1: multipass exec ptavares-sentinelone-support-3876 -- sudo /opt/sentinelone/bin/sentinelctl control status
   │      Agent must be running in order to execute this command

```

(cherry picked from commit d7eb4a2)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 9, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 9, 2025 12:55
@kibanamachine kibanamachine merged commit bb982a8 into elastic:8.19 Jul 9, 2025
11 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants