Description
Install couchbase server 5.5.0-1593 on a centos 7.4 server enable ipv6 address
Initialize node with username and password
Create default bucket using couchbase-cli with ipv6 address => failed
Create default bucket using couchbase-cli with hostname => passed
Here is the error
[root@s10501-ip6 bin]# /opt/couchbase/bin/couchbase-cli bucket-create -c [fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091 --username Administrator --password password --bucket default --bucket-type couchbase --bucket-ramsize 512 --bucket-replica 1 --bucket-priority high --bucket-eviction-policy fullEviction --enable-flush 0 --enable-index-replica 1
|
Traceback (most recent call last):
|
File "/opt/couchbase/lib/python/couchbase-cli", line 20, in <module>
|
main()
|
File "/opt/couchbase/lib/python/couchbase-cli", line 15, in main
|
cli.execute(args)
|
File "/opt/couchbase/lib/python/cbmgr.py", line 357, in execute
|
opts.klass().execute(opts)
|
File "/opt/couchbase/lib/python/cbmgr.py", line 672, in execute
|
check_cluster_initialized(rest)
|
File "/opt/couchbase/lib/python/cbmgr.py", line 40, in check_cluster_initialized
|
initialized, errors = rest.is_cluster_initialized()
|
File "/opt/couchbase/lib/python/cluster_manager.py", line 179, in is_cluster_initialized
|
data, errors = self.pools()
|
File "/opt/couchbase/lib/python/cluster_manager.py", line 242, in pools
|
return self._get(url)
|
File "/opt/couchbase/lib/python/cluster_manager.py", line 32, in g
|
return f(*args, **kwargs)
|
File "/opt/couchbase/lib/python/cluster_manager.py", line 1258, in _get
|
cert=self.cert, timeout=self.timeout)
|
File "/opt/couchbase/lib/python/requests/api.py", line 67, in get
|
return request('get', url, params=params, **kwargs)
|
File "/opt/couchbase/lib/python/requests/api.py", line 53, in request
|
return session.request(method=method, url=url, **kwargs)
|
File "/opt/couchbase/lib/python/requests/sessions.py", line 454, in request
|
prep = self.prepare_request(req)
|
File "/opt/couchbase/lib/python/requests/sessions.py", line 388, in prepare_request
|
hooks=merge_hooks(request.hooks, self.hooks),
|
File "/opt/couchbase/lib/python/requests/models.py", line 293, in prepare
|
self.prepare_url(url, params)
|
File "/opt/couchbase/lib/python/requests/models.py", line 347, in prepare_url
|
raise InvalidURL(*e.args)
|
requests.exceptions.InvalidURL: Failed to parse: fd63:6f75:6368:20d3:ac3c:257e:9c5:6619:8091
|
|
On the same node, using hostname to create default bucket is ok.
[root@s10501-ip6 bin]# /opt/couchbase/bin/couchbase-cli bucket-create -c s10501-ip6.qe.couchbase.com:8091 --username Administrator --password password --bucket default --bucket-type couchbase --bucket-ramsize 512 --bucket-replica 1 --bucket-priority high --bucket-eviction-policy fullEviction --enable-flush 0 --enable-index-replica 1
SUCCESS: Bucket created
[root@s10501-ip6 bin]#
Attachments
Issue Links
- blocks
-
MB-27137 All tools must support IPv6
- Closed