sbcli-dev 17.1.8__tar.gz → 17.2.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-17.1.8 → sbcli_dev-17.2.0}/PKG-INFO +1 -1
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/env_var +1 -1
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/health_check_service.py +6 -35
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/lvol_monitor.py +0 -4
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/main_distr_event_collector.py +4 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/storage_node_ops.py +9 -3
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/README.md +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/pyproject.toml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/requirements.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/setup.cfg +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/setup.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_cli/clibase.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/controllers/tcp_ports_events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/spdk/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/spdk/client.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/spdk_stats_collector.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/tasks_runner_restart.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/test/test_utils.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/README.md +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/app.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/swagger_ui_blueprint.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/node_utils_k8s.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/SimplyBlock-API.postman_collection.json +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/swagger.yaml +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/utils.py +0 -0
|
@@ -183,37 +183,6 @@ while True:
|
|
|
183
183
|
|
|
184
184
|
node_remote_devices_check &= bool(ret)
|
|
185
185
|
|
|
186
|
-
# for node in db_controller.get_storage_nodes_by_cluster_id(snode.cluster_id):
|
|
187
|
-
# if node.status != StorageNode.STATUS_ONLINE or node.get_id() == snode.get_id():
|
|
188
|
-
# continue
|
|
189
|
-
# for dev in node.nvme_devices:
|
|
190
|
-
# if dev.status == NVMeDevice.STATUS_ONLINE:
|
|
191
|
-
# if dev.get_id() not in connected_devices:
|
|
192
|
-
# if not dev.alceml_bdev:
|
|
193
|
-
# logger.error(f"device alceml bdev not found!, {dev.get_id()}")
|
|
194
|
-
# continue
|
|
195
|
-
# logger.info(f"connecting to online device: {dev.get_id()}")
|
|
196
|
-
# name = f"remote_{dev.alceml_bdev}"
|
|
197
|
-
# bdev_name = f"{name}n1"
|
|
198
|
-
# if rpc_client.bdev_nvme_controller_list(name):
|
|
199
|
-
# logger.info(f"detaching {name} from {snode.get_id()}")
|
|
200
|
-
# rpc_client.bdev_nvme_detach_controller(name)
|
|
201
|
-
# time.sleep(1)
|
|
202
|
-
#
|
|
203
|
-
# logger.info(f"Connecting {name} to {snode.get_id()}")
|
|
204
|
-
# ret = rpc_client.bdev_nvme_attach_controller_tcp(
|
|
205
|
-
# name, dev.nvmf_nqn, dev.nvmf_ip,
|
|
206
|
-
# dev.nvmf_port)
|
|
207
|
-
# if ret:
|
|
208
|
-
# logger.info(f"Successfully connected to device: {dev.get_id()}")
|
|
209
|
-
# dev.remote_bdev = bdev_name
|
|
210
|
-
# snode = db_controller.get_storage_node_by_id(snode.get_id())
|
|
211
|
-
# snode.remote_devices.append(dev)
|
|
212
|
-
# snode.write_to_db()
|
|
213
|
-
# distr_controller.send_dev_status_event(dev, NVMeDevice.STATUS_ONLINE, snode)
|
|
214
|
-
# else:
|
|
215
|
-
# logger.error(f"Failed to connect to device: {dev.get_id()}")
|
|
216
|
-
|
|
217
186
|
connected_jms = []
|
|
218
187
|
if snode.jm_device and snode.jm_device.get_id():
|
|
219
188
|
jm_device = snode.jm_device
|
|
@@ -224,8 +193,6 @@ while True:
|
|
|
224
193
|
else:
|
|
225
194
|
logger.info(f"Checking jm bdev: {jm_device.jm_bdev} ... not found")
|
|
226
195
|
|
|
227
|
-
# node_devices_check &= ret
|
|
228
|
-
|
|
229
196
|
if snode.enable_ha_jm:
|
|
230
197
|
logger.info(f"Node remote JMs: {len(snode.remote_jm_devices)}")
|
|
231
198
|
for remote_device in snode.remote_jm_devices:
|
|
@@ -237,8 +204,12 @@ while True:
|
|
|
237
204
|
|
|
238
205
|
for jm_id in snode.jm_ids:
|
|
239
206
|
if jm_id not in connected_jms:
|
|
240
|
-
|
|
241
|
-
|
|
207
|
+
for nd in db_controller.get_storage_nodes():
|
|
208
|
+
if nd.jm_device and nd.jm_device.get_id() == jm_id:
|
|
209
|
+
if nd.status == StorageNode.STATUS_ONLINE:
|
|
210
|
+
node_remote_devices_check = False
|
|
211
|
+
break
|
|
212
|
+
|
|
242
213
|
if snode.lvstore_stack_secondary_1:
|
|
243
214
|
primary_node = db_controller.get_storage_node_by_id(snode.lvstore_stack_secondary_1)
|
|
244
215
|
if primary_node:
|
|
@@ -95,10 +95,6 @@ while True:
|
|
|
95
95
|
|
|
96
96
|
for lvol in db_controller.get_lvols_by_node_id(snode.get_id()):
|
|
97
97
|
|
|
98
|
-
if lvol.io_error:
|
|
99
|
-
logger.debug(f"Skipping LVol health check because of io_error {lvol.get_id()}")
|
|
100
|
-
continue
|
|
101
|
-
|
|
102
98
|
if lvol.status == LVol.STATUS_IN_CREATION:
|
|
103
99
|
continue
|
|
104
100
|
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/main_distr_event_collector.py
RENAMED
|
@@ -69,6 +69,10 @@ def process_device_event(event):
|
|
|
69
69
|
logger.info(f"Setting device to read-only")
|
|
70
70
|
device_controller.device_set_read_only(device_obj.get_id())
|
|
71
71
|
|
|
72
|
+
elif event.message == 'error_write_cannot_allocate':
|
|
73
|
+
logger.info(f"Setting device to cannot_allocate")
|
|
74
|
+
device_controller.device_set_state(device_obj.get_id(), NVMeDevice.STATUS_CANNOT_ALLOCATE)
|
|
75
|
+
|
|
72
76
|
else:
|
|
73
77
|
logger.info(f"Setting device to unavailable")
|
|
74
78
|
device_controller.device_set_unavailable(device_obj.get_id())
|
|
@@ -1938,7 +1938,7 @@ def list_storage_nodes(is_json, cluster_id=None):
|
|
|
1938
1938
|
"Status": node.status,
|
|
1939
1939
|
"Health": node.health_check,
|
|
1940
1940
|
"Up time": uptime,
|
|
1941
|
-
"CPU": f"{len(utils.hexa_to_cpu_list(node.spdk_cpu_mask))} {
|
|
1941
|
+
"CPU": f"{len(utils.hexa_to_cpu_list(node.spdk_cpu_mask))} {node.spdk_cpu_mask}",
|
|
1942
1942
|
"MEM": utils.humanbytes(node.spdk_mem),
|
|
1943
1943
|
"SPDK P": node.rpc_port,
|
|
1944
1944
|
"LVOL P": node.lvol_subsys_port,
|
|
@@ -2812,7 +2812,10 @@ def recreate_lvstore_on_sec(snode):
|
|
|
2812
2812
|
node.lvstore_status = "in_creation"
|
|
2813
2813
|
node.write_to_db()
|
|
2814
2814
|
|
|
2815
|
-
lvol_list =
|
|
2815
|
+
lvol_list = []
|
|
2816
|
+
for lv in db_controller.get_lvols_by_node_id(node.get_id()):
|
|
2817
|
+
if lv.status not in [LVol.STATUS_IN_DELETION, LVol.STATUS_IN_CREATION]:
|
|
2818
|
+
lvol_list.append(lv)
|
|
2816
2819
|
|
|
2817
2820
|
### 1- create distribs and raid
|
|
2818
2821
|
ret, err = _create_bdev_stack(snode, node.lvstore_stack, primary_node=node)
|
|
@@ -2891,7 +2894,10 @@ def recreate_lvstore(snode):
|
|
|
2891
2894
|
sec_node = db_controller.get_storage_node_by_id(snode.secondary_node_id)
|
|
2892
2895
|
sec_node_api = SNodeClient(sec_node.api_endpoint)
|
|
2893
2896
|
|
|
2894
|
-
lvol_list =
|
|
2897
|
+
lvol_list = []
|
|
2898
|
+
for lv in db_controller.get_lvols_by_node_id(snode.get_id()):
|
|
2899
|
+
if lv.status not in [LVol.STATUS_IN_DELETION, LVol.STATUS_IN_CREATION]:
|
|
2900
|
+
lvol_list.append(lv)
|
|
2895
2901
|
|
|
2896
2902
|
prim_node_suspend = False
|
|
2897
2903
|
if sec_node:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-17.1.8 → sbcli_dev-17.2.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
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.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-17.1.8 → sbcli_dev-17.2.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
|
|
File without changes
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.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-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.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
|
{sbcli_dev-17.1.8 → sbcli_dev-17.2.0}/simplyblock_web/static/SimplyBlock-API.postman_collection.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|