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

Atlantis should log a warning if custom gitlab or github hostname isn't resolvable by DNS. #128

Closed
lkysow opened this issue May 21, 2018 · 6 comments
Labels
feature New functionality/enhancement provider/gitlab

Comments

@lkysow
Copy link
Member

lkysow commented May 21, 2018

#122 took a while to debug because there wasn't a good error message. When Atlantis starts up, we should validate whether we can resolve any custom gitlab or github hostname and if not, log a warning.

@lkysow lkysow added the help wanted Good feature for contributors label May 21, 2018
@majormoses
Copy link
Contributor

On the flip side if you are spinning up a gitlab which is I believe often packaged as a container now it may not be immediately resolvable if your containers launch too close to each other depending on your setup, I'd suggest better logging and an option to bail on failure to connect (or an option to keep running whichever makes more sense) also keep in mind that if you are using a process supervisor such as systemd, upstart, runit, etc its very likely you have set it to auto restart on failures.

@lkysow
Copy link
Member Author

lkysow commented Aug 28, 2018

I think you should still be able to resolve the DNS though? If you're using something like Docker Compose I think that the DNS is set even if the container isn't booting yet.

@majormoses
Copy link
Contributor

There is a very long thread on this as it related to elasticsearch: elastic/elasticsearch#14441 feel free to read through all the reasons that people gave. It is a bit different in that it is ips vs names but I think the concept is the same. We could always eat our cake and eat it by using config/args to control this behavior.

@lkysow
Copy link
Member Author

lkysow commented Aug 30, 2018

Okay I'll change this to logging a warning if it can't resolve it.

@lkysow lkysow changed the title Atlantis should error if custom gitlab or github hostname isn't resolvable by DNS. Atlantis should log a warning if custom gitlab or github hostname isn't resolvable by DNS. Aug 30, 2018
@majormoses
Copy link
Contributor

I'd be ok with warning or error. Id personally steer towards errors.

@lkysow
Copy link
Member Author

lkysow commented Nov 22, 2018

In GitHub this is not needed:

Making pull request API call to GitHub: Get https://lsdlsjkd/api/v3/repos/lkysow/atlantis-example/pulls/15: dial tcp: lookup lsdlsjkd: no such host

@lkysow lkysow added feature New functionality/enhancement and removed help wanted Good feature for contributors labels Apr 9, 2019
jamengual pushed a commit that referenced this issue Nov 23, 2022
meringu pushed a commit to meringu/atlantis that referenced this issue May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement provider/gitlab
Projects
None yet
Development

No branches or pull requests

3 participants