Comment 2 for bug 1856095

Revision history for this message
kobig (kobi.ginon) wrote :

additional info:

any container that we restart with docker_container module with ansible-playbook
will result with a failure to get up back with the below error

Note: strange thing is that simple shell docker restart [container name] is successful
      we also tried to go to latest ansible-playbook version without success

An example for the ansible task
###############################
  - name: restart manila_api
    docker_container:
      name: manila_api
      image: 172.31.0.1:8787/cbis/centos-binary-manila-api:stein-latest
      command: "kolla_start"
      state: started
      restart: yes

####result of docker logs from the container

9f966dddc5b6 172.31.0.1:8787/cbis/centos-binary-manila-api:stein-latest "dumb-init --singl..." 13 minutes ago Exited (2) 13 minutes ago manila_api
+ sudo -E kolla_set_configs
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
ERROR:__main__:Unexpected error:
Traceback (most recent call last):
  File "/usr/local/bin/kolla_set_configs", line 412, in main
    config = load_config()
  File "/usr/local/bin/kolla_set_configs", line 294, in load_config
    config = load_from_file()
  File "/usr/local/bin/kolla_set_configs", line 282, in load_from_file
    with open(config_file) as f:
IOError: [Errno 2] No such file or directory: '/var/lib/kolla/config_files/config.json'

################Ansible playbook version
############################
(undercloud) [stack@undercloud ~]$ ansible-playbook --version
ansible-playbook 2.8.4
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/stack/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]