Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions rollastic/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,11 @@ def restart(self, node):
raise Exception("Highstate failed on node=%s%s%s",
node.name, LINESEP, jsondumps(val, indent=2))

''' Start (if not started during highstate) '''
if not nso.service_status('elasticsearch', True):
assert nso.service_start('elasticsearch')
time.sleep(15)

''' Start '''

assert nso.service_start('elasticsearch')
time.sleep(15)

assert nso.wait_for_service_status('elasticsearch', True)

''' Wait until node joins '''
Expand Down