Question #18502
closedPossibility to disable temporary rudder when using deployment tool?
Description
Hello!
We use rudder to ensure some packages (either apt or yum) are installed on servers.
So regularly rudder launch apt-get update and yum update, thus locking the packages database, as expected.
But when we deploy configuration and/or software using deployment tools (in our case, ansible), we use the package manager to install packages, or check the installed version, but when rudder is running just at this moment, it crashes because of locking exclusivity. For example, `Failed to lock apt for exclusive operation`
As the rudder agent is by design hard to disable totally, I want to know if there is possibility to disable it temporarily, or tell him to do not some action (eg: dealing with package) during some time, something we could enable at the start of our deployment, to be sure rudder does not interfere.
As you may understand, crashing a deployment after sometimes 15 to 20min of play, because of such an error, and having to redeploy is frustrating for the team ^^"
Is something like that already possible, or have you an idea for a workaround?
Thanks!
Regards,
Victor Héry
Updated by François ARMAND about 4 years ago
Yes, you can do that: https://docs.rudder.io/reference/6.1/usage/advanced_node_management.html#_disable_the_service_listening_for_remote_run_on_nodes
Sorry, that's not the correct doc ref, if in https://docs.rudder.io/reference/6.1/reference/man.html#_agent => disable
The command is:
rudder agent disable
Don't forget to enable back the agent afterward!
ruddder agent enable
Updated by Victor Héry about 4 years ago
Great thank you for the quick answer!
I always think that disabling the agent like that is not enough, as crontab jobs re-enable it regularly!
I'll give it a try, thanks!
Regards,
Updated by Alexis Mousset about 4 years ago
The agent run will still be trigger but the agent aborts immediately if it's disabled and will not do anything.
Updated by Benoît PECCATTE almost 3 years ago
- Status changed from New to Resolved
As said above con doesn't reenables it when it is disabled with the "rudder agent disable" command.
I'm closing this issue as resolved, please feel free to reopen it if needed.