diff options
| -rw-r--r-- | nova/volume/driver.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/volume/driver.py b/nova/volume/driver.py index 86161d068..606b5b507 100644 --- a/nova/volume/driver.py +++ b/nova/volume/driver.py @@ -537,8 +537,11 @@ class SheepdogDriver(VolumeDriver): def check_for_setup_error(self): """Returns an error if prerequisites aren't met""" try: + #NOTE(francois-charlier) Since 0.24 'collie cluster info -r' + # gives short output, but for compatibility reason we won't + # use it and just check if 'running' is in the output. (out, err) = self._execute('collie', 'cluster', 'info') - if not out.startswith('running'): + if not 'running' in out.split(): raise exception.Error(_("Sheepdog is not working: %s") % out) except exception.ProcessExecutionError: raise exception.Error(_("Sheepdog is not working")) |
