Description of problem: When a host is removed from the engine (or moved to maintenance) we need to stop collectd/fluentd services so host won't appear anymore in metrics store. We are already doing something similar for gluster and HE services, thus collectd/fluentd should be added to this playbook.
This bug has not been marked as blocker for oVirt 4.3.0. Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.
Why should we stop the services from hosts that are in maintenance? For hosts that are removed from engine, I see that there is a playbook "ovirt-host-remove". Is it run as part of the host removal?
Hi Shirly, 1. Not sure what is the behaviour for other serices, I know we have something similiar with gluster. 2. I am sorry to say I do not know internal implementation of host, maybe martin can help you.
1. Host moving to Maintenance We are currently stopping gluster services before host going to Maintenance because of upgrades (gluster services need to be stopped during upgrade to prevent corruptions): https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/HostMaintenanceCallback.java#L102 At the moment this is implemented as a call to VDSM, but if needed we could introduce ansible playbook being executed just before host status being moved to Maintenance. 2. Removing a host As Lukas mentioned we have a playbook which is executed after removal of a host and currently it's disable hosted engine HA services: https://github.com/oVirt/ovirt-engine/blob/master/packaging/playbooks/ovirt-host-remove.yml So feel free to add add any other services which need to be stopped/disabled.
(In reply to Martin Perina from comment #4) > 1. Host moving to Maintenance > We are currently stopping gluster services before host going to > Maintenance because of upgrades (gluster services need to be stopped during > upgrade to prevent corruptions): > > > https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/ > bll/src/main/java/org/ovirt/engine/core/bll/HostMaintenanceCallback.java#L102 > > At the moment this is implemented as a call to VDSM, but if needed we > could introduce ansible playbook being executed just before host status > being moved to Maintenance. > We would need a playbook before moving to Maintenance but also after moving back from Maintenance... > > 2. Removing a host > As Lukas mentioned we have a playbook which is executed after removal of a > host and currently it's disable hosted engine HA services: > > > https://github.com/oVirt/ovirt-engine/blob/master/packaging/playbooks/ovirt- > host-remove.yml > > So feel free to add add any other services which need to be > stopped/disabled.
Closing this for now, this can be handled by wiping the host and re-use for other purposes or re-installing as a clean host. Please reopen if needed