(CHAL) Silent issue with Optical Attack Detector in CI/CD pipeline
Reporters
- Lluis Gifre (CTTC)
Description
There is an issue with unit test of Optical Attack Detector: Check Pipeline: https://labs.etsi.org/rep/tfs/controller/-/jobs/37382#L161
INFO common.tests.MockServicerImpl_Monitoring:MockServicerImpl_Monitoring.py:27 [__init__] Creating Servicer...
INFO common.tests.MockServicerImpl_Monitoring:MockServicerImpl_Monitoring.py:29 [__init__] Servicer Created
DEBUG opticalattackdetector.client.OpticalAttackDetectorClient:OpticalAttackDetectorClient.py:62 DetectAttack request: {'service_id': {'context_id': {'context_uuid': {'uuid': '80d0fdb4-a3d2-4984-ac58-2bd79de87ac5'}}, 'service_uuid': {'uuid': '1e31e117-d1b7-4660-a178-02bcd9fe613c'}}, 'kpi_id': {'kpi_id': {'uuid': '1'}}}
DEBUG opticalattackdetector.service.OpticalAttackDetectorServiceServicerImpl:Decorator.py:219 DetectAttack request: {"kpi_id": {"kpi_id": {"uuid": "1"}}, "service_id": {"context_id": {"context_uuid": {"uuid": "80d0fdb4-a3d2-4984-ac58-2bd79de87ac5"}}, "service_uuid": {"uuid": "1e31e117-d1b7-4660-a178-02bcd9fe613c"}}}
DEBUG opticalattackdetector.service.OpticalAttackDetectorServiceServicerImpl:OpticalAttackDetectorServiceServicerImpl.py:106 Using class 0 for service 1e31e117-d1b7-4660-a178-02bcd9fe613c
INFO opticalattackdetector.service.OpticalAttackDetectorServiceServicerImpl:OpticalAttackDetectorServiceServicerImpl.py:189 Recovered 310 samples from the cache
ERROR opticalattackdetector.service.OpticalAttackDetectorServiceServicerImpl:Decorator.py:233 DetectAttack exception
Traceback (most recent call last):
File "/home/teraflow/controller/common/method_wrappers/Decorator.py", line 220, in inner_wrapper
reply = func(self, request, grpc_context)
File "/home/teraflow/controller/opticalattackdetector/service/OpticalAttackDetectorServiceServicerImpl.py", line 221, in DetectAttack
monitoring_client.IncludeKpi(kpi)
TypeError: IncludeKpi() missing 1 required positional argument: 'context'
Deployment environment
- Operating System (include version): CI/CD pipeline
- MicroK8s (include version and add-ons): CI/CD pipeline
- TeraFlowSDN (include release/branch-name/commit-id): develop
TFS deployment settings
CI/CD pipeline
Sequence of actions that resulted in the bug
CI/CD pipeline
Document the explicit error
Check error above
Expected behaviour
Check error above