try:
completion = self.add_stateless_service("mds", spec)
self._orchestrator_wait([completion])
- except ImportError:
+ except (ImportError, orchestrator.NoOrchestrator):
return 0, "", "Volume created successfully (no MDS daemons created)"
except Exception as e:
# Don't let detailed orchestrator exceptions (python backtraces)
try:
completion = self.remove_stateless_service("mds", vol_name)
self._orchestrator_wait([completion])
- except ImportError:
+ except (ImportError, orchestrator.NoOrchestrator):
self.log.warning("No orchestrator, not tearing down MDS daemons")
except Exception as e:
# Don't let detailed orchestrator exceptions (python backtraces)