opsi-deploy-client-agent result ping failed but verbose log says opposite

Antworten
nmassoneau
Beiträge: 8
Registriert: 16 Apr 2021, 13:56

opsi-deploy-client-agent result ping failed but verbose log says opposite

Beitrag von nmassoneau »

Hello,

I use opsi with Ubuntu 20.04 and when I try to deploy opsi agent with opsi-deploy-client-agent, it fails and state the ping has failed, but if I increase the verbosity, the log say the ping is successful.
Does the script fail to parse the french response of the ping ?

Code: Alles auswählen

021-07-06 10:18:09.855] [               ] Querying for ip address of host XXXXX    (common.py:158)
[6] [2021-07-06 10:18:09.855] [               ] Getting host XXXXX by name   (common.py:160)
[5] [2021-07-06 10:18:09.858] [               ] Got ip address 172.16.0.153 from syscall   (common.py:167)
[5] [2021-07-06 10:18:09.858] [               ] Pinging host 172.16.0.153 ...   (common.py:183)
[7] [2021-07-06 10:18:09.858] [               ] Removing LD_LIBRARY_PATH from env for subprocess   (Posix.py:839)
[6] [2021-07-06 10:18:09.858] [               ] Executing: ping -q -c2 172.16.0.153   (Posix.py:912)
[6] [2021-07-06 10:18:09.861] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[7] [2021-07-06 10:18:10.870] [               ] >>> PING 172.16.0.153 (172.16.0.153) 56(84) bytes of data.   (Posix.py:988)
[7] [2021-07-06 10:18:10.870] [               ] >>>    (Posix.py:988)
[7] [2021-07-06 10:18:10.870] [               ] >>> --- statistiques ping 172.16.0.153 ---   (Posix.py:988)
[7] [2021-07-06 10:18:10.870] [               ] >>> 2 paquets transmis, 2 reçus, 0 % paquets perdus, temps 1004 ms   (Posix.py:988)
[7] [2021-07-06 10:18:10.870] [               ] >>> rtt min/avg/max/mdev = 0.257/0.275/0.293/0.018 ms   (Posix.py:988)
[7] [2021-07-06 10:18:10.870] [               ] >>>    (Posix.py:988)
[7] [2021-07-06 10:18:10.871] [               ] Exit code: 0   (Posix.py:995)
[3] [2021-07-06 10:18:10.871] [               ] Deployment to XXXXXX failed: No ping response received from 172.16.0.153   (windows.py:164)
[5] [2021-07-06 10:18:12.352] [               ] 0/1 deployments successfully   (__init__.py:210)
[4] [2021-07-06 10:18:12.352] [               ] 1/1 deployments failed   (__init__.py:214)
2 paquets transmis, 2 reçus, 0 % paquets perdus means 2 received packets 0% loss

Regards
nmassoneau
Beiträge: 8
Registriert: 16 Apr 2021, 13:56

Re: opsi-deploy-client-agent result ping failed but verbose log says opposite

Beitrag von nmassoneau »

After switching the operating system language to english, the script executed successfully, it seams to be a parsing issue
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 409
Registriert: 23 Okt 2020, 16:11

Re: opsi-deploy-client-agent result ping failed but verbose log says opposite

Beitrag von n.doerrer »

Hi,

thank you for this report! Your analysis is correct.
I will fix this in the next version of opsi-deploy-client-agent.

EDIT: In the meantime you can use -x to ignore the ping result.

Best regards,
Nils Dörrer


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


nmassoneau
Beiträge: 8
Registriert: 16 Apr 2021, 13:56

Re: opsi-deploy-client-agent result ping failed but verbose log says opposite

Beitrag von nmassoneau »

Thanks that's what I did before changing the OS language

Regards
Antworten