Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK [os_keystone : Create DB for service] **********************************************************************************************
- task path: /etc/ansible/roles/os_keystone/tasks/keystone_db_setup.yml:16
- <infra1_keystone_container-23953eae> Task is delegated to infra1_galera_container-20a60db9.
- <infra1_keystone_container-23953eae> Task is delegated to infra1_galera_container-20a60db9. Adding its physical host infra1
- <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" has been found to have a corresponding host entry in inventory.
- <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" terminates at "172.10.10.2" using the host variable "ansible_host".
- <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" has been found to have a corresponding host entry in inventory.
- <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" terminates at "172.10.10.2" using the host variable "ansible_host".
- <infra1_keystone_container-23953eae> Because this is a task using "delegate_to" pipelining has been disabled. but will be restored upon completion of this task.
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
- <172.10.10.2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/c3728729b3 172.10.10.2 'lxc-attach --clear-env --name infra1_galera_container-20a60db9 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'echo ~root && sleep 0'"'"'"'"'"'"'"'"''"'"''
- <172.10.10.2> (0, '/root\n', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
- <172.10.10.2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/c3728729b3 172.10.10.2 'lxc-attach --clear-env --name infra1_galera_container-20a60db9 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621 `" && echo ansible-tmp-1557999832.46-80389409528621="` echo /root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621 `" ) && sleep 0'"'"'"'"'"'"'"'"''"'"''
- <172.10.10.2> (0, 'ansible-tmp-1557999832.46-80389409528621=/root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621\n', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
- Using module file /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/modules/database/mysql/mysql_db.py
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- <172.10.10.2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/c3728729b3 172.10.10.2 'lxc-info -Hpn '"'"'infra1_galera_container-20a60db9'"'"''
- <172.10.10.2> (0, '31991\n', '')
- The path has been padded with the following to support a container rootfs: [ /proc/31991/root/root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/AnsiballZ_mysql_db.py ]
- <172.10.10.2> PUT /root/.ansible/tmp/ansible-local-31804mPJB0f/tmpMTU5ti TO /proc/31991/root/root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/AnsiballZ_mysql_db.py
- <172.10.10.2> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o ControlPath=/root/.ansible/cp/c3728729b3 '[172.10.10.2]'
- <172.10.10.2> (0, 'sftp> put /root/.ansible/tmp/ansible-local-31804mPJB0f/tmpMTU5ti /proc/31991/root/root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/AnsiballZ_mysql_db.py\n', '')
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
- <172.10.10.2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/c3728729b3 172.10.10.2 'lxc-attach --clear-env --name infra1_galera_container-20a60db9 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/ /root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/AnsiballZ_mysql_db.py && sleep 0'"'"'"'"'"'"'"'"''"'"''
- <172.10.10.2> (0, '', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
- <172.10.10.2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/c3728729b3 -tt 172.10.10.2 'lxc-attach --clear-env --name infra1_galera_container-20a60db9 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/AnsiballZ_mysql_db.py && sleep 0'"'"'"'"'"'"'"'"''"'"''
- <172.10.10.2> (1, 'mesg: ttyname failed: Success\r\n\r\n{"msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (2013, \\"Lost connection to MySQL server at \'reading initial communication packet\', system error: 0\\")", "failed": true, "exception": "WARNING: The below traceback may *not* be related to the actual failure.\\n File \\"/tmp/ansible_mysql_db_payload_d6DXxr/__main__.py\\", line 316, in main\\n connect_timeout=connect_timeout)\\n File \\"/tmp/ansible_mysql_db_payload_d6DXxr/ansible_mysql_db_payload.zip/ansible/module_utils/mysql.py\\", line 79, in mysql_connect\\n db_connection = mysql_driver.connect(**config)\\n File \\"/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py\\", line 81, in Connect\\n return Connection(*args, **kwargs)\\n File \\"/usr/lib/python2.7/dist-packages/MySQLdb/connections.py\\", line 204, in __init__\\n super(Connection, self).__init__(*args, **kwargs2)\\n", "invocation": {"module_args": {"ssl_key": null, "login_port": 3306, "config_file": "/root/.my.cnf", "name": "keystone", "encoding": "", "login_user": "root", "login_host": "172.10.10.2", "ignore_tables": [], "ssl_ca": null, "login_unix_socket": null, "state": "present", "ssl_cert": null, "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "collation": "", "quick": true, "target": null, "connect_timeout": 30, "single_transaction": false}}}\r\n', 'Shared connection to 172.10.10.2 closed.\r\n')
- <172.10.10.2> Failed to connect to the host via ssh: Shared connection to 172.10.10.2 closed.
- container_name: "infra1_galera_container-20a60db9"
- physical_host: "infra1"
- Container confirmed
- Container type "lxc"
- <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
- <172.10.10.2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/c3728729b3 172.10.10.2 'lxc-attach --clear-env --name infra1_galera_container-20a60db9 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1557999832.46-80389409528621/ > /dev/null 2>&1 && sleep 0'"'"'"'"'"'"'"'"''"'"''
- <172.10.10.2> (0, '', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
- The full traceback is:
- WARNING: The below traceback may *not* be related to the actual failure.
- File "/tmp/ansible_mysql_db_payload_d6DXxr/__main__.py", line 316, in main
- connect_timeout=connect_timeout)
- File "/tmp/ansible_mysql_db_payload_d6DXxr/ansible_mysql_db_payload.zip/ansible/module_utils/mysql.py", line 79, in mysql_connect
- db_connection = mysql_driver.connect(**config)
- File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
- return Connection(*args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__
- super(Connection, self).__init__(*args, **kwargs2)
- fatal: [infra1_keystone_container-23953eae -> 172.10.10.32]: FAILED! => {
- "changed": false,
- "invocation": {
- "module_args": {
- "collation": "",
- "config_file": "/root/.my.cnf",
- "connect_timeout": 30,
- "encoding": "",
- "ignore_tables": [],
- "login_host": "172.10.10.2",
- "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
- "login_port": 3306,
- "login_unix_socket": null,
- "login_user": "root",
- "name": "keystone",
- "quick": true,
- "single_transaction": false,
- "ssl_ca": null,
- "ssl_cert": null,
- "ssl_key": null,
- "state": "present",
- "target": null
- }
- },
- "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (2013, \"Lost connection to MySQL server at 'reading initial communication packet', system error: 0\")"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement