sbcli-dev 10.5.4__tar.gz → 10.5.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.5.4 → sbcli_dev-10.5.6}/PKG-INFO +1 -1
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_cli/cli.py +2 -1
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/env_var +1 -1
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/storage_node.py +1 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_new_dev_migration.py +16 -13
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/storage_node_ops.py +8 -2
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/README.md +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/pyproject.toml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/requirements.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/setup.cfg +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/setup.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/README.md +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/app.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_web/utils.py +0 -0
|
@@ -58,7 +58,7 @@ class CLIWrapper:
|
|
|
58
58
|
sub_command.add_argument("--disable-ha-jm", help='Disable HA JM for distrib creation', action='store_false', dest='enable_ha_jm', default=True)
|
|
59
59
|
sub_command.add_argument("--is-secondary-node", help='add as secondary node', action='store_true', dest='is_secondary_node', default=False)
|
|
60
60
|
sub_command.add_argument("--namespace", help='k8s namespace to deploy on',)
|
|
61
|
-
|
|
61
|
+
sub_command.add_argument("--id-device-by-nqn", help='Use device nqn to identify it instead of serial number', action='store_true', dest='id_device_by_nqn', default=False)
|
|
62
62
|
|
|
63
63
|
# delete storage node
|
|
64
64
|
sub_command = self.add_sub_command(subparser, "delete", 'Delete storage node obj')
|
|
@@ -798,6 +798,7 @@ class CLIWrapper:
|
|
|
798
798
|
number_of_distribs=number_of_distribs,
|
|
799
799
|
enable_ha_jm=enable_ha_jm,
|
|
800
800
|
is_secondary_node=args.is_secondary_node,
|
|
801
|
+
id_device_by_nqn=args.id_device_by_nqn,
|
|
801
802
|
)
|
|
802
803
|
|
|
803
804
|
return out
|
{sbcli_dev-10.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_new_dev_migration.py
RENAMED
|
@@ -32,7 +32,7 @@ def task_runner(task):
|
|
|
32
32
|
task.write_to_db(db_controller.kv_store)
|
|
33
33
|
return True
|
|
34
34
|
|
|
35
|
-
if task.status in [JobSchedule.STATUS_NEW
|
|
35
|
+
if task.status in [JobSchedule.STATUS_NEW, JobSchedule.STATUS_SUSPENDED]:
|
|
36
36
|
if task.status == JobSchedule.STATUS_NEW:
|
|
37
37
|
for node in db_controller.get_storage_nodes_by_cluster_id(task.cluster_id):
|
|
38
38
|
if node.online_since:
|
|
@@ -58,17 +58,20 @@ def task_runner(task):
|
|
|
58
58
|
return False
|
|
59
59
|
|
|
60
60
|
rpc_client = RPCClient(snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password, timeout=5, retry=2)
|
|
61
|
+
all_devs_online = True
|
|
62
|
+
all_devs_online_or_failed = True
|
|
63
|
+
for node in db_controller.get_storage_nodes_by_cluster_id(task.cluster_id):
|
|
64
|
+
for dev in node.nvme_devices:
|
|
65
|
+
if dev.status == NVMeDevice.STATUS_FAILED:
|
|
66
|
+
all_devs_online = False
|
|
67
|
+
elif dev.status not in [NVMeDevice.STATUS_ONLINE,
|
|
68
|
+
NVMeDevice.STATUS_FAILED_AND_MIGRATED]:
|
|
69
|
+
all_devs_online_or_failed = False
|
|
70
|
+
all_devs_online = False
|
|
71
|
+
break
|
|
72
|
+
|
|
61
73
|
if "migration" not in task.function_params:
|
|
62
|
-
|
|
63
|
-
for node in db_controller.get_storage_nodes_by_cluster_id(task.cluster_id):
|
|
64
|
-
for dev in node.nvme_devices:
|
|
65
|
-
if dev.status not in [NVMeDevice.STATUS_ONLINE,
|
|
66
|
-
NVMeDevice.STATUS_FAILED,
|
|
67
|
-
NVMeDevice.STATUS_FAILED_AND_MIGRATED]:
|
|
68
|
-
all_devs_online = False
|
|
69
|
-
break
|
|
70
|
-
|
|
71
|
-
if not all_devs_online:
|
|
74
|
+
if not all_devs_online_or_failed:
|
|
72
75
|
task.function_result = "Some devs are offline, retrying"
|
|
73
76
|
task.retry += 1
|
|
74
77
|
task.status = JobSchedule.STATUS_SUSPENDED
|
|
@@ -102,10 +105,10 @@ def task_runner(task):
|
|
|
102
105
|
time.sleep(3)
|
|
103
106
|
|
|
104
107
|
if "migration" in task.function_params:
|
|
105
|
-
|
|
108
|
+
allowed_error_codes = list(range(1, 8)) if not all_devs_online else [0]
|
|
106
109
|
mig_info = task.function_params["migration"]
|
|
107
110
|
res = rpc_client.distr_migration_status(**mig_info)
|
|
108
|
-
return utils.handle_task_result(task, res, allowed_error_codes=
|
|
111
|
+
return utils.handle_task_result(task, res, allowed_error_codes=allowed_error_codes)
|
|
109
112
|
else:
|
|
110
113
|
task.retry += 1
|
|
111
114
|
task.write_to_db(db_controller.kv_store)
|
|
@@ -126,6 +126,11 @@ def addNvmeDevices(snode, devs):
|
|
|
126
126
|
model_number = nvme_driver_data['ctrlr_data']['model_number']
|
|
127
127
|
total_size = nvme_dict['block_size'] * nvme_dict['num_blocks']
|
|
128
128
|
|
|
129
|
+
serial_number = nvme_driver_data['ctrlr_data']['serial_number']
|
|
130
|
+
if snode.id_device_by_nqn:
|
|
131
|
+
subnqn = nvme_driver_data['ctrlr_data']['subnqn']
|
|
132
|
+
serial_number = subnqn.split(":")[-1] + "_" + nvme_driver_data['ctrlr_data']['cntlid']
|
|
133
|
+
|
|
129
134
|
devices.append(
|
|
130
135
|
NVMeDevice({
|
|
131
136
|
'uuid': str(uuid.uuid4()),
|
|
@@ -134,7 +139,7 @@ def addNvmeDevices(snode, devs):
|
|
|
134
139
|
'physical_label': next_physical_label,
|
|
135
140
|
'pcie_address': nvme_driver_data['pci_address'],
|
|
136
141
|
'model_id': model_number,
|
|
137
|
-
'serial_number':
|
|
142
|
+
'serial_number': serial_number,
|
|
138
143
|
'nvme_bdev': nvme_bdev,
|
|
139
144
|
'nvme_controller': nvme_controller,
|
|
140
145
|
'node_id': snode.get_id(),
|
|
@@ -926,7 +931,7 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
926
931
|
max_lvol, max_snap, max_prov, spdk_image=None, spdk_debug=False,
|
|
927
932
|
small_bufsize=0, large_bufsize=0, spdk_cpu_mask=None,
|
|
928
933
|
num_partitions_per_dev=0, jm_percent=0, number_of_devices=0, enable_test_device=False,
|
|
929
|
-
namespace=None, number_of_distribs=2, enable_ha_jm=False, is_secondary_node=False):
|
|
934
|
+
namespace=None, number_of_distribs=2, enable_ha_jm=False, is_secondary_node=False, id_device_by_nqn=False):
|
|
930
935
|
|
|
931
936
|
db_controller = DBController()
|
|
932
937
|
kv_store = db_controller.kv_store
|
|
@@ -1205,6 +1210,7 @@ def add_node(cluster_id, node_ip, iface_name, data_nics_list,
|
|
|
1205
1210
|
|
|
1206
1211
|
snode.num_partitions_per_dev = num_partitions_per_dev
|
|
1207
1212
|
snode.jm_percent = jm_percent
|
|
1213
|
+
snode.id_device_by_nqn = id_device_by_nqn
|
|
1208
1214
|
|
|
1209
1215
|
time.sleep(10)
|
|
1210
1216
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.5.4 → sbcli_dev-10.5.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.5.4 → sbcli_dev-10.5.6}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.5.4 → sbcli_dev-10.5.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.5.4 → sbcli_dev-10.5.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
|
|
File without changes
|
{sbcli_dev-10.5.4 → sbcli_dev-10.5.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.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.5.4 → sbcli_dev-10.5.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.5.4 → sbcli_dev-10.5.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.5.4 → sbcli_dev-10.5.6}/simplyblock_core/services/tasks_runner_failed_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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|