sbcli-dev 5.1.9__tar.gz → 5.2.1__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-5.1.9 → sbcli_dev-5.2.1}/PKG-INFO +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/env_var +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_cli/cli.py +2 -2
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/cluster_ops.py +3 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/lvol_controller.py +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/health_check_service.py +5 -3
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/spdk_http_proxy_server.py +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/snode_client.py +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/snode_ops_k8s.py +1 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_cluster.py +2 -1
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/snode_app_k8s.py +2 -2
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/README.md +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/pyproject.toml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/setup.cfg +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/setup.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/storage_node_ops.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/app.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_web/utils.py +0 -0
|
@@ -277,8 +277,8 @@ class CLIWrapper:
|
|
|
277
277
|
sub_command.add_argument("--prov-cap-crit", help='Capacity critical level in percent, default=190',
|
|
278
278
|
type=int, required=False, dest="prov_cap_crit")
|
|
279
279
|
sub_command.add_argument("--ifname", help='Management interface name, default: eth0')
|
|
280
|
-
sub_command.add_argument("--log-del-interval", help='graylog deletion interval, default:
|
|
281
|
-
dest='log_del_interval', default='
|
|
280
|
+
sub_command.add_argument("--log-del-interval", help='graylog deletion interval, default: 2d',
|
|
281
|
+
dest='log_del_interval', default='2d')
|
|
282
282
|
sub_command.add_argument("--metrics-retention-period", help='retention period for prometheus metrics, default: 7d',
|
|
283
283
|
dest='metrics_retention_period', default='7d')
|
|
284
284
|
sub_command.add_argument("--contact-point", help='the email or slack webhook url to be used for alerting',
|
|
@@ -295,7 +295,7 @@ def deploy_spdk(node_docker, spdk_cpu_mask, spdk_mem):
|
|
|
295
295
|
|
|
296
296
|
def add_cluster(blk_size, page_size_in_blocks, cap_warn, cap_crit, prov_cap_warn, prov_cap_crit,
|
|
297
297
|
distr_ndcs, distr_npcs, distr_bs, distr_chunk_bs, ha_type, enable_node_affinity, qpair_count,
|
|
298
|
-
enable_qos):
|
|
298
|
+
max_queue_size, inflight_io_threshold, enable_qos):
|
|
299
299
|
db_controller = DBController()
|
|
300
300
|
clusters = db_controller.get_clusters()
|
|
301
301
|
if not clusters:
|
|
@@ -328,6 +328,8 @@ def add_cluster(blk_size, page_size_in_blocks, cap_warn, cap_crit, prov_cap_warn
|
|
|
328
328
|
cluster.ha_type = ha_type
|
|
329
329
|
cluster.enable_node_affinity = enable_node_affinity
|
|
330
330
|
cluster.qpair_count = qpair_count or 256
|
|
331
|
+
cluster.max_queue_size = max_queue_size
|
|
332
|
+
cluster.inflight_io_threshold = inflight_io_threshold
|
|
331
333
|
cluster.enable_qos = enable_qos
|
|
332
334
|
if cap_warn and cap_warn > 0:
|
|
333
335
|
cluster.cap_warn = cap_warn
|
|
@@ -196,7 +196,7 @@ def _get_next_3_nodes(cluster_id, lvol_size=0):
|
|
|
196
196
|
|
|
197
197
|
node_stats[node.get_id()] = node_st
|
|
198
198
|
|
|
199
|
-
if len(online_nodes)
|
|
199
|
+
if len(online_nodes) <= 1:
|
|
200
200
|
return online_nodes
|
|
201
201
|
cluster_stats = utils.dict_agg([node_stats[k] for k in node_stats])
|
|
202
202
|
|
|
@@ -115,10 +115,11 @@ while True:
|
|
|
115
115
|
connected_devices.append(remote_device.get_id())
|
|
116
116
|
else:
|
|
117
117
|
logger.info(f"Checking bdev: {remote_device.remote_bdev} ... not found")
|
|
118
|
-
|
|
118
|
+
name = f"remote_{remote_device.alceml_bdev}"
|
|
119
|
+
ret = rpc_client.bdev_nvme_detach_controller(name)
|
|
119
120
|
time.sleep(1)
|
|
120
121
|
ret = rpc_client.bdev_nvme_attach_controller_tcp(
|
|
121
|
-
|
|
122
|
+
name, remote_device.nvmf_nqn, remote_device.nvmf_ip, remote_device.nvmf_port)
|
|
122
123
|
if ret:
|
|
123
124
|
logger.info(f"Successfully connected to device: {remote_device.get_id()}")
|
|
124
125
|
connected_devices.append(remote_device.get_id())
|
|
@@ -170,8 +171,9 @@ while True:
|
|
|
170
171
|
logger.info(f"Checking bdev: {remote_device.remote_bdev} ... ok")
|
|
171
172
|
else:
|
|
172
173
|
logger.info(f"Checking bdev: {remote_device.remote_bdev} ... not found")
|
|
174
|
+
name = f"remote_{remote_device.alceml_bdev}"
|
|
173
175
|
ret = rpc_client.bdev_nvme_attach_controller_tcp(
|
|
174
|
-
|
|
176
|
+
name, remote_device.nvmf_nqn, remote_device.nvmf_ip,
|
|
175
177
|
remote_device.nvmf_port)
|
|
176
178
|
if ret:
|
|
177
179
|
logger.info(f"Successfully connected to device: {remote_device.get_id()}")
|
|
@@ -18,7 +18,7 @@ logger_handler = logging.StreamHandler(stream=sys.stdout)
|
|
|
18
18
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
19
19
|
logger = logging.getLogger()
|
|
20
20
|
logger.addHandler(logger_handler)
|
|
21
|
-
logger.setLevel(logging.
|
|
21
|
+
logger.setLevel(logging.INFO)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
def get_env_var(name, default=None, is_required=False):
|
|
@@ -16,7 +16,7 @@ class SNodeClientException(Exception):
|
|
|
16
16
|
|
|
17
17
|
class SNodeClient:
|
|
18
18
|
|
|
19
|
-
def __init__(self, ip_address, timeout=
|
|
19
|
+
def __init__(self, ip_address, timeout=120, retry=5):
|
|
20
20
|
self.ip_address = ip_address
|
|
21
21
|
self.url = 'http://%s/snode/' % self.ip_address
|
|
22
22
|
self.timeout = timeout
|
|
@@ -19,7 +19,7 @@ from simplyblock_web import utils, node_utils
|
|
|
19
19
|
from simplyblock_core import scripts, constants, shell_utils
|
|
20
20
|
|
|
21
21
|
logger = logging.getLogger(__name__)
|
|
22
|
-
logger.setLevel(logging.
|
|
22
|
+
logger.setLevel(logging.INFO)
|
|
23
23
|
bp = Blueprint("snode", __name__, url_prefix="/snode")
|
|
24
24
|
|
|
25
25
|
cluster_id_file = "/etc/foundationdb/sbcli_cluster_id"
|
|
@@ -49,10 +49,11 @@ def add_cluster():
|
|
|
49
49
|
|
|
50
50
|
max_queue_size = cl_data.get('max_queue_size', 128)
|
|
51
51
|
inflight_io_threshold = cl_data.get('inflight_io_threshold', 4)
|
|
52
|
+
enable_qos = cl_data.get('enable_qos', False)
|
|
52
53
|
|
|
53
54
|
ret = cluster_ops.add_cluster(blk_size, page_size_in_blocks, cap_warn, cap_crit, prov_cap_warn, prov_cap_crit,
|
|
54
55
|
distr_ndcs, distr_npcs, distr_bs, distr_chunk_bs, ha_type, enable_node_affinity,
|
|
55
|
-
qpair_count, max_queue_size, inflight_io_threshold)
|
|
56
|
+
qpair_count, max_queue_size, inflight_io_threshold, enable_qos)
|
|
56
57
|
|
|
57
58
|
return utils.get_response(ret)
|
|
58
59
|
|
|
@@ -12,7 +12,7 @@ logger_handler = logging.StreamHandler()
|
|
|
12
12
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
13
13
|
logger = logging.getLogger()
|
|
14
14
|
logger.addHandler(logger_handler)
|
|
15
|
-
logger.setLevel(logging.
|
|
15
|
+
logger.setLevel(logging.INFO)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
app = Flask(__name__)
|
|
@@ -29,4 +29,4 @@ app.register_blueprint(snode_ops_k8s.bp)
|
|
|
29
29
|
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = True
|
|
30
30
|
|
|
31
31
|
if __name__ == '__main__':
|
|
32
|
-
app.run(host='0.0.0.0'
|
|
32
|
+
app.run(host='0.0.0.0')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
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
|
{sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-5.1.9 → sbcli_dev-5.2.1}/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
|