sbcli-dev 17.3.1__tar.gz → 17.3.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.3.1 → sbcli_dev-17.3.3}/PKG-INFO +2 -2
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/requirements.txt +1 -1
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/sbcli_dev.egg-info/PKG-INFO +2 -2
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/sbcli_dev.egg-info/SOURCES.txt +1 -1
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/sbcli_dev.egg-info/requires.txt +1 -1
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/cluster_ops.py +11 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/lvol_controller.py +7 -6
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/env_var +1 -1
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -1
- sbcli_dev-17.3.1/simplyblock_core/scripts/prometheus.yml → sbcli_dev-17.3.3/simplyblock_core/scripts/prometheus.yml.j2 +3 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/auth_middleware.py +5 -5
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/utils.py +20 -16
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/README.md +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/pyproject.toml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/setup.cfg +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/setup.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_cli/clibase.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/controllers/tcp_ports_events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/spdk/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/spdk/client.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/spdk_stats_collector.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/storage_node_ops.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/test/test_utils.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/README.md +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/app.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/swagger_ui_blueprint.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_metrics.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/node_utils_k8s.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/SimplyBlock-API.postman_collection.json +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/swagger.yaml +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sbcli-dev
|
|
3
|
-
Version: 17.3.
|
|
3
|
+
Version: 17.3.3
|
|
4
4
|
Summary: CLI for managing SimplyBlock cluster
|
|
5
5
|
Home-page: https://www.simplyblock.io/
|
|
6
6
|
Author: Hamdy
|
|
7
7
|
Author-email: hamdy@simplyblock.io
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist: foundationdb
|
|
9
|
+
Requires-Dist: foundationdb==7.3.3
|
|
10
10
|
Requires-Dist: requests
|
|
11
11
|
Requires-Dist: numpy
|
|
12
12
|
Requires-Dist: prettytable>=3.10.0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sbcli-dev
|
|
3
|
-
Version: 17.3.
|
|
3
|
+
Version: 17.3.3
|
|
4
4
|
Summary: CLI for managing SimplyBlock cluster
|
|
5
5
|
Home-page: https://www.simplyblock.io/
|
|
6
6
|
Author: Hamdy
|
|
7
7
|
Author-email: hamdy@simplyblock.io
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist: foundationdb
|
|
9
|
+
Requires-Dist: foundationdb==7.3.3
|
|
10
10
|
Requires-Dist: requests
|
|
11
11
|
Requires-Dist: numpy
|
|
12
12
|
Requires-Dist: prettytable>=3.10.0
|
|
@@ -76,7 +76,7 @@ simplyblock_core/scripts/haproxy.cfg
|
|
|
76
76
|
simplyblock_core/scripts/install_deps.sh
|
|
77
77
|
simplyblock_core/scripts/objstore.yml
|
|
78
78
|
simplyblock_core/scripts/prepare_fdb.sh
|
|
79
|
-
simplyblock_core/scripts/prometheus.yml
|
|
79
|
+
simplyblock_core/scripts/prometheus.yml.j2
|
|
80
80
|
simplyblock_core/scripts/run_ssh.sh
|
|
81
81
|
simplyblock_core/scripts/set_db_config.sh
|
|
82
82
|
simplyblock_core/scripts/stack_deploy_wait.sh
|
|
@@ -261,6 +261,17 @@ def create_cluster(blk_size, page_size_in_blocks, cli_pass,
|
|
|
261
261
|
print(f"An error occurred: {e}")
|
|
262
262
|
shutil.rmtree(temp_dir)
|
|
263
263
|
|
|
264
|
+
scripts_folder = os.path.join(TOP_DIR, "simplyblock_core/scripts/")
|
|
265
|
+
prometheus_file = "prometheus.yml"
|
|
266
|
+
env = Environment(loader=FileSystemLoader(scripts_folder), trim_blocks=True, lstrip_blocks=True)
|
|
267
|
+
template = env.get_template(f'{prometheus_file}.j2')
|
|
268
|
+
values = {
|
|
269
|
+
'CLUSTER_ID': c.uuid,
|
|
270
|
+
'CLUSTER_SECRET': c.secret}
|
|
271
|
+
file_path = os.path.join(scripts_folder, prometheus_file)
|
|
272
|
+
with open(file_path, 'w') as file:
|
|
273
|
+
file.write(template.render(values))
|
|
274
|
+
|
|
264
275
|
logger.info("Deploying swarm stack ...")
|
|
265
276
|
log_level = "DEBUG" if constants.LOG_WEB_DEBUG else "INFO"
|
|
266
277
|
ret = scripts.deploy_stack(cli_pass, DEV_IP, constants.SIMPLY_BLOCK_DOCKER_IMAGE, c.secret, c.uuid,
|
|
@@ -664,7 +664,7 @@ def add_lvol_on_node(lvol, snode, is_primary=True):
|
|
|
664
664
|
else:
|
|
665
665
|
min_cntlid = 1000
|
|
666
666
|
logger.info("creating subsystem %s", lvol.nqn)
|
|
667
|
-
ret = rpc_client.subsystem_create(lvol.nqn,
|
|
667
|
+
ret = rpc_client.subsystem_create(lvol.nqn, lvol.ha_type, lvol.uuid, min_cntlid)
|
|
668
668
|
logger.debug(ret)
|
|
669
669
|
|
|
670
670
|
# add listeners
|
|
@@ -695,10 +695,11 @@ def add_lvol_on_node(lvol, snode, is_primary=True):
|
|
|
695
695
|
logger.debug(spdk_mem_info_after)
|
|
696
696
|
|
|
697
697
|
ret = rpc_client.get_bdevs(f"{lvol.lvs_name}/{lvol.lvol_bdev}")
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
698
|
+
if ret:
|
|
699
|
+
lvol_bdev = ret[0]
|
|
700
|
+
return lvol_bdev, None
|
|
701
|
+
else:
|
|
702
|
+
return False, "Failed to get lvol bdev"
|
|
702
703
|
|
|
703
704
|
def is_node_leader(snode, lvs_name):
|
|
704
705
|
rpc_client = RPCClient(snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password)
|
|
@@ -723,7 +724,7 @@ def recreate_lvol_on_node(lvol, snode, ha_inode_self=0, ana_state=None):
|
|
|
723
724
|
|
|
724
725
|
min_cntlid = 1 + 1000 * ha_inode_self
|
|
725
726
|
logger.info("creating subsystem %s", lvol.nqn)
|
|
726
|
-
rpc_client.subsystem_create(lvol.nqn,
|
|
727
|
+
rpc_client.subsystem_create(lvol.nqn, lvol.ha_type, lvol.uuid, min_cntlid)
|
|
727
728
|
|
|
728
729
|
# if namespace_found is False:
|
|
729
730
|
logger.info("Add BDev to subsystem")
|
|
@@ -12,8 +12,7 @@ def token_required(f):
|
|
|
12
12
|
@wraps(f)
|
|
13
13
|
def decorated(*args, **kwargs):
|
|
14
14
|
|
|
15
|
-
if request.method == "GET" and
|
|
16
|
-
request.path.startswith("/cluster/metrics")]:
|
|
15
|
+
if request.method == "GET" and request.path.startswith("/swagger"):
|
|
17
16
|
return f(*args, **kwargs)
|
|
18
17
|
|
|
19
18
|
cluster_id = None
|
|
@@ -32,12 +31,13 @@ def token_required(f):
|
|
|
32
31
|
except Exception as e:
|
|
33
32
|
print(e)
|
|
34
33
|
|
|
34
|
+
headers = {"WWW-Authenticate": 'Basic realm="Login Required"'}
|
|
35
35
|
if not cluster_id or not cluster_secret:
|
|
36
36
|
return {
|
|
37
37
|
"message": "Authentication Token is missing!",
|
|
38
38
|
"data": None,
|
|
39
39
|
"error": "Unauthorized"
|
|
40
|
-
}, 401
|
|
40
|
+
}, 401, headers
|
|
41
41
|
try:
|
|
42
42
|
db_controller = DBController()
|
|
43
43
|
cluster = db_controller.get_cluster_by_id(cluster_id)
|
|
@@ -46,13 +46,13 @@ def token_required(f):
|
|
|
46
46
|
"message": "Invalid Cluster ID",
|
|
47
47
|
"data": None,
|
|
48
48
|
"error": "Unauthorized"
|
|
49
|
-
}, 401
|
|
49
|
+
}, 401, headers
|
|
50
50
|
if cluster.secret != cluster_secret:
|
|
51
51
|
return {
|
|
52
52
|
"message": "Invalid Cluster secret",
|
|
53
53
|
"data": None,
|
|
54
54
|
"error": "Unauthorized"
|
|
55
|
-
}, 401
|
|
55
|
+
}, 401, headers
|
|
56
56
|
except Exception as e:
|
|
57
57
|
return {
|
|
58
58
|
"message": "Something went wrong",
|
|
@@ -54,27 +54,31 @@ def get_int_value_or_default(data, key, default):
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
def get_cluster_id(request):
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
57
|
+
if "Authorization" in request.headers and request.headers["Authorization"]:
|
|
58
|
+
au = request.headers["Authorization"]
|
|
59
|
+
if len(au.split()) == 2:
|
|
60
|
+
cluster_id = au.split()[0]
|
|
61
|
+
cluster_secret = au.split()[1]
|
|
62
|
+
if cluster_id and cluster_id == "Basic":
|
|
63
|
+
try:
|
|
64
|
+
tkn = base64.b64decode(cluster_secret).decode('utf-8')
|
|
65
|
+
if tkn:
|
|
66
|
+
cluster_id = tkn.split(":")[0]
|
|
67
|
+
cluster_secret = tkn.split(":")[1]
|
|
68
|
+
except Exception as e:
|
|
69
|
+
print(e)
|
|
70
|
+
return
|
|
71
|
+
|
|
72
|
+
return cluster_id
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
def get_aws_region():
|
|
75
76
|
try:
|
|
76
77
|
from ec2_metadata import ec2_metadata
|
|
77
|
-
|
|
78
|
+
import requests
|
|
79
|
+
session = requests.session()
|
|
80
|
+
session.timeout = 3
|
|
81
|
+
data = ec2_metadata.EC2Metadata(session=session).instance_identity_document
|
|
78
82
|
return data["region"]
|
|
79
83
|
except:
|
|
80
84
|
pass
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.3.1 → sbcli_dev-17.3.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
|
{sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.3.1 → sbcli_dev-17.3.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.3.1 → sbcli_dev-17.3.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.3.1 → sbcli_dev-17.3.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
|
{sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.3.1 → sbcli_dev-17.3.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.3.1 → sbcli_dev-17.3.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.3.1 → sbcli_dev-17.3.3}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.3.1 → sbcli_dev-17.3.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.3.1 → sbcli_dev-17.3.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
|