Advertisement
masber

Untitled

Aug 24th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.44 KB | None | 0 0
  1. ############################
  2. # Task failing
  3. ############################
  4. TASK [ceph-rgw : create rados gateway keyring] **************************************************************************************************************************************************************************************************************
  5. task path: /root/ceph-ansible/roles/ceph-rgw/tasks/pre_requisite.yml:29
  6. Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
  7. <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
  8. <ceph-4-2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/%h-%r-%p ceph-4-2 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
  9. <ceph-4-2> (0, '/root\n', '')
  10. <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
  11. <ceph-4-2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/%h-%r-%p ceph-4-2 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855 `" && echo ansible-tmp-1503549187.6-49353583953855="` echo /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855 `" ) && sleep 0'"'"''
  12. <ceph-4-2> (0, 'ansible-tmp-1503549187.6-49353583953855=/root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855\n', '')
  13. <ceph-4-2> PUT /tmp/tmpXkJn1l TO /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py
  14. <ceph-4-2> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/%h-%r-%p '[ceph-4-2]'
  15. <ceph-4-2> (0, 'sftp> put /tmp/tmpXkJn1l /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py\n', '')
  16. <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
  17. <ceph-4-2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/%h-%r-%p ceph-4-2 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/ /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py && sleep 0'"'"''
  18. <ceph-4-2> (0, '', '')
  19. <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
  20. <ceph-4-2> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/%h-%r-%p -tt ceph-4-2 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qutpspkbwcxnfwjyvafrgfjaqhdftcyh; /usr/bin/python /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  21. <ceph-4-2> (0, '\r\n{"changed": true, "end": "2017-08-24 14:38:08.104344", "stdout": "", "cmd": ["ceph", "--cluster", "ceph", "--name", "client.bootstrap-rgw", "--keyring", "/var/lib/ceph/bootstrap-rgw/ceph.keyring", "auth", "get-or-create", "client.rgw.ceph-4-2", "osd", "allow rwx", "mon", "allow rw", "-o", "/var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring"], "rc": 1, "start": "2017-08-24 14:33:07.921519", "stderr": "2017-08-24 14:38:08.060564 7f3de317f700 0 monclient(hunting): authenticate timed out after 300\\n2017-08-24 14:38:08.060612 7f3de317f700 0 librados: client.bootstrap-rgw authentication error (110) Connection timed out\\nError connecting to cluster: TimedOut", "delta": "0:05:00.182825", "invocation": {"module_args": {"creates": "/var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring", "executable": null, "_uses_shell": false, "_raw_params": "ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.ceph-4-2 osd \'allow rwx\' mon \'allow rw\' -o /var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring", "removes": null, "warn": true, "chdir": null}}, "warnings": []}\r\n', 'Shared connection to ceph-4-2 closed.\r\n')
  22. fatal: [ceph-4-2]: FAILED! => {
  23. "changed": false,
  24. "cmd": [
  25. "ceph",
  26. "--cluster",
  27. "ceph",
  28. "--name",
  29. "client.bootstrap-rgw",
  30. "--keyring",
  31. "/var/lib/ceph/bootstrap-rgw/ceph.keyring",
  32. "auth",
  33. "get-or-create",
  34. "client.rgw.ceph-4-2",
  35. "osd",
  36. "allow rwx",
  37. "mon",
  38. "allow rw",
  39. "-o",
  40. "/var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring"
  41. ],
  42. "delta": "0:05:00.182825",
  43. "end": "2017-08-24 14:38:08.104344",
  44. "failed": true,
  45. "invocation": {
  46. "module_args": {
  47. "_raw_params": "ceph --cluster ceph --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/ceph.keyring auth get-or-create client.rgw.ceph-4-2 osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring",
  48. "_uses_shell": false,
  49. "chdir": null,
  50. "creates": "/var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring",
  51. "executable": null,
  52. "removes": null,
  53. "warn": true
  54. }
  55. },
  56. "rc": 1,
  57. "start": "2017-08-24 14:33:07.921519",
  58. "stderr": "2017-08-24 14:38:08.060564 7f3de317f700 0 monclient(hunting): authenticate timed out after 300\n2017-08-24 14:38:08.060612 7f3de317f700 0 librados: client.bootstrap-rgw authentication error (110) Connection timed out\nError connecting to cluster: TimedOut",
  59. "stderr_lines": [
  60. "2017-08-24 14:38:08.060564 7f3de317f700 0 monclient(hunting): authenticate timed out after 300",
  61. "2017-08-24 14:38:08.060612 7f3de317f700 0 librados: client.bootstrap-rgw authentication error (110) Connection timed out",
  62. "Error connecting to cluster: TimedOut"
  63. ],
  64. "stdout": "",
  65. "stdout_lines": []
  66. }
  67.  
  68. PLAY RECAP **************************************************************************************************************************************************************************************************************************************************
  69. ceph-4-2 : ok=107 changed=4 unreachable=0 failed=1
  70. ceph-4-3 : ok=129 changed=2 unreachable=0 failed=0
  71.  
  72. ######################
  73. # Apparently the error is running ssh command so i try to run the command manually
  74. ######################
  75.  
  76. [root@ceph-4-2 ~]# ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/%h-%r-%p -tt ceph-4-2 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qutpspkbwcxnfwjyvafrgfjaqhdftcyh; /usr/bin/python /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  77. Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
  78. [root@ceph-4-2 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement