Details
-
Bug
-
Resolution: Not a Bug
-
Critical
-
7.0.2
-
Untriaged
-
1
-
No
Description
7.0.2-6644 CE
Steps:
Install community edition on a single node cluster
Try to enable IPv4 only via REST:
[root@node1-cb700-beta-centos7 bin]# curl -X POST -u Administrator:password http://10.112.210.101:8091/node/controller/setupNetConfig -d afamily=ipv4 -d afamilyOnly=true
Retrieve /pools/nodes and we can see that it took effect:
[root@node1-cb700-beta-centos7 bin]# curl -u Administrator:password http://10.112.210.101:8091/pools/nodes
{"name":"default","nodes":[{"clusterMembership":"active","recoveryType":"none","status":"healthy","otpNode":"ns_1@127.0.0.1","thisNode":true,"hostname":"10.112.210.101:8091","nodeUUID":"6694fa3c54ad36dd1e677950bd1cbbcb","clusterCompatibility":458752,"version":"7.0.2-6644-community","os":"x86_64-unknown-linux-gnu","cpuCount":1,"ports":
,"services":["fts","index","kv","n1ql"],"nodeEncryption":false,"addressFamilyOnly":true,"configuredHostname":"127.0.0.1:8091","addressFamily":"inet","externalListeners":[
{"afamily":"inet","nodeEncryption":false}],"couchApiBase":"http://10.112.210.101:8092/","systemStats":
{"cpu_utilization_rate":1.428571428571429,"cpu_stolen_rate":0,"swap_total":1107292160,"swap_used":0,"mem_total":3977109504,"mem_free":3427635200,"mem_limit":3977109504,"cpu_cores_available":1,"allocstall":17},"interestingStats":{},"uptime":"1330","memoryTotal":3977109504,"memoryFree":3427635200,"mcdMemoryReserved":3034,"mcdMemoryAllocated":3034}],"buckets":
{"uri":"/pools/default/buckets?v=111456758&uuid=4b69bd78d1248cf3a9de30adda299757","terseBucketsBase":"/pools/default/b/","terseStreamingBucketsBase":"/pools/default/bs/"},"bucketNames":[],"remoteClusters":
{"uri":"/pools/default/remoteClusters?uuid=4b69bd78d1248cf3a9de30adda299757","validateURI":"/pools/default/remoteClusters?just_validate=1"},"alerts":[],"alertsSilenceURL":"/controller/resetAlerts?uuid=4b69bd78d1248cf3a9de30adda299757&token=0","controllers":{"addNode":
{"uri":"/controller/addNodeV2?uuid=4b69bd78d1248cf3a9de30adda299757"},"rebalance":
{"uri":"/controller/rebalance?uuid=4b69bd78d1248cf3a9de30adda299757"},"failOver":
{"uri":"/controller/failOver?uuid=4b69bd78d1248cf3a9de30adda299757"},"startGracefulFailover":
{"uri":"/controller/startGracefulFailover?uuid=4b69bd78d1248cf3a9de30adda299757"},"reAddNode":
{"uri":"/controller/reAddNode?uuid=4b69bd78d1248cf3a9de30adda299757"},"reFailOver":
{"uri":"/controller/reFailOver?uuid=4b69bd78d1248cf3a9de30adda299757"},"ejectNode":
{"uri":"/controller/ejectNode?uuid=4b69bd78d1248cf3a9de30adda299757"},"setRecoveryType":
{"uri":"/controller/setRecoveryType?uuid=4b69bd78d1248cf3a9de30adda299757"},"setAutoCompaction":
{"uri":"/controller/setAutoCompaction?uuid=4b69bd78d1248cf3a9de30adda299757","validateURI":"/controller/setAutoCompaction?just_validate=1"},"clusterLogsCollection":
{"startURI":"/controller/startLogsCollection?uuid=4b69bd78d1248cf3a9de30adda299757","cancelURI":"/controller/cancelLogsCollection?uuid=4b69bd78d1248cf3a9de30adda299757"},"replication":{"createURI":"/controller/createReplication?uuid=4b69bd78d1248cf3a9de30adda299757","validateURI":"/controller/createReplication?just_validate=1"}},"rebalanceStatus":"none","rebalanceProgressUri":"/pools/default/rebalanceProgress","stopRebalanceUri":"/controller/stopRebalance?uuid=4b69bd78d1248cf3a9de30adda299757","nodeStatusesUri":"/nodeStatuses","maxBucketCount":30,"maxCollectionCount":1200,"maxScopeCount":1200,"autoCompactionSettings":{"parallelDBAndViewCompaction":false,"databaseFragmentationThreshold":
{"percentage":30,"size":"undefined"},"viewFragmentationThreshold":
{"percentage":30,"size":"undefined"},"indexCompactionMode":"circular","indexCircularCompaction":{"daysOfWeek":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday","interval":{"fromHour":0,"toHour":0,"fromMinute":0,"toMinute":0,"abortOutside":false}},"indexFragmentationThreshold":{"percentage":30}},"tasks":
{"uri":"/pools/default/tasks?v=116596284"},"counters":{},"indexStatusURI":"/indexStatus?v=21137658","serverGroupsUri":"/pools/default/serverGroups?v=82035680","clusterName":"c1","clusterEncryptionLevel":"none","balanced":true,"checkPermissionsURI":"/pools/default/checkPermissions","memoryQuota":512,"indexMemoryQuota":512,"ftsMemoryQuota":256,"cbasMemoryQuota":1169,"eventingMemoryQuota":256,"storageTotals":{"ram":
{"total":3977109504,"quotaTotal":536870912,"quotaUsed":0,"used":1962909696,"usedByData":0,"quotaUsedPerNode":0,"quotaTotalPerNode":536870912},"hdd":
{"total":19828572160,"quotaTotal":19828572160,"used":11698857574,"usedByData":0,"free":8129714586}}}[root@node1-cb700-beta-centos7 bin]#
Attaching UI screenshot showing that it got enabled
CLI works as well since REST API is allowing it:
root@node1-cb700-beta-centos7 bin]# ./couchbase-cli ip-family -c localhost:8091 -u Administrator -p password --set --ipv4only
Switched IP family for node: http://127.0.0.1:8091