sbcli-dev 4.0.50__zip → 4.0.51__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.
Potentially problematic release.
This version of sbcli-dev might be problematic. Click here for more details.
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/PKG-INFO +1 -1
- sbcli_dev-4.0.51/env_var +7 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/sbcli_dev.egg-info/PKG-INFO +1 -1
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/cluster_ops.py +1 -1
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/constants.py +1 -1
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/events_controller.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/docker-compose-swarm.yml +1 -1
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/haproxy.cfg +14 -8
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/log_agg_service.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/new_device_discovery.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_failed_migration.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_new_dev_migration.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_restart.py +6 -7
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/utils.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/snode_ops.py +2 -2
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/snode_ops_k8s.py +1 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/templates/storage_deploy_spdk.yaml.j2 +41 -0
- sbcli_dev-4.0.50/env_var +0 -7
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/README.md +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/pyproject.toml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/sbcli_dev.egg-info/SOURCES.txt +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/sbcli_dev.egg-info/dependency_links.txt +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/sbcli_dev.egg-info/entry_points.txt +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/sbcli_dev.egg-info/requires.txt +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/sbcli_dev.egg-info/top_level.txt +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/setup.cfg +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/setup.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_cli/cli.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_cli/main.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/cnode_client.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/compute_node_ops.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/caching_node_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/cluster_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/device_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/device_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/health_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/lvol_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/lvol_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/mgmt_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/pool_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/pool_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/snapshot_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/snapshot_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/storage_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/tasks_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/controllers/tasks_events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/distr_controller.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/kv_store.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/mgmt_node_ops.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/base_model.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/caching_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/cluster.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/compute_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/deployer.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/events.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/global_settings.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/iface.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/job_schedule.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/lvol_model.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/mgmt_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/nvme_device.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/pool.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/port_stat.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/snapshot.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/stats.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/models/storage_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/pci_utils.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/rpc_client.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2 +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/alerting/alert_rules.yaml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/clean_local_storage_deploy.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/config_docker.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboard.yml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboards/cluster.json +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboards/devices.json +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboards/lvols.json +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboards/node-exporter.json +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboards/nodes.json +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/dashboards/pools.json +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/datasource.yml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/db_config_double.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/db_config_single.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/deploy_stack.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/docker-compose-swarm-monitoring.yml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/install_deps.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/objstore.yml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/prometheus.yml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/run_ssh.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/set_db_config.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/stack_deploy_wait.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/cached_lvol_stat_collector.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/caching_node_monitor.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/cap_monitor.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/capacity_and_stats_collector.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/device_monitor.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/health_check_service.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/install_service.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/lvol_monitor.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/lvol_stat_collector.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/main_distr_event_collector.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/mgmt_node_monitor.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/port_stat_collector.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/remove_service.sh +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/service_template.service +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/spdk_http_proxy_server.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/storage_node_monitor.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_migration.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_node_add.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/shell_utils.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/snode_client.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/storage_node_ops.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/app.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/auth_middleware.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/__init__.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/caching_node_ops.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/caching_node_ops_k8s.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/node_api_basic.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/node_api_caching_docker.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/node_api_caching_ks.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_caching_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_cluster.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_deployer.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_device.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_lvol.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_mgmt_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_pool.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_snapshot.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/blueprints/web_api_storage_node.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/caching_node_app.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/caching_node_app_k8s.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/node_utils.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/node_webapp.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/snode_app.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/snode_app_k8s.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/delete.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/deploy.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/deploy_cnode.yaml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/deploy_spdk.yaml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/is_up.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/list_deps.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/rpac.yaml +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/static/tst.py +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/templates/caching_deploy_spdk.yaml.j2 +0 -0
- {sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_web/utils.py +0 -0
sbcli_dev-4.0.51/env_var
ADDED
|
@@ -77,7 +77,7 @@ def _add_graylog_input(cluster_ip, password):
|
|
|
77
77
|
url = f"http://{cluster_ip}/graylog/api/system/inputs"
|
|
78
78
|
payload = json.dumps({
|
|
79
79
|
"title": "spdk log input",
|
|
80
|
-
"type": "org.graylog2.inputs.gelf.
|
|
80
|
+
"type": "org.graylog2.inputs.gelf.tcp.GELFTCPInput",
|
|
81
81
|
"configuration": {
|
|
82
82
|
"bind_address": "0.0.0.0",
|
|
83
83
|
"port": 12201,
|
|
@@ -7,11 +7,11 @@ from simplyblock_core.models.events import EventObj
|
|
|
7
7
|
from simplyblock_core.kv_store import DBController
|
|
8
8
|
from simplyblock_core import constants
|
|
9
9
|
|
|
10
|
-
from graypy import
|
|
10
|
+
from graypy import GELFTCPHandler
|
|
11
11
|
|
|
12
12
|
# configure logging
|
|
13
13
|
logging.captureWarnings(True)
|
|
14
|
-
gelf_handler =
|
|
14
|
+
gelf_handler = GELFTCPHandler('0.0.0.0', constants.GELF_PORT)
|
|
15
15
|
logger = logging.getLogger()
|
|
16
16
|
logger.setLevel(logging.DEBUG)
|
|
17
17
|
logger.addHandler(gelf_handler)
|
|
@@ -52,24 +52,30 @@ backend graylog_services
|
|
|
52
52
|
http-request set-path %[path,regsub(^/graylog/?,/)]
|
|
53
53
|
server-template graylog- 1 graylog:9000 check resolvers docker init-addr libc,none
|
|
54
54
|
|
|
55
|
-
backend
|
|
56
|
-
|
|
57
|
-
http-request set-path %[path,regsub(^/graylog_input/?,/)]
|
|
58
|
-
server-template graylog_input- 1 graylog:12201 check resolvers docker init-addr libc,none
|
|
59
|
-
|
|
60
|
-
frontend stats_front
|
|
61
|
-
bind *:8404
|
|
55
|
+
backend haproxy_services
|
|
56
|
+
http-request set-path %[path,regsub(^/haproxy/?,/)]
|
|
62
57
|
stats enable
|
|
63
58
|
stats uri /
|
|
64
59
|
stats refresh 10s
|
|
65
60
|
stats show-legends
|
|
66
61
|
stats show-node
|
|
67
62
|
|
|
63
|
+
backend graylog_input_services
|
|
64
|
+
mode tcp
|
|
65
|
+
balance roundrobin
|
|
66
|
+
server-template graylog_input- 1 graylog:12201 check resolvers docker init-addr libc,none
|
|
67
|
+
|
|
68
|
+
|
|
68
69
|
frontend web_api_front
|
|
69
70
|
bind *:80
|
|
70
71
|
|
|
71
72
|
use_backend grafana_services if { path /grafana } || { path_beg /grafana/ }
|
|
72
73
|
use_backend graylog_services if { path /graylog } || { path_beg /graylog/ }
|
|
73
|
-
use_backend
|
|
74
|
+
use_backend haproxy_services if { path /haproxy } || { path_beg /haproxy/ }
|
|
74
75
|
|
|
75
76
|
default_backend wep_api_services
|
|
77
|
+
|
|
78
|
+
frontend graylog_input_front
|
|
79
|
+
bind *:12202
|
|
80
|
+
mode tcp
|
|
81
|
+
default_backend graylog_input_services
|
|
@@ -9,12 +9,12 @@ from simplyblock_core import constants, kv_store, utils
|
|
|
9
9
|
from simplyblock_core.models.stats import DeviceStatObject, NodeStatObject, ClusterStatObject
|
|
10
10
|
|
|
11
11
|
# Import the GELF logger
|
|
12
|
-
from graypy import
|
|
12
|
+
from graypy import GELFTCPHandler
|
|
13
13
|
|
|
14
14
|
# configure logging
|
|
15
15
|
logger_handler = logging.StreamHandler(stream=sys.stdout)
|
|
16
16
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
17
|
-
gelf_handler =
|
|
17
|
+
gelf_handler = GELFTCPHandler('0.0.0.0', constants.GELF_PORT)
|
|
18
18
|
logger = logging.getLogger()
|
|
19
19
|
logger.addHandler(gelf_handler)
|
|
20
20
|
logger.addHandler(logger_handler)
|
|
@@ -8,14 +8,14 @@ from simplyblock_core.models.nvme_device import NVMeDevice
|
|
|
8
8
|
from simplyblock_core.models.storage_node import StorageNode
|
|
9
9
|
|
|
10
10
|
# Import the GELF logger
|
|
11
|
-
from graypy import
|
|
11
|
+
from graypy import GELFTCPHandler
|
|
12
12
|
|
|
13
13
|
from simplyblock_core.snode_client import SNodeClient
|
|
14
14
|
|
|
15
15
|
# configure logging
|
|
16
16
|
logger_handler = logging.StreamHandler(stream=sys.stdout)
|
|
17
17
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
18
|
-
gelf_handler =
|
|
18
|
+
gelf_handler = GELFTCPHandler('0.0.0.0', constants.GELF_PORT)
|
|
19
19
|
logger = logging.getLogger()
|
|
20
20
|
logger.addHandler(gelf_handler)
|
|
21
21
|
logger.addHandler(logger_handler)
|
{sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_failed_migration.py
RENAMED
|
@@ -10,7 +10,7 @@ from simplyblock_core.models.job_schedule import JobSchedule
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
# Import the GELF logger
|
|
13
|
-
from graypy import
|
|
13
|
+
from graypy import GELFTCPHandler
|
|
14
14
|
|
|
15
15
|
from simplyblock_core.models.nvme_device import NVMeDevice
|
|
16
16
|
from simplyblock_core.models.storage_node import StorageNode
|
|
@@ -111,7 +111,7 @@ def task_runner(task):
|
|
|
111
111
|
# configure logging
|
|
112
112
|
logger_handler = logging.StreamHandler(stream=sys.stdout)
|
|
113
113
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
114
|
-
gelf_handler =
|
|
114
|
+
gelf_handler = GELFTCPHandler('0.0.0.0', constants.GELF_PORT)
|
|
115
115
|
logger = logging.getLogger()
|
|
116
116
|
logger.addHandler(gelf_handler)
|
|
117
117
|
logger.addHandler(logger_handler)
|
{sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/tasks_runner_new_dev_migration.py
RENAMED
|
@@ -10,7 +10,7 @@ from simplyblock_core.models.job_schedule import JobSchedule
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
# Import the GELF logger
|
|
13
|
-
from graypy import
|
|
13
|
+
from graypy import GELFTCPHandler
|
|
14
14
|
|
|
15
15
|
from simplyblock_core.models.nvme_device import NVMeDevice
|
|
16
16
|
from simplyblock_core.models.storage_node import StorageNode
|
|
@@ -123,7 +123,7 @@ def task_runner(task):
|
|
|
123
123
|
# configure logging
|
|
124
124
|
logger_handler = logging.StreamHandler(stream=sys.stdout)
|
|
125
125
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
126
|
-
gelf_handler =
|
|
126
|
+
gelf_handler = GELFTCPHandler('0.0.0.0', constants.GELF_PORT)
|
|
127
127
|
logger = logging.getLogger()
|
|
128
128
|
logger.addHandler(gelf_handler)
|
|
129
129
|
logger.addHandler(logger_handler)
|
|
@@ -141,13 +141,6 @@ def task_runner_node(task):
|
|
|
141
141
|
task.write_to_db(db_controller.kv_store)
|
|
142
142
|
return True
|
|
143
143
|
|
|
144
|
-
if node.status == StorageNode.STATUS_RESTARTING:
|
|
145
|
-
logger.info(f"Node is restarting, stopping task")
|
|
146
|
-
task.function_result = f"Node is restarting"
|
|
147
|
-
task.status = JobSchedule.STATUS_DONE
|
|
148
|
-
task.write_to_db(db_controller.kv_store)
|
|
149
|
-
return True
|
|
150
|
-
|
|
151
144
|
if node.status == StorageNode.STATUS_SCHEDULABLE:
|
|
152
145
|
logger.info(f"Node is schedulable, stopping task")
|
|
153
146
|
task.function_result = f"Node is schedulable"
|
|
@@ -169,6 +162,12 @@ def task_runner_node(task):
|
|
|
169
162
|
return True
|
|
170
163
|
|
|
171
164
|
if task.status != JobSchedule.STATUS_RUNNING:
|
|
165
|
+
if node.status == StorageNode.STATUS_RESTARTING:
|
|
166
|
+
logger.info(f"Node is restarting, stopping task")
|
|
167
|
+
task.function_result = f"Node is restarting"
|
|
168
|
+
task.status = JobSchedule.STATUS_DONE
|
|
169
|
+
task.write_to_db(db_controller.kv_store)
|
|
170
|
+
return True
|
|
172
171
|
task.status = JobSchedule.STATUS_RUNNING
|
|
173
172
|
task.write_to_db(db_controller.kv_store)
|
|
174
173
|
tasks_events.task_updated(task)
|
|
@@ -11,7 +11,7 @@ import sys
|
|
|
11
11
|
|
|
12
12
|
import docker
|
|
13
13
|
from prettytable import PrettyTable
|
|
14
|
-
from graypy import
|
|
14
|
+
from graypy import GELFTCPHandler
|
|
15
15
|
|
|
16
16
|
from simplyblock_core import constants
|
|
17
17
|
from simplyblock_core import shell_utils
|
|
@@ -562,7 +562,7 @@ def get_logger(name):
|
|
|
562
562
|
logger_handler.setFormatter(logging.Formatter('%(asctime)s: %(levelname)s: %(message)s'))
|
|
563
563
|
logger.addHandler(logger_handler)
|
|
564
564
|
|
|
565
|
-
gelf_handler =
|
|
565
|
+
gelf_handler = GELFTCPHandler('0.0.0.0', constants.GELF_PORT)
|
|
566
566
|
logger.addHandler(gelf_handler)
|
|
567
567
|
return logging.getLogger(name)
|
|
568
568
|
|
|
@@ -155,7 +155,7 @@ def spdk_process_start():
|
|
|
155
155
|
|
|
156
156
|
if "cluster_ip" in data and data['cluster_ip']:
|
|
157
157
|
cluster_ip = data['cluster_ip']
|
|
158
|
-
log_config = LogConfig(type=LogConfig.types.GELF, config={"gelf-address": f"
|
|
158
|
+
log_config = LogConfig(type=LogConfig.types.GELF, config={"gelf-address": f"tcp://{cluster_ip}:12202"})
|
|
159
159
|
else:
|
|
160
160
|
log_config = LogConfig(type=LogConfig.types.JOURNALD)
|
|
161
161
|
|
|
@@ -182,7 +182,7 @@ def spdk_process_start():
|
|
|
182
182
|
name="spdk_proxy",
|
|
183
183
|
detach=True,
|
|
184
184
|
network_mode="host",
|
|
185
|
-
log_config=
|
|
185
|
+
log_config=log_config,
|
|
186
186
|
volumes=[
|
|
187
187
|
'/var/tmp:/var/tmp'
|
|
188
188
|
],
|
|
@@ -387,6 +387,7 @@ def spdk_process_start():
|
|
|
387
387
|
'NAMESPACE': namespace,
|
|
388
388
|
'FDB_CONNECTION': fdb_connection,
|
|
389
389
|
'SIMPLYBLOCK_DOCKER_IMAGE': constants.SIMPLY_BLOCK_DOCKER_IMAGE,
|
|
390
|
+
'GRAYLOG_SERVER_IP': data['cluster_ip']
|
|
390
391
|
}
|
|
391
392
|
dep = yaml.safe_load(template.render(values))
|
|
392
393
|
logger.debug(dep)
|
|
@@ -13,6 +13,7 @@ spec:
|
|
|
13
13
|
labels:
|
|
14
14
|
app: spdk-app-{{ HOSTNAME }}
|
|
15
15
|
spec:
|
|
16
|
+
serviceAccountName: storage-node-sa
|
|
16
17
|
nodeSelector:
|
|
17
18
|
kubernetes.io/hostname: {{ HOSTNAME }}
|
|
18
19
|
hostNetwork: true
|
|
@@ -43,6 +44,12 @@ spec:
|
|
|
43
44
|
medium: HugePages
|
|
44
45
|
- name: script-volume
|
|
45
46
|
emptyDir: {}
|
|
47
|
+
- name: varlog
|
|
48
|
+
hostPath:
|
|
49
|
+
path: /var/log
|
|
50
|
+
- name: dockercontainerlogdirectory
|
|
51
|
+
hostPath:
|
|
52
|
+
path: /var/log/pods
|
|
46
53
|
tolerations:
|
|
47
54
|
- effect: NoSchedule
|
|
48
55
|
key: dedicated
|
|
@@ -110,3 +117,37 @@ spec:
|
|
|
110
117
|
value: "{{ RPC_USERNAME }}"
|
|
111
118
|
- name: RPC_PASSWORD
|
|
112
119
|
value: "{{ RPC_PASSWORD }}"
|
|
120
|
+
|
|
121
|
+
- name: fluentd
|
|
122
|
+
image: fluent/fluentd-kubernetes-daemonset:v1.17.1-debian-graylog-1.2
|
|
123
|
+
imagePullPolicy: "Always"
|
|
124
|
+
env:
|
|
125
|
+
- name: K8S_NODE_NAME
|
|
126
|
+
valueFrom:
|
|
127
|
+
fieldRef:
|
|
128
|
+
fieldPath: spec.nodeName
|
|
129
|
+
- name: FLUENT_GRAYLOG_HOST
|
|
130
|
+
value: "{{ GRAYLOG_SERVER_IP }}"
|
|
131
|
+
- name: FLUENT_GRAYLOG_PORT
|
|
132
|
+
value: "12202"
|
|
133
|
+
- name: FLUENT_GRAYLOG_PROTOCOL
|
|
134
|
+
value: "tcp"
|
|
135
|
+
- name: FLUENTD_SYSTEMD_CONF
|
|
136
|
+
value: "disable"
|
|
137
|
+
- name: FLUENT_CONTAINER_TAIL_EXCLUDE_PATH
|
|
138
|
+
value: /var/log/pods/fluent*
|
|
139
|
+
- name: FLUENT_CONTAINER_TAIL_PARSER_TYPE
|
|
140
|
+
value: /^(?<time>.+) (?<stream>stdout|stderr)( (?<logtag>.))? (?<log>.*)$/
|
|
141
|
+
resources:
|
|
142
|
+
requests:
|
|
143
|
+
cpu: 200m
|
|
144
|
+
memory: 0.5Gi
|
|
145
|
+
limits:
|
|
146
|
+
cpu: 1000m
|
|
147
|
+
memory: 1Gi
|
|
148
|
+
volumeMounts:
|
|
149
|
+
- name: varlog
|
|
150
|
+
mountPath: /var/log
|
|
151
|
+
- name: dockercontainerlogdirectory
|
|
152
|
+
mountPath: /var/log/pods
|
|
153
|
+
readOnly: true
|
sbcli_dev-4.0.50/env_var
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.50 → sbcli_dev-4.0.51}/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-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/scripts/alerting/alert_resources.yaml.j2
RENAMED
|
File without changes
|
|
File without changes
|
{sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/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-4.0.50 → sbcli_dev-4.0.51}/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-4.0.50 → sbcli_dev-4.0.51}/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
|
{sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/simplyblock_core/services/cached_lvol_stat_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/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
|
{sbcli_dev-4.0.50 → sbcli_dev-4.0.51}/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
|