sbcli-dev 3.8.73__zip → 3.8.75__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/PKG-INFO +1 -1
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/env_var +1 -1
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/device_controller.py +3 -2
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/rpc_client.py +3 -1
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/health_check_service.py +43 -3
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/storage_node_ops.py +9 -3
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/README.md +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/pyproject.toml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/setup.cfg +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/setup.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/distr_event_collector.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/app.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_web/utils.py +0 -0
|
@@ -782,9 +782,10 @@ def remove_jm_device(device_id, force=False):
|
|
|
782
782
|
# if snode.jm_device.testing_bdev:
|
|
783
783
|
# ret = rpc_client.bdev_passtest_delete(snode.jm_device.testing_bdev)
|
|
784
784
|
|
|
785
|
-
if len(snode.jm_device.jm_nvme_bdev_list) == 2:
|
|
786
|
-
|
|
785
|
+
# if len(snode.jm_device.jm_nvme_bdev_list) == 2:
|
|
786
|
+
ret = rpc_client.bdev_raid_delete(snode.jm_device.raid_bdev)
|
|
787
787
|
|
|
788
|
+
set_jm_device_state(snode.jm_device.get_id(), JMDevice.STATUS_REMOVED)
|
|
788
789
|
return True
|
|
789
790
|
|
|
790
791
|
|
|
@@ -26,6 +26,7 @@ class RPCException(Exception):
|
|
|
26
26
|
class RPCClient:
|
|
27
27
|
|
|
28
28
|
# ref: https://spdk.io/doc/jsonrpc.html
|
|
29
|
+
DEFAULT_ALLOWED_METHODS = ["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "TRACE", "POST"]
|
|
29
30
|
|
|
30
31
|
def __init__(self, ip_address, port, username, password, timeout=60, retry=3):
|
|
31
32
|
self.ip_address = ip_address
|
|
@@ -37,7 +38,8 @@ class RPCClient:
|
|
|
37
38
|
self.session = requests.session()
|
|
38
39
|
self.session.auth = (self.username, self.password)
|
|
39
40
|
self.session.verify = False
|
|
40
|
-
retries = Retry(total=retry, backoff_factor=1, connect=retry, read=retry
|
|
41
|
+
retries = Retry(total=retry, backoff_factor=1, connect=retry, read=retry,
|
|
42
|
+
allowed_methods=self.DEFAULT_ALLOWED_METHODS)
|
|
41
43
|
self.session.mount("http://", HTTPAdapter(max_retries=retries))
|
|
42
44
|
self.session.timeout = self.timeout
|
|
43
45
|
|
|
@@ -6,8 +6,7 @@ from datetime import datetime
|
|
|
6
6
|
from simplyblock_core.controllers import health_controller, storage_events, device_events
|
|
7
7
|
from simplyblock_core.models.storage_node import StorageNode
|
|
8
8
|
from simplyblock_core.rpc_client import RPCClient
|
|
9
|
-
from simplyblock_core import constants, kv_store, utils
|
|
10
|
-
|
|
9
|
+
from simplyblock_core import constants, kv_store, utils, distr_controller
|
|
11
10
|
|
|
12
11
|
logger = utils.get_logger(__name__)
|
|
13
12
|
|
|
@@ -136,7 +135,48 @@ while True:
|
|
|
136
135
|
logger.info(f"Checking bdev: {remote_device.remote_bdev} ... not found")
|
|
137
136
|
node_remote_devices_check &= bool(ret)
|
|
138
137
|
|
|
139
|
-
|
|
138
|
+
lvstore_check = True
|
|
139
|
+
if snode.lvstore and snode.lvstore_stack:
|
|
140
|
+
distribs_list = []
|
|
141
|
+
for bdev in snode.lvstore_stack:
|
|
142
|
+
type = bdev['type']
|
|
143
|
+
if type == "bdev_raid":
|
|
144
|
+
distribs_list = bdev["distribs_list"]
|
|
145
|
+
|
|
146
|
+
for distr in distribs_list:
|
|
147
|
+
ret = rpc_client.get_bdevs(distr)
|
|
148
|
+
if ret:
|
|
149
|
+
logger.info(f"Checking distr bdev : {distr} ... ok")
|
|
150
|
+
logger.info("Checking Distr map ...")
|
|
151
|
+
ret = rpc_client.distr_get_cluster_map(distr)
|
|
152
|
+
if not ret:
|
|
153
|
+
logger.error("Failed to get cluster map")
|
|
154
|
+
lvstore_check = False
|
|
155
|
+
else:
|
|
156
|
+
results, is_passed = distr_controller.parse_distr_cluster_map(ret)
|
|
157
|
+
if results:
|
|
158
|
+
logger.info(utils.print_table(results))
|
|
159
|
+
logger.info(f"Checking Distr map ... {is_passed}")
|
|
160
|
+
else:
|
|
161
|
+
logger.error("Failed to parse distr cluster map")
|
|
162
|
+
lvstore_check &= is_passed
|
|
163
|
+
else:
|
|
164
|
+
logger.info(f"Checking distr bdev : {distr} ... not found")
|
|
165
|
+
lvstore_check = False
|
|
166
|
+
ret = rpc_client.get_bdevs(snode.raid)
|
|
167
|
+
if ret:
|
|
168
|
+
logger.info(f"Checking raid bdev: {snode.raid} ... ok")
|
|
169
|
+
else:
|
|
170
|
+
logger.info(f"Checking raid bdev: {snode.raid} ... not found")
|
|
171
|
+
lvstore_check = False
|
|
172
|
+
ret = rpc_client.bdev_lvol_get_lvstores(snode.lvstore)
|
|
173
|
+
if ret:
|
|
174
|
+
logger.info(f"Checking lvstore: {snode.lvstore} ... ok")
|
|
175
|
+
else:
|
|
176
|
+
logger.info(f"Checking lvstore: {snode.lvstore} ... not found")
|
|
177
|
+
lvstore_check = False
|
|
178
|
+
|
|
179
|
+
health_check_status = is_node_online and node_devices_check and node_remote_devices_check and lvstore_check
|
|
140
180
|
set_node_health_check(snode, health_check_status)
|
|
141
181
|
|
|
142
182
|
time.sleep(constants.HEALTH_CHECK_INTERVAL_SEC)
|
|
@@ -831,8 +831,11 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
831
831
|
timeout = 60
|
|
832
832
|
if spdk_image:
|
|
833
833
|
timeout = 5 * 60
|
|
834
|
-
snode_api = SNodeClient(node_ip, timeout=timeout)
|
|
834
|
+
snode_api = SNodeClient(node_ip, timeout=timeout, retry=10)
|
|
835
835
|
node_info, _ = snode_api.info()
|
|
836
|
+
if not node_info:
|
|
837
|
+
logger.error("SNode API is not reachable")
|
|
838
|
+
return False
|
|
836
839
|
logger.info(f"Node found: {node_info['hostname']}")
|
|
837
840
|
# if "cluster_id" in node_info and node_info['cluster_id']:
|
|
838
841
|
# if node_info['cluster_id'] != cluster_id:
|
|
@@ -965,8 +968,11 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
965
968
|
rpc_user = "rpc_username"
|
|
966
969
|
rpc_pass = "rpc_password"
|
|
967
970
|
mgmt_ip = node_info['network_interface'][iface_name]['ip']
|
|
968
|
-
if
|
|
969
|
-
|
|
971
|
+
if not spdk_image:
|
|
972
|
+
if enable_ha_jm:
|
|
973
|
+
spdk_image = constants.SIMPLY_BLOCK_SPDK_ULTRA_IMAGE_JM
|
|
974
|
+
else:
|
|
975
|
+
spdk_image = constants.SIMPLY_BLOCK_SPDK_ULTRA_IMAGE
|
|
970
976
|
|
|
971
977
|
logger.info("Deploying SPDK")
|
|
972
978
|
results = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/controllers/caching_node_controller.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/clean_local_storage_deploy.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/dashboards/node-exporter.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/capacity_and_stats_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/main_distr_event_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.73 → sbcli_dev-3.8.75}/simplyblock_core/services/tasks_runner_new_dev_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|