Skip to content

Add getNodeManager helper func to Deployer#186

Merged
thejcfactor merged 1 commit into
couchbaselabs:masterfrom
thejcfactor:add_get_nodemanager_helper
Jun 9, 2026
Merged

Add getNodeManager helper func to Deployer#186
thejcfactor merged 1 commit into
couchbaselabs:masterfrom
thejcfactor:add_get_nodemanager_helper

Conversation

@thejcfactor

@thejcfactor thejcfactor commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Motivation

CollectLogs and getController previously used Nodes[0] to select a
cluster node (a.k.a. node manager), but the nodes list includes all
containers (load balance, rebalanced-out nodes, etc.). If a
non-provisioned node was the first node, a GET /pools/default would return
a 404 "unknown pool". Adding a helper function to ensure the selected
cluster node is viable removes this undesired behavior.

Changes

  • Added getNodeManager helper func to Deployer
  • Updated getController() to use new helper func
  • Update CollectLogs() func to use new helper func

Motivation
----------
CollectLogs and getController previously used Nodes[0] to select a
cluster node (a.k.a. node manager), but the nodes list includes all
containers (load balance, rebalanced-out nodes, etc.). If a
non-provisioned node was the first node, a GET /pools/default would return
a 404 "unknown pool".  Adding a helper function to ensure the selected
cluster node is viable removes this undesired behavior.

Changes
-------
* Added getNodeManager helper func to Deployer
* Updated getController() to use new helper func
* Update CollectLogs() func to use new helper func
@thejcfactor thejcfactor force-pushed the add_get_nodemanager_helper branch from e722c99 to 46cc475 Compare June 9, 2026 18:03
@thejcfactor thejcfactor merged commit a2e2b26 into couchbaselabs:master Jun 9, 2026
4 checks passed
@thejcfactor thejcfactor deleted the add_get_nodemanager_helper branch June 9, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants