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

Fix node information send to the cloud for older agent versions #12223

Merged
merged 3 commits into from
Feb 24, 2022

Conversation

stelfrag
Copy link
Collaborator

@stelfrag stelfrag commented Feb 23, 2022

Fixes netdata/netdata-cloud#293

Summary

In a child - parent setup when an child is running a very old agent version it doesn't send information that the
parent running a newer version expects.

If the parent is claimed and connected to the cloud, it will attempt to build a node info payload and it will crash.

This PR adds checks for

  • host cores
  • CPU frequency
  • Total RAM
  • Disk space
  • Virtualization
  • Container
  • Fixes an issue with transmitting the wrong agent version to the cloud for children connecting
Test Plan
  • Setup parent - child
    • Parent should run the latest version
    • Child should run an older version (try v1.19.0)
  • Connect parent to the cloud
    • Notice the parent that crashes
  • Apply the PR and try again

@stelfrag stelfrag marked this pull request as ready for review February 23, 2022 10:46
@stelfrag stelfrag requested review from erdem2000 and odynik and removed request for vkalintiris and thiagoftsm February 23, 2022 10:46
@ktsaou
Copy link
Member

ktsaou commented Feb 23, 2022

Tested this on a setup with older children and it seems working. Does not crash now.

@stelfrag stelfrag merged commit e20af33 into netdata:master Feb 24, 2022
@stelfrag stelfrag deleted the 0fix_node_info branch March 2, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Parent agent ACLK is connected, but cloud says is offline
4 participants