sbcli-dev 14.0.76__tar.gz → 14.0.78__tar.gz
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-14.0.76 → sbcli_dev-14.0.78}/PKG-INFO +1 -1
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/cluster_ops.py +1 -1
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/health_controller.py +1 -18
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/env_var +1 -1
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/storage_node_monitor.py +0 -2
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/storage_node_ops.py +22 -21
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/README.md +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/pyproject.toml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/requirements.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/setup.cfg +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/setup.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_cli/clibase.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/controllers/tcp_ports_events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/spdk/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/spdk/client.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/spdk_stats_collector.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/README.md +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/app.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/utils.py +0 -0
|
@@ -164,7 +164,7 @@ def create_cluster(blk_size, page_size_in_blocks, cli_pass,
|
|
|
164
164
|
ret = scripts.set_db_config(db_connection)
|
|
165
165
|
|
|
166
166
|
logger.info("Configuring docker swarm...")
|
|
167
|
-
c = docker.DockerClient(base_url=
|
|
167
|
+
c = docker.DockerClient(base_url="unix://var/run/docker.sock", version="auto")
|
|
168
168
|
try:
|
|
169
169
|
if c.swarm.attrs and "ID" in c.swarm.attrs:
|
|
170
170
|
logger.info("Docker swarm found, leaving swarm now")
|
|
@@ -51,19 +51,6 @@ def check_cluster(cluster_id):
|
|
|
51
51
|
return result
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
def _check_node_docker_api(ip):
|
|
55
|
-
return True
|
|
56
|
-
# try:
|
|
57
|
-
# node_docker = docker.DockerClient(base_url=f"tcp://{ip}:2375", version="auto", timeout=3)
|
|
58
|
-
# ret = node_docker.info()
|
|
59
|
-
# if ret:
|
|
60
|
-
# logger.debug(ret)
|
|
61
|
-
# return True
|
|
62
|
-
# except Exception as e:
|
|
63
|
-
# logger.error(f"Failed to connect to node's docker: {e}")
|
|
64
|
-
# return False
|
|
65
|
-
|
|
66
|
-
|
|
67
54
|
def _check_node_rpc(rpc_ip, rpc_port, rpc_username, rpc_password, timeout=3, retry=2):
|
|
68
55
|
try:
|
|
69
56
|
rpc_client = RPCClient(
|
|
@@ -242,10 +229,6 @@ def check_node(node_id, with_devices=True):
|
|
|
242
229
|
snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password)
|
|
243
230
|
logger.info(f"Check: node RPC {snode.mgmt_ip}:{snode.rpc_port} ... {node_rpc_check}")
|
|
244
231
|
|
|
245
|
-
# 4- docker API
|
|
246
|
-
node_docker_check = _check_node_docker_api(snode.mgmt_ip)
|
|
247
|
-
logger.info(f"Check: node docker API {snode.mgmt_ip}:2375 ... {node_docker_check}")
|
|
248
|
-
|
|
249
232
|
data_nics_check = True
|
|
250
233
|
for data_nic in snode.data_nics:
|
|
251
234
|
if data_nic.ip4_address:
|
|
@@ -261,7 +244,7 @@ def check_node(node_id, with_devices=True):
|
|
|
261
244
|
lvol_port_check = _check_port_on_node(snode, snode.lvol_subsys_port)
|
|
262
245
|
logger.info(f"Check: node {snode.mgmt_ip}, port: {snode.lvol_subsys_port} ... {lvol_port_check}")
|
|
263
246
|
|
|
264
|
-
is_node_online = ping_check and node_api_check and node_rpc_check
|
|
247
|
+
is_node_online = ping_check and node_api_check and node_rpc_check
|
|
265
248
|
|
|
266
249
|
logger.info(f"Results : {is_node_online}")
|
|
267
250
|
print("*" * 100)
|
|
@@ -247,8 +247,6 @@ while True:
|
|
|
247
247
|
spdk_process = health_controller._check_spdk_process_up(snode.mgmt_ip)
|
|
248
248
|
logger.info(f"Check: spdk process {snode.mgmt_ip}:5000 ... {spdk_process}")
|
|
249
249
|
|
|
250
|
-
# node_rpc_check = False
|
|
251
|
-
# if spdk_process:
|
|
252
250
|
# 4- check rpc
|
|
253
251
|
node_rpc_check = health_controller._check_node_rpc(
|
|
254
252
|
snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password, timeout=5, retry=3)
|
|
@@ -1522,9 +1522,10 @@ def remove_storage_node(node_id, force_remove=False, force_migrate=False):
|
|
|
1522
1522
|
|
|
1523
1523
|
logger.debug("Leaving swarm...")
|
|
1524
1524
|
try:
|
|
1525
|
-
node_docker = docker.DockerClient(base_url=f"tcp://{snode.mgmt_ip}:2375", version="auto")
|
|
1526
1525
|
cluster_docker = utils.get_docker_client(snode.cluster_id)
|
|
1527
|
-
cluster_docker.nodes.
|
|
1526
|
+
for node in cluster_docker.nodes.list():
|
|
1527
|
+
if node.attrs["Status"] and snode.mgmt_ip in node.attrs["Status"]["Addr"] :
|
|
1528
|
+
node.remove(force=True)
|
|
1528
1529
|
except:
|
|
1529
1530
|
pass
|
|
1530
1531
|
|
|
@@ -2663,22 +2664,22 @@ def health_check(node_id):
|
|
|
2663
2664
|
else:
|
|
2664
2665
|
logger.error(f"Ping host: {snode.mgmt_ip}... Failed")
|
|
2665
2666
|
|
|
2666
|
-
node_docker = docker.DockerClient(base_url=f"tcp://{snode.mgmt_ip}:2375", version="auto")
|
|
2667
|
-
containers_list = node_docker.containers.list(all=True)
|
|
2668
|
-
for cont in containers_list:
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2667
|
+
# node_docker = docker.DockerClient(base_url=f"tcp://{snode.mgmt_ip}:2375", version="auto")
|
|
2668
|
+
# containers_list = node_docker.containers.list(all=True)
|
|
2669
|
+
# for cont in containers_list:
|
|
2670
|
+
# name = cont.attrs['Name']
|
|
2671
|
+
# state = cont.attrs['State']
|
|
2672
|
+
#
|
|
2673
|
+
# if name in ['/spdk', '/spdk_proxy', '/SNodeAPI'] or name.startswith("/app_"):
|
|
2674
|
+
# logger.debug(state)
|
|
2675
|
+
# since = ""
|
|
2676
|
+
# try:
|
|
2677
|
+
# start = datetime.datetime.fromisoformat(state['StartedAt'].split('.')[0])
|
|
2678
|
+
# since = str(datetime.datetime.now() - start).split('.')[0]
|
|
2679
|
+
# except:
|
|
2680
|
+
# pass
|
|
2681
|
+
# clean_name = name.split(".")[0].replace("/", "")
|
|
2682
|
+
# logger.info(f"Container: {clean_name}, Status: {state['Status']}, Since: {since}")
|
|
2682
2683
|
|
|
2683
2684
|
except Exception as e:
|
|
2684
2685
|
logger.error(f"Failed to connect to node's docker: {e}")
|
|
@@ -2857,7 +2858,7 @@ def recreate_lvstore_on_sec(snode):
|
|
|
2857
2858
|
|
|
2858
2859
|
remote_rpc_client.bdev_lvol_set_leader(False, lvs_name=node.lvstore)
|
|
2859
2860
|
remote_rpc_client.bdev_distrib_force_to_non_leader(node.jm_vuid)
|
|
2860
|
-
time.sleep(1)
|
|
2861
|
+
# time.sleep(1)
|
|
2861
2862
|
|
|
2862
2863
|
# ret, err = _create_bdev_stack(snode, node.lvstore_stack, primary_node=node)
|
|
2863
2864
|
ret = rpc_client.bdev_examine(node.raid)
|
|
@@ -2873,7 +2874,7 @@ def recreate_lvstore_on_sec(snode):
|
|
|
2873
2874
|
node.lvstore_status = "ready"
|
|
2874
2875
|
node.write_to_db()
|
|
2875
2876
|
|
|
2876
|
-
time.sleep(1)
|
|
2877
|
+
# time.sleep(1)
|
|
2877
2878
|
for lvol in lvol_list:
|
|
2878
2879
|
is_created, error = add_lvol_thread(lvol, snode)
|
|
2879
2880
|
|
|
@@ -2959,7 +2960,7 @@ def recreate_lvstore(snode):
|
|
|
2959
2960
|
|
|
2960
2961
|
sec_rpc_client.bdev_lvol_set_leader(False, lvs_name=snode.lvstore, bs_nonleadership=True)
|
|
2961
2962
|
sec_rpc_client.bdev_distrib_force_to_non_leader(snode.jm_vuid)
|
|
2962
|
-
time.sleep(1)
|
|
2963
|
+
# time.sleep(1)
|
|
2963
2964
|
|
|
2964
2965
|
|
|
2965
2966
|
ret = rpc_client.bdev_examine(snode.raid)
|
|
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-14.0.76 → sbcli_dev-14.0.78}/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-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/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-14.0.76 → sbcli_dev-14.0.78}/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
|
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/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
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/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-14.0.76 → sbcli_dev-14.0.78}/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
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/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
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/blueprints/node_api_caching_docker.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
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2
RENAMED
|
File without changes
|
{sbcli_dev-14.0.76 → sbcli_dev-14.0.78}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|