sbcli-dev 4.0.2__zip → 4.0.4__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-4.0.2 → sbcli_dev-4.0.4}/PKG-INFO +1 -1
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/env_var +1 -1
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/device_controller.py +13 -13
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/lvol_controller.py +1 -1
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/tasks_controller.py +1 -2
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/distr_controller.py +5 -2
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/storage_node_ops.py +9 -6
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/README.md +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/pyproject.toml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/setup.cfg +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/setup.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/app.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_web/utils.py +0 -0
|
@@ -38,6 +38,19 @@ def device_set_state(device_id, state):
|
|
|
38
38
|
old_status = dev.status
|
|
39
39
|
device.status = state
|
|
40
40
|
snode.write_to_db(db_controller.kv_store)
|
|
41
|
+
|
|
42
|
+
if state == NVMeDevice.STATUS_ONLINE:
|
|
43
|
+
snode = db_controller.get_storage_node_by_id(dev.node_id)
|
|
44
|
+
logger.info("Make other nodes connect to the node devices")
|
|
45
|
+
snodes = db_controller.get_storage_nodes_by_cluster_id(snode.cluster_id)
|
|
46
|
+
for node in snodes:
|
|
47
|
+
if node.get_id() == snode.get_id() or node.status != StorageNode.STATUS_ONLINE:
|
|
48
|
+
continue
|
|
49
|
+
node.remote_devices = storage_node_ops._connect_to_remote_devs(node)
|
|
50
|
+
if node.enable_ha_jm:
|
|
51
|
+
node.remote_jm_devices = storage_node_ops._connect_to_remote_jm_devs(node)
|
|
52
|
+
node.write_to_db()
|
|
53
|
+
|
|
41
54
|
distr_controller.send_dev_status_event(device, device.status)
|
|
42
55
|
device_events.device_status_change(device, device.status, old_status)
|
|
43
56
|
return True
|
|
@@ -80,19 +93,6 @@ def device_set_read_only(device_id):
|
|
|
80
93
|
|
|
81
94
|
|
|
82
95
|
def device_set_online(device_id):
|
|
83
|
-
db_controller = DBController()
|
|
84
|
-
dev = db_controller.get_storage_devices(device_id)
|
|
85
|
-
snode = db_controller.get_storage_node_by_id(dev.node_id)
|
|
86
|
-
logger.info("Make other nodes connect to the node devices")
|
|
87
|
-
snodes = db_controller.get_storage_nodes_by_cluster_id(snode.cluster_id)
|
|
88
|
-
for node in snodes:
|
|
89
|
-
if node.get_id() == snode.get_id() or node.status != StorageNode.STATUS_ONLINE:
|
|
90
|
-
continue
|
|
91
|
-
node.remote_devices = storage_node_ops._connect_to_remote_devs(node)
|
|
92
|
-
if node.enable_ha_jm:
|
|
93
|
-
node.remote_jm_devices = storage_node_ops._connect_to_remote_jm_devs(node)
|
|
94
|
-
node.write_to_db()
|
|
95
|
-
|
|
96
96
|
ret = device_set_state(device_id, NVMeDevice.STATUS_ONLINE)
|
|
97
97
|
if ret:
|
|
98
98
|
logger.info("Adding task to device data migration")
|
|
@@ -575,7 +575,7 @@ def _create_bdev_stack(lvol, snode, ha_comm_addrs, ha_inode_self):
|
|
|
575
575
|
ret = distr_controller.send_cluster_map_to_node(snode)
|
|
576
576
|
if not ret:
|
|
577
577
|
return False, "Failed to send cluster map"
|
|
578
|
-
time.sleep(3)
|
|
578
|
+
# time.sleep(3)
|
|
579
579
|
|
|
580
580
|
elif type == "bmap_init":
|
|
581
581
|
ret = rpc_client.ultra21_lvol_bmap_init(**params)
|
|
@@ -80,8 +80,7 @@ def add_device_mig_task(device_id):
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
def add_device_to_auto_restart(device):
|
|
83
|
-
return
|
|
84
|
-
# return _add_task(JobSchedule.FN_DEV_RESTART, device.cluster_id, device.node_id, device.get_id())
|
|
83
|
+
return _add_task(JobSchedule.FN_DEV_RESTART, device.cluster_id, device.node_id, device.get_id())
|
|
85
84
|
|
|
86
85
|
|
|
87
86
|
def add_node_to_auto_restart(node):
|
|
@@ -31,7 +31,7 @@ def send_node_status_event(node, node_status):
|
|
|
31
31
|
ret = rpc_client.distr_status_events_update(events)
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
def send_dev_status_event(device, dev_status):
|
|
34
|
+
def send_dev_status_event(device, dev_status, target_node=None):
|
|
35
35
|
db_controller = DBController()
|
|
36
36
|
storage_ID = device.cluster_device_order
|
|
37
37
|
node_status_event = {
|
|
@@ -41,7 +41,10 @@ def send_dev_status_event(device, dev_status):
|
|
|
41
41
|
"status": dev_status}
|
|
42
42
|
events = {"events": [node_status_event]}
|
|
43
43
|
logger.debug(node_status_event)
|
|
44
|
-
|
|
44
|
+
if target_node:
|
|
45
|
+
snodes = [target_node]
|
|
46
|
+
else:
|
|
47
|
+
snodes = db_controller.get_storage_nodes_by_cluster_id(device.cluster_id)
|
|
45
48
|
for node in snodes:
|
|
46
49
|
if node.status not in [StorageNode.STATUS_ONLINE, StorageNode.STATUS_SUSPENDED]:
|
|
47
50
|
continue
|
|
@@ -778,6 +778,7 @@ def _connect_to_remote_devs(this_node):
|
|
|
778
778
|
continue
|
|
779
779
|
dev.remote_bdev = bdev_name
|
|
780
780
|
remote_devices.append(dev)
|
|
781
|
+
distr_controller.send_dev_status_event(dev, dev.status, node)
|
|
781
782
|
return remote_devices
|
|
782
783
|
|
|
783
784
|
|
|
@@ -789,7 +790,10 @@ def _connect_to_remote_jm_devs(this_node, jm_ids=[]):
|
|
|
789
790
|
this_node.rpc_username, this_node.rpc_password, timeout=10, retry=2)
|
|
790
791
|
|
|
791
792
|
node_bdevs = rpc_client.get_bdevs()
|
|
792
|
-
|
|
793
|
+
if node_bdevs:
|
|
794
|
+
node_bdev_names = [b['name'] for b in node_bdevs]
|
|
795
|
+
else:
|
|
796
|
+
node_bdev_names = []
|
|
793
797
|
remote_devices = []
|
|
794
798
|
if jm_ids:
|
|
795
799
|
for jm_id in jm_ids:
|
|
@@ -1683,10 +1687,6 @@ def restart_storage_node(
|
|
|
1683
1687
|
logger.info("Connecting to remote JMs")
|
|
1684
1688
|
snode.remote_jm_devices = _connect_to_remote_jm_devs(snode)
|
|
1685
1689
|
|
|
1686
|
-
logger.info(f"Sending device status event")
|
|
1687
|
-
for dev in snode.nvme_devices:
|
|
1688
|
-
distr_controller.send_dev_status_event(dev, dev.status)
|
|
1689
|
-
|
|
1690
1690
|
logger.info("Setting node status to Online")
|
|
1691
1691
|
set_node_status(node_id, StorageNode.STATUS_ONLINE)
|
|
1692
1692
|
|
|
@@ -1701,6 +1701,9 @@ def restart_storage_node(
|
|
|
1701
1701
|
node.remote_jm_devices = _connect_to_remote_jm_devs(node)
|
|
1702
1702
|
node.write_to_db(kv_store)
|
|
1703
1703
|
|
|
1704
|
+
logger.info(f"Sending device status event")
|
|
1705
|
+
for dev in snode.nvme_devices:
|
|
1706
|
+
distr_controller.send_dev_status_event(dev, dev.status)
|
|
1704
1707
|
|
|
1705
1708
|
logger.info("Starting migration tasks")
|
|
1706
1709
|
for dev in snode.nvme_devices:
|
|
@@ -2658,7 +2661,7 @@ def create_lvstore(snode, ndcs, npcs, distr_bs, distr_chunk_bs, page_size_in_blo
|
|
|
2658
2661
|
snode.lvstore_stack = lvstore_stack
|
|
2659
2662
|
snode.raid = raid_device
|
|
2660
2663
|
snode.write_to_db()
|
|
2661
|
-
time.sleep(1)
|
|
2664
|
+
# time.sleep(1)
|
|
2662
2665
|
return True
|
|
2663
2666
|
|
|
2664
2667
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-4.0.2 → sbcli_dev-4.0.4}/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-4.0.2 → sbcli_dev-4.0.4}/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-4.0.2 → sbcli_dev-4.0.4}/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
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-4.0.2 → sbcli_dev-4.0.4}/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
|