docker_container.running recreates containers with multiple links #44258
Labels
Bug
broken, incorrect, or confusing behavior
P3
Priority 3
RIoT
Relates to integration with cloud providers, hypervisors, API-based services, etc.
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
State-Module
Milestone
Description of Issue/Question
When using the
docker_container.running
state and using multiple container links, the container is recreated at the next run. This is because the new and old state comparisons include the links in a different order. Thenew
order appears to be non-deterministic and will occasionally match the order of theold
order.I noticed this after #42743 and it may be relevant.
My suggested fix is to order both new and old sets of links alphabetically before the comparison.
Setup
Steps to Reproduce Issue
Run the above state once and see the containers created. The next run will see the
loadbalancer
container recreated.Versions Report
No differences between master and minion.
The text was updated successfully, but these errors were encountered: