Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################
- # Task failing
- ############################
- TASK [ceph-rgw : create rados gateway keyring] **************************************************************************************************************************************************************************************************************
- task path: /root/ceph-ansible/roles/ceph-rgw/tasks/pre_requisite.yml:29
- Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
- <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <ceph-4-2> (0, '/root\n', '')
- <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <ceph-4-2> (0, 'ansible-tmp-1503549187.6-49353583953855=/root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855\n', '')
- <ceph-4-2> PUT /tmp/tmpXkJn1l TO /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py
- <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]'
- <ceph-4-2> (0, 'sftp> put /tmp/tmpXkJn1l /root/.ansible/tmp/ansible-tmp-1503549187.6-49353583953855/command.py\n', '')
- <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <ceph-4-2> (0, '', '')
- <ceph-4-2> ESTABLISH SSH CONNECTION FOR USER: None
- <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'"'"''
- <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')
- fatal: [ceph-4-2]: FAILED! => {
- "changed": false,
- "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"
- ],
- "delta": "0:05:00.182825",
- "end": "2017-08-24 14:38:08.104344",
- "failed": true,
- "invocation": {
- "module_args": {
- "_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",
- "_uses_shell": false,
- "chdir": null,
- "creates": "/var/lib/ceph/radosgw/ceph-rgw.ceph-4-2/keyring",
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "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",
- "stderr_lines": [
- "2017-08-24 14:38:08.060564 7f3de317f700 0 monclient(hunting): authenticate timed out after 300",
- "2017-08-24 14:38:08.060612 7f3de317f700 0 librados: client.bootstrap-rgw authentication error (110) Connection timed out",
- "Error connecting to cluster: TimedOut"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- PLAY RECAP **************************************************************************************************************************************************************************************************************************************************
- ceph-4-2 : ok=107 changed=4 unreachable=0 failed=1
- ceph-4-3 : ok=129 changed=2 unreachable=0 failed=0
- ######################
- # Apparently the error is running ssh command so i try to run the command manually
- ######################
- [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'"'"''
- Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
- [root@ceph-4-2 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement