-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
agent: hostmanagerbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestneeds triageCause of bug still unknown, needs investigation.Cause of bug still unknown, needs investigation.
Description
Probably more of a feature request than a bug, but we should add the --remove-orphans flag to the HostManager's docker-compose command. This'll remove old containers automatically in the rare instances that a service is renamed.
I think this just needs to be added here:
ocs/ocs/agents/host_manager/drivers.py
Lines 325 to 330 in da25bd8
| def up(self): | |
| self.d = _run_docker_compose( | |
| ['-f', self.service['compose_file'], | |
| 'up', '-d', self.service['service']], | |
| docker_compose_bin=self.docker_compose_bin) | |
| self.status = None, time.time() |
For some context, we ran into this on site twice somewhat recently, once we were careful to bring down the service before deploying the new one and bringing the new agent up, the other we weren't as careful, and the old copy of the Agent prevented the new one from working properly.
Metadata
Metadata
Assignees
Labels
agent: hostmanagerbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestneeds triageCause of bug still unknown, needs investigation.Cause of bug still unknown, needs investigation.