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

Add balancer members after configs have been written #14311

Conversation

jrafanie
Copy link
Member

Fixes a regression in #14007 that affects the initial start of the
appliance which caused a 503 error when trying to access the UI.

https://bugzilla.redhat.com/show_bug.cgi?id=1422988

Because adding balancer members does a validation of the configuration
files and these files try to load the redirect files among others,
we need to add the balancers members after all configuration files have
been written by install_apache_proxy_config.

I wish I knew how to test this outside of an appliance. ❓

https://bugzilla.redhat.com/show_bug.cgi?id=1422988

Fixes a regression in ManageIQ#14007 that affects the initial start of the
appliance which caused a 503 error when trying to access the UI.

Because adding balancer members does a validation of the configuration
files and these files try to load the redirect files among others,
we need to add the balancers members after all configuration files have
been written by install_apache_proxy_config.
@jrafanie
Copy link
Member Author

cc @fbladilo (hopefully this fixes your container builds)

@miq-bot
Copy link
Member

miq-bot commented Mar 13, 2017

Checked commit jrafanie@a1ad99f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🏆

Copy link
Member

@carbonin carbonin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

jrafanie added a commit to jrafanie/manageiq-gems-pending that referenced this pull request Mar 13, 2017
Related to ManageIQ/manageiq#14311

Previously, we quietly logged no result and lost the details of the
exception.  Now, we log the exception and any result if any...

Before:
[----] W, [2017-03-13T17:45:37.678276 #2555:b6b14c]  WARN -- : MIQ(MiqApache::Control.config_ok?) Configuration syntax failed with error:
[----] W, [2017-03-13T17:45:37.678401 #2555:b6b14c]  WARN -- : MIQ(MiqApache::Conf.save) Restoring old configuration due to bad configuration!

After:
[----] W, [2017-03-13T17:45:37.678276 #2555:b6b14c]  WARN -- : MIQ(MiqApache::Control.config_ok?) Configuration syntax failed with error: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/manageiq-https-application.conf: Could not open configuration file /etc/httpd/conf.d/manageiq-redirects-websocket: No such file or directory
 for result:
[----] W, [2017-03-13T17:45:37.678401 #2555:b6b14c]  WARN -- : MIQ(MiqApache::Conf.save) Restoring old configuration due to bad configuration!
@fbladilo
Copy link
Contributor

@jrafanie 👍

@carbonin carbonin self-assigned this Mar 14, 2017
@carbonin carbonin modified the milestone: Sprint 56 Ending Mar 13, 2017 Mar 14, 2017
@carbonin carbonin merged commit 5b167ab into ManageIQ:master Mar 14, 2017
@carbonin carbonin added this to the Sprint 57 Ending Mar 27, 2017 milestone Mar 14, 2017
@jrafanie jrafanie deleted the add_balancer_members_after_all_configs_written branch March 14, 2017 15:02
simaishi pushed a commit that referenced this pull request Mar 15, 2017
…l_configs_written

Add balancer members after configs have been written
(cherry picked from commit 5b167ab)

https://bugzilla.redhat.com/show_bug.cgi?id=1432463
@simaishi
Copy link
Contributor

Euwe backport details:

$ git log -1
commit f91838277dab716effa5a4fe8c46571076c7474f
Author: Nick Carboni <[email protected]>
Date:   Tue Mar 14 09:23:01 2017 -0400

    Merge pull request #14311 from jrafanie/add_balancer_members_after_all_configs_written
    
    Add balancer members after configs have been written
    (cherry picked from commit 5b167ab4748c17ff5c937bb2eba1aaa37fdba8c7)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1432463

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.

5 participants