Details
-
Bug
-
Resolution: Incomplete
-
Major
-
None
-
3.2.0, 3.0.8
-
1
Description
Build: 7.0.2 build 6541
Python SDK version: 3.2.0
- Enable N2N encryption on a cluster with strict mode
- download client certificate and try to load data to cluster
import logging
|
import sys
|
|
import couchbase
|
from couchbase.cluster import Cluster, ClusterOptions
|
from couchbase_core.cluster import PasswordAuthenticator
|
|
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
couchbase.enable_logging()
|
|
cluster = Cluster("couchbases://172.23.104.146",ClusterOptions(PasswordAuthenticator("Administrator","password",cert_path="/Users/vikaschaudhary/workspace/perf/perfrunner/root.crt")))
|
cb=cluster.bucket("bucket-1")
|
cb_coll=cb.default_collection()
|
result=cb_coll.upsert("111",{"hello"})
|
print(result)
|
error
INFO:couchbase:Initializing Couchbase logging. lcb_version=('3.2.0', 197120)
|
Traceback (most recent call last):
|
File "/Users/vikaschaudhary/workspace/perf/perfrunner/cb_sdk.py", line 11, in <module>
|
cluster = Cluster("couchbases://172.23.104.146",ClusterOptions(PasswordAuthenticator("Administrator","password",cert_path="/Users/vikaschaudhary/workspace/perf/perfrunner/root.crt")))
|
File "/Users/vikaschaudhary/workspace/perf/perfrunner/env/lib/python3.6/site-packages/couchbase/cluster.py", line 478, in __init__
|
_conntype=_LCB.LCB_TYPE_CLUSTER, **self._clusteropts)
|
File "/Users/vikaschaudhary/workspace/perf/perfrunner/env/lib/python3.6/site-packages/couchbase_core/client.py", line 142, in __init__
|
super(Client, self).__init__(*args, **kwargs)
|
couchbase.exceptions.DlopenFailedException: <RC=0x3F9[LCB_ERR_DLOPEN_FAILED (1017)], Couldn't create instance. Either bad credentials/hosts/bucket names were passed, or there was an internal error in creating the object, C Source=(src/bucket.c,1116)>Process finished with exit code 1
|
Performance testing for N2N encryption is blocked as we are not able to load data