Hello,
running R81.10 + JumboHFA Take 110 and Skyline/CPOtelcol Verison Take 70 on Maestro
I get this error out of a sudden on the SGMs of the Maestro:
Further I get the same error on 1 out of 4 MHOs.
[Expert@l999ravpn101d-ch02-01:dplane]# /opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/skyline_payload.json)"
Error: 'utf-8' codec can't decode byte 0xca in position 1: invalid continuation byte
Traceback (most recent call last):
File "/opt/CPotelcol/REST.py", line 1412, in main
request.commit()
File "/opt/CPotelcol/REST.py", line 1277, in commit
oldConfiguration = OtelColConfigHandler.getInstance().getOldConfig()
File "/opt/CPotelcol/REST.py", line 459, in getOldConfig
isSuccess, dynamicConfigOut, _, _= execCommandWithEnv(self._otDynamicConfigScript, ALLOW_EMPTY=False)
File "/opt/CPotelcol/REST.py", line 278, in execCommandWithEnv
isSuccess = isSuccess and len(out.decode('utf-8')) > 0
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 1: invalid continuation byte
[Expert@l999ravpn101d-ch02-01:dplane]#
I checked md5sum and it is the same:
[Expert@l999ravpn101d-ch02-01:dplane]# g_md5sum /opt/CPotelcol/REST.py
-*- 4 blades: 1_01 1_02 2_01 2_02 -*-
d7742c1d2c97f5a2212754fa8a5eafa0 /opt/CPotelcol/REST.py
[Expert@l999ravpn101d-ch02-01:dplane]#
I did "dos2unix" for REST-py and for the payload.json. Did not solve the issue. I use the same payload.json on other environments and it works.
[Expert@l999ravpn101d-ch02-01:dplane]# g_allc "cpinfo -y all | grep -i otel"
-*- 4 blades: 1_01 1_02 2_01 2_02 -*-
This is Check Point CPinfo Build 914000234 for GAIA
BUNDLE_CPOTELCOL_AUTOUPDATE Take: 70
[CPotelcol]
[Expert@l999ravpn101d-ch02-01:dplane]#
[Expert@l999ravpn101d-ch02-01:dplane]# g_allc /opt/CPotelcol/sklnctl -v
-*- 4 blades: 1_01 1_02 2_01 2_02 -*-
1.0.0
[Expert@l999ravpn101d-ch02-01:dplane]#
any ideas why this REST.py script does not work (anymore) ?