Change in vdsm[master]: hooks:checkips: add checkips hook

alukiano at redhat.com alukiano at redhat.com
Sun Apr 3 14:40:21 UTC 2016


Artyom Lukianov has posted comments on this change.

Change subject: hooks:checkips: add checkips hook
......................................................................


Patch Set 11:

(1 comment)

https://gerrit.ovirt.org/#/c/54102/11/vdsm_hooks/checkips/checkipsd
File vdsm_hooks/checkips/checkipsd:

Line 58: def _ping_address(address, address_type, net):
Line 59:     ping_cmd = 'ping' if address_type == CHECKIPV4 else 'ping6'
Line 60:     command = [
Line 61:         ping_cmd,
Line 62:         '-c', '1',
> This is actually interesting. Suppose we have '-c 3' - and only two pings r
So if I send:
ping -c 3 -w 15 some_address
it will send echo packet each second until timeout or until it receives 3 packets back, so if the timeout happens we will receive rc=1(do not matter if we received two packets)
so I can change -c parameter to something like:
timeout - 1, so we wait that 14 from 15 packets will recieved
but I want first hear Dan opinion
Line 63:         '-w', str(PING_TIMEOUT),
Line 64:         '-I', net,
Line 65:         address
Line 66:     ]


-- 
To view, visit https://gerrit.ovirt.org/54102
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I53cec37310f0f1844d6fe244419fd8c10e9b7ebb
Gerrit-PatchSet: 11
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Artyom Lukianov <alukiano at redhat.com>
Gerrit-Reviewer: Artyom Lukianov <alukiano at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Edward Haas <edwardh at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Yaniv Kaul <ykaul at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list