updated start proto to return exception strings, updated grpc start session to exist early when a failure is found, updated coretk ui to not switch ui to running when start fails and display error dialog
This commit is contained in:
parent
5639aeab75
commit
6d68034177
8 changed files with 70 additions and 36 deletions
|
@ -458,7 +458,7 @@ class CoreServices:
|
|||
"""
|
||||
Start all services on a node.
|
||||
|
||||
:param core.netns.vnode.LxcNode node: node to start services on
|
||||
:param core.nodes.base.CoreNode node: node to start services on
|
||||
:return: nothing
|
||||
"""
|
||||
boot_paths = ServiceDependencies(node.services).boot_paths()
|
||||
|
@ -468,7 +468,7 @@ class CoreServices:
|
|||
funcs.append((self._start_boot_paths, args, {}))
|
||||
result, exceptions = utils.threadpool(funcs)
|
||||
if exceptions:
|
||||
raise ServiceBootError(exceptions)
|
||||
raise ServiceBootError(*exceptions)
|
||||
|
||||
def _start_boot_paths(self, node, boot_path):
|
||||
"""
|
||||
|
|
|
@ -8,7 +8,7 @@ from core import constants, utils
|
|||
from core.errors import CoreCommandError
|
||||
from core.nodes import ipaddress
|
||||
from core.nodes.ipaddress import Ipv4Prefix, Ipv6Prefix
|
||||
from core.services.coreservices import CoreService
|
||||
from core.services.coreservices import CoreService, ServiceMode
|
||||
|
||||
|
||||
class UtilService(CoreService):
|
||||
|
@ -173,6 +173,7 @@ class SshService(UtilService):
|
|||
startup = ("sh startsshd.sh",)
|
||||
shutdown = ("killall sshd",)
|
||||
validate = ()
|
||||
validation_mode = ServiceMode.BLOCKING
|
||||
|
||||
@classmethod
|
||||
def generate_config(cls, node, filename):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue