Comment 1 for bug 1856095

Revision history for this message
James Bagwell (jimbagwell) wrote :

Have discovered that maybe there's a problem with our restart handler in ansible:

I have been using , to restart the container:
handlers:
    - name: restart keystone
      docker_container:
        name: keystone
        image: 172.31.0.1:8787/cbis/centos-binary-keystone:stein-latest
        command: "kolla_start"
        state: started
        restart: yes

When I dont use the ansible module above, but instead use shell (below) for the same task, the config.json remains intact on the container and the container starts.

  handlers:
    - name: restart keystone
      shell: "docker restart keystone"