-
Notifications
You must be signed in to change notification settings - Fork 315
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
docker_stack always redeploying stack #848
Comments
I did some research and testing on this and poked around the puppet code, and I think I found the problem. First off, the duplicated line is because the check to see if the stack exists is run for each compose file in the list. I'm not sure if this is the right way to do the check, but it at least answers that. I also ran the command that's in the Debug line doing the check and got an error. It looks like the shell is having a problem with the space in the format string I'm not a great ruby dev, but I think the fix would be to surround the format string in quotes in the puppet code. That should (should) get the stack check working and cause the check to succeed or fail as it's supposed to. I hope this helps! |
The same (or similar) issue is also present in the I tried the proposed solution from #848 (comment), but it didn't solve the issue for me (even made it worse that all 4 compose stacks are now refreshing on each puppet run. In case of Environment:
|
The problem is what @dharwood mentioned in #848 (comment), but that causes a further issue when it comes time to do the service-to-container comparison (at least for the docker_compose provider, which is what I looked at), so you need to update that as well. This works for me:
I can submit a PR when I have a minute but if anyone has a better solution that would also be fine. I still haven't figured out why this only affects some of my compose stacks and not others. |
Implementation of fix suggested by @grzleadams in the Github issue puppetlabs#848.
Above suggested fix has been implemented: #878 |
Implementation of fix suggested by @grzleadams in the Github issue puppetlabs#848.
PR containing the above suggested fix has been merged, release began |
Sorry for the delay, but the fix for this has just been released so gonna close this issue. |
Implementation of fix suggested by @grzleadams in the Github issue puppetlabs#848.
Describe the Bug
While deploying a server using the puppetlabs-docker module, whenever the puppet agent runs the entire stack is redeployed as a corrective change. Possible duplicate of #629
Expected Behavior
Docker stack should deploy once and only once unless an actual change occurs
Steps to Reproduce
docker_stack code is as follows:
agent debug output with interesting duplicated line:
Full log attached
agentdebug_redacted.log
Environment
The text was updated successfully, but these errors were encountered: