sbcli-dev 10.6.8__tar.gz → 10.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/PKG-INFO +1 -1
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/cluster_ops.py +5 -1
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/env_var +1 -1
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/nvme_device.py +1 -1
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/deploy_stack.sh +1 -1
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/storage_node_ops.py +34 -26
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/README.md +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/pyproject.toml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/requirements.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/setup.cfg +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/setup.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/README.md +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/app.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_web/utils.py +0 -0
|
@@ -130,6 +130,10 @@ def create_cluster(blk_size, page_size_in_blocks, cli_pass,
|
|
|
130
130
|
if c.swarm.attrs and "ID" in c.swarm.attrs:
|
|
131
131
|
logger.info("Docker swarm found, leaving swarm now")
|
|
132
132
|
c.swarm.leave(force=True)
|
|
133
|
+
try:
|
|
134
|
+
c.volumes.get("monitoring_grafana_data").remove(force=True)
|
|
135
|
+
except:
|
|
136
|
+
pass
|
|
133
137
|
time.sleep(3)
|
|
134
138
|
|
|
135
139
|
c.swarm.init(DEV_IP)
|
|
@@ -160,7 +164,7 @@ def create_cluster(blk_size, page_size_in_blocks, cli_pass,
|
|
|
160
164
|
if prov_cap_crit and prov_cap_crit > 0:
|
|
161
165
|
c.prov_cap_crit = prov_cap_crit
|
|
162
166
|
if distr_ndcs == 0 and distr_npcs == 0:
|
|
163
|
-
c.distr_ndcs =
|
|
167
|
+
c.distr_ndcs = 1
|
|
164
168
|
c.distr_npcs = 1
|
|
165
169
|
else:
|
|
166
170
|
c.distr_ndcs = distr_ndcs
|
|
@@ -35,7 +35,7 @@ docker network create monitoring-net -d overlay --attachable
|
|
|
35
35
|
docker stack deploy --compose-file="$DIR"/docker-compose-swarm-monitoring.yml monitoring
|
|
36
36
|
|
|
37
37
|
# wait for the services to become online
|
|
38
|
-
|
|
38
|
+
bash "$DIR"/stack_deploy_wait.sh monitoring
|
|
39
39
|
|
|
40
40
|
docker stack deploy --compose-file="$DIR"/docker-compose-swarm.yml app
|
|
41
41
|
|
|
@@ -574,11 +574,13 @@ def _prepare_cluster_devices_partitions(snode, devices):
|
|
|
574
574
|
if dev_part not in jm_devices:
|
|
575
575
|
jm_devices.append(dev_part)
|
|
576
576
|
|
|
577
|
-
new_device = _create_storage_device_stack(rpc_client, nvme, snode, after_restart=
|
|
577
|
+
new_device = _create_storage_device_stack(rpc_client, nvme, snode, after_restart=False)
|
|
578
578
|
if not new_device:
|
|
579
579
|
logger.error("failed to create dev stack")
|
|
580
580
|
return False
|
|
581
581
|
new_devices.append(new_device)
|
|
582
|
+
if new_device.status == NVMeDevice.STATUS_ONLINE:
|
|
583
|
+
device_events.device_create(new_device)
|
|
582
584
|
|
|
583
585
|
else:
|
|
584
586
|
# look for partitions
|
|
@@ -600,18 +602,16 @@ def _prepare_cluster_devices_partitions(snode, devices):
|
|
|
600
602
|
jm_devices.append(partitioned_devices.pop(0).nvme_bdev)
|
|
601
603
|
|
|
602
604
|
for dev in partitioned_devices:
|
|
603
|
-
|
|
604
|
-
if not
|
|
605
|
+
ret = _create_storage_device_stack(rpc_client, dev, snode, after_restart=False)
|
|
606
|
+
if not ret:
|
|
605
607
|
logger.error("failed to create dev stack")
|
|
606
608
|
return False
|
|
607
|
-
if
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
device_events.device_create(new_device)
|
|
614
|
-
new_devices.append(new_device)
|
|
609
|
+
if dev.status == NVMeDevice.STATUS_ONLINE:
|
|
610
|
+
if dev.cluster_device_order < 0:
|
|
611
|
+
dev.cluster_device_order = dev_order
|
|
612
|
+
dev_order += 1
|
|
613
|
+
device_events.device_create(dev)
|
|
614
|
+
new_devices.append(dev)
|
|
615
615
|
|
|
616
616
|
snode.nvme_devices = new_devices
|
|
617
617
|
|
|
@@ -651,12 +651,12 @@ def _prepare_cluster_devices_jm_on_dev(snode, devices):
|
|
|
651
651
|
if nvme.status not in [NVMeDevice.STATUS_ONLINE, NVMeDevice.STATUS_NEW]:
|
|
652
652
|
logger.debug(f"Device is not online : {nvme.get_id()}, status: {nvme.status}")
|
|
653
653
|
else:
|
|
654
|
-
|
|
655
|
-
if not
|
|
654
|
+
ret = _create_storage_device_stack(rpc_client, nvme, snode, after_restart=False)
|
|
655
|
+
if not ret:
|
|
656
656
|
logger.error("failed to create dev stack")
|
|
657
657
|
return False
|
|
658
658
|
if nvme.status == NVMeDevice.STATUS_ONLINE:
|
|
659
|
-
if nvme.cluster_device_order
|
|
659
|
+
if nvme.cluster_device_order < 0 :
|
|
660
660
|
nvme.cluster_device_order = dev_order
|
|
661
661
|
dev_order += 1
|
|
662
662
|
device_events.device_create(nvme)
|
|
@@ -1829,22 +1829,29 @@ def restart_storage_node(
|
|
|
1829
1829
|
active_devices = []
|
|
1830
1830
|
removed_devices = []
|
|
1831
1831
|
known_devices_sn = []
|
|
1832
|
-
|
|
1832
|
+
devices_sn_dict = {d.serial_number:d for d in nvme_devs}
|
|
1833
1833
|
for db_dev in snode.nvme_devices:
|
|
1834
1834
|
known_devices_sn.append(db_dev.serial_number)
|
|
1835
|
-
if db_dev.status in [NVMeDevice.STATUS_FAILED_AND_MIGRATED, NVMeDevice.STATUS_FAILED]:
|
|
1835
|
+
if db_dev.status in [NVMeDevice.STATUS_FAILED_AND_MIGRATED, NVMeDevice.STATUS_FAILED, NVMeDevice.STATUS_REMOVED]:
|
|
1836
1836
|
removed_devices.append(db_dev)
|
|
1837
1837
|
continue
|
|
1838
|
-
if db_dev.serial_number in
|
|
1838
|
+
if db_dev.serial_number in devices_sn_dict.keys():
|
|
1839
1839
|
logger.info(f"Device found: {db_dev.get_id()}, status {db_dev.status}")
|
|
1840
|
-
|
|
1841
|
-
|
|
1840
|
+
found_dev = devices_sn_dict[db_dev.serial_number]
|
|
1841
|
+
if not db_dev.is_partition and not found_dev.is_partition:
|
|
1842
|
+
db_dev.device_name = found_dev.device_name
|
|
1843
|
+
db_dev.nvme_bdev = found_dev.nvme_bdev
|
|
1844
|
+
db_dev.nvme_controller =found_dev.nvme_controller
|
|
1845
|
+
db_dev.pcie_address = found_dev.pcie_address
|
|
1846
|
+
|
|
1847
|
+
if db_dev.status in [NVMeDevice.STATUS_READONLY, NVMeDevice.STATUS_UNAVAILABLE]:
|
|
1848
|
+
db_dev.status = NVMeDevice.STATUS_ONLINE
|
|
1842
1849
|
active_devices.append(db_dev)
|
|
1843
1850
|
else:
|
|
1844
1851
|
logger.info(f"Device not found: {db_dev.get_id()}")
|
|
1845
1852
|
db_dev.status = NVMeDevice.STATUS_REMOVED
|
|
1846
1853
|
removed_devices.append(db_dev)
|
|
1847
|
-
distr_controller.send_dev_status_event(db_dev, db_dev.status)
|
|
1854
|
+
# distr_controller.send_dev_status_event(db_dev, db_dev.status)
|
|
1848
1855
|
|
|
1849
1856
|
if snode.jm_device and "serial_number" in snode.jm_device.device_data_dict:
|
|
1850
1857
|
known_devices_sn.append(snode.jm_device.device_data_dict['serial_number'])
|
|
@@ -1861,22 +1868,21 @@ def restart_storage_node(
|
|
|
1861
1868
|
# prepare devices on new node
|
|
1862
1869
|
if snode.num_partitions_per_dev == 0 or snode.jm_percent == 0:
|
|
1863
1870
|
|
|
1864
|
-
jm_device =
|
|
1865
|
-
for index, nvme in enumerate(
|
|
1866
|
-
if nvme.size < jm_device.size:
|
|
1871
|
+
jm_device = snode.nvme_devices[0]
|
|
1872
|
+
for index, nvme in enumerate(snode.nvme_devices):
|
|
1873
|
+
if nvme.status in [NVMeDevice.STATUS_ONLINE, NVMeDevice.STATUS_NEW] and nvme.size < jm_device.size:
|
|
1867
1874
|
jm_device = nvme
|
|
1868
1875
|
jm_device.status = NVMeDevice.STATUS_JM
|
|
1869
1876
|
|
|
1870
1877
|
if snode.jm_device and snode.jm_device.get_id():
|
|
1871
1878
|
jm_device.uuid = snode.jm_device.get_id()
|
|
1872
1879
|
|
|
1873
|
-
ret = _prepare_cluster_devices_jm_on_dev(snode,
|
|
1880
|
+
ret = _prepare_cluster_devices_jm_on_dev(snode, snode.nvme_devices)
|
|
1874
1881
|
else:
|
|
1875
|
-
ret = _prepare_cluster_devices_partitions(snode,
|
|
1882
|
+
ret = _prepare_cluster_devices_partitions(snode, snode.nvme_devices)
|
|
1876
1883
|
if not ret:
|
|
1877
1884
|
logger.error("Failed to prepare cluster devices")
|
|
1878
1885
|
# return False
|
|
1879
|
-
snode.nvme_devices.extend(removed_devices)
|
|
1880
1886
|
else:
|
|
1881
1887
|
ret = _prepare_cluster_devices_on_restart(snode, clear_data=clear_data)
|
|
1882
1888
|
if not ret:
|
|
@@ -1901,6 +1907,8 @@ def restart_storage_node(
|
|
|
1901
1907
|
device_events.device_restarted(db_dev)
|
|
1902
1908
|
snode.write_to_db(db_controller.kv_store)
|
|
1903
1909
|
|
|
1910
|
+
for db_dev in snode.nvme_devices:
|
|
1911
|
+
distr_controller.send_dev_status_event(db_dev, db_dev.status)
|
|
1904
1912
|
|
|
1905
1913
|
logger.info("Connecting to remote devices")
|
|
1906
1914
|
snode.remote_devices = _connect_to_remote_devs(snode)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/controllers/caching_node_controller.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/clean_local_storage_deploy.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/dashboards/node-exporter.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/capacity_and_stats_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/main_distr_event_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.6.8 → sbcli_dev-10.7.0}/simplyblock_core/services/tasks_runner_new_dev_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|