Hi
While i am trying to deploy kolla on control node
I get the below error, where 10.10.10.254 is my kolla_external_vip_address and is an internally generated one.
TASK [keystone : Creating Keystone database] ***********************************
fatal: [controlnode1.oracle.com]: FAILED! => {"stdout": "localhost | FAILED! => {\r\n \"changed\": false, \r\n \"failed\": true, \r\n \"msg\": \"unable to find /home/ansible/.my.cnf. Exception message: (2003, \\\"Can't connect to MySQL server on '10.10.10.254' (4)\\\")\"\r\n}", "cmd": ["docker", "exec", "-t", "kolla_toolbox", "/usr/bin/ansible", "localhost", "-m", "mysql_db", "-a", "login_host='10.10.10.254' login_port='3306' login_user='root' login_password='<usingmine>' name='keystone'"], "end": "2017-06-22 10:50:52.921982", "_ansible_no_log": false, "_ansible_delegated_vars": {"ansible_host": "controlnode1.oracle.com"}, "changed": false, "rc": 1, "start": "2017-06-22 10:50:21.688188", "stderr": "", "delta": "0:00:31.233794", "invocation": {"module_name": "command", "module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "docker exec -t kolla_toolbox /usr/bin/ansible localhost -m mysql_db -a \"login_host='10.10.10.254' login_port='3306' login_user='root' login_password='' name='keystone'\"", "removes": null, "creates": null, "chdir": null}}, "stdout_lines": ["localhost | FAILED! => {", " \"changed\": false, ", " \"failed\": true, ", " \"msg\": \"unable to find /home/ansible/.my.cnf. Exception message: (2003, \\\"Can't connect to MySQL server on '10.10.10.254' (4)\\\")\"", "}"], "failed_when_result": true, "warnings": [], "failed": true}
PLAY RECAP *********************************************************************
controlnode1.oracle.com : ok=45 changed=1 unreachable=0 failed=1 ignored=0
10.196.146.93 : ok=32 changed=1 unreachable=0 failed=0 ignored=0
10.196.146.94 : ok=32 changed=1 unreachable=0 failed=0 ignored=0
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/kollacli/commands/deploy.py", line 103, in take_action
.format(msg=job.get_error_message()))
CommandError: ERROR: Job failed:
Host: controlnode1.oracle.com, Task: keystone : Creating Keystone database, Status: failed, Message: unable to find /home/ansible/.my.cnf. Exception message: (2003, \
any pointer in this regard would really help
Thanks
@Ankit what version of docker and ansible using in current environment ?
At the first level I see two possibility one is whether ansible installed or not on controller node and second is version compatibility with docker.
Will you please provide more information for better investigation.