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

[SMAGENT-2075] installer removes older sysdig-probes before loading newly built probe #1558

Merged
merged 3 commits into from
Dec 9, 2019

Conversation

scott-greenberg-sysdig
Copy link
Contributor

Added modprobe line to load newly built probe in sysdig install script

@@ -196,3 +196,5 @@ elif [ -f /etc/system-release-cpe ]; then
else
unsupported
fi

modprobe -r _COMPONENT__probe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your description says you're loading a module. man modprobe says:

-r, --remove
        This option causes modprobe to remove rather than insert a module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has been changed to remove -r flag in latest commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverting change; the reason why we have the -r flag is because sysdig automatically loads the newest probe, but in a situation where we are upgrading from a previous sysdig version the newer probe cannot be loaded because the older ver. probe is already loaded and has the same name as the newer probe module. This change ensures this won't happen.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the probe get unloaded when you exit an instance of sysdig?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@speedyguy17 no, it stays loaded.

@scott-greenberg-sysdig scott-greenberg-sysdig changed the title install script now loads latest built probe at tend of script [SMAGENT-2075] install script now loads latest built probe at end of script Dec 9, 2019
@scott-greenberg-sysdig
Copy link
Contributor Author

This has now been tested

@scott-greenberg-sysdig scott-greenberg-sysdig changed the title [SMAGENT-2075] install script now loads latest built probe at end of script [SMAGENT-2075] installer removes older sysdig-probes before loading newly built probe Dec 9, 2019
@scott-greenberg-sysdig scott-greenberg-sysdig merged commit 7f95124 into dev Dec 9, 2019
@scott-greenberg-sysdig scott-greenberg-sysdig deleted the SMAGENT-2075 branch December 10, 2019 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants