Once we take down the Mesos agent, if a task with an HTTP executor is running on the node, the executor will immediately attempt to connect to the agent's domain socket, which leads to systemd restarting the agent.
In order to prevent this, it looks like we now need to stop the Mesos agent using:
sudo systemctl stop dcos-mesos-slave.service dcos-mesos-slave.socket
Then, restarting the agent can be accomplished with:
sudo systemctl start dcos-mesos-slave.service dcos-mesos-slave.socket
What changes were proposed in this pull request?
Fix for stopping Mesos agent in tests.
Once we take down the Mesos agent, if a task with an HTTP executor is running on the node, the executor will immediately attempt to connect to the agent's domain socket, which leads to systemd restarting the agent.
In order to prevent this, it looks like we now need to stop the Mesos agent using:
sudo systemctl stop dcos-mesos-slave.service dcos-mesos-slave.socket
Then, restarting the agent can be accomplished with:sudo systemctl start dcos-mesos-slave.service dcos-mesos-slave.socket
Related ticket - D2IQ-69935