yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 278 forks source link

herror: [Errno 1] Unknown host #12

Closed artkorzh closed 11 years ago

artkorzh commented 11 years ago

После коммита https://github.com/yandex-load/yandex-tank/commit/9d1e847bcb02afc4fb1d9db60e2b259ce7970e1f yandex-tank валится с ошибкой herror: [Errno 1] Unknown host. StackTrace: 14:23:02 INFO: Exception: Traceback (most recent call last): File "/usr/lib/yandex-tank/Tank/ConsoleWorker.py", line 287, in perform_test self.core.plugins_configure() File "/usr/lib/yandex-tank/tankcore.py", line 265, in plugins_configure plugin.configure() File "/usr/lib/yandex-tank/Tank/Plugins/Phantom.py", line 74, in configure self.phantom.read_config() File "/usr/lib/yandex-tank/Tank/Plugins/Phantom.py", line 664, in read_config self.__resolve_address() File "/usr/lib/yandex-tank/Tank/Plugins/Phantom.py", line 624, in __resolve_address self.address = socket.gethostbyaddr(self.resolved_ip)[0] herror: [Errno 1] Unknown host

14:23:02 ERROR: [Errno 1] Unknown host

Помогает только добавления этого хоста и ip в /etc/hosts, но это не сосем удобно. Думаю, нужно просто ловить этот exception, и определять host старым методом.

undera commented 11 years ago

Исправлено