sbcli-dev 17.4.2__tar.gz → 17.4.3__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-17.4.2 → sbcli_dev-17.4.3}/PKG-INFO +1 -1
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/sbcli_dev.egg-info/SOURCES.txt +4 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/env_var +1 -1
- sbcli_dev-17.4.3/simplyblock_core/scripts/helpers/deploy_cluster.sh +24 -0
- sbcli_dev-17.4.3/simplyblock_core/scripts/helpers/destroy_cluster.sh +31 -0
- sbcli_dev-17.4.3/simplyblock_core/scripts/helpers/nvme_disconnect_by_ip.py +47 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/storage_node_ops.py +1 -1
- sbcli_dev-17.4.3/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/README.md +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/pyproject.toml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/requirements.txt +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/setup.cfg +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/setup.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_cli/clibase.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/controllers/tcp_ports_events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/hublvol.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-17.4.2/simplyblock_core/services/spdk → sbcli_dev-17.4.3/simplyblock_core/scripts/helpers}/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/prometheus.yml.j2 +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-17.4.2/simplyblock_web → sbcli_dev-17.4.3/simplyblock_core/services/spdk}/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/spdk/client.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/spdk_stats_collector.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/test/test_utils.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/README.md +0 -0
- {sbcli_dev-17.4.2/simplyblock_web/blueprints → sbcli_dev-17.4.3/simplyblock_web}/__init__.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/app.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/swagger_ui_blueprint.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_metrics.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/node_utils_k8s.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/SimplyBlock-API.postman_collection.json +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/swagger.yaml +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_web/utils.py +0 -0
|
@@ -89,6 +89,10 @@ simplyblock_core/scripts/dashboards/lvols.json
|
|
|
89
89
|
simplyblock_core/scripts/dashboards/node-exporter.json
|
|
90
90
|
simplyblock_core/scripts/dashboards/nodes.json
|
|
91
91
|
simplyblock_core/scripts/dashboards/pools.json
|
|
92
|
+
simplyblock_core/scripts/helpers/__init__.py
|
|
93
|
+
simplyblock_core/scripts/helpers/deploy_cluster.sh
|
|
94
|
+
simplyblock_core/scripts/helpers/destroy_cluster.sh
|
|
95
|
+
simplyblock_core/scripts/helpers/nvme_disconnect_by_ip.py
|
|
92
96
|
simplyblock_core/services/__init__.py
|
|
93
97
|
simplyblock_core/services/cached_lvol_stat_collector.py
|
|
94
98
|
simplyblock_core/services/caching_node_monitor.py
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
P_NODES=("192.168.10.92" "192.168.10.93" "192.168.10.94")
|
|
4
|
+
|
|
5
|
+
CMD=$(ls /usr/local/bin/sbcli-* | awk '{n=split($0,a,"/"); print a[n]}')
|
|
6
|
+
cl=$($CMD cluster list | tail -n -3 | awk '{print $2}')
|
|
7
|
+
$CMD -d cluster add --ha-type ha
|
|
8
|
+
$CMD cluster delete $cl
|
|
9
|
+
cl=$($CMD cluster list | tail -n -3 | awk '{print $2}')
|
|
10
|
+
|
|
11
|
+
for sn_id in "${P_NODES[@]}"; do
|
|
12
|
+
|
|
13
|
+
$CMD -d --dev sn add-node $cl $sn_id:5000 eth0 --journal-partition 0 --number-of-devices 1 --max-lvol 1 \
|
|
14
|
+
--max-size 1g --data-nics eth1 --vcpu-count 6 --ssd-pcie 0000:00:02.0 0000:00:03.0 0000:00:04.0 0000:00:05.0
|
|
15
|
+
|
|
16
|
+
# $CMD -d --dev sn add-node $cl $sn_id:5000 eth0 --journal-partition 0 --number-of-devices 1 --max-lvol 1 \
|
|
17
|
+
# --max-size 1g --data-nics eth1 --vcpu-count 2 --ssd-pcie 0000:00:02.0 0000:00:03.0 --spdk-mem 6g
|
|
18
|
+
#
|
|
19
|
+
# $CMD -d --dev sn add-node $cl $sn_id:5000 eth0 --journal-partition 0 --number-of-devices 1 --max-lvol 1 \
|
|
20
|
+
# --max-size 1g --data-nics eth1 --vcpu-count 2 --ssd-pcie 0000:00:04.0 0000:00:05.0 --spdk-mem 6g
|
|
21
|
+
done
|
|
22
|
+
|
|
23
|
+
$CMD -d pool add pool1 $cl
|
|
24
|
+
$CMD -d cluster activate $cl
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# destroy cluster
|
|
4
|
+
|
|
5
|
+
CMD=$(ls /usr/local/bin/sbcli-* | awk '{n=split($0,a,"/"); print a[n]}')
|
|
6
|
+
cl=$($CMD cluster list | tail -n -3 | awk '{print $2}')
|
|
7
|
+
|
|
8
|
+
for sn_id in $($CMD lvol list | grep line | awk '{print $2}'); do
|
|
9
|
+
$CMD -d lvol delete $sn_id --force
|
|
10
|
+
done
|
|
11
|
+
for sn_id in $($CMD sn list | grep online | awk '{print $2}'); do
|
|
12
|
+
$CMD -d sn shutdown --force $sn_id
|
|
13
|
+
done
|
|
14
|
+
for task_id in $($CMD -d cluster list-tasks $cl | grep -i mig | grep -v done | awk '{print $2}'); do
|
|
15
|
+
$CMD cluster cancel-task $task_id
|
|
16
|
+
$CMD cluster cancel-task $task_id
|
|
17
|
+
done
|
|
18
|
+
for sn_id in $($CMD sn list | grep / | awk '{print $2}'); do
|
|
19
|
+
$CMD sn remove $sn_id --force-remove --force
|
|
20
|
+
done
|
|
21
|
+
for task_id in $($CMD -d cluster list-tasks $cl | grep -i mig | grep -v done | awk '{print $2}'); do
|
|
22
|
+
$CMD cluster cancel-task $task_id
|
|
23
|
+
$CMD cluster cancel-task $task_id
|
|
24
|
+
done
|
|
25
|
+
for sn_id in $($CMD sn list | grep / | awk '{print $2}'); do
|
|
26
|
+
$CMD sn delete $sn_id
|
|
27
|
+
done
|
|
28
|
+
|
|
29
|
+
for sn_id in $($CMD pool list | grep active | awk '{print $2}'); do
|
|
30
|
+
$CMD pool delete $sn_id
|
|
31
|
+
done
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# encoding: utf-8
|
|
3
|
+
import json
|
|
4
|
+
import logging
|
|
5
|
+
import os
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
logger = logging.getLogger(__name__)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def run_command(cmd):
|
|
13
|
+
try:
|
|
14
|
+
process = subprocess.Popen(
|
|
15
|
+
cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
16
|
+
stdout, stderr = process.communicate()
|
|
17
|
+
return stdout.strip().decode("utf-8"), stderr.strip(), process.returncode
|
|
18
|
+
except Exception as e:
|
|
19
|
+
return "", str(e), 1
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def disconnect_by_ip(node_ip):
|
|
23
|
+
out, err, rc = run_command("nvme list -v -o json")
|
|
24
|
+
if rc != 0:
|
|
25
|
+
logger.error("Error getting nvme list")
|
|
26
|
+
logger.error(err)
|
|
27
|
+
return []
|
|
28
|
+
data = json.loads(out)
|
|
29
|
+
devices = []
|
|
30
|
+
if data and 'Devices' in data and data['Devices']:
|
|
31
|
+
for dev in data['Devices'][0]['Subsystems']:
|
|
32
|
+
if 'Controllers' in dev and dev['Controllers']:
|
|
33
|
+
for controller in dev['Controllers']:
|
|
34
|
+
adr = controller['Address']
|
|
35
|
+
if node_ip in adr:
|
|
36
|
+
devices.append(controller)
|
|
37
|
+
|
|
38
|
+
logger.info(f"Found {len(devices)} controllers")
|
|
39
|
+
for dev in devices:
|
|
40
|
+
out, err, rc = run_command(f"nvme disconnect -d {dev['Controller']}")
|
|
41
|
+
if rc != 0:
|
|
42
|
+
logger.error(f"Error disconnecting {dev['Controller']}")
|
|
43
|
+
logger.error(err)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
if __name__ == '__main__':
|
|
47
|
+
disconnect_by_ip(sys.argv[1])
|
|
@@ -1891,7 +1891,7 @@ def restart_storage_node(
|
|
|
1891
1891
|
for node in snodes:
|
|
1892
1892
|
if node.get_id() == snode.get_id() or node.status != StorageNode.STATUS_ONLINE:
|
|
1893
1893
|
continue
|
|
1894
|
-
node.remote_devices = _connect_to_remote_devs(node)
|
|
1894
|
+
node.remote_devices = _connect_to_remote_devs(node, force_conect_restarting_nodes=True)
|
|
1895
1895
|
node.write_to_db(kv_store)
|
|
1896
1896
|
|
|
1897
1897
|
logger.info(f"Sending device status event")
|
|
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-17.4.2 → sbcli_dev-17.4.3}/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
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/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-17.4.2 → sbcli_dev-17.4.3}/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-17.4.2 → sbcli_dev-17.4.3}/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
|
|
File without changes
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/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-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/main_distr_event_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.4.2/simplyblock_web → sbcli_dev-17.4.3/simplyblock_core/services/spdk}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/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
|
{sbcli_dev-17.4.2/simplyblock_web/blueprints → sbcli_dev-17.4.3/simplyblock_web}/__init__.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
|
{sbcli_dev-17.4.2 → sbcli_dev-17.4.3}/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
|