JohnStrunk / oso-gluster-ansible

Ansible for configuring Gluster to back OpenShift.io
Apache License 2.0
0 stars 4 forks source link

Make stopping of gluster work for non-servers, too #56

Closed JohnStrunk closed 6 years ago

JohnStrunk commented 6 years ago

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.