-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet #22485
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@vipulsrivastava-qasource Please review the bug. |
Reviewed and Assigned to @EricDavisX |
There is a lot to unpack in the steps there, but it boils down to a fairly simple case and is one we intend to support (and which works for .rpm usage as reported). I suspect it is due to the version of or relating files on that instance of Debian 9, as a first guess. If we don't have it, I figure it would be good to confirm that the stand-alone Agent can be rebooted and that persistence is ok, before 'enrolling' the Agent which I think should largely be unrelated. If we need to get specifics of file confirmations or logs, can you help confirm exactly where or which ones to pull please? Also, @rahulgupta-qasource if you had a different instance of .deb usage to confirm against, so we can know if it is all .deb or just this OS version. |
I don't know if we want to adjust the impact label from high, until we know more. @ph fyi. @blakerouse if you have time to review. |
I am confused by this issue, If I understand it correctly the story starts with standalone mode and than switch to fleet? |
Like I've said on slack, lets have a look on the debian 9. But the error related to "freedesktop" makes me think that the os installation is broken. |
the above PR should fix this - we are expecting backports for 7.10.1 (not for 7.10.0 initial release). |
Hi @EricDavisX , We have re-validated this issue on 8.0 snapshot kibana environment and found that issue is Not-Fixed and still reproducible.
Observation: While enrolling a standalone agent to fleet, we observed same issues mentioned at Steps 10-12 in defect description. Please refer below screenshot for details: Hence, we are reopening this issue. |
Hi @EricDavisX , We have performed the system reboot scenario on Linux deb standalone agent as per your request and below is our observation: Agent hash: https://snapshots.elastic.co/8.0.0-432f821f/downloads/beats/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-amd64.deb Steps followed:
Also, executed the below command to verify the status of agent :-
Observation:
|
Fixed by #22593 |
Kibana version:
Kibana: 7.10.0 BC5 cloud environment
Elasticsearch version:
Elasticsearch: 7.10.0 BC5 cloud environment
Host OS and Browser version:
Linux Debian 9 , All
Original install method (e.g. download page, yum, from source, etc.):
7.10.0 BC5 cloud environment from https://cloud.elastic.co
Description
Agent goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet
Preconditions
https://staging.elastic.co/7.10.0-b55684ff/downloads/beats/elastic-agent/elastic-agent-7.10.0-amd64.deb
Steps to Reproduce
Download the "elastic-agent-7.10.0-amd64.deb" package.
SSH to the endpoint and place the agent package on /home/zeus location on Debian 9 Linux machine.
Hit the command to get the root/admin permission: sudo su root
Run the command: sudo dpkg -i elastic-agent-7.10.0-amd64.deb
Download elastic-agent.yml from Add agent ->Standalone mode on Agents tab in Kibana and add Kibana login username and password in outputs section of elastic-agent.yml (Modify ES_USERNAME and ES_PASSWORD in the outputs section of elastic-agent.yml to use your Elasticsearch credentials)
elastic-agent_yml.zip
Copy elastic-agent.yml file to /home/zeus on Linux Debian 9 machine
Then execute: sudo cp /home/zeus/elastic-agent.yml /etc/elastic-agent/elastic-agent.yml
Run the following commands to run the standalone agent :-
elastic-agent run
Execute the enroll command :-
sudo elastic-agent enroll https://d9dc24b9e27749e8af99cb8d590ca97f.europe-west1.gcp.cloud.es.io:9243 Y1RKaHJIVUJHcXBIMWZsU1dLTEI6cEtfakhXVTJScUctUmJhUENiRFlZQQ==
Execute the below command to enable the agent :-
systemctl enable elastic-agent
and observe that error is displayed in putty :-
systemctl start elastic-agent
and observe that following error is displayed in putty but agent comes in Online status and activity logs are displayed :-
Test data
N/A
Impacted Test case id
https://elastic.testrail.io/index.php?/cases/view/34373
Actual Result
Agent goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet
Expected Result
Agent should remain in Online status on reboot of Linux deb stand-alone agent enroll to Fleet
What's working
What's not working
Screenshot
Errors in putty on enabling and starting the agent:
Agent in Online status with activity logs on executing agent start command(before reboot):
Agent in Offline status after reboot:
Linux Debian 9 machine VSphere Template:
Logs
N/A
The text was updated successfully, but these errors were encountered: