-
Notifications
You must be signed in to change notification settings - Fork 10
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
activation-manager errors and spammage #6
Comments
Although the entire log is not visible, it seems that, due to some network restriction, the activation-manager container could not instal curl and jq and therefore it cannot continue normally. |
ah, changing https to http - let it run through its termination with reported "success" in your deactivation script curl -H "apikey: $APIKEY" -X POST "https://localhost:$REST_PORT/admin/license/deactivation" |
changed your startup script to the following, and that works on our system k8s 1.20 (eks)
|
also this whole approach seems prone to error, since you dont really know what kubernetes will kill when a pod is recycled/killed. i would recommend looking into lifecycle hooks https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/ |
Actually our initial approach was with lifecycle hooks but we noticed that the "PreStop" hook did not meet all requirements for proper deactivation. For example, the hook would not fire when manually restarting or scaling a deployment, which would leave unused deployment ids still activated. We'll continue to improve the activation/deactivation logic until we have a "metering" based license system which will make this process unnecessary . |
oh alright, yeah that would be an issue, odd k8s doesn't handle this case... |
Hello, is there any progress on the metering type of licensing or does this sidecar work properly now? We have very big production issues when licenses get deactivated and files not processed. |
I've checked with the dev team for the metering feature and it's not going to be released soon. As a result, we've refactored the activation manager container and published a dedicated image that can be imported and used offline if needed. The changes are available in the latest release. |
I wrote my own license manager which monitors the state of the licenses on all cores and automatically deactivates / activates them. Not sure how we were able to use metadefender in production for so long. Looks like we were just lucky that the pods were not created on different nodes regularly. I am not sure if I will be ever able to release it because its not my private project but done during company time. The principle is basic, use the API to check license, upload license. Use the opswat api to deactivate and activate license/download license file. Didnt take too long to implement and it just runs as pod beside our deployment. |
the setup works and deploys succesfully - however the activationmanager seems to have an issue with your script
The text was updated successfully, but these errors were encountered: