Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Untriaged
-
1
-
Unknown
Description
I'm trying to set an alternative port for each node in a cluster to ensure that sdk bootstrapping can occur regardless of which node is selected. Problem is, that when a node is running only the query service, an alternate port kv cannot be provided.
Attempts to set the kv & query port actually returns a 200 OK response:
curl -v -X PUT -u Administrator:- http://test-couchbase-cluster-0002.test-couchbase-cluster.default.svc:8091/node/controller/setupAlternateAddresses/external -d hostname=172.18.0.2 -d kv=9000 -d n1ql=9050 |
...
|
* Mark bundle as not supporting multiuse
|
< HTTP/1.1 200 OK |
But only the n1ql port is set, not kv:
{"services":{"mgmt":8091,"mgmtSSL":18091,"n1ql":8093,"n1qlSSL":18093},"hostname":"test-couchbase-cluster-0002.test-couchbase-cluster.default.svc","alternateAddresses":{"external":{"hostname":"172.18.0.2","ports":{"n1ql":9050}}}} |
Maybe this is expected behavior, although it can be misleading with a 200 response being returned?
Attachments
Issue Links
- relates to
-
K8S-2688 Cannot set ports for services not on node in 7.1
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Tommie McAfee [ tommie ] | Meni Hillel [ JIRAUSER25407 ] |
Assignee | Meni Hillel [ JIRAUSER25407 ] | Bryan McCoid [ JIRAUSER25453 ] |
Assignee | Bryan McCoid [ JIRAUSER25453 ] | Tommie McAfee [ tommie ] |
Attachment | image-2021-11-11-12-58-27-106.png [ 168647 ] |
Attachment | image-2021-11-11-12-58-27-106.png [ 168647 ] |
Fix Version/s | Neo [ 17615 ] |
Assignee | Tommie McAfee [ tommie ] | Bryan McCoid [ JIRAUSER25453 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Assignee | Bryan McCoid [ JIRAUSER25453 ] | Sumedh Basarkod [ sumedh.basarkod ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Yeah this seems like the expected behavior to some extent. We probably can't just return the external hosts for services we aren't even running when you hit the pools/default/nodeServices endpoint.. it's not like you are hitting the 'clusterServices' endpoint (I know that doesn't exist). The only thing that is problematic is the 200 response but I'm not sure how important that is or isn't – so Meni Hillel is this important enough to fix? I guess we could just return error if we are attempting to set this value on nodes where we don't have those services..
Also, Tommie McAfee what version is this affecting for you? It looks like this is the case in NEO which is what I used to verify..