Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.0.2
-
Untriaged
-
1
-
No
-
Tools 2021 Dec, Tools 2022-Jan
Description
Build : 7.0.2-6558
Steps to reproduce :
1. 2 node cluster with kv+index+query services on both nodes
2. Enforce TLS
- disable auto-failover
- enable N2N encryption: /opt/couchbase/bin/couchbase-cli node-to-node-encryption -c http://localhost:8091 -u Administrator -p password --enable
- set TLS strict mode: /opt/couchbase/bin/couchbase-cli setting-security -c http://localhost:8091 -u Administrator -p password --set --cluster-encryption-level strict
3. Create a default bucket
4. Try to load some docs to the cluster using cbworkloadgen.
I tried the following commands, all errored out.
[root@s44010 bin]# ./cbworkloadgen -u Administrator -p password -j -i 1000 --prefix=test1 --ssl -n 127.0.0.1:18091
|
Unable to connect to host at http://127.0.0.1:18091: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
|
[root@s44010 bin]# ./cbworkloadgen -u Administrator -p password -j -i 1000 --prefix=test1 --ssl -n 172.23.104.106:18091
|
Unable to connect to host at http://172.23.104.106:18091: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
|
[root@s44010 bin]# ./cbworkloadgen -u Administrator -p password -j -i 1000 --prefix=test1 --ssl
|
Exception in thread s0:
|
Traceback (most recent call last):
|
File "/opt/couchbase/lib/python/runtime/lib/python3.9/threading.py", line 954, in _bootstrap_inner
|
self.run()
|
File "/opt/couchbase/lib/python/runtime/lib/python3.9/threading.py", line 892, in run
|
self._target(*self._args, **self._kwargs)
|
File "/opt/couchbase/lib/python/pump_mc.py", line 113, in run
|
rv, batch, need_backoff = self.scatter_gather(mconns, batch)
|
File "/opt/couchbase/lib/python/pump_cb.py", line 86, in scatter_gather
|
rv, conn = self.find_conn(mconns, vbucket_id, msgs)
|
File "/opt/couchbase/lib/python/pump_cb.py", line 474, in find_conn
|
rv, conn = CBSink.connect_mc(host, port, username, password, bucket, self.opts.ssl,
|
File "/opt/couchbase/lib/python/pump_mc.py", line 571, in connect_mc
|
return pump.get_mcd_conn(host, port, username, password, bucket, use_ssl=use_ssl, verify=verify,
|
File "/opt/couchbase/lib/python/pump.py", line 1181, in get_mcd_conn
|
conn = cb_bin_client.MemcachedClient(host, port, use_ssl=use_ssl, verify=verify, cacert=ca_cert)
|
File "/opt/couchbase/lib/python/cb_bin_client.py", line 118, in __init__
|
raise sock_error
|
UnboundLocalError: local variable 'sock_error' referenced before assignment
|