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

faucet.yaml changes even when set fails for any reason #34

Open
cglewis opened this issue Aug 5, 2019 · 1 comment
Open

faucet.yaml changes even when set fails for any reason #34

cglewis opened this issue Aug 5, 2019 · 1 comment

Comments

@cglewis
Copy link
Member

cglewis commented Aug 5, 2019

This is related to #21 but I've found this to be a broader issue in that any error condition on a set operation will still change the config file even though it "failed". This seems to not be a good behavior for the faucetagent to have? Perhaps it should copy the original faucet.yaml before applying set, and if it returns a failure then it sets it back to what the original faucet.yaml was?

This is especially bad in cases where the faucet.yaml being applied is valid, but there was a "failure" in the set operation for some other reason and Faucet is now running that newly applied config but the end user of faucetagent was told it failed.

@lantz
Copy link
Collaborator

lantz commented Aug 5, 2019

Hmm.... I have to think about it, but my immediate take is this:

If the config change fails to complete successfully, then FAUCET's state is suspect, so you should reapply it via the agent and verify that it has been applied successfully.

We could, however, add a mechanism to check whether a config change has been applied, by validating the hash against what FAUCET is reporting.

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

No branches or pull requests

2 participants