Skip to content
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

uffizzi install: Increase IP check tries #411

Closed
gadkins opened this issue Mar 28, 2024 · 0 comments · Fixed by #413
Closed

uffizzi install: Increase IP check tries #411

gadkins opened this issue Mar 28, 2024 · 0 comments · Fixed by #413

Comments

@gadkins
Copy link
Member

gadkins commented Mar 28, 2024

When installing Uffizzi via uffizzi install, it sometimes happens that the IP address returned from this command is 'unknown'. This occurs because there is a timeout, likely because the IP address from the cloud provider is not yet ready. We should increase the tries from 30 to 60. See relevant code here:

def wait_ip
spinner = TTY::Spinner.new('[:spinner] Waiting IP addess...', format: :dots)
spinner.auto_spin
ip = nil
try = 0
loop do
ip = InstallService.get_controller_ip(namespace)
break if ip.present?
if try == 30
spinner.error
return 'unknown'
end
try += 1
sleep(2)
end
spinner.success
ip
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant