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'
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 ####### ####### ####### ### container: 0.1:8787/ cbis/centos- binary- manila- api:stein- latest
#######
- name: restart manila_api
docker_
name: manila_api
image: 172.31.
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 main__: Loading config file at /var/lib/ kolla/config_ files/config. json _main__ :Unexpected error: bin/kolla_ set_configs" , line 412, in main bin/kolla_ set_configs" , line 294, in load_config bin/kolla_ set_configs" , line 282, in load_from_file kolla/config_ files/config. json'
+ sudo -E kolla_set_configs
INFO:__
ERROR:_
Traceback (most recent call last):
File "/usr/local/
config = load_config()
File "/usr/local/
config = load_from_file()
File "/usr/local/
with open(config_file) as f:
IOError: [Errno 2] No such file or directory: '/var/lib/
####### ####### ##Ansible playbook version ####### ####### ####### ansible. cfg stack/. ansible/ plugins/ modules' , u'/usr/ share/ansible/ plugins/ modules' ] python2. 7/site- packages/ ansible ansible- playbook
#######
(undercloud) [stack@undercloud ~]$ ansible-playbook --version
ansible-playbook 2.8.4
config file = /etc/ansible/
configured module search path = [u'/home/
ansible python module location = /usr/lib/
executable location = /usr/bin/
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]