When gluster packages are going to be upgraded, all gluster processes should be stopped. The existing code worked fine for machines that were 'gluster-servers' because they had each of these type of processes running. Unfortunately, the tasks failed for non-servers because the processes weren't there.
This change doesn't try to stop glusterd if it's not a server, and allows the pkill to fail if it can't find the named processes (which may or may not be there for non-servers).
When gluster packages are going to be upgraded, all gluster processes should be stopped. The existing code worked fine for machines that were 'gluster-servers' because they had each of these type of processes running. Unfortunately, the tasks failed for non-servers because the processes weren't there.
This change doesn't try to stop glusterd if it's not a server, and allows the
pkill
to fail if it can't find the named processes (which may or may not be there for non-servers).Tested against jump-host and free-stg.