Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

disable configuration cleanup on failed validation (#554) #558

Closed
wants to merge 1 commit into from

Conversation

zliw
Copy link

@zliw zliw commented Mar 6, 2018

This change set introduces an optional command line flag, which allows to skip the new app by app validation/cleanup in favour of the old behaviour:

A broken setup causes no reload of the haproxy.cfg. The old configuration is still usable. The haproxy.cfg is checked once entirely for configuration problems.

Unfortunately for the setup described in #554 the new app-by-app cleanup meant, that some applications would not be accessible anymore after removing them, depending on the order they are delivered by marathon. This currently prevents us from upgrading marathon-lb.

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

5 similar comments
@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@@ -1803,6 +1804,10 @@ def get_arg_parser():
parser.add_argument("--skip-validation",
help="Skip haproxy config file validation",
action="store_true")
parser.add_argument("--skip-config-cleanup",
help="If one app fails, don't try to make configuration "
Copy link
Contributor

Choose a reason for hiding this comment

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

Flake8: ./marathon_lb.py:1808:80: E501 line too long (81 > 79 characters)

@jkoelker
Copy link
Contributor

@zliw Apologies for the delay in getting to this pr.

Would you mind rebasing this on master and changing the line to pass flake8? If so I'll merge this in.

@jkoelker
Copy link
Contributor

jkoelker commented Apr 4, 2019

We've merged this in via #625. Again apologies for the delay and thank you for taking the time to make marathon-lb better.

@jkoelker jkoelker closed this Apr 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants