Closed csplinter closed 8 years ago
We are using the following to get the ip address in benchmark.get_localhost()
ip = socket.gethostname().split(".")[0]
This causes issues on openstack
>>> ip = socket.gethostname().split(".")[0] >>> print ip ip-10-200-180-168 >>> print socket.gethostname() ip-10-200-180-168.datastax.lan
We should instead use
>>> print socket.gethostbyname(socket.gethostname()) 10.200.180.168
I tested on openstack and docker setups
+1
We are using the following to get the ip address in benchmark.get_localhost()
This causes issues on openstack
We should instead use
I tested on openstack and docker setups