-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
notifies :redeploy fails, but manually notifying :stop, :remove and :run works #198
Comments
I think it may be due to the mixing of platform resources and in-line shellouts. When I change the cookbook to use platform resources only (#197) the :redepoly action works as described. I'm not sure if switching to using platform resources is possible for all of the shellouts, but I think that may be a possible solution. |
@jschneiderhan By "in-line shellouts" you mean execute commands? (because we have only one execute and that is for cleaning up stale docker images, and I'm not sure if that could affect anything, excuse me if I misunderstood) |
Hi @rdsubhas, By inline shellouts I mean calls to What got me headed down this train of thought is a warning on the Chef Custom Resources docs:
I'll admit though, this warning isn't completely clear to me. It isn't clearly stated what is meant by "custom resources". I think they mean using the approach shown in the "Lightweight Providers w/Custom Ruby" section which does a shellout. If that is the case, the warning reads to me that mixing shellouts (an example of a "custom resource") and platform resources is not recommended. That is just my interpretation though ... I could be way off base. Changing the shellouts to execute resources (except the call in the |
@jschneiderhan thanks for the explanation! let's see what the core committers have to say... |
We are experiencing something similar to this. Seems like the stop step just never happens on a redeploy |
In case anybody is using Jenkins, we used the Naginator plugin to automatically re-trigger failed builds. Works like a charm when run the second time... |
+1 |
This is my experience as well. When using |
FIxed in master |
Reference: https://snap-ci.com/rapidftr/RapidFTR/branch/master/logs/defaultPipeline/74/DEV?back_to=build_history
Fails randomly. Instead we have switched to:
And that works
consistently wellbetter. Any ideas what could be the issue?EDIT: That doesn't work consistently well, it just works "better", and does fail occasionally.
The text was updated successfully, but these errors were encountered: