You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
For a deploy I have, I'm looking to shut down a supervisord during the nodes upgrade because there are multiple nodes of this specific type. So I have HA and can do a "rolling upgrade" to avoid the currently upgrading server from serving requests with partially updated state.
The problem is that for a fully idempotent upgrade/install, I cannot assume that the service has even been created yet. So during the stop, it will blow up if the service doesn't exist.
Now, I can catch that exception and roll on, but the problem is that the exception is not typed, so I cannot be confident that the known exception is even what occurred as I allow it to happen while trying a stop. So...
Should there be a more specific exception type for this?
Is there a better way to try a stop where the service may not yet exist and am I just doing it wrong?
The text was updated successfully, but these errors were encountered:
In my opinion the correct way is to change the cookbook behavior and not to raise the error when attempting to stop a service that does not exist. It's idempotent, because since the service does not exist it's stopped by definition. I can submit a trivial one-line PR, if the author agrees that is a correct way to handle this. We have done this in our local version. Our use case is a bit different, but similar in result.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For a deploy I have, I'm looking to shut down a supervisord during the nodes upgrade because there are multiple nodes of this specific type. So I have HA and can do a "rolling upgrade" to avoid the currently upgrading server from serving requests with partially updated state.
The problem is that for a fully idempotent upgrade/install, I cannot assume that the service has even been created yet. So during the stop, it will blow up if the service doesn't exist.
Now, I can catch that exception and roll on, but the problem is that the exception is not typed, so I cannot be confident that the known exception is even what occurred as I allow it to happen while trying a stop. So...
The text was updated successfully, but these errors were encountered: