Description
Problem
cbworkloadgen fails when using IPv6:
2017-12-29 13:13:14,224: mt "6f75" is not int, reset it to default port number
|
2017-12-29 13:13:14,239: mt "6f75" is not int, reset it to default port number
|
Exception in thread s0:
|
Traceback (most recent call last):
|
File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
|
self.run()
|
File "/usr/lib64/python2.7/threading.py", line 765, in run
|
self.__target(*self.__args, **self.__kwargs)
|
File "/opt/couchbase/lib/python/pump_mc.py", line 96, in run
|
rv, batch, need_backoff = self.scatter_gather(mconns, batch)
|
File "/opt/couchbase/lib/python/pump_cb.py", line 73, in scatter_gather
|
rv, conn = self.find_conn(mconns, vbucket_id, msgs)
|
File "/opt/couchbase/lib/python/pump_cb.py", line 368, in find_conn
|
rv, conn = CBSink.connect_mc(host, port, self.opts.username, self.opts.password, bucket)
|
File "/opt/couchbase/lib/python/pump_mc.py", line 348, in connect_mc
|
return pump.get_mcd_conn(host, port, username, password, bucket)
|
File "/opt/couchbase/lib/python/pump.py", line 1106, in get_mcd_conn
|
conn = cb_bin_client.MemcachedClient(host, port)
|
File "/opt/couchbase/lib/python/cb_bin_client.py", line 45, in __init__
|
self.s.connect_ex((host, port))
|
File "/usr/lib64/python2.7/socket.py", line 224, in meth
|
return getattr(self._sock,name)(*args)
|
gaierror: [Errno -2] Name or service not known
|
Also note the error about the port not being corrected:
2017-12-29 13:13:14,224: mt "6f75" is not int, reset it to default port number
|
Steps To Reproduce
- Install Couchbase server 5.5.0-1593 on a centos 7.4 server with ipv6 enable.
- Create default bucket.
- User cbworkloadgen to load data to default bucket. Failed to load in both format, hex and hostname.
./cbworkloadgen -n [fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091 -u Administrator -p password