Skip to content

Commit f41c27b

Browse files
committed
[#25037]yugabyted: Node starts with hostname as advertise_address instead of private IP
Summary: When starting a node, it starts with hostname as the advertise_address instead of the private IP of the machine. This behaviour is due to the recent commit to support hostname-based docker deployments. Fixing the issue. Jira: DB-14171 Test Plan: Manual Testing Reviewers: nikhil, djiang Reviewed By: djiang Subscribers: yugabyted-dev, sgarg-yb Differential Revision: https://phorge.dev.yugabyte.com/D40181
1 parent f28ea76 commit f41c27b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/yugabyted

+1-2
Original file line numberDiff line numberDiff line change
@@ -7555,8 +7555,7 @@ class ControlScript(object):
75557555

75567556
if args.advertise_address is None:
75577557
if not self.configs.saved_data.get("advertise_address"):
7558-
7559-
if str(os.path.exists("/.dockerenv")):
7558+
if os.path.exists("/.dockerenv"):
75607559
args.advertise_address = self.find_hostname_of_node()
75617560
else:
75627561
if OS_NAME == "Linux":

0 commit comments

Comments
 (0)