Ensure rsyncd PID file is removed during overcloud updates

During an overcloud update it might happen that the rsyncd container
gets killed & restarted, leaving a PID file from rsyncd. rsyncd won't
start because of this, which results in a container restarting loop.

This patch ensures the PID file is absent to fix this.

Closes-Bug: 1734674
Change-Id: Ie5b28005f1079e432cfca6c31d28295174e06986
(cherry picked from commit 570c957412)
This commit is contained in:
Christian Schwede 2017-11-27 14:02:42 +00:00
parent 0c569d5a0b
commit ff8122ec46
1 changed files with 5 additions and 0 deletions

View File

@ -515,3 +515,8 @@ outputs:
- name: Restart xinetd service after rsync removal
tags: step2
service: name=xinetd state=restarted
update_tasks:
- name: Ensure rsyncd pid file is absent
file:
path: /var/run/rsyncd.pid
state: absent