-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VTAdmin] Remove vtctld web link, improve local example #15607
Conversation
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: notfelineit <[email protected]>
if [ -z "${hostname}" ] | ||
then | ||
hostname=$(hostname -f) | ||
output "\n\033[1;32mhostname was empty, set it to \"${hostname}\"\033[0m" | ||
fi | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good one. I believe we've all been working around this using /etc/hosts
.
# Wait for vtadmin to successfully discover the cluster | ||
expected_cluster_result="{\"result\":{\"clusters\":[{\"id\":\"${cluster_name}\",\"name\":\"${cluster_name}\"}]},\"ok\":true}" | ||
for _ in {0..300}; do | ||
for _ in {0..100}; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI - this was taking a long time when I ran it locally. Shortening to 100 was much faster, and I think 100 is a fine threshold. If it's not found by then, it probably wasn't set up correctly. We can also tune this if it becomes an issue!
Signed-off-by: notfelineit <[email protected]>
Signed-off-by: notfelineit <[email protected]>
Backporting because it's been reported in both v18 and v19.
|
) Signed-off-by: notfelineit <[email protected]>
) Signed-off-by: notfelineit <[email protected]>
Description
This PR:
vtadmin-up.sh
by 1) outputting the variables that are being set and 2) shortening the wait time for cluster discoveryweb/vtadmin/build.sh
by 1) outputting the variables set and 2) when no hostname is set, uses the local machine's hostnameThe last bullet point made it so that I could run
./101_initial_clusters.sh
without any extra steps, and get vtadmin-web/vtadmin-api working:Related Issue(s)
Checklist
Deployment Notes