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

Use the server IP for the AWX database host when the rails config is no good #16621

Merged

Conversation

carbonin
Copy link
Member

@carbonin carbonin commented Dec 7, 2017

Previously we would check the database configuration (database.yml)
then if that host wasn't set or was localhost we would try to use the
docker host gateway.

But we have a better option. We can use the server's ip instead.
This leaves the docker gateway as the last option as that will probably
still be needed for development environments.

Before this change AWX was failing on appliances if the appliance was running the database locally.

…no good

Previously we would check the database configuration (database.yml)
then if that host wasn't set or was localhost we would try to use the
docker host gateway.

But we have a better option. We can use the server's ip instead.
This leaves the docker gateway as the last option as that will probably
still be needed for development environments.
@miq-bot
Copy link
Member

miq-bot commented Dec 7, 2017

Checked commit carbonin@a8caa1f with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

@bdunne bdunne merged commit 5842a94 into ManageIQ:master Dec 8, 2017
@bdunne bdunne added this to the Sprint 75 Ending Dec 11, 2017 milestone Dec 8, 2017
simaishi pushed a commit that referenced this pull request Dec 11, 2017
…e_host

Use the server IP for the AWX database host when the rails config is no good
(cherry picked from commit 5842a94)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 0a4364cbb1e81fcef0d37ab16358e5f27afd9d6f
Author: Brandon Dunne <brandondunne@hotmail.com>
Date:   Fri Dec 8 07:41:09 2017 -0500

    Merge pull request #16621 from carbonin/use_server_ip_for_awx_database_host
    
    Use the server IP for the AWX database host when the rails config is no good
    (cherry picked from commit 5842a945ca6bc61ee80bb55d9898e176d8c3a17a)

@carbonin carbonin deleted the use_server_ip_for_awx_database_host branch August 16, 2019 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants