failover kill services #3

Closed
vkarak1 wants to merge 1 commit from vkarak1_failover_kill_services into master
vkarak1 commented 2023-01-18 15:23:17 +00:00 (Migrated from github.com)
No description provided.
abereziny (Migrated from github.com) reviewed 2023-01-18 16:38:31 +00:00
@ -0,0 +32,4 @@
@pytest.mark.failover
@pytest.mark.failover_network
abereziny (Migrated from github.com) commented 2023-01-18 16:38:31 +00:00

failover_network?

failover_network?
abereziny (Migrated from github.com) reviewed 2023-01-18 16:42:23 +00:00
@ -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):
abereziny (Migrated from github.com) commented 2023-01-18 16:42:23 +00:00
We have similar functionality here: https://github.com/TrueCloudLab/frostfs-testcases/blob/6e4558d7920415717246409568add971b146ce1b/pytest_tests/testsuites/network/test_node_management.py#L435,L465
abereziny (Migrated from github.com) reviewed 2023-01-18 16:44:20 +00:00
@ -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:
abereziny (Migrated from github.com) commented 2023-01-18 16:44:19 +00:00
Already in testlib https://github.com/TrueCloudLab/frostfs-testlib/blob/master/src/neofs_testlib/cli/neogo/wallet.py#L149
abereziny (Migrated from github.com) reviewed 2023-01-18 16:46:05 +00:00
@ -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:
abereziny (Migrated from github.com) commented 2023-01-18 16:46:05 +00:00
In a testlib https://github.com/TrueCloudLab/frostfs-testlib/blob/980158ad72180f93d6e7acfc05946faa9feba21c/src/neofs_testlib/cli/neogo/query.py#L44
abereziny (Migrated from github.com) reviewed 2023-01-18 16:47:34 +00:00
@ -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)
abereziny (Migrated from github.com) commented 2023-01-18 16:47:33 +00:00

wait_for_sucess will also work

wait_for_sucess will also work
abereziny (Migrated from github.com) reviewed 2023-01-18 16:50:00 +00:00
@ -0,0 +121,4 @@
return PID
@allure.step("HTTPGate according to the passed node")
def http_gate(self, node: StorageNode) -> HTTPGate:
abereziny (Migrated from github.com) commented 2023-01-18 16:50:00 +00:00

The better approach is to have ClusterNode (physical one)
details in the dm.

The better approach is to have ClusterNode (physical one) details in the dm.

Pull request closed

Sign in to join this conversation.
No description provided.