Commit 1960ff80 authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code clean up

parent 0dbc4b7f
Loading
Loading
Loading
Loading

linkerd.json

deleted100644 → 0
+0 −0

Empty file deleted.

logs.txt

deleted100644 → 0
+0 −43
Original line number Diff line number Diff line
[2025-02-12 11:20:56,156] INFO:__main__:Starting...
[2025-02-12 11:20:56,159] DEBUG:monitoring.client.MonitoringClient:Creating channel to monitoringservice:7070...
[2025-02-12 11:20:56,160] DEBUG:monitoring.client.MonitoringClient:Channel created
[2025-02-12 11:20:56,160] DEBUG:device.service.DeviceServiceServicerImpl:Creating Servicer...
[2025-02-12 11:20:56,161] DEBUG:device.service.DeviceServiceServicerImpl:Servicer Created
[2025-02-12 11:20:56,161] DEBUG:device.service.OpenConfigServicer:Creating Servicer...
[2025-02-12 11:20:56,161] DEBUG:device.service.OpenConfigServicer:Servicer Created
[2025-02-12 11:20:56,161] INFO:device.service.DeviceService:Starting Service (tentative endpoint: 0.0.0.0:2020, max_workers: 200)...
[2025-02-12 11:20:56,172] INFO:device.service.DeviceService:Listening on 0.0.0.0:2020...
[2025-02-12 11:20:56,174] DEBUG:device.service.DeviceService:Service started
[2025-02-12 11:20:56,174] INFO:__main__:Pre-loading drivers...
[2025-02-12 11:20:56,175] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.26:1010...
[2025-02-12 11:20:56,175] DEBUG:context.client.ContextClient:Channel created
[2025-02-12 11:20:56,175] DEBUG:context.client.ContextClient:ListDevices request: {}
[2025-02-12 11:21:01,184] INFO:common.tools.client.RetryDecorator:Retry 1/15 after 5.000000 seconds...
[2025-02-12 11:21:01,186] DEBUG:context.client.ContextClient:ListDevices request: {}
[2025-02-12 11:21:01,379] DEBUG:context.client.ContextClient:ListDevices result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.95.90.127"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "830"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"allow_agent\": false,\n\"delete_rule\": true,\n\"device_params\": {\n\"name\": \"huaweiyang\"\n},\n\"force_running\": false,\n\"hostkey_verify\": false,\n\"look_for_keys\": false,\n\"manager_params\": {\n\"timeout\": 120\n},\n\"message_renderer\": \"pyangbind\",\n\"password\": \"Pablo_123\",\n\"sap_id\": \"99\",\n\"username\": \"yangsuite\",\n\"vendor\": \"ADVA\"\n}"}}]}, "device_drivers": ["DEVICEDRIVER_PON"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "2a672db3-9ac5-5124-b9b2-12c9fc9dd4a8"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "pon-controller", "name": "R199"}]}
[2025-02-12 11:21:01,380] INFO:device.service.driver_api.DriverInstanceCache:Selecting driver for device(2a672db3-9ac5-5124-b9b2-12c9fc9dd4a8) with filter_fields({'device_type': 'pon-controller', 'driver': [13]})...
[2025-02-12 11:21:01,380] INFO:device.service.driver_api.DriverInstanceCache:Driver(PON_Driver) selected for device(2a672db3-9ac5-5124-b9b2-12c9fc9dd4a8) with filter_fields({'device_type': 'pon-controller', 'driver': [13]})...
[2025-02-12 11:21:01,383] DEBUG:tzlocal:/etc/timezone found, contents:
 Etc/UTC

[2025-02-12 11:21:01,384] DEBUG:tzlocal:/etc/localtime found
[2025-02-12 11:21:01,386] DEBUG:tzlocal:2 found:
 {'/etc/timezone': 'Etc/UTC', '/etc/localtime is a symlink to': 'Etc/UTC'}
[2025-02-12 11:23:19,651] DEBUG:device.service.DeviceServiceServicerImpl:AddDevice request: {"components": [], "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.95.90.127"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "830"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"allow_agent\": false,\n\"delete_rule\": true,\n\"device_params\": {\n\"name\": \"huaweiyang\"\n},\n\"force_running\": false,\n\"hostkey_verify\": false,\n\"look_for_keys\": false,\n\"manager_params\": {\n\"timeout\": 120\n},\n\"message_renderer\": \"pyangbind\",\n\"password\": \"Pablo_123\",\n\"sap_id\": \"99\",\n\"username\": \"yangsuite\",\n\"vendor\": \"ADVA\"\n}"}}]}, "device_drivers": ["DEVICEDRIVER_PON"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "R199"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "pon-controller", "name": ""}
[2025-02-12 11:23:19,654] DEBUG:context.client.ContextClient:Creating channel to 10.152.183.26:1010...
[2025-02-12 11:23:19,673] DEBUG:context.client.ContextClient:Channel created
[2025-02-12 11:23:19,674] DEBUG:context.client.ContextClient:SelectDevice request: {"device_ids": {"device_ids": [{"device_uuid": {"uuid": "R199"}}]}, "include_components": true, "include_config_rules": true, "include_endpoints": true}
[2025-02-12 11:23:19,720] DEBUG:context.client.ContextClient:SelectDevice result: {"devices": [{"components": [], "controller_id": {}, "device_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/address", "resource_value": "10.95.90.127"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/port", "resource_value": "830"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "_connect/settings", "resource_value": "{\n\"allow_agent\": false,\n\"delete_rule\": true,\n\"device_params\": {\n\"name\": \"huaweiyang\"\n},\n\"force_running\": false,\n\"hostkey_verify\": false,\n\"look_for_keys\": false,\n\"manager_params\": {\n\"timeout\": 120\n},\n\"message_renderer\": \"pyangbind\",\n\"password\": \"Pablo_123\",\n\"sap_id\": \"99\",\n\"username\": \"yangsuite\",\n\"vendor\": \"ADVA\"\n}"}}]}, "device_drivers": ["DEVICEDRIVER_PON"], "device_endpoints": [], "device_id": {"device_uuid": {"uuid": "2a672db3-9ac5-5124-b9b2-12c9fc9dd4a8"}}, "device_operational_status": "DEVICEOPERATIONALSTATUS_UNDEFINED", "device_type": "pon-controller", "name": "R199"}]}
[2025-02-12 11:23:19,722] INFO:device.service.DeviceServiceServicerImpl:request.device_endpoints []
[2025-02-12 11:23:19,722] INFO:device.service.DeviceServiceServicerImpl:device.device_endpoints []
[2025-02-12 11:23:19,722] ERROR:device.service.DeviceServiceServicerImpl:AddDevice exception
Traceback (most recent call last):
  File "/var/teraflow/common/method_wrappers/Decorator.py", line 220, in inner_wrapper
    reply = func(self, request, grpc_context)
  File "/var/teraflow/device/service/DeviceServiceServicerImpl.py", line 127, in AddDevice
    errors.extend(populate_endpoints(
  File "/var/teraflow/device/service/Tools.py", line 119, in populate_endpoints
    results_getconfig = driver.GetConfig(resources_to_get)
  File "/var/teraflow/device/service/driver_api/_Driver.py", line 99, in GetConfig
    raise NotImplementedError()
NotImplementedError

logsContext.txt

deleted100644 → 0
+0 −737

File deleted.

Preview size limit exceeded, changes collapsed.

logsUI.txt

deleted100644 → 0
+0 −33523

File deleted.

Preview size limit exceeded, changes collapsed.

+3 −3
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
export TFS_COMPONENTS="context device pathcomp service slice nbi webui"

# Uncomment to activate Monitoring (old)
export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
# export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"

# Uncomment to activate Monitoring Framework (new)
#export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics automation"
@@ -134,7 +134,7 @@ export CRDB_PASSWORD="tfs123"
export CRDB_DEPLOY_MODE="single"

# Disable flag for dropping database, if it exists.
export CRDB_DROP_DATABASE_IF_EXISTS="YES"                                                       #PONER YES PARA BORRAR TABLES
export CRDB_DROP_DATABASE_IF_EXISTS=""

# Disable flag for re-deploying CockroachDB from scratch.
export CRDB_REDEPLOY=""
@@ -186,7 +186,7 @@ export QDB_TABLE_MONITORING_KPIS="tfs_monitoring_kpis"
export QDB_TABLE_SLICE_GROUPS="tfs_slice_groups"

# Disable flag for dropping tables if they exist.
export QDB_DROP_TABLES_IF_EXIST="YES"                                                       #PONER YES PARA BORRAR TABLES
export QDB_DROP_TABLES_IF_EXIST=""

# Disable flag for re-deploying QuestDB from scratch.
export QDB_REDEPLOY=""
Loading