Repository navigation
Conversation
docker ps only lists containers on this node, so a stack with replicas elsewhere looked missing and was redeployed every agent run. exists? now compares compose services to `docker stack services`, strips a Swarm digest pin from the image name, and treats a failed stack query as absent. Compose files are loaded with Puppet::Util::Yaml.safe_load and version 3.8 is accepted. Fixes puppetlabs#968 Fixes puppetlabs#973
|
@skyamgarp, this fixes the docker_stack provider, would appreciate a review and if possible a merge. |
|
@gerases: It seems that there are some syntax issues found by the Rubocop testing: |
|
@jst-cyr, let me know if anything else is needed. Thank you! |
|
@gerases : Thank you! Spec tests are passing, so I'll kick off some acceptance tests. |
|
Running CI tests for this PR here: #1073 |
|
Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-docker/actions/runs/34889231355?pr=1073 Mostly green, but failures on CentOS-7, CentOS-8, Debian-10, Debian-11, and Ubuntu-20.04. I have compared these failures and they match identically to the failures against main that we are seeing in the nightly acceptance tests. This PR does not seem to be introducing new failures. This still requires an engineering review, but testing seems good! |
docker ps only lists containers on this node, so a stack with replicas
elsewhere looked missing and was redeployed every agent run. exists? now
compares compose services to
docker stack services, strips a Swarmdigest pin from the image name, and treats a failed stack query as
absent. Compose files are loaded with Puppet::Util::Yaml.safe_load and
version 3.8 is accepted.
Fixes #968
Fixes #973
Summary
Provide a detailed description of all the changes present in this pull request.
Additional Context
Add any additional context about the problem here.
Related Issues (if any)
Mention any related issues or pull requests.
Checklist
puppet apply)