Skip to content

Commit ff72879

Browse files
CE-517 Couchbase Plugin : Multinode VDB creation fails with password not found error
1 parent cdb90cf commit ff72879

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plugin_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id: 18f4ff11-b758-4bf2-9a37-719a22f5a4b8
22
name: sc:couchbase
3-
externalVersion: "1.2.1.2"
4-
buildNumber: 1.2.1.2
3+
externalVersion: "1.2.1.3"
4+
buildNumber: 1.2.1.3
55
language: PYTHON38
66
hostTypes:
77
- UNIX

src/db_commands/commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ def server_add(shell_path, hostname, port, username, newhost, services, **kwargs
11141114
def server_add_expect(shell_path, hostname, port, username, newhost, services,
11151115
**kwargs):
11161116
command = f"{shell_path} server-add --cluster {hostname}:{port} --username {username} --password \
1117-
--server-add http://{newhost}:{port} --server-add-username {username} --server-add-password $password \
1117+
--server-add http://{newhost}:{port} --server-add-username {username} --server-add-password {kwargs.get('password')} \
11181118
--services {services}"
11191119
expect_block = DatabaseCommand.get_parent_expect_block().format(
11201120
command_specific_operations="""eval spawn ${env(CB_CMD)}
@@ -1152,6 +1152,7 @@ def rebalance_expect(shell_path, hostname, port, username, **kwargs):
11521152
expect {
11531153
-re "Enter password:.*" {
11541154
send "${env(CB_PWD)}\n"
1155+
set timeout -1
11551156
exp_continue
11561157
}
11571158
timeout {
@@ -1160,6 +1161,7 @@ def rebalance_expect(shell_path, hostname, port, username, **kwargs):
11601161
}
11611162
}"""
11621163
)
1164+
logger.debug(f"rebalance command ::::: {command}")
11631165
env_vars = {
11641166
"CB_PWD": kwargs.get("password"),
11651167
"CB_CMD": command

0 commit comments

Comments
 (0)