sbcli-dev 16.0.9__tar.gz → 16.2.0__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-16.0.9 → sbcli_dev-16.2.0}/PKG-INFO +1 -1
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/constants.py +1 -1
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/env_var +1 -1
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/rpc_client.py +1 -1
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/clean_local_storage_deploy.sh +3 -3
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/storage_node_monitor.py +7 -4
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/storage_node_ops.py +27 -22
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/README.md +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/pyproject.toml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/requirements.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/setup.cfg +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/setup.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_cli/clibase.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/controllers/tcp_ports_events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/spdk/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/spdk/client.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/spdk_stats_collector.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/test/test_utils.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/README.md +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/app.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/swagger_ui_blueprint.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/node_utils_k8s.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/SimplyBlock-API.postman_collection.json +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/swagger.yaml +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/utils.py +0 -0
|
@@ -285,7 +285,7 @@ class RPCClient:
|
|
|
285
285
|
"lvs_name": name,
|
|
286
286
|
"cluster_sz": cluster_sz,
|
|
287
287
|
"clear_method": clear_method,
|
|
288
|
-
"num_md_pages_per_cluster_ratio": num_md_pages_per_cluster_ratio,
|
|
288
|
+
# "num_md_pages_per_cluster_ratio": num_md_pages_per_cluster_ratio,
|
|
289
289
|
}
|
|
290
290
|
return self._request("bdev_lvol_create_lvstore", params)
|
|
291
291
|
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/clean_local_storage_deploy.sh
RENAMED
|
@@ -6,9 +6,9 @@ sudo docker rm SNodeAPI --force
|
|
|
6
6
|
sudo docker rm CachingNodeAPI --force
|
|
7
7
|
sudo docker stack rm app
|
|
8
8
|
sudo docker swarm leave --force
|
|
9
|
+
sleep 2
|
|
10
|
+
sudo service docker restart
|
|
9
11
|
sudo docker container prune -f
|
|
10
|
-
#sudo docker image prune -a -f
|
|
11
12
|
sudo docker volume prune -a -f
|
|
12
|
-
sudo service docker restart
|
|
13
|
-
echo "Done"
|
|
14
13
|
sudo rm -rf /etc/foundationdb/data/
|
|
14
|
+
echo "Done"
|
|
@@ -244,7 +244,7 @@ while True:
|
|
|
244
244
|
if snode.status == StorageNode.STATUS_SCHEDULABLE and not ping_check and not node_api_check:
|
|
245
245
|
continue
|
|
246
246
|
|
|
247
|
-
spdk_process =
|
|
247
|
+
spdk_process = True
|
|
248
248
|
if node_api_check:
|
|
249
249
|
# 3- check spdk_process
|
|
250
250
|
spdk_process = health_controller._check_spdk_process_up(snode.mgmt_ip)
|
|
@@ -281,7 +281,7 @@ while True:
|
|
|
281
281
|
node_port_check = False
|
|
282
282
|
down_ports.append(data_nic.ip4_address)
|
|
283
283
|
|
|
284
|
-
is_node_online = ping_check and
|
|
284
|
+
is_node_online = ping_check and spdk_process and node_rpc_check and node_port_check
|
|
285
285
|
if is_node_online:
|
|
286
286
|
set_node_online(snode)
|
|
287
287
|
|
|
@@ -310,10 +310,13 @@ while True:
|
|
|
310
310
|
device_controller.device_set_unavailable(dev.get_id())
|
|
311
311
|
|
|
312
312
|
elif ping_check and node_api_check and (not spdk_process or not node_rpc_check):
|
|
313
|
+
|
|
314
|
+
if cluster.status != Cluster.STATUS_IN_ACTIVATION:
|
|
315
|
+
set_node_offline(snode)
|
|
316
|
+
|
|
313
317
|
# add node to auto restart
|
|
314
|
-
if cluster.status in [Cluster.STATUS_ACTIVE, Cluster.STATUS_DEGRADED,
|
|
318
|
+
if cluster.status in [Cluster.STATUS_ACTIVE, Cluster.STATUS_DEGRADED, Cluster.STATUS_UNREADY,
|
|
315
319
|
Cluster.STATUS_SUSPENDED, Cluster.STATUS_READONLY]:
|
|
316
|
-
set_node_offline(snode)
|
|
317
320
|
tasks_controller.add_node_to_auto_restart(snode)
|
|
318
321
|
elif not node_port_check:
|
|
319
322
|
if cluster.status in [Cluster.STATUS_ACTIVE, Cluster.STATUS_DEGRADED, Cluster.STATUS_READONLY]:
|
|
@@ -1922,8 +1922,8 @@ def restart_storage_node(
|
|
|
1922
1922
|
snode.lvstore_status = ""
|
|
1923
1923
|
snode.write_to_db(db_controller.kv_store)
|
|
1924
1924
|
|
|
1925
|
-
logger.info("Setting node status to Online")
|
|
1926
|
-
set_node_status(node_id, StorageNode.STATUS_ONLINE, reconnect_on_online=False)
|
|
1925
|
+
# logger.info("Setting node status to Online")
|
|
1926
|
+
# set_node_status(node_id, StorageNode.STATUS_ONLINE, reconnect_on_online=False)
|
|
1927
1927
|
|
|
1928
1928
|
# time.sleep(1)
|
|
1929
1929
|
snode = db_controller.get_storage_node_by_id(snode.get_id())
|
|
@@ -1960,18 +1960,23 @@ def restart_storage_node(
|
|
|
1960
1960
|
logger.error("Failed to recreate lvstore")
|
|
1961
1961
|
snode.lvstore_status = "failed"
|
|
1962
1962
|
snode.write_to_db()
|
|
1963
|
+
return False
|
|
1963
1964
|
else:
|
|
1964
1965
|
snode.lvstore_status = "ready"
|
|
1965
1966
|
snode.write_to_db()
|
|
1966
1967
|
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1968
|
+
logger.info("Setting node status to Online")
|
|
1969
|
+
set_node_status(node_id, StorageNode.STATUS_ONLINE, reconnect_on_online=False)
|
|
1970
|
+
|
|
1971
|
+
if cluster.status in [Cluster.STATUS_ACTIVE, Cluster.STATUS_DEGRADED, Cluster.STATUS_READONLY]:
|
|
1972
|
+
for dev in snode.nvme_devices:
|
|
1973
|
+
if dev.status == NVMeDevice.STATUS_ONLINE:
|
|
1974
|
+
logger.info(f"Starting migration task for device {dev.get_id()}")
|
|
1975
|
+
tasks_controller.add_device_mig_task(dev.get_id())
|
|
1976
|
+
return True
|
|
1972
1977
|
|
|
1973
1978
|
logger.info("Done")
|
|
1974
|
-
return
|
|
1979
|
+
return True
|
|
1975
1980
|
|
|
1976
1981
|
|
|
1977
1982
|
def list_storage_nodes(is_json, cluster_id=None):
|
|
@@ -2881,12 +2886,12 @@ def recreate_lvstore_on_sec(snode):
|
|
|
2881
2886
|
for lvol in lvol_list:
|
|
2882
2887
|
logger.info("creating subsystem %s", lvol.nqn)
|
|
2883
2888
|
rpc_client.subsystem_create(lvol.nqn, 'sbcli-cn', lvol.uuid, 1000)
|
|
2884
|
-
for iface in snode.data_nics:
|
|
2885
|
-
if iface.ip4_address:
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2889
|
+
# for iface in snode.data_nics:
|
|
2890
|
+
# if iface.ip4_address:
|
|
2891
|
+
# tr_type = iface.get_transport_type()
|
|
2892
|
+
# logger.info("adding listener for %s on IP %s" % (lvol.nqn, iface.ip4_address))
|
|
2893
|
+
# ret = rpc_client.listeners_create(
|
|
2894
|
+
# lvol.nqn, tr_type, iface.ip4_address, lvol.subsys_port, "inaccessible")
|
|
2890
2895
|
|
|
2891
2896
|
if node.status == StorageNode.STATUS_ONLINE:
|
|
2892
2897
|
# for lvol in lvol_list:
|
|
@@ -2966,12 +2971,12 @@ def recreate_lvstore(snode):
|
|
|
2966
2971
|
for lvol in lvol_list:
|
|
2967
2972
|
logger.info("creating subsystem %s", lvol.nqn)
|
|
2968
2973
|
rpc_client.subsystem_create(lvol.nqn, 'sbcli-cn', lvol.uuid, 1)
|
|
2969
|
-
for iface in snode.data_nics:
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2974
|
+
# for iface in snode.data_nics:
|
|
2975
|
+
# if iface.ip4_address:
|
|
2976
|
+
# tr_type = iface.get_transport_type()
|
|
2977
|
+
# logger.info("adding listener for %s on IP %s" % (lvol.nqn, iface.ip4_address))
|
|
2978
|
+
# ret = rpc_client.listeners_create(
|
|
2979
|
+
# lvol.nqn, tr_type, iface.ip4_address, lvol.subsys_port, "inaccessible")
|
|
2975
2980
|
|
|
2976
2981
|
if sec_node:
|
|
2977
2982
|
|
|
@@ -3050,8 +3055,8 @@ def add_lvol_thread(lvol, snode, lvol_ana_state="optimized"):
|
|
|
3050
3055
|
for iface in snode.data_nics:
|
|
3051
3056
|
if iface.ip4_address:
|
|
3052
3057
|
logger.info("adding listener for %s on IP %s" % (lvol.nqn, iface.ip4_address))
|
|
3053
|
-
ret = rpc_client.
|
|
3054
|
-
lvol.nqn, iface.ip4_address, lvol.subsys_port,
|
|
3058
|
+
ret = rpc_client.listeners_create(
|
|
3059
|
+
lvol.nqn, iface.get_transport_type(), iface.ip4_address, lvol.subsys_port, ana_state=lvol_ana_state)
|
|
3055
3060
|
|
|
3056
3061
|
lvol_obj = db_controller.get_lvol_by_id(lvol.get_id())
|
|
3057
3062
|
lvol_obj.status = LVol.STATUS_ONLINE
|
|
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-16.0.9 → sbcli_dev-16.2.0}/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-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/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-16.0.9 → sbcli_dev-16.2.0}/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-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/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
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/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
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/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
|
{sbcli_dev-16.0.9 → sbcli_dev-16.2.0}/simplyblock_web/static/SimplyBlock-API.postman_collection.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|