failover kill services #3
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-testcases#3
Loading…
Reference in a new issue
No description provided.
Delete branch "vkarak1_failover_kill_services"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +32,4 @@
@pytest.mark.failover
@pytest.mark.failover_network
failover_network?
@ -0,0 +56,4 @@
return shell.exec(f"sudo systemctl is-active {service}").stdout.rstrip()
@allure.step("Run health check to node")
def health_check(self, node: StorageNode):
We have similar functionality here:
6e4558d792/pytest_tests/testsuites/network/test_node_management.py (L435)
,L465@ -0,0 +69,4 @@
), f"Service {service}: expected status= {status}, real status {real_status}"
@allure.step("Run neo-go dump-keys")
def neo_go_dump_keys(self, shell: Shell, node: StorageNode) -> dict:
Already in testlib
https://github.com/TrueCloudLab/frostfs-testlib/blob/master/src/neofs_testlib/cli/neogo/wallet.py#L149
@ -0,0 +85,4 @@
return {address_id: wallet_key}
@allure.step("Run neo-go query height")
def neo_go_query_height(self, shell: Shell, node: StorageNode) -> dict:
In a testlib
980158ad72/src/neofs_testlib/cli/neogo/query.py (L44)
@ -0,0 +112,4 @@
@allure.step("Return pid by service name")
# retry mechanism cause when the task has been started recently '0' PID could be returned
@retry(wait=wait_fixed(10), stop=stop_after_attempt(5), reraise=True)
wait_for_sucess will also work
@ -0,0 +121,4 @@
return PID
@allure.step("HTTPGate according to the passed node")
def http_gate(self, node: StorageNode) -> HTTPGate:
The better approach is to have ClusterNode (physical one)
details in the dm.
Pull request closed