tohojo / flent

The FLExible Network Tester.
https://flent.org
Other
437 stars 78 forks source link

Couldn't resolve host name' while getting URL list at http://%s/filelist.txt #137

Closed teto closed 6 years ago

teto commented 6 years ago

I wonder if there isn't an error at https://github.com/tohojo/flent/blob/710f9f253944668b3d4200e1e3aa90cecba954db/flent/runners.py#L1251 like it should be

                    or "http://{}/filelist.txt".format(self.settings.HOST))

else in the log I get

2018-06-07 09:10:48,860 [flent.runners] DEBUG: Forked /nix/store/g0bxw4naz8gzx46p0gavh4p76r9dian5-http-getter/bin/http-getter as pid 17301
2018-06-07 09:10:48,860 [flent.runners] DEBUG: HTTP latency: Starting watchdog with timeout 90
2018-06-07 09:10:48,862 [flent.runners] DEBUG: Started TimerRunner idx 0 ('Watchdog [HTTP latency]')
2018-06-07 09:10:48,863 [flent.runners] DEBUG: Started HttpGetterRunner idx 0 ('HTTP latency')
2018-06-07 09:10:50,065 [flent.runners] WARNING: Program exited non-zero.
Runner class: HttpGetterRunner
Command: /nix/store/g0bxw4naz8gzx46p0gavh4p76r9dian5-http-getter/bin/http-getter -i 200 -l 60 -t 60000  -n 4 -6 http://%s/filelist.txt
Return code: 6
Stdout: -- OUTPUT START -->
Total 0 successful of 1 cycles. 0 total requests. min/avg/max = -1.000/-nan/-1.000 seconds.
<-- OUTPUT END --
Stderr: -- OUTPUT START -->cURL error: 'Couldn't resolve host name' while getting URL list at http://%s/filelist.txt.
<-- OUTPUT END --
2018-06-07 09:10:50,065 [flent.runners] WARNING: Command produced no valid data.
tohojo commented 6 years ago

Matthieu Coudron notifications@github.com writes:

I wonder if there isn't an error at https://github.com/tohojo/flent/blob/710f9f253944668b3d4200e1e3aa90cecba954db/flent/runners.py#L1251 like it should be

                    or "http://{}/filelist.txt".format(self.settings.HOST))

Yup, you are quite right...

teto commented 6 years ago

if I may push my luck, I am discovering flent and wanna use it to plot cdf of completion transfer time. I couldn't find any test doing it and am trying to write one. I would rather have it out of tree. Is this the correct option https://flent.org/options.html#cmdoption-b ?

tohojo commented 6 years ago

Matthieu Coudron notifications@github.com writes:

if I may push my luck, I am discovering flent and wanna use it to plot cdf of completion transfer time. I couldn't find any test doing it and am trying to write one. I would rather have it out of tree. Is this the correct option https://flent.org/options.html#cmdoption-b ?

Erm, probably not. Could you explain in a bit more detail what it is you're trying to do? The HTTP tests already included already have a CDF plot (it's just called delay instead of completion time; so the plot is http_delay_cdf).

teto commented 6 years ago

EDIT: Moving it to a new issue instead https://github.com/tohojo/flent/issues/138