Skip to content
Snippets Groups Projects
  • Mark Goddard's avatar
    64d07c0b
    Attempt to pull image before stopping and removing container · 64d07c0b
    Mark Goddard authored
    * Deploy services using kolla-ansible deploy
    * Reconfigure the image for one or more services to use an invalid
    * config
    * Deploy/reconfigure services using kolla-ansible reconfigure
    
    The invalid config could be a wrong docker registry, wrong image name,
    wrong tag, etc.
    
    The restart handler for the service fails, and the old container is
    left running.
    
    The restart handler for the service fails, and the old container is
    stopped and removed. This leaves the service in a broken state.
    
    This change fixes the issue by pulling the image if necessary prior to
    stopping and removing the container.
    
    Change-Id: I85b2a1b224d4c4d85c32c4922a2cd2c41171a1dc
    Closes-Bug: #1852572
    64d07c0b
    History
    Attempt to pull image before stopping and removing container
    Mark Goddard authored
    * Deploy services using kolla-ansible deploy
    * Reconfigure the image for one or more services to use an invalid
    * config
    * Deploy/reconfigure services using kolla-ansible reconfigure
    
    The invalid config could be a wrong docker registry, wrong image name,
    wrong tag, etc.
    
    The restart handler for the service fails, and the old container is
    left running.
    
    The restart handler for the service fails, and the old container is
    stopped and removed. This leaves the service in a broken state.
    
    This change fixes the issue by pulling the image if necessary prior to
    stopping and removing the container.
    
    Change-Id: I85b2a1b224d4c4d85c32c4922a2cd2c41171a1dc
    Closes-Bug: #1852572
test_kolla_docker.py 47.39 KiB