sbcli-dev 3.8.96__zip → 3.8.99__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.96 → sbcli_dev-3.8.99}/PKG-INFO +1 -1
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/env_var +1 -1
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_cli/cli.py +6 -10
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/storage_node_ops.py +11 -2
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_storage_node.py +6 -7
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/README.md +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/pyproject.toml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/setup.cfg +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/setup.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/distr_event_collector.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/app.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/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=1)
|
|
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, default=500)
|
|
48
|
+
sub_command.add_argument("--max-prov", help='Maximum amount of GB to be provisioned via 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("--disable-ha-jm", help='Disable HA JM for distrib creation', action='store_false', dest='enable_ha_jm', default=True)
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
# delete storage node
|
|
@@ -706,8 +706,6 @@ 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}")
|
|
711
709
|
if not args.max_prov:
|
|
712
710
|
self.parser.error(f"Mandatory argument '--max-prov' not provided for {sub_command}")
|
|
713
711
|
# if not args.spdk_cpu_mask:
|
|
@@ -732,13 +730,11 @@ class CLIWrapper:
|
|
|
732
730
|
|
|
733
731
|
max_lvol = args.max_lvol
|
|
734
732
|
max_snap = args.max_snap
|
|
735
|
-
max_prov =
|
|
733
|
+
max_prov = args.max_prov
|
|
736
734
|
number_of_devices = args.number_of_devices
|
|
737
735
|
enable_test_device = args.enable_test_device
|
|
738
736
|
enable_ha_jm = args.enable_ha_jm
|
|
739
737
|
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"
|
|
742
738
|
|
|
743
739
|
out = storage_ops.add_node(
|
|
744
740
|
cluster_id=cluster_id,
|
|
@@ -781,7 +777,7 @@ class CLIWrapper:
|
|
|
781
777
|
|
|
782
778
|
max_lvol = args.max_lvol
|
|
783
779
|
max_snap = args.max_snap
|
|
784
|
-
max_prov =
|
|
780
|
+
max_prov = args.max_prov if args.max_prov else 0
|
|
785
781
|
number_of_devices = args.number_of_devices
|
|
786
782
|
|
|
787
783
|
small_bufsize = args.small_bufsize
|
|
@@ -923,7 +923,11 @@ 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
|
-
|
|
926
|
+
try:
|
|
927
|
+
max_prov = int(max_prov)
|
|
928
|
+
max_prov = f"{max_prov}g"
|
|
929
|
+
except Exception:
|
|
930
|
+
pass
|
|
927
931
|
max_prov = int(utils.parse_size(max_prov))
|
|
928
932
|
number_of_split = num_partitions_per_dev if num_partitions_per_dev else 1
|
|
929
933
|
number_of_alceml_devices = number_of_devices * number_of_split
|
|
@@ -1435,7 +1439,12 @@ def restart_storage_node(
|
|
|
1435
1439
|
if max_snap:
|
|
1436
1440
|
snode.max_snap = max_snap
|
|
1437
1441
|
if max_prov:
|
|
1438
|
-
|
|
1442
|
+
try:
|
|
1443
|
+
max_prov = int(max_prov)
|
|
1444
|
+
max_prov = f"{max_prov}g"
|
|
1445
|
+
except Exception:
|
|
1446
|
+
pass
|
|
1447
|
+
snode.max_prov = int(utils.parse_size(max_prov))
|
|
1439
1448
|
if spdk_image:
|
|
1440
1449
|
snode.spdk_image = spdk_image
|
|
1441
1450
|
|
|
@@ -186,9 +186,6 @@ 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
|
-
|
|
192
189
|
if 'max_prov' not in req_data:
|
|
193
190
|
return utils.get_response_error("missing required param: max_prov", 400)
|
|
194
191
|
|
|
@@ -196,9 +193,10 @@ def storage_node_add():
|
|
|
196
193
|
node_ip = req_data['node_ip']
|
|
197
194
|
ifname = req_data['ifname']
|
|
198
195
|
max_lvol = int(req_data['max_lvol'])
|
|
199
|
-
max_snap = int(req_data
|
|
196
|
+
max_snap = int(req_data.get('max_snap', 500))
|
|
200
197
|
max_prov = req_data['max_prov']
|
|
201
198
|
number_of_distribs = req_data.get('number_of_distribs', 4)
|
|
199
|
+
disable_ha_jm = req_data.get('disable_ha_jm', False)
|
|
202
200
|
|
|
203
201
|
spdk_image = None
|
|
204
202
|
if 'spdk_image' in req_data:
|
|
@@ -217,11 +215,11 @@ def storage_node_add():
|
|
|
217
215
|
if 'namespace' in req_data:
|
|
218
216
|
namespace = req_data['namespace']
|
|
219
217
|
|
|
220
|
-
jm_percent =
|
|
218
|
+
jm_percent = 3
|
|
221
219
|
if 'jm_percent' in req_data:
|
|
222
220
|
jm_percent = int(req_data['jm_percent'])
|
|
223
221
|
|
|
224
|
-
partitions =
|
|
222
|
+
partitions = 1
|
|
225
223
|
if 'partitions' in req_data:
|
|
226
224
|
partitions = int(req_data['partitions'])
|
|
227
225
|
|
|
@@ -263,7 +261,8 @@ def storage_node_add():
|
|
|
263
261
|
"number_of_devices": number_of_devices,
|
|
264
262
|
"enable_test_device": False,
|
|
265
263
|
"number_of_distribs": number_of_distribs,
|
|
266
|
-
"namespace": namespace
|
|
264
|
+
"namespace": namespace,
|
|
265
|
+
"disable_ha_jm": disable_ha_jm})
|
|
267
266
|
|
|
268
267
|
return utils.get_response(True)
|
|
269
268
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.96 → sbcli_dev-3.8.99}/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.96 → sbcli_dev-3.8.99}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/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.96 → sbcli_dev-3.8.99}/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.96 → sbcli_dev-3.8.99}/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.96 → sbcli_dev-3.8.99}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/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.96 → sbcli_dev-3.8.99}/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.96 → sbcli_dev-3.8.99}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-3.8.96 → sbcli_dev-3.8.99}/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
|