sbcli-dev 10.6.4__tar.gz → 10.6.6__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-10.6.4 → sbcli_dev-10.6.6}/PKG-INFO +1 -1
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_cli/cli.py +2 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/env_var +1 -1
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/storage_node.py +1 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/deploy_stack.sh +1 -1
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/snode_client.py +2 -1
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/storage_node_ops.py +23 -18
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/snode_ops.py +16 -11
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/README.md +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/pyproject.toml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/requirements.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/setup.cfg +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/setup.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/README.md +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/app.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_web/utils.py +0 -0
|
@@ -47,6 +47,7 @@ class CLIWrapper:
|
|
|
47
47
|
sub_command.add_argument("--max-prov", help='Maximum amount of GB to be provisioned via all storage nodes', dest='max_prov')
|
|
48
48
|
sub_command.add_argument("--number-of-distribs", help='The number of distirbs to be created on the node', dest='number_of_distribs', type=int, default=2)
|
|
49
49
|
sub_command.add_argument("--number-of-devices", help='Number of devices per storage node if it\'s not supported EC2 instance', dest='number_of_devices', type=int)
|
|
50
|
+
sub_command.add_argument("--size-of-device", help='Size of device per storage node', dest='partition_size', type=int)
|
|
50
51
|
sub_command.add_argument("--cpu-mask", help='SPDK app CPU mask, default is all cores found', dest='spdk_cpu_mask')
|
|
51
52
|
|
|
52
53
|
sub_command.add_argument("--spdk-image", help='SPDK image uri', dest='spdk_image')
|
|
@@ -799,6 +800,7 @@ class CLIWrapper:
|
|
|
799
800
|
enable_ha_jm=enable_ha_jm,
|
|
800
801
|
is_secondary_node=args.is_secondary_node,
|
|
801
802
|
id_device_by_nqn=args.id_device_by_nqn,
|
|
803
|
+
partition_size=args.partition_size,
|
|
802
804
|
)
|
|
803
805
|
|
|
804
806
|
return out
|
|
@@ -35,7 +35,7 @@ docker network create monitoring-net -d overlay --attachable
|
|
|
35
35
|
docker stack deploy --compose-file="$DIR"/docker-compose-swarm-monitoring.yml monitoring
|
|
36
36
|
|
|
37
37
|
# wait for the services to become online
|
|
38
|
-
bash "$DIR"/stack_deploy_wait.sh monitoring
|
|
38
|
+
#bash "$DIR"/stack_deploy_wait.sh monitoring
|
|
39
39
|
|
|
40
40
|
docker stack deploy --compose-file="$DIR"/docker-compose-swarm.yml app
|
|
41
41
|
|
|
@@ -112,11 +112,12 @@ class SNodeClient:
|
|
|
112
112
|
def leave_swarm(self):
|
|
113
113
|
return self._request("GET", "leave_swarm")
|
|
114
114
|
|
|
115
|
-
def make_gpt_partitions(self, nbd_device, jm_percent, num_partitions):
|
|
115
|
+
def make_gpt_partitions(self, nbd_device, jm_percent, num_partitions, partition_percent):
|
|
116
116
|
params = {
|
|
117
117
|
"nbd_device": nbd_device,
|
|
118
118
|
"jm_percent": int(jm_percent),
|
|
119
119
|
"num_partitions": int(num_partitions),
|
|
120
|
+
"partition_percent": int(partition_percent),
|
|
120
121
|
}
|
|
121
122
|
return self._request("POST", "make_gpt_partitions", params)
|
|
122
123
|
|
|
@@ -521,14 +521,18 @@ def _create_storage_device_stack(rpc_client, nvme, snode, after_restart):
|
|
|
521
521
|
return nvme
|
|
522
522
|
|
|
523
523
|
|
|
524
|
-
def _create_device_partitions(rpc_client, nvme, snode, num_partitions_per_dev, jm_percent):
|
|
524
|
+
def _create_device_partitions(rpc_client, nvme, snode, num_partitions_per_dev, jm_percent, partition_size=0):
|
|
525
525
|
nbd_device = rpc_client.nbd_start_disk(nvme.nvme_bdev)
|
|
526
526
|
time.sleep(3)
|
|
527
527
|
if not nbd_device:
|
|
528
528
|
logger.error(f"Failed to start nbd dev")
|
|
529
529
|
return False
|
|
530
530
|
snode_api = SNodeClient(snode.api_endpoint)
|
|
531
|
-
|
|
531
|
+
partition_percent = 0
|
|
532
|
+
if partition_size:
|
|
533
|
+
partition_percent = int(partition_size*100/nvme.size)
|
|
534
|
+
|
|
535
|
+
result, error = snode_api.make_gpt_partitions(nbd_device, jm_percent, num_partitions_per_dev, partition_percent)
|
|
532
536
|
if error:
|
|
533
537
|
logger.error(f"Failed to make partitions")
|
|
534
538
|
logger.error(error)
|
|
@@ -585,7 +589,7 @@ def _prepare_cluster_devices_partitions(snode, devices):
|
|
|
585
589
|
logger.info("Partitioned devices found")
|
|
586
590
|
else:
|
|
587
591
|
logger.info(f"Creating partitions for {nvme.nvme_bdev}")
|
|
588
|
-
_create_device_partitions(rpc_client, nvme, snode, snode.num_partitions_per_dev, snode.jm_percent)
|
|
592
|
+
_create_device_partitions(rpc_client, nvme, snode, snode.num_partitions_per_dev, snode.jm_percent, snode.partition_size)
|
|
589
593
|
partitioned_devices = _search_for_partitions(rpc_client, nvme)
|
|
590
594
|
if len(partitioned_devices) == (1 + snode.num_partitions_per_dev):
|
|
591
595
|
logger.info("Device partitions created")
|
|
@@ -865,14 +869,14 @@ def _connect_to_remote_jm_devs(this_node, jm_ids=[]):
|
|
|
865
869
|
remote_devices.append(jm_dev)
|
|
866
870
|
elif len(this_node.remote_jm_devices) > 0:
|
|
867
871
|
remote_devices = this_node.remote_jm_devices
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
872
|
+
|
|
873
|
+
for node in db_controller.get_storage_nodes_by_cluster_id(this_node.cluster_id):
|
|
874
|
+
if node.get_id() == this_node.get_id() or node.is_secondary_node:
|
|
875
|
+
continue
|
|
876
|
+
if node.jm_device and node.jm_device.status == JMDevice.STATUS_ONLINE:
|
|
877
|
+
remote_devices.append(node.jm_device)
|
|
878
|
+
if len(remote_devices) >= 3 :
|
|
879
|
+
break
|
|
876
880
|
|
|
877
881
|
new_devs = []
|
|
878
882
|
for jm_dev in remote_devices:
|
|
@@ -931,7 +935,8 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
931
935
|
max_lvol, max_snap, max_prov, spdk_image=None, spdk_debug=False,
|
|
932
936
|
small_bufsize=0, large_bufsize=0, spdk_cpu_mask=None,
|
|
933
937
|
num_partitions_per_dev=0, jm_percent=0, number_of_devices=0, enable_test_device=False,
|
|
934
|
-
namespace=None, number_of_distribs=2, enable_ha_jm=False, is_secondary_node=False, id_device_by_nqn=False
|
|
938
|
+
namespace=None, number_of_distribs=2, enable_ha_jm=False, is_secondary_node=False, id_device_by_nqn=False,
|
|
939
|
+
partition_size=0):
|
|
935
940
|
|
|
936
941
|
db_controller = DBController()
|
|
937
942
|
kv_store = db_controller.kv_store
|
|
@@ -1211,8 +1216,9 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
1211
1216
|
snode.num_partitions_per_dev = num_partitions_per_dev
|
|
1212
1217
|
snode.jm_percent = jm_percent
|
|
1213
1218
|
snode.id_device_by_nqn = id_device_by_nqn
|
|
1219
|
+
snode.partition_size = partition_size
|
|
1214
1220
|
|
|
1215
|
-
time.sleep(
|
|
1221
|
+
time.sleep(5)
|
|
1216
1222
|
|
|
1217
1223
|
# creating RPCClient instance
|
|
1218
1224
|
rpc_client = RPCClient(
|
|
@@ -2025,8 +2031,8 @@ def list_storage_devices(node_id, sort, is_json):
|
|
|
2025
2031
|
"UUID": device.uuid,
|
|
2026
2032
|
"Name": device.device_name,
|
|
2027
2033
|
"Size": utils.humanbytes(device.size),
|
|
2028
|
-
"Serial Number": device.serial_number,
|
|
2029
2034
|
"Node ID": device.node_id,
|
|
2035
|
+
"Status": device.status,
|
|
2030
2036
|
})
|
|
2031
2037
|
|
|
2032
2038
|
for device in snode.remote_jm_devices:
|
|
@@ -2036,8 +2042,8 @@ def list_storage_devices(node_id, sort, is_json):
|
|
|
2036
2042
|
"UUID": device.uuid,
|
|
2037
2043
|
"Name": device.remote_bdev,
|
|
2038
2044
|
"Size": utils.humanbytes(device.size),
|
|
2039
|
-
"
|
|
2040
|
-
"
|
|
2045
|
+
"Node ID": device.node_id,
|
|
2046
|
+
"Status": device.status,
|
|
2041
2047
|
})
|
|
2042
2048
|
|
|
2043
2049
|
if sort and sort in ['node-seq', 'dev-seq', 'serial']:
|
|
@@ -3023,8 +3029,7 @@ def create_lvstore(snode, ndcs, npcs, distr_bs, distr_chunk_bs, page_size_in_blo
|
|
|
3023
3029
|
|
|
3024
3030
|
|
|
3025
3031
|
def _create_bdev_stack(snode, lvstore_stack=None, primary_node=None):
|
|
3026
|
-
rpc_client = RPCClient(snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password
|
|
3027
|
-
retry=1, timeout=30)
|
|
3032
|
+
rpc_client = RPCClient(snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password )
|
|
3028
3033
|
|
|
3029
3034
|
created_bdevs = []
|
|
3030
3035
|
if not lvstore_stack:
|
|
@@ -257,8 +257,8 @@ def get_file_content(file_name):
|
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
def set_cluster_id(cluster_id):
|
|
260
|
-
|
|
261
|
-
return
|
|
260
|
+
ret = os.popen(f"echo {cluster_id} > {cluster_id_file}").read().strip()
|
|
261
|
+
return ret
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
def delete_cluster_id():
|
|
@@ -326,13 +326,13 @@ def join_swarm():
|
|
|
326
326
|
node_docker.swarm.leave(force=True)
|
|
327
327
|
time.sleep(2)
|
|
328
328
|
node_docker.swarm.join([f"{cluster_ip}:2377"], join_token)
|
|
329
|
-
retries = 10
|
|
330
|
-
while retries > 0:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
329
|
+
# retries = 10
|
|
330
|
+
# while retries > 0:
|
|
331
|
+
# if node_docker.info()["Swarm"]["LocalNodeState"] == "active":
|
|
332
|
+
# break
|
|
333
|
+
# logger.info("Waiting for node to be active...")
|
|
334
|
+
# retries -= 1
|
|
335
|
+
# time.sleep(1)
|
|
336
336
|
logger.info("Joining docker swarm > Done")
|
|
337
337
|
|
|
338
338
|
try:
|
|
@@ -363,11 +363,12 @@ def make_gpt_partitions_for_nbd():
|
|
|
363
363
|
nbd_device = '/dev/nbd0'
|
|
364
364
|
jm_percent = '3'
|
|
365
365
|
num_partitions = 1
|
|
366
|
-
|
|
366
|
+
partition_percent = 0
|
|
367
367
|
try:
|
|
368
368
|
data = request.get_json()
|
|
369
369
|
nbd_device = data['nbd_device']
|
|
370
370
|
jm_percent = data['jm_percent']
|
|
371
|
+
partition_percent = data['partition_percent']
|
|
371
372
|
num_partitions = data['num_partitions']
|
|
372
373
|
except:
|
|
373
374
|
pass
|
|
@@ -379,7 +380,11 @@ def make_gpt_partitions_for_nbd():
|
|
|
379
380
|
sg_cmd_list = [
|
|
380
381
|
f"sgdisk -t 1:6527994e-2c5a-4eec-9613-8f5944074e8b {nbd_device}",
|
|
381
382
|
]
|
|
382
|
-
|
|
383
|
+
if partition_percent:
|
|
384
|
+
perc_per_partition = int(partition_percent)
|
|
385
|
+
else:
|
|
386
|
+
perc_per_partition = int((100 - jm_percent) / num_partitions)
|
|
387
|
+
|
|
383
388
|
for i in range(num_partitions):
|
|
384
389
|
st = jm_percent + (i * perc_per_partition)
|
|
385
390
|
en = st + perc_per_partition
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-10.6.4 → sbcli_dev-10.6.6}/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
|
{sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/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-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/scripts/dashboards/node-exporter.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/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-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/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-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/main_distr_event_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.4 → sbcli_dev-10.6.6}/simplyblock_core/services/tasks_runner_new_dev_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|