Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK [os_keystone : Distribute the fernet key repository] ***********************************************************************************************************************************************************************************
- task path: /etc/ansible/roles/os_keystone/tasks/keystone_fernet_keys_distribute.yml:18
- <OpenStack-1_keystone_container-64aa967f> The "physical_host" variable of "OpenStack-1" has been found to have a corresponding host entry in inventory.
- <OpenStack-1_keystone_container-64aa967f> The "physical_host" variable of "OpenStack-1" terminates at "10.1.0.102" using the host variable "ansible_host".
- container_name: "OpenStack-1_keystone_container-64aa967f"
- physical_host: "OpenStack-1"
- Container confirmed
- Container type "lxc"
- Using module file /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
- container_name: "OpenStack-1_keystone_container-64aa967f"
- physical_host: "OpenStack-1"
- Container confirmed
- Container type "lxc"
- <10.1.0.102> ESTABLISH SSH CONNECTION FOR USER: root
- <10.1.0.102> 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/9677dd5e45 10.1.0.102 'lxc-attach --clear-env --name OpenStack-1_keystone_container-64aa967f -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'sudo -H -S -n -u keystone /bin/sh -c '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-nfgrnlfnkwxzxxtbcqukiwglaljanymn; /usr/bin/python'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' && sleep 0'"'"'"'"'"'"'"'"''"'"''
- Escalation succeeded
- <10.1.0.102> (1, '\n{"changed": true, "end": "2019-04-05 08:00:07.668712", "stdout": "", "cmd": ["rsync", "-e", "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no", "-avz", "--delete", "/etc/keystone/fernet-keys/", "keystone@10.1.0.143:/etc/keystone/fernet-keys/"], "failed": true, "delta": "0:00:00.017582", "stderr": "ssh: connect to host 10.1.0.143 port 22: Connection refused\\r\\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\\nrsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]", "rc": 255, "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "rsync -e \'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\'\\n -avz\\n --delete\\n /etc/keystone/fernet-keys/\\n keystone@10.1.0.143:/etc/keystone/fernet-keys/", "removes": null, "argv": null, "creates": null, "chdir": null, "stdin": null}}, "start": "2019-04-05 08:00:07.651130", "msg": "non-zero return code"}\n', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
- <10.1.0.102> Failed to connect to the host via ssh: mesg: ttyname failed: Inappropriate ioctl for device
- failed: [OpenStack-1_keystone_container-64aa967f] (item=OpenStack-2_keystone_container-200a290d) => {
- "changed": false,
- "cmd": [
- "rsync",
- "-e",
- "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no",
- "-avz",
- "--delete",
- "/etc/keystone/fernet-keys/",
- "keystone@10.1.0.143:/etc/keystone/fernet-keys/"
- ],
- "delta": "0:00:00.017582",
- "end": "2019-04-05 08:00:07.668712",
- "invocation": {
- "module_args": {
- "_raw_params": "rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'\n -avz\n --delete\n /etc/keystone/fernet-keys/\n keystone@10.1.0.143:/etc/keystone/fernet-keys/",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "warn": true
- }
- },
- "item": "OpenStack-2_keystone_container-200a290d",
- "msg": "non-zero return code",
- "rc": 255,
- "start": "2019-04-05 08:00:07.651130",
- "stderr": "ssh: connect to host 10.1.0.143 port 22: Connection refused\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]",
- "stderr_lines": [
- "ssh: connect to host 10.1.0.143 port 22: Connection refused",
- "rsync: connection unexpectedly closed (0 bytes received so far) [sender]",
- "rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- container_name: "OpenStack-1_keystone_container-64aa967f"
- physical_host: "OpenStack-1"
- Container confirmed
- Container type "lxc"
- Using module file /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/modules/commands/command.py
- container_name: "OpenStack-1_keystone_container-64aa967f"
- physical_host: "OpenStack-1"
- Container confirmed
- Container type "lxc"
- <10.1.0.102> ESTABLISH SSH CONNECTION FOR USER: root
- <10.1.0.102> 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/9677dd5e45 10.1.0.102 'lxc-attach --clear-env --name OpenStack-1_keystone_container-64aa967f -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'sudo -H -S -n -u keystone /bin/sh -c '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ewbuhefceaoittvsesnwsssliwarzwgl; /usr/bin/python'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' && sleep 0'"'"'"'"'"'"'"'"''"'"''
- Escalation succeeded
- <10.1.0.102> (0, '\n{"changed": true, "end": "2019-04-05 08:00:08.177752", "stdout": "sending incremental file list\\ndeleting 6\\n./\\n0\\n12\\n\\nsent 356 bytes received 68 bytes 282.67 bytes/sec\\ntotal size is 308 speedup is 0.73", "cmd": ["rsync", "-e", "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no", "-avz", "--delete", "/etc/keystone/fernet-keys/", "keystone@10.1.0.139:/etc/keystone/fernet-keys/"], "rc": 0, "start": "2019-04-05 08:00:07.931359", "stderr": "Warning: Permanently added \'10.1.0.139\' (ECDSA) to the list of known hosts.", "delta": "0:00:00.246393", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": false, "_raw_params": "rsync -e \'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\'\\n -avz\\n --delete\\n /etc/keystone/fernet-keys/\\n keystone@10.1.0.139:/etc/keystone/fernet-keys/", "removes": null, "argv": null, "creates": null, "chdir": null, "stdin": null}}}\n', 'mesg: ttyname failed: Inappropriate ioctl for device\n')
- ok: [OpenStack-1_keystone_container-64aa967f] => (item=OpenStack-3_keystone_container-e3e31f66) => {
- "changed": false,
- "cmd": [
- "rsync",
- "-e",
- "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no",
- "-avz",
- "--delete",
- "/etc/keystone/fernet-keys/",
- "keystone@10.1.0.139:/etc/keystone/fernet-keys/"
- ],
- "delta": "0:00:00.246393",
- "end": "2019-04-05 08:00:08.177752",
- "invocation": {
- "module_args": {
- "_raw_params": "rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'\n -avz\n --delete\n /etc/keystone/fernet-keys/\n keystone@10.1.0.139:/etc/keystone/fernet-keys/",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "warn": true
- }
- },
- "item": "OpenStack-3_keystone_container-e3e31f66",
- "rc": 0,
- "start": "2019-04-05 08:00:07.931359",
- "stderr": "Warning: Permanently added '10.1.0.139' (ECDSA) to the list of known hosts.",
- "stderr_lines": [
- "Warning: Permanently added '10.1.0.139' (ECDSA) to the list of known hosts."
- ],
- "stdout": "sending incremental file list\ndeleting 6\n./\n0\n12\n\nsent 356 bytes received 68 bytes 282.67 bytes/sec\ntotal size is 308 speedup is 0.73",
- "stdout_lines": [
- "sending incremental file list",
- "deleting 6",
- "./",
- "0",
- "12",
- "",
- "sent 356 bytes received 68 bytes 282.67 bytes/sec",
- "total size is 308 speedup is 0.73"
- ]
- }
- PLAY RECAP **********************************************************************************************************************************************************************************************************************************
- OpenStack-1_keystone_container-64aa967f : ok=56 changed=1 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement