Skip to content

Bug Report: VTAdmin local examples script does not use consistent/uniform host info #13235

@mattlord

Description

@mattlord

Overview of the Issue

All of the example scripts use the $hostname variable defined in env.sh as the output of hostname -f when defining host:port values. An exception to that, however, was the vtadmin-up.sh script which used a combination of no host, and localhost. The no host case could end up using IPV6 on some hosts, and localhost could resolve to anything (typically IPV4 127.0.0.1).

This means that the behavior is undefined, as well as being non-uniform. An example of problems this could lead to was discussed in the Vitess slack where the web app is using IPV4 and the API server IPV6 and the two cannot talk.

Reproduction Steps

N/A

Binary Version

Version: 17.0.0-SNAPSHOT

Operating System and Environment details

N/A

Log Fragments

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions