forked from TrueCloudLab/frostfs-testlib
Service restart
Signed-off-by: Vladislav Karakozov <v.karakozov@yadro.com>
This commit is contained in:
parent
469ab4db43
commit
11d65091ad
4 changed files with 24 additions and 4 deletions
|
@ -104,6 +104,14 @@ class Host(ABC):
|
|||
service_name: Name of the service to stop.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def restart_service(self, service_name: str) -> None:
|
||||
"""Restarts the service with specified name and waits until it starts.
|
||||
The service must be hosted on this host.
|
||||
Args:
|
||||
service_name: Name of the service to restart.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def delete_storage_node_data(self, service_name: str, cache_only: bool = False) -> None:
|
||||
"""Erases all data of the storage node with specified name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue