sbcli-dev 10.4.0__tar.gz → 10.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/PKG-INFO +1 -1
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/lvol_controller.py +10 -60
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/snapshot_controller.py +10 -17
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/tasks_events.py +0 -4
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/env_var +1 -1
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/tasks_runner_failed_migration.py +0 -1
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/tasks_runner_migration.py +0 -1
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/tasks_runner_new_dev_migration.py +0 -1
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/tasks_runner_node_add.py +0 -2
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/tasks_runner_restart.py +1 -3
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/README.md +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/pyproject.toml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/requirements.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/setup.cfg +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/setup.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_cli/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/cluster_ops.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/constants.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/events_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/db_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/deploy_fdb.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/docker-compose-swarm.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/foundation.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/haproxy.cfg +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/prepare_fdb.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/log_agg_service.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/new_device_discovery.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/storage_node_ops.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/utils.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/workers/cleanup_foundationdb.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/README.md +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/app.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/snode_ops.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/snode_ops_k8s.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/requirements.txt +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_web/utils.py +0 -0
|
@@ -175,8 +175,6 @@ def _get_next_3_nodes(cluster_id, lvol_size=0):
|
|
|
175
175
|
continue
|
|
176
176
|
|
|
177
177
|
if node.status == node.STATUS_ONLINE:
|
|
178
|
-
if node.hostname == "ip-10-245-16-169":
|
|
179
|
-
continue
|
|
180
178
|
# Validate Eligible nodes for adding lvol
|
|
181
179
|
# snode_api = SNodeClient(node.api_endpoint)
|
|
182
180
|
# result, _ = snode_api.info()
|
|
@@ -487,57 +485,22 @@ def add_lvol_ha(name, size, host_id_or_name, ha_type, pool_id_or_name, use_comp,
|
|
|
487
485
|
lvol.crypto_key1 = crypto_key1
|
|
488
486
|
lvol.crypto_key2 = crypto_key2
|
|
489
487
|
|
|
490
|
-
if ha_type == 'single':
|
|
491
|
-
ret, error = add_lvol_on_node(lvol, host_node)
|
|
492
|
-
if error:
|
|
493
|
-
return ret, error
|
|
494
|
-
lvol.nodes = [host_node.get_id()]
|
|
495
|
-
elif ha_type == "ha":
|
|
496
488
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
"lvol": {
|
|
504
|
-
"lvol_store_uuid": "0aa735b5-67d2-477a-95d4-4e7108f0e769",
|
|
505
|
-
"base_bdev": "raid0_9768",
|
|
506
|
-
"thin_provision": true,
|
|
507
|
-
"num_allocated_clusters": 0,
|
|
508
|
-
"snapshot": false,
|
|
509
|
-
"clone": false,
|
|
510
|
-
"lvol_leadership": true,
|
|
511
|
-
"lvs_leadership": true,
|
|
512
|
-
"blobid": 4294967297,
|
|
513
|
-
"lvol_priority_class": 0,
|
|
514
|
-
"esnap_clone": false
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
"""
|
|
518
|
-
|
|
519
|
-
lvol.lvol_uuid = lvol_bdev['uuid']
|
|
520
|
-
lvol.blobid = lvol_bdev['driver_specific']['lvol']['blobid']
|
|
489
|
+
lvol_bdev, error = add_lvol_on_node(lvol, host_node)
|
|
490
|
+
if error:
|
|
491
|
+
return False, error
|
|
492
|
+
lvol.nodes = [host_node.get_id()]
|
|
493
|
+
lvol.lvol_uuid = lvol_bdev['uuid']
|
|
494
|
+
lvol.blobid = lvol_bdev['driver_specific']['lvol']['blobid']
|
|
521
495
|
|
|
496
|
+
if ha_type == "ha":
|
|
522
497
|
sec_node = db_controller.get_storage_node_by_id(host_node.secondary_node_id)
|
|
523
498
|
ret, error = add_lvol_on_node(lvol, sec_node, ha_inode_self=1)
|
|
524
499
|
if error:
|
|
525
|
-
return
|
|
526
|
-
|
|
527
|
-
nodes_ids = [
|
|
528
|
-
host_node.get_id(),
|
|
529
|
-
host_node.secondary_node_id]
|
|
530
|
-
lvol.nodes = nodes_ids
|
|
531
|
-
|
|
532
|
-
# host_node = db_controller.get_storage_node_by_id(host_node.get_id())
|
|
533
|
-
# host_node.lvols += 1
|
|
534
|
-
# host_node.write_to_db(db_controller.kv_store)
|
|
500
|
+
return False, error
|
|
501
|
+
lvol.nodes.append(host_node.secondary_node_id)
|
|
535
502
|
|
|
536
|
-
# pool = db_controller.get_pool_by_id(pool.get_id())
|
|
537
503
|
lvol.pool_uuid = pool.get_id()
|
|
538
|
-
# pool.lvols += 1
|
|
539
|
-
# pool.write_to_db(db_controller.kv_store)
|
|
540
|
-
|
|
541
504
|
lvol.write_to_db(db_controller.kv_store)
|
|
542
505
|
lvol_events.lvol_create(lvol)
|
|
543
506
|
|
|
@@ -601,7 +564,6 @@ def _create_bdev_stack(lvol, snode):
|
|
|
601
564
|
|
|
602
565
|
def add_lvol_on_node(lvol, snode, ha_comm_addrs=None, ha_inode_self=0):
|
|
603
566
|
rpc_client = RPCClient(snode.mgmt_ip, snode.rpc_port, snode.rpc_username, snode.rpc_password)
|
|
604
|
-
spdk_mem_info_before = rpc_client.ultra21_util_get_malloc_stats()
|
|
605
567
|
|
|
606
568
|
if snode.is_secondary_node:
|
|
607
569
|
rpc_client.bdev_lvol_set_leader(False, lvs_name=lvol.lvs_name)
|
|
@@ -652,23 +614,10 @@ def add_lvol_on_node(lvol, snode, ha_comm_addrs=None, ha_inode_self=0):
|
|
|
652
614
|
if not ret:
|
|
653
615
|
return False, "Failed to add bdev to subsystem"
|
|
654
616
|
|
|
655
|
-
# logger.info("Sending cluster map to LVol")
|
|
656
|
-
# ret = distr_controller.send_cluster_map_to_node(snode)
|
|
657
|
-
# if not ret:
|
|
658
|
-
# return False, "Failed to send cluster map"
|
|
659
|
-
|
|
660
617
|
spdk_mem_info_after = rpc_client.ultra21_util_get_malloc_stats()
|
|
661
618
|
logger.debug("ultra21_util_get_malloc_stats:")
|
|
662
619
|
logger.debug(spdk_mem_info_after)
|
|
663
620
|
|
|
664
|
-
diff = {}
|
|
665
|
-
for key in spdk_mem_info_after.keys():
|
|
666
|
-
diff[key] = spdk_mem_info_after[key] - spdk_mem_info_before[key]
|
|
667
|
-
|
|
668
|
-
logger.info("spdk mem diff:")
|
|
669
|
-
logger.info(json.dumps(diff, indent=2))
|
|
670
|
-
lvol.mem_diff = diff
|
|
671
|
-
|
|
672
621
|
ret = rpc_client.get_bdevs(f"{lvol.lvs_name}/{lvol.lvol_bdev}")
|
|
673
622
|
lvol_bdev = ret[0]
|
|
674
623
|
|
|
@@ -1063,6 +1012,7 @@ def list_lvols(is_json, cluster_id, pool_id_or_name, all=False):
|
|
|
1063
1012
|
"Size": utils.humanbytes(lvol.size),
|
|
1064
1013
|
"Hostname": lvol.hostname,
|
|
1065
1014
|
"HA": lvol.ha_type,
|
|
1015
|
+
"BlobID": lvol.blobid or "",
|
|
1066
1016
|
"Priority": lvol.lvol_priority_class,
|
|
1067
1017
|
"Status": lvol.status,
|
|
1068
1018
|
"IO Err": lvol.io_error,
|
|
@@ -380,29 +380,22 @@ def clone(snapshot_id, clone_name, new_size=0):
|
|
|
380
380
|
|
|
381
381
|
lvol.write_to_db(db_controller.kv_store)
|
|
382
382
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
lvol_bdev, error = lvol_controller.add_lvol_on_node(lvol, snode)
|
|
390
|
-
if error:
|
|
391
|
-
return False, error
|
|
392
|
-
|
|
393
|
-
lvol.lvol_uuid = lvol_bdev['uuid']
|
|
394
|
-
lvol.blobid = lvol_bdev['driver_specific']['lvol']['blobid']
|
|
383
|
+
lvol_bdev, error = lvol_controller.add_lvol_on_node(lvol, snode)
|
|
384
|
+
if error:
|
|
385
|
+
return False, error
|
|
386
|
+
lvol.nodes = [snode.get_id()]
|
|
387
|
+
lvol.lvol_uuid = lvol_bdev['uuid']
|
|
388
|
+
lvol.blobid = lvol_bdev['driver_specific']['lvol']['blobid']
|
|
395
389
|
|
|
390
|
+
if snap.lvol.ha_type == "ha":
|
|
396
391
|
sec_node = db_controller.get_storage_node_by_id(snode.secondary_node_id)
|
|
397
392
|
if sec_node.status == StorageNode.STATUS_ONLINE:
|
|
398
393
|
ret, error = lvol_controller.add_lvol_on_node(lvol, sec_node, ha_inode_self=1)
|
|
399
394
|
if error:
|
|
400
|
-
return
|
|
395
|
+
return False, error
|
|
396
|
+
|
|
397
|
+
lvol.nodes.append(snode.secondary_node_id)
|
|
401
398
|
|
|
402
|
-
nodes_ids = [
|
|
403
|
-
snode.get_id(),
|
|
404
|
-
snode.secondary_node_id]
|
|
405
|
-
lvol.nodes = nodes_ids
|
|
406
399
|
|
|
407
400
|
lvol.write_to_db(db_controller.kv_store)
|
|
408
401
|
|
|
@@ -28,10 +28,6 @@ def task_updated(task, caused_by=ec.CAUSED_BY_CLI):
|
|
|
28
28
|
_task_event(task, f"Task updated: {task.uuid}", caused_by, ec.EVENT_STATUS_CHANGE)
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
def task_status_change(task, new_state, old_status, caused_by=ec.CAUSED_BY_CLI):
|
|
32
|
-
_task_event(task, f"task status changed from: {old_status} to: {new_state}", caused_by, ec.EVENT_STATUS_CHANGE)
|
|
33
|
-
|
|
34
|
-
|
|
35
31
|
def task_canceled(task, caused_by=ec.CAUSED_BY_CLI):
|
|
36
32
|
_task_event(task, f"Task canceled: {task.uuid}", caused_by, ec.EVENT_STATUS_CHANGE)
|
|
37
33
|
|
|
@@ -38,7 +38,6 @@ while True:
|
|
|
38
38
|
task.function_result = "canceled"
|
|
39
39
|
task.status = JobSchedule.STATUS_DONE
|
|
40
40
|
task.write_to_db(db_controller.kv_store)
|
|
41
|
-
tasks_events.task_updated(task)
|
|
42
41
|
continue
|
|
43
42
|
|
|
44
43
|
if db_controller.get_cluster_by_id(cl.get_id()).status == Cluster.STATUS_IN_ACTIVATION:
|
|
@@ -50,7 +49,6 @@ while True:
|
|
|
50
49
|
if task.status != JobSchedule.STATUS_RUNNING:
|
|
51
50
|
task.status = JobSchedule.STATUS_RUNNING
|
|
52
51
|
task.write_to_db(db_controller.kv_store)
|
|
53
|
-
tasks_events.task_updated(task)
|
|
54
52
|
|
|
55
53
|
res = storage_node_ops.add_node(**task.function_params)
|
|
56
54
|
logger.info(f"Node add result: {res}")
|
|
@@ -98,7 +98,6 @@ def task_runner_device(task):
|
|
|
98
98
|
if task.status != JobSchedule.STATUS_RUNNING:
|
|
99
99
|
task.status = JobSchedule.STATUS_RUNNING
|
|
100
100
|
task.write_to_db(db_controller.kv_store)
|
|
101
|
-
tasks_events.task_updated(task)
|
|
102
101
|
|
|
103
102
|
# set device online for the first 3 retries
|
|
104
103
|
if task.retry < 3:
|
|
@@ -171,7 +170,6 @@ def task_runner_node(task):
|
|
|
171
170
|
return True
|
|
172
171
|
task.status = JobSchedule.STATUS_RUNNING
|
|
173
172
|
task.write_to_db(db_controller.kv_store)
|
|
174
|
-
tasks_events.task_updated(task)
|
|
175
173
|
|
|
176
174
|
# is node reachable?
|
|
177
175
|
ping_check = health_controller._check_node_ping(node.mgmt_ip)
|
|
@@ -230,8 +228,8 @@ while True:
|
|
|
230
228
|
task = db_controller.get_task_by_id(task.uuid)
|
|
231
229
|
res = task_runner(task)
|
|
232
230
|
if res:
|
|
233
|
-
tasks_events.task_updated(task)
|
|
234
231
|
if task.status == JobSchedule.STATUS_DONE:
|
|
232
|
+
tasks_events.task_updated(task)
|
|
235
233
|
break
|
|
236
234
|
else:
|
|
237
235
|
if task.retry <= 3:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.4.0 → sbcli_dev-10.4.1}/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
|
{sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/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.4.0 → sbcli_dev-10.4.1}/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.4.0 → sbcli_dev-10.4.1}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/simplyblock_core/services/capacity_and_stats_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-10.4.0 → sbcli_dev-10.4.1}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|