sbcli-dev 3.8.95__zip → 3.8.96__zip
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-3.8.95 → sbcli_dev-3.8.96}/PKG-INFO +1 -1
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/env_var +1 -1
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_cli/cli.py +10 -6
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/storage_node_ops.py +1 -10
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_storage_node.py +7 -6
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/README.md +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/pyproject.toml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/setup.cfg +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/setup.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/distr_event_collector.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/app.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/simplyblock_web/utils.py +0 -0
|
@@ -39,13 +39,13 @@ class CLIWrapper:
|
|
|
39
39
|
sub_command.add_argument("cluster_id", help='UUID of the cluster to which the node will belong')
|
|
40
40
|
sub_command.add_argument("node_ip", help='IP of storage node to add')
|
|
41
41
|
sub_command.add_argument("ifname", help='Management interface name')
|
|
42
|
-
sub_command.add_argument("--partitions", help='Number of partitions to create per device', type=int, default=
|
|
42
|
+
sub_command.add_argument("--partitions", help='Number of partitions to create per device', type=int, default=0)
|
|
43
43
|
sub_command.add_argument("--jm-percent", help='Number in percent to use for JM from each device',
|
|
44
44
|
type=int, default=3, dest='jm_percent')
|
|
45
45
|
sub_command.add_argument("--data-nics", help='Data interface names', nargs='+', dest='data_nics')
|
|
46
46
|
sub_command.add_argument("--max-lvol", help='Max lvol per storage node', dest='max_lvol', type=int)
|
|
47
|
-
sub_command.add_argument("--max-snap", help='Max snapshot per storage node', dest='max_snap', type=int
|
|
48
|
-
sub_command.add_argument("--max-prov", help='
|
|
47
|
+
sub_command.add_argument("--max-snap", help='Max snapshot per storage node', dest='max_snap', type=int)
|
|
48
|
+
sub_command.add_argument("--max-prov", help='Max provisioning size of all storage nodes', dest='max_prov')
|
|
49
49
|
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=4)
|
|
50
50
|
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)
|
|
51
51
|
sub_command.add_argument("--cpu-mask", help='SPDK app CPU mask, default is all cores found', dest='spdk_cpu_mask')
|
|
@@ -56,7 +56,7 @@ class CLIWrapper:
|
|
|
56
56
|
sub_command.add_argument("--iobuf_small_bufsize", help='bdev_set_options param', dest='small_bufsize', type=int, default=0)
|
|
57
57
|
sub_command.add_argument("--iobuf_large_bufsize", help='bdev_set_options param', dest='large_bufsize', type=int, default=0)
|
|
58
58
|
sub_command.add_argument("--enable-test-device", help='Enable creation of test device', action='store_true')
|
|
59
|
-
sub_command.add_argument("--
|
|
59
|
+
sub_command.add_argument("--enable-ha-jm", help='Enable HA JM for ditrib creation', action='store_true')
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
# delete storage node
|
|
@@ -706,6 +706,8 @@ class CLIWrapper:
|
|
|
706
706
|
elif sub_command == "add-node":
|
|
707
707
|
if not args.max_lvol:
|
|
708
708
|
self.parser.error(f"Mandatory argument '--max-lvol' not provided for {sub_command}")
|
|
709
|
+
if not args.max_snap:
|
|
710
|
+
self.parser.error(f"Mandatory argument '--max-snap' not provided for {sub_command}")
|
|
709
711
|
if not args.max_prov:
|
|
710
712
|
self.parser.error(f"Mandatory argument '--max-prov' not provided for {sub_command}")
|
|
711
713
|
# if not args.spdk_cpu_mask:
|
|
@@ -730,11 +732,13 @@ class CLIWrapper:
|
|
|
730
732
|
|
|
731
733
|
max_lvol = args.max_lvol
|
|
732
734
|
max_snap = args.max_snap
|
|
733
|
-
max_prov = args.max_prov
|
|
735
|
+
max_prov = self.parse_size(args.max_prov)
|
|
734
736
|
number_of_devices = args.number_of_devices
|
|
735
737
|
enable_test_device = args.enable_test_device
|
|
736
738
|
enable_ha_jm = args.enable_ha_jm
|
|
737
739
|
number_of_distribs = args.number_of_distribs
|
|
740
|
+
if max_prov < 1 * 1024 * 1024 * 1024:
|
|
741
|
+
return f"Max provisioning memory:{args.max_prov} must be larger than 1G"
|
|
738
742
|
|
|
739
743
|
out = storage_ops.add_node(
|
|
740
744
|
cluster_id=cluster_id,
|
|
@@ -777,7 +781,7 @@ class CLIWrapper:
|
|
|
777
781
|
|
|
778
782
|
max_lvol = args.max_lvol
|
|
779
783
|
max_snap = args.max_snap
|
|
780
|
-
max_prov = args.max_prov if args.max_prov else 0
|
|
784
|
+
max_prov = self.parse_size(args.max_prov) if args.max_prov else 0
|
|
781
785
|
number_of_devices = args.number_of_devices
|
|
782
786
|
|
|
783
787
|
small_bufsize = args.small_bufsize
|
|
@@ -923,11 +923,7 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
923
923
|
if not number_of_devices:
|
|
924
924
|
logger.error("Unsupported instance type please specify --number-of-devices.")
|
|
925
925
|
return False
|
|
926
|
-
|
|
927
|
-
max_prov = int(max_prov)
|
|
928
|
-
max_prov = f"{max_prov}g"
|
|
929
|
-
except Exception:
|
|
930
|
-
pass
|
|
926
|
+
|
|
931
927
|
max_prov = int(utils.parse_size(max_prov))
|
|
932
928
|
number_of_split = num_partitions_per_dev if num_partitions_per_dev else 1
|
|
933
929
|
number_of_alceml_devices = number_of_devices * number_of_split
|
|
@@ -1439,11 +1435,6 @@ def restart_storage_node(
|
|
|
1439
1435
|
if max_snap:
|
|
1440
1436
|
snode.max_snap = max_snap
|
|
1441
1437
|
if max_prov:
|
|
1442
|
-
try:
|
|
1443
|
-
max_prov = int(max_prov)
|
|
1444
|
-
max_prov = f"{max_prov}g"
|
|
1445
|
-
except Exception:
|
|
1446
|
-
pass
|
|
1447
1438
|
snode.max_prov = max_prov
|
|
1448
1439
|
if spdk_image:
|
|
1449
1440
|
snode.spdk_image = spdk_image
|
|
@@ -186,6 +186,9 @@ def storage_node_add():
|
|
|
186
186
|
if 'max_lvol' not in req_data:
|
|
187
187
|
return utils.get_response_error("missing required param: max_lvol", 400)
|
|
188
188
|
|
|
189
|
+
if 'max_snap' not in req_data:
|
|
190
|
+
return utils.get_response_error("missing required param: max_snap", 400)
|
|
191
|
+
|
|
189
192
|
if 'max_prov' not in req_data:
|
|
190
193
|
return utils.get_response_error("missing required param: max_prov", 400)
|
|
191
194
|
|
|
@@ -193,10 +196,9 @@ def storage_node_add():
|
|
|
193
196
|
node_ip = req_data['node_ip']
|
|
194
197
|
ifname = req_data['ifname']
|
|
195
198
|
max_lvol = int(req_data['max_lvol'])
|
|
196
|
-
max_snap = int(req_data['max_snap']
|
|
199
|
+
max_snap = int(req_data['max_snap'])
|
|
197
200
|
max_prov = req_data['max_prov']
|
|
198
201
|
number_of_distribs = req_data.get('number_of_distribs', 4)
|
|
199
|
-
disable_ha_jm = req_data.get('disable_ha_jm', False)
|
|
200
202
|
|
|
201
203
|
spdk_image = None
|
|
202
204
|
if 'spdk_image' in req_data:
|
|
@@ -215,11 +217,11 @@ def storage_node_add():
|
|
|
215
217
|
if 'namespace' in req_data:
|
|
216
218
|
namespace = req_data['namespace']
|
|
217
219
|
|
|
218
|
-
jm_percent =
|
|
220
|
+
jm_percent = 0
|
|
219
221
|
if 'jm_percent' in req_data:
|
|
220
222
|
jm_percent = int(req_data['jm_percent'])
|
|
221
223
|
|
|
222
|
-
partitions =
|
|
224
|
+
partitions = 0
|
|
223
225
|
if 'partitions' in req_data:
|
|
224
226
|
partitions = int(req_data['partitions'])
|
|
225
227
|
|
|
@@ -261,8 +263,7 @@ def storage_node_add():
|
|
|
261
263
|
"number_of_devices": number_of_devices,
|
|
262
264
|
"enable_test_device": False,
|
|
263
265
|
"number_of_distribs": number_of_distribs,
|
|
264
|
-
"namespace": namespace
|
|
265
|
-
"disable_ha_jm": disable_ha_jm})
|
|
266
|
+
"namespace": namespace})
|
|
266
267
|
|
|
267
268
|
return utils.get_response(True)
|
|
268
269
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-3.8.95 → sbcli_dev-3.8.96}/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-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/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-3.8.95 → sbcli_dev-3.8.96}/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-3.8.95 → sbcli_dev-3.8.96}/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-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/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
|
|
File without changes
|
{sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/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-3.8.95 → sbcli_dev-3.8.96}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.95 → sbcli_dev-3.8.96}/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
|