(CTTC) E2E Orchestrator component has wrong service name in Constants.py
Reporters
- Rehan Raza (HHI)
- Lluis Gifre (CTTC)
Description
E2E Orchestrator component has wrong service name in Constants.py
.
Besides, method get_env_var_name
in Settings.py
should convert special characters to "_".
Deployment environment
- Operating System (include version): any
- MicroK8s (include version and add-ons): any
- TeraFlowSDN (include release/branch-name/commit-id): All since R3
TFS deployment settings
Any deployment including E2E Orchestrator component.
Sequence of actions that resulted in the bug
Just deploy the E2E Orchestrator component.
Document the explicit error
ERROR:common.Settings:Variables({'E2EORCHESTRATORSERVICE_SERVICE_PORT_GRPC', 'E2EORCHESTRATORSERVICE_SERVICE_HOST'}) are missing in Environment(environ({'PATH': '/home/teraflow/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HOSTNAME': 'e2e-orchestratorservice-7dc48dc9ff-p6rg5', 'LANG': 'C.UTF-8', 'GPG_KEY': 'E3FF2839C048B25C084DEBE9B26995E310250568', 'PYTHON_VERSION': '3.9.19', 'PYTHON_PIP_VERSION': '23.0.1', 'PYTHON_SETUPTOOLS_VERSION': '58.1.0', 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/ac00c61f60b2df101b7cdf90ed319b625ac93b42/public/get-pip.py', 'PYTHON_GET_PIP_SHA256': '0f8bb2652c0b0965f268312f49ec21e772d421d381af4324beea66b8acf2635c', 'PYTHONUNBUFFERED': '0', 'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION': 'python', 'VIRTUAL_ENV': '/home/teraflow/venv', 'LOG_LEVEL': 'DEBUG', 'SERVICESERVICE_PORT_9192_TCP': 'tcp://10.152.183.123:9192', 'PATHCOMPSERVICE_PORT': 'tcp://10.152.183.108:10020', 'LOAD_GENERATORSERVICE_SERVICE_PORT': '50052', 'SLICESERVICE_SERVICE_PORT_METRICS': '9192', 'DEVICESERVICE_SERVICE_PORT_METRICS': '9192', 'LOAD_GENERATORSERVICE_PORT_50052_TCP': 'tcp://10.152.183.228:50052', 'LOAD_GENERATORSERVICE_PORT_9192_TCP_ADDR': '10.152.183.228', 'NBISERVICE_SERVICE_PORT_METRICS': '9192', 'NBISERVICE_PORT_9090_TCP_ADDR': '10.152.183.34', 'DEVICESERVICE_PORT_2020_TCP_PORT': '2020', 'SERVICESERVICE_PORT_9192_TCP_PROTO': 'tcp', 'PATHCOMPSERVICE_SERVICE_PORT_METRICS': '9192', 'WEBUISERVICE_PORT_3000_TCP_PROTO': 'tcp', 'NBISERVICE_PORT_9192_TCP_PROTO': 'tcp', 'E2E_ORCHESTRATORSERVICE_PORT_10050_TCP_PORT': '10050', 'DEVICESERVICE_PORT_9192_TCP': 'tcp://10.152.183.48:9192', 'CONTEXTSERVICE_SERVICE_HOST': '10.152.183.132', 'SERVICESERVICE_SERVICE_PORT_METRICS': '9192', 'WEBUISERVICE_SERVICE_PORT': '8004', 'PATHCOMPSERVICE_SERVICE_PORT': '10020', 'PATHCOMPSERVICE_PORT_10020_TCP_ADDR': '10.152.183.108', 'PATHCOMPSERVICE_PORT_8081_TCP': 'tcp://10.152.183.108:8081', 'PATHCOMPSERVICE_PORT_9192_TCP_PROTO': 'tcp', 'SLICESERVICE_SERVICE_HOST': '10.152.183.69', 'WEBUISERVICE_PORT_3000_TCP_ADDR': '10.152.183.133', 'CONTEXTSERVICE_SERVICE_PORT': '1010', 'CONTEXTSERVICE_PORT': 'tcp://10.152.183.132:1010', 'LOAD_GENERATORSERVICE_PORT_9192_TCP_PROTO': 'tcp', 'NBISERVICE_PORT_9192_TCP_ADDR': '10.152.183.34', 'DEVICESERVICE_PORT_2020_TCP_PROTO': 'tcp', 'KUBERNETES_PORT_443_TCP': 'tcp://10.152.183.1:443', 'KUBERNETES_PORT_443_TCP_PORT': '443', 'CONTEXTSERVICE_PORT_1010_TCP': 'tcp://10.152.183.132:1010', 'PATHCOMPSERVICE_PORT_10020_TCP': 'tcp://10.152.183.108:10020', 'PATHCOMPSERVICE_PORT_8081_TCP_PROTO': 'tcp', 'NBISERVICE_PORT_9090_TCP': 'tcp://10.152.183.34:9090', 'E2E_ORCHESTRATORSERVICE_SERVICE_PORT_METRICS': '9192', 'SERVICESERVICE_SERVICE_PORT_GRPC': '3030', 'LOAD_GENERATORSERVICE_PORT_50052_TCP_ADDR': '10.152.183.228', 'SLICESERVICE_PORT_4040_TCP': 'tcp://10.152.183.69:4040', 'NBISERVICE_PORT_8080_TCP_PROTO': 'tcp', 'CONTEXTSERVICE_SERVICE_PORT_GRPC': '1010', 'NBISERVICE_PORT': 'tcp://10.152.183.34:8080', 'E2E_ORCHESTRATORSERVICE_PORT_9192_TCP_PROTO': 'tcp', 'DEVICESERVICE_PORT_9192_TCP_PROTO': 'tcp', 'CONTEXTSERVICE_PORT_1010_TCP_PROTO': 'tcp', 'LOAD_GENERATORSERVICE_SERVICE_PORT_GRPC': '50052', 'WEBUISERVICE_PORT_3000_TCP_PORT': '3000', 'NBISERVICE_SERVICE_PORT': '8080', 'NBISERVICE_PORT_9090_TCP_PROTO': 'tcp', 'NBISERVICE_PORT_9192_TCP_PORT': '9192', 'E2E_ORCHESTRATORSERVICE_SERVICE_HOST': '10.152.183.103', 'E2E_ORCHESTRATORSERVICE_SERVICE_PORT_GRPC': '10050', 'CONTEXTSERVICE_PORT_9192_TCP_ADDR': '10.152.183.132', 'SERVICESERVICE_SERVICE_PORT': '3030', 'LOAD_GENERATORSERVICE_SERVICE_PORT_METRICS': '9192', 'WEBUISERVICE_SERVICE_PORT_GRAFANA': '3000', 'E2E_ORCHESTRATORSERVICE_PORT_9192_TCP': 'tcp://10.152.183.103:9192', 'E2E_ORCHESTRATORSERVICE_PORT_9192_TCP_ADDR': '10.152.183.103', 'DEVICESERVICE_SERVICE_PORT_GRPC': '2020', 'PATHCOMPSERVICE_PORT_10020_TCP_PORT': '10020', 'PATHCOMPSERVICE_PORT_8081_TCP_PORT': '8081', 'SLICESERVICE_PORT_9192_TCP_PROTO': 'tcp', 'WEBUISERVICE_SERVICE_PORT_WEBUI': '8004', 'NBISERVICE_PORT_8080_TCP_PORT': '8080', 'E2E_ORCHESTRATORSERVICE_PORT_10050_TCP_PROTO': 'tcp', 'SERVICESERVICE_PORT_9192_TCP_PORT': '9192', 'SLICESERVICE_PORT_4040_TCP_ADDR': '10.152.183.69', 'SERVICESERVICE_SERVICE_HOST': '10.152.183.123', 'PATHCOMPSERVICE_SERVICE_PORT_HTTP': '8081', 'PATHCOMPSERVICE_PORT_10020_TCP_PROTO': 'tcp', 'SLICESERVICE_PORT_4040_TCP_PROTO': 'tcp', 'SLICESERVICE_PORT_4040_TCP_PORT': '4040', 'DEVICESERVICE_PORT': 'tcp://10.152.183.48:2020', 'DEVICESERVICE_PORT_9192_TCP_ADDR': '10.152.183.48', 'E2E_ORCHESTRATORSERVICE_PORT_10050_TCP': 'tcp://10.152.183.103:10050', 'SERVICESERVICE_PORT': 'tcp://10.152.183.123:3030', 'PATHCOMPSERVICE_PORT_8081_TCP_ADDR': '10.152.183.108', 'PATHCOMPSERVICE_PORT_9192_TCP': 'tcp://10.152.183.108:9192', 'KUBERNETES_PORT_443_TCP_ADDR': '10.152.183.1', 'NBISERVICE_PORT_9090_TCP_PORT': '9090', 'E2E_ORCHESTRATORSERVICE_PORT_10050_TCP_ADDR': '10.152.183.103', 'E2E_ORCHESTRATORSERVICE_PORT_9192_TCP_PORT': '9192', 'CONTEXTSERVICE_SERVICE_PORT_METRICS': '9192', 'SERVICESERVICE_PORT_3030_TCP_PORT': '3030', 'PATHCOMPSERVICE_SERVICE_PORT_GRPC': '10020', 'NBISERVICE_PORT_8080_TCP_ADDR': '10.152.183.34', 'PATHCOMPSERVICE_PORT_9192_TCP_ADDR': '10.152.183.108', 'SERVICESERVICE_PORT_9192_TCP_ADDR': '10.152.183.123', 'LOAD_GENERATORSERVICE_SERVICE_HOST': '10.152.183.228', 'CONTEXTSERVICE_PORT_9192_TCP_PORT': '9192', 'LOAD_GENERATORSERVICE_PORT_50052_TCP_PORT': '50052', 'WEBUISERVICE_PORT_8004_TCP_PROTO': 'tcp', 'WEBUISERVICE_PORT_8004_TCP_PORT': '8004', 'E2E_ORCHESTRATORSERVICE_SERVICE_PORT': '10050', 'CONTEXTSERVICE_PORT_9192_TCP_PROTO': 'tcp', 'LOAD_GENERATORSERVICE_PORT_9192_TCP': 'tcp://10.152.183.228:9192', 'KUBERNETES_SERVICE_HOST': '10.152.183.1', 'KUBERNETES_PORT': 'tcp://10.152.183.1:443', 'NBISERVICE_PORT_9192_TCP': 'tcp://10.152.183.34:9192', 'CONTEXTSERVICE_PORT_1010_TCP_ADDR': '10.152.183.132', 'LOAD_GENERATORSERVICE_PORT_50052_TCP_PROTO': 'tcp', 'LOAD_GENERATORSERVICE_PORT_9192_TCP_PORT': '9192', 'SLICESERVICE_PORT_9192_TCP_ADDR': '10.152.183.69', 'KUBERNETES_SERVICE_PORT_HTTPS': '443', 'WEBUISERVICE_PORT_3000_TCP': 'tcp://10.152.183.133:3000', 'NBISERVICE_SERVICE_PORT_HTTP': '8080', 'NBISERVICE_SERVICE_PORT_GRPC': '9090', 'SERVICESERVICE_PORT_3030_TCP_PROTO': 'tcp', 'LOAD_GENERATORSERVICE_PORT': 'tcp://10.152.183.228:50052', 'SLICESERVICE_SERVICE_PORT_GRPC': '4040', 'NBISERVICE_SERVICE_HOST': '10.152.183.34', 'NBISERVICE_PORT_8080_TCP': 'tcp://10.152.183.34:8080', 'DEVICESERVICE_SERVICE_PORT': '2020', 'DEVICESERVICE_PORT_2020_TCP': 'tcp://10.152.183.48:2020', 'SERVICESERVICE_PORT_3030_TCP_ADDR': '10.152.183.123', 'PATHCOMPSERVICE_SERVICE_HOST': '10.152.183.108', 'SLICESERVICE_SERVICE_PORT': '4040', 'KUBERNETES_SERVICE_PORT': '443', 'WEBUISERVICE_PORT_8004_TCP': 'tcp://10.152.183.133:8004', 'E2E_ORCHESTRATORSERVICE_PORT': 'tcp://10.152.183.103:10050', 'DEVICESERVICE_SERVICE_HOST': '10.152.183.48', 'DEVICESERVICE_PORT_2020_TCP_ADDR': '10.152.183.48', 'SERVICESERVICE_PORT_3030_TCP': 'tcp://10.152.183.123:3030', 'WEBUISERVICE_PORT': 'tcp://10.152.183.133:8004', 'CONTEXTSERVICE_PORT_1010_TCP_PORT': '1010', 'SLICESERVICE_PORT_9192_TCP': 'tcp://10.152.183.69:9192', 'WEBUISERVICE_PORT_8004_TCP_ADDR': '10.152.183.133', 'CONTEXTSERVICE_PORT_9192_TCP': 'tcp://10.152.183.132:9192', 'PATHCOMPSERVICE_PORT_9192_TCP_PORT': '9192', 'SLICESERVICE_PORT': 'tcp://10.152.183.69:4040', 'SLICESERVICE_PORT_9192_TCP_PORT': '9192', 'KUBERNETES_PORT_443_TCP_PROTO': 'tcp', 'WEBUISERVICE_SERVICE_HOST': '10.152.183.133', 'DEVICESERVICE_PORT_9192_TCP_PORT': '9192', 'HOME': '/home/teraflow'})), restarting in 5.000000 seconds...
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/teraflow/controller/e2e_orchestrator/service/__main__.py", line 80, in <module>
sys.exit(main())
File "/home/teraflow/controller/e2e_orchestrator/service/__main__.py", line 46, in main
wait_for_environment_variables(
File "/home/teraflow/controller/common/Settings.py", line 59, in wait_for_environment_variables
raise Exception('Restarting...') # pylint: disable=broad-exception-raised
Exception: Restarting...
Expected behaviour
E2E Orchestrator starts properly.