Advertisement
Guest User

Untitled

a guest
May 16th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.51 KB | None | 0 0
  1. TASK [os_keystone : Create DB for service] **********************************************************************************************
  2. task path: /etc/ansible/roles/os_keystone/tasks/keystone_db_setup.yml:16
  3. <infra1_keystone_container-23953eae> Task is delegated to infra1_galera_container-20a60db9.
  4. <infra1_keystone_container-23953eae> Task is delegated to infra1_galera_container-20a60db9. Adding its physical host infra1
  5. <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" has been found to have a corresponding host entry in inventory.
  6. <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" terminates at "172.10.10.2" using the host variable "ansible_host".
  7. <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" has been found to have a corresponding host entry in inventory.
  8. <infra1_keystone_container-23953eae> The "physical_host" variable of "infra1" terminates at "172.10.10.2" using the host variable "ansible_host".
  9. <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.
  10. container_name: "infra1_galera_container-20a60db9"
  11. physical_host: "infra1"
  12. Container confirmed
  13. Container type "lxc"
  14. container_name: "infra1_galera_container-20a60db9"
  15. physical_host: "infra1"
  16. Container confirmed
  17. Container type "lxc"
  18. <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
  19. <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'"'"'"'"'"'"'"'"''"'"''
  20. <172.10.10.2> (0, '/root\n', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
  21. container_name: "infra1_galera_container-20a60db9"
  22. physical_host: "infra1"
  23. Container confirmed
  24. Container type "lxc"
  25. <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
  26. <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'"'"'"'"'"'"'"'"''"'"''
  27. <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')
  28. Using module file /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/modules/database/mysql/mysql_db.py
  29. container_name: "infra1_galera_container-20a60db9"
  30. physical_host: "infra1"
  31. Container confirmed
  32. Container type "lxc"
  33. <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'"'"''
  34. <172.10.10.2> (0, '31991\n', '')
  35. 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 ]
  36. <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
  37. <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]'
  38. <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', '')
  39. container_name: "infra1_galera_container-20a60db9"
  40. physical_host: "infra1"
  41. Container confirmed
  42. Container type "lxc"
  43. <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
  44. <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'"'"'"'"'"'"'"'"''"'"''
  45. <172.10.10.2> (0, '', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
  46. container_name: "infra1_galera_container-20a60db9"
  47. physical_host: "infra1"
  48. Container confirmed
  49. Container type "lxc"
  50. <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
  51. <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'"'"'"'"'"'"'"'"''"'"''
  52. <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')
  53. <172.10.10.2> Failed to connect to the host via ssh: Shared connection to 172.10.10.2 closed.
  54. container_name: "infra1_galera_container-20a60db9"
  55. physical_host: "infra1"
  56. Container confirmed
  57. Container type "lxc"
  58. <172.10.10.2> ESTABLISH SSH CONNECTION FOR USER: root
  59. <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'"'"'"'"'"'"'"'"''"'"''
  60. <172.10.10.2> (0, '', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
  61. The full traceback is:
  62. WARNING: The below traceback may *not* be related to the actual failure.
  63. File "/tmp/ansible_mysql_db_payload_d6DXxr/__main__.py", line 316, in main
  64. connect_timeout=connect_timeout)
  65. File "/tmp/ansible_mysql_db_payload_d6DXxr/ansible_mysql_db_payload.zip/ansible/module_utils/mysql.py", line 79, in mysql_connect
  66. db_connection = mysql_driver.connect(**config)
  67. File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
  68. return Connection(*args, **kwargs)
  69. File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__
  70. super(Connection, self).__init__(*args, **kwargs2)
  71.  
  72. fatal: [infra1_keystone_container-23953eae -> 172.10.10.32]: FAILED! => {
  73. "changed": false,
  74. "invocation": {
  75. "module_args": {
  76. "collation": "",
  77. "config_file": "/root/.my.cnf",
  78. "connect_timeout": 30,
  79. "encoding": "",
  80. "ignore_tables": [],
  81. "login_host": "172.10.10.2",
  82. "login_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
  83. "login_port": 3306,
  84. "login_unix_socket": null,
  85. "login_user": "root",
  86. "name": "keystone",
  87. "quick": true,
  88. "single_transaction": false,
  89. "ssl_ca": null,
  90. "ssl_cert": null,
  91. "ssl_key": null,
  92. "state": "present",
  93. "target": null
  94. }
  95. },
  96. "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\")"
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement