ERROR: Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips

1,765 views
Skip to first unread message

Parasuram A Havoji

unread,
Apr 28, 2020, 6:14:34 AM4/28/20
to Ansible Project
Hello,

I am seeing the below error while running playbook, i ran playbook with debug enabled and with increased verbose level but not sure of the root cuase of failure. Can someone please help me find the issue; thank you

Below is my configuration;

Ansible Master node;
========================
# ansible --version
ansible
2.9.2
  config file
= /root/galorndon-infra/playbooks/ansible.cfg
  configured
module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python
module location = /py36env/lib64/python3.6/site-packages/ansible
  executable location
= /py36env/bin/ansible
  python version
= 3.6.8 (default, Aug  7 2019, 08:02:28) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39.0.1)]
#
# rpm -qa |grep openssh
openssh
-7.4p1-21.el7.x86_64
openssh
-clients-7.4p1-21.el7.x86_64
#




Managed node;
=============
[root@vault1 ~]# python --version
Python 2.7.5
[root@vault1 ~]#
[root@vault1 ~]#
[root@vault1 ~]# rpm -qa |grep openssh
openssh
-7.4p1-21.el7.x86_64
openssh
-clients-7.4p1-21.el7.x86_64
openssh
-server-7.4p1-21.el7.x86_64
[root@vault1 ~]#
[root@vault1 ~]#


Playbook error ;
================

TASK [vault : Configure Kubernetes Auth for ControlPlane] *************************************************************************
task path: /root/galorndon-infra/playbooks/roles/vault/tasks/vault-setup-backend-controlplane.yml:35
  5303 1588066633.38971: sending task start callback
  5303 1588066633.38999: entering _queue_task() for 10.2.4.50/hashivault_write
  5303 1588066633.39466: worker is 1 (out of 1 available)
  5303 1588066633.39610: exiting _queue_task() for 10.2.4.50/hashivault_write
  5303 1588066633.39665: done queuing things up, now waiting for results queue to drain
  5303 1588066633.39697: waiting for pending results...
  6022 1588066633.39909: running TaskExecutor() for 10.2.4.50/TASK: vault : Configure Kubernetes Auth for ControlPlane
  6022 1588066633.40131: in run() - task 0242ac11-0002-dd43-f45e-000000000146
  6022 1588066633.40297: calling self._execute()
  6022 1588066633.41278: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache=True, class_only=False)
  6022 1588066633.41436: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters.py (found_in_cache=True, class_only=False)
  6022 1588066633.41590: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 (found_in_cache=True, class_only=False)
  6022 1588066633.41684: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query.py (found_in_cache=True, class_only=False)
  6022 1588066633.41832: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache=True, class_only=False)
  6022 1588066633.41894: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff.py (found_in_cache=True, class_only=False)
  6022 1588066633.41941: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py (found_in_cache=True, class_only=False)
  6022 1588066633.41993: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache=True, class_only=False)
  6022 1588066633.42030: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t.py (found_in_cache=True, class_only=False)
  6022 1588066633.42201: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache=True, class_only=False)
  6022 1588066633.42234: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache=True, class_only=False)
  6022 1588066633.42271: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py (found_in_cache=True, class_only=False)
  6022 1588066633.45403: trying /py36env/lib64/python3.6/site-packages/ansible/plugins/connection
  6022 1588066633.45567: Loading Connection 'ssh' from /py36env/lib64/python3.6/site-packages/ansible/plugins/connection/ssh.py (fo
und_in_cache=True, class_only=False)
  6022 1588066633.45622: trying /py36env/lib64/python3.6/site-packages/ansible/plugins/shell
  6022 1588066633.45690: Loading ShellModule 'sh' from /py36env/lib64/python3.6/site-packages/ansible/plugins/shell/sh.py (found_in
_cache=True, class_only=False)
  6022 1588066633.45727: Loading ShellModule 'sh' from /py36env/lib64/python3.6/site-packages/ansible/plugins/shell/sh.py (found_in
_cache=True, class_only=False)
  6022 1588066633.45775: trying /py36env/lib64/python3.6/site-packages/ansible/plugins/become
  6022 1588066633.45860: Loading BecomeModule 'sudo' from /py36env/lib64/python3.6/site-packages/ansible/plugins/become/sudo.py (fo
und_in_cache=True, class_only=False)
  6022 1588066633.46340: Loading ActionModule 'normal' from /py36env/lib64/python3.6/site-packages/ansible/plugins/action/normal.py
 (searched paths: /py36env/lib64/python3.6/site-packages/ansible/plugins/action/__pycache__:/py36env/lib64/python3.6/site-packages/
ansible/plugins/action)
  6022 1588066633.46390: starting attempt loop
  6022 1588066633.46419: running the handler
  6022 1588066633.46534: ANSIBALLZ: Using lock for hashivault_write
  6022 1588066633.46559: ANSIBALLZ: Acquiring lock
  6022 1588066633.46585: ANSIBALLZ: Lock acquired: 140460272303576
  6022 1588066633.46618: ANSIBALLZ: Creating module
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/hashivault.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/basic.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/process.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/pycompat24.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/_collections_compat.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/text/formatters.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/sys_info.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/text/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/text/converters.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/_utils.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/_json_compat.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/validation.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/six/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/parameters.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/parsing/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/file.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/_text.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/parsing/convert_bool.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/distro/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/distro/_distro.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/collections.py
  6022 1588066633.79320: ANSIBALLZ: Writing module into payload
  6022 1588066633.79461: ANSIBALLZ: Writing module
  6022 1588066633.79504: ANSIBALLZ: Renaming module
  6022 1588066633.79530: ANSIBALLZ: Done creating module
Using module file /py36env/lib64/python3.6/site-packages/ansible/modules/hashivault/hashivault_write.py
Pipelining is enabled.
  6022 1588066633.79688: _low_level_execute_command(): starting
  6022 1588066633.79703: _low_level_execute_command(): using become for this command
  6022 1588066633.79734: _low_level_execute_command(): executing: /bin/sh -c 'sudo -H -S -n  -u root /bin/sh -c '"'"'echo BECOME-SU
CCESS-gdglqwyhtmqyywvlagplrojjevvuevpy ; /usr/bin/python'"'"' && sleep 0'
<10.2.4.50> ESTABLISH SSH CONNECTION FOR USER: opc
<10.2.4.50> SSH: ansible.cfg set ssh_args: (-o)(ProxyCommand=nc --proxy localhost:1080 --proxy-type socks4 %h %p)(-o)(ControlMaster
=auto)(-o)(ControlPersist=600s)
<10.2.4.50> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<10.2.4.50> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=
gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.2.4.50> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="opc")
<10.2.4.50> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=20)
<10.2.4.50> SSH: PlayContext set ssh_common_args: ()
<10.2.4.50> SSH: PlayContext set ssh_extra_args: ()
<10.2.4.50> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/decb0c2120)
<10.2.4.50> SSH: EXEC ssh -vvv -o 'ProxyCommand=nc --proxy localhost:1080 --proxy-type socks4 %h %p' -o ControlMaster=auto -o Contr
olPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-ke
yex,hostbased,publickey -o PasswordAuthentication=no -o 'User="opc"' -o ConnectTimeout=20 -o ControlPath=/root/.ansible/cp/decb0c21
20 10.2.4.50 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-gdglqwyhtmqyywvlagplrojjevvuev
py ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  6022 1588066633.80889: Initial state: awaiting_escalation: BECOME-SUCCESS-gdglqwyhtmqyywvlagplrojjevvuevpy
  6022 1588066633.81504: stderr chunk (state=1):
>>>OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
<<<

  6022 1588066633.81858: stderr chunk (state=1):
>>>debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 5318
debug3: mux_client_request_session: session request sent
<<<

  6022 1588066634.08240: stderr chunk (state=1):
>>>debug1: mux_client_request_session: master session id: 2
<<<

  6022 1588066634.75305: stdout chunk (state=1):
>>>BECOME-SUCCESS-gdglqwyhtmqyywvlagplrojjevvuevpy
<<<

  6022 1588066634.75354: become_success: (source=stdout, state=awaiting_escalation): 'BECOME-SUCCESS-gdglqwyhtmqyywvlagplrojjevvuev
py'
Escalation succeeded
  6022 1588066634.75522: Sending initial data
  6022 1588066634.75913: Sent initial data (110867 bytes)
  6022 1588066635.38988: stderr chunk (state=3):
>>>Traceback (most recent call last):
  File "<stdin>", line 102, in <module>
  File "<stdin>", line 94, in _ansiballz_main
  File "<stdin>", line 40, in invoke_module
  File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
    fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
<<<

  6022 1588066635.64877: stderr chunk (state=3):
>>>    mod_name, mod_fname, mod_loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py", line 229, in <module>
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py", line 109, in main
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072
, in exit_json
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065
, in _return_formatted
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418,
 in remove_values
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 401,
 in _remove_values_conditions
TypeError: Value of unknown type: <class 'requests.models.Response'>, <Response [204]>
<<<

  6022 1588066635.65058: stderr chunk (state=3):
>>>debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
<<<

  6022 1588066635.65090: stdout chunk (state=3):
>>><<<

  6022 1588066635.65127: stderr chunk (state=3):
>>><<<

<10.2.4.50> (1, b'', b'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\nd
ebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: aut
o-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3:
mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_r
equest_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 5318\r\ndebug3: mux_client_request_session: session request
sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n  File "<stdin>", line 102,
 in <module>\n  File "<stdin>", line 94, in _ansiballz_main\n  File "<stdin>", line 40, in invoke_module\n  File "/usr/lib64/python
2.7/runpy.py", line 176, in run_module\n    fname, loader, pkg_name)\n  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_modu
le_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n    exec co
de in run_globals\n  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashiv
ault/hashivault_write.py", line 229, in <module>\n  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_pay
load.zip/ansible/modules/hashivault/hashivault_write.py", line 109, in main\n  File "/tmp/ansible_hashivault_write_payload_wezwS9/a
nsible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072, in exit_json\n  File "/tmp/ansible_hashivault_write_
payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065, in _return_formatted\n  File "/tmp/a
nsible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418, in remove_val
ues\n  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line
 401, in _remove_values_conditions\nTypeError: Value of unknown type: <class \'requests.models.Response\'>, <Response [204]>\ndebug
3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
<10.2.4.50> Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 5318
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
Traceback (most recent call last):
  File "<stdin>", line 102, in <module>
  File "<stdin>", line 94, in _ansiballz_main
  File "<stdin>", line 40, in invoke_module
  File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
    fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py", line 229, in <module>
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py", line 109, in main
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072
, in exit_json
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065
, in _return_formatted
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418,
 in remove_values
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 401,
 in _remove_values_conditions
TypeError: Value of unknown type: <class 'requests.models.Response'>, <Response [204]>
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
  6022 1588066635.65371: _low_level_execute_command() done: rc=1, stdout=, stderr=OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 5318
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
Traceback (most recent call last):
  File "<stdin>", line 102, in <module>
  File "<stdin>", line 94, in _ansiballz_main
  File "<stdin>", line 40, in invoke_module
  File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
    fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py", line 229, in <module>
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py", line 109, in main
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072
, in exit_json
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065
, in _return_formatted
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418,
 in remove_values
  File "/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 401,
 in _remove_values_conditions
TypeError: Value of unknown type: <class 'requests.models.Response'>, <Response [204]>
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1

  6022 1588066635.65631: done with _execute_module (hashivault_write, {'url': 'https://127.0.0.1:8200', 'ca_path': '/etc/pki/ca-tru
st/source/anchors/osvcinteg_ca.crt', 'token': '11W5KKFtn0E6JQRj3mwnYnXP', 'secret': '/auth/controlplane/config', 'data': {'token_re
viewer_jwt': 'eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3Vu
dC9uYW1lc3BhY2UiOiJzZWN1cml0eS1zZXJ2aWNlcyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJkZWZhdWx0LXRva2VuLWRrZ2RzIiw
ia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImRlZmF1bHQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2
UtYWNjb3VudC51aWQiOiIzMjQ4NzA4OS1kZmJlLTExZTktODg1Yy0wYTU4MGFlZGY0ZWYiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6c2VjdXJpdHktc2VydmljZ
XM6ZGVmYXVsdCJ9.SinlRZFYgGFPwL-1eV8PMdcHeIcIkDkRT69bcpYZsPsL1PrkxZ-cGOUV0_MQ8T0FDADCOKQNtiT-TAYJWwI93RkYqkhGU00oD2gKrKbAQCywn9VFriE
YmqxgHkCiPdYnOzsq1ks3-o0YrjXN1BmCBs4xZ-0UeQbM07eLdqb7CS17k_YMIMJ9sf7fd_07_H6_zFXZ9nRlYmmLwRlHHnekFVdywL-klZYoWq04h8QZqfc4FfSXYLcw9u
zJHE1DCd7gpAjaCBeVMQ-hNwX4SLrycAV1gWv2kfpycwGLJ7A18Xig01uY7G5aTBCNr0vQR8dpwFwOEYdlEdH_5XpOE6G3MQ', 'kubernetes_host': 'https://cqts
njsgm4t.us-ashburn-1.clusters.oci.oraclecloud.com:6443', 'kubernetes_ca_cert': '-----BEGIN CERTIFICATE-----\nMIIDjDCCAnSgAwIBAgIUFz
DNscpuXnqRIzlZnMu/CGIy3oAwDQYJKoZIhvcNAQEL\nBQAwXjELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVRleGFzMQ8wDQYDVQQHEwZBdXN0\naW4xDzANBgNVBAoTBk9yY
WNsZTEMMAoGA1UECxMDT0RYMQ8wDQYDVQQDEwZLOFMg\nQ0EwHhcNMTkwNzE5MDcwMDAwWhcNMjQwNzE3MDcwMDAwWjBeMQswCQYDVQQGEwJV\nUzEOMAwGA1UECBMFVGV4
YXMxDzANBgNVBAcTBkF1c3RpbjEPMA0GA1UEChMGT3Jh\nY2xlMQwwCgYDVQQLEwNPRFgxDzANBgNVBAMTBks4UyBDQTCCASIwDQYJKoZIhvcN\nAQEBBQADggEPADCCAQo
CggEBAM4c1dFTNuZ+n+zQUl5Y31L6YbgutXiNG81JItbL\nRp7tzh0ikDPAAYHkbTJUke7vj/j3nodg1zcJLajIMsqTeKkroXCpXQGb2gPJxT7E\nqqLScYmBqJIEA+TWg9
Qscz6MuGRyoc9fRcyKJ9qQ1YvTWfi3hZXYNiYSOY5QM0tP\npsvos3cSknw0amU2dmJ9KxJuuZ+K0QTmc4FqQm/fPZItLBrrDbFQFWgqo6vCc29n\niX4SPIYAmsvs0K70y
xKuC8f83RwbZ7+AEw7ZC8UUeSARtet0AbMRtNGmiZl1ZYW7\noRgezXK1HVNkAwFSy8LD7Db6GY0/XyjswYIOLNKObHZnCb0CAwEAAaNCMEAwDgYD\nVR0PAQH/BAQDAgEG
MA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFGXbP1/hZCF7\nPy89g9c6oQEZTsQ7MA0GCSqGSIb3DQEBCwUAA4IBAQClk4lyPf1UKGfKOdaaxrF0\nGXEFVAhLMR0YJNE
aA5UVMWM/QTwJmrpk1CyCQv2rVcNs+H0ImU2j+7ngu+9uoc6I\nh+3bgb2SwcUF8DhtB5JbnCsXBpHEoqACaVWirGbBZ2bbmVa1DHrwlgrhzfomk6dE\nvu2r/9OSpziTAz
CvoJAoUNcGpmOdAi2gdYEqK9WAPSHTWdNMhYetClQGUCzriAPf\n+muzj9K1+SF4K3sR1MyL+8aCt6fo5jrt3Sqp5+IMebYHUb4YdwweS875N7p1/qit\n2slS+QxT1xXtx
K/gOvzhJpeDkx7fSX8kCYCqlj5XSx+Ml4eV9NFjL3fR7MEaIhTK\n-----END CERTIFICATE-----\n'}, '_ansible_check_mode': False, '_ansible_no_log'
: False, '_ansible_debug': True, '_ansible_diff': False, '_ansible_verbosity': 5, '_ansible_version': '2.9.2', '_ansible_module_nam
e': 'hashivault_write', '_ansible_syslog_facility': 'LOG_USER', '_ansible_selinux_special_fs': ['fuse', 'nfs', 'vboxsf', 'ramfs', '
9p', 'vfat'], '_ansible_string_conversion_action': 'warn', '_ansible_socket': None, '_ansible_shell_executable': '/bin/sh', '_ansib
le_keep_remote_files': False, '_ansible_tmpdir': None, '_ansible_remote_tmp': '/tmp'})
  6022 1588066635.65680: handler run complete
  6022 1588066635.65713: attempt loop complete, returning result
  6022 1588066635.65776: _execute() done
  6022 1588066635.65809: dumping result to json
  6022 1588066635.65829: done dumping result, returning
  6022 1588066635.65878: done running TaskExecutor() for 10.2.4.50/TASK: vault : Configure Kubernetes Auth for ControlPlane [0242ac
11-0002-dd43-f45e-000000000146]
  6022 1588066635.65934: sending task result for task 0242ac11-0002-dd43-f45e-000000000146
  6022 1588066635.66053: done sending task result for task 0242ac11-0002-dd43-f45e-000000000146
  6022 1588066635.66202: WORKER PROCESS EXITING
  5303 1588066635.66426: marking 10.2.4.50 as failed
  5303 1588066635.66469: getting the next task for host 10.2.4.50
  5303 1588066635.66570: done getting next task for host 10.2.4.50
  5303 1588066635.66602:  ^ task is: TASK: vault : Create Roles for ControlPlane
  5303 1588066635.66632:  ^ state is: HOST STATE: block=5, task=15, rescue=0, always=0, run_state=ITERATING_TASKS, fail_state=FAILE
D_NONE, pending_setup=False, tasks child state? (HOST STATE: block=0, task=6, rescue=0, always=0, run_state=ITERATING_TASKS, fail_s
tate=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescu
e? False, did start at task? False), rescue child state? (None), always child state? (None), did rescue? False, did start at task?
False
  5303 1588066635.66666: marking host 10.2.4.50 failed, current state: HOST STATE: block=5, task=15, rescue=0, always=0, run_state=
ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (HOST STATE: block=0, task=5, rescue=0, always=0,
run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), alwa
ys child state? (None), did rescue? False, did start at task? False), rescue child state? (None), always child state? (None), did r
escue? False, did start at task? False
  5303 1588066635.66721: ^ failed state is now: HOST STATE: block=5, task=15, rescue=0, always=0, run_state=ITERATING_TASKS, fail_s
tate=FAILED_NONE, pending_setup=False, tasks child state? (HOST STATE: block=0, task=5, rescue=0, always=0, run_state=ITERATING_COM
PLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (No
ne), did rescue? False, did start at task? False), rescue child state? (None), always child state? (None), did rescue? False, did s
tart at task? False
  5303 1588066635.66766: getting the next task for host 10.2.4.50
  5303 1588066635.66802: done getting next task for host 10.2.4.50
  5303 1588066635.66848:  ^ task is: None
  5303 1588066635.66863:  ^ state is: HOST STATE: block=5, task=15, rescue=0, always=0, run_state=ITERATING_COMPLETE, fail_state=FA
ILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? Fal
se, did start at task? False
  5303 1588066635.66877: getting the next task for host 10.2.4.50
  5303 1588066635.66975: done getting next task for host 10.2.4.50
  5303 1588066635.67000:  ^ task is: None
  5303 1588066635.67016:  ^ state is: HOST STATE: block=5, task=15, rescue=0, always=0, run_state=ITERATING_COMPLETE, fail_state=FA
ILED_TAS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? Fal
se, did start at task? False
fatal: [10.2.4.50]: FAILED! => {
    "changed": false,
    "module_stderr": "OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\nde
bug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto
-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: m
ux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_re
quest_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 5318\r\ndebug3: mux_client_request_session: session request s
ent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n  File \"<stdin>\", line 102
, in <module>\n  File \"<stdin>\", line 94, in _ansiballz_main\n  File \"<stdin>\", line 40, in invoke_module\n  File \"/usr/lib64/
python2.7/runpy.py\", line 176, in run_module\n    fname, loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 82, in
_run_module_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n
    exec code in run_globals\n  File \"/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/mo
dules/hashivault/hashivault_write.py\", line 229, in <module>\n  File \"/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashiv
ault_write_payload.zip/ansible/modules/hashivault/hashivault_write.py\", line 109, in main\n  File \"/tmp/ansible_hashivault_write_
payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py\", line 2072, in exit_json\n  File \"/tmp/ansible
_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py\", line 2065, in _return_format
ted\n  File \"/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py\", li
ne 418, in remove_values\n  File \"/tmp/ansible_hashivault_write_payload_wezwS9/ansible_hashivault_write_payload.zip/ansible/module
_utils/basic.py\", line 401, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'requests.models.Response'>, <R
esponse [204]>\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}
  5303 1588066635.67200: no more pending results, returning what we have
  5303 1588066635.67219: results queue empty
  5303 1588066635.67230: checking for any_errors_fatal
  5303 1588066635.67250: getting the next task for host 10.2.4.50
  5303 1588066635.67265: done getting next task for host 10.2.4.50
  5303 1588066635.67274:  ^ task is: None
  5303 1588066635.67303:  ^ state is: HOST STATE: block=5, task=15, rescue=0, always=0, run_state=ITERATING_COMPLETE, fail_state=FA
ILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? Fal
se, did start at task? False
  5303 1588066635.67411: done checking for any_errors_fatal
  5303 1588066635.67463: checking for max_fail_percentage

NO MORE HOSTS LEFT ****************************************************************************************************************
  5303 1588066635.67507: (1 failed / 1 total )> 0.3 max fail
  5303 1588066635.67515: done checking for max_fail_percentage
  5303 1588066635.67521: checking to see if all hosts have failed and the running result is not ok
  5303 1588066635.67527: ^ not ok, so returning result now

NO MORE HOSTS LEFT ****************************************************************************************************************

PLAY RECAP ************************************************************************************************************************
10.2.4.50                  : ok=126  changed=16   unreachable=0    failed=1    skipped=86   rescued=0    ignored=0


Jorge Rúa

unread,
Apr 28, 2020, 6:24:18 AM4/28/20
to ansible...@googlegroups.com
Haven't looked too much into it, but are you aware of limitations of running in a FIPS enabled mode?

Can you provide us with a sample playbook (please remove access tokens, credentials, private keys, passwords, etc)

Thanks

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/eaa0593b-ffea-4367-8883-f774b8d9a8b4%40googlegroups.com.

Parasuram A Havoji

unread,
Apr 29, 2020, 4:18:36 AM4/29/20
to Ansible Project
Hi,

We are not enabled FIPS.

Little more backaround, we have a Vault Cluster of 3 VMs, I have reimaged one of the VM with the latest OL7u7 image and then run playbook which installs and configures Vault on this newly reimaged VM.

Playbooks run many tasks successfully and fails when it comes while creating PKI roles tasks always.. and here is the task content -


- name: "Create PKI Roles"
  hashivault_writ
    url
: "{{ vault_config_url }}"
    ca_path
: "{{ vault_tls_ca_file }}"
    token
: "{{ vault_config_token }}"
    secret
: "/infra_pki/roles/{{ item.name }}"
    data
:
      allowed_domains
: "{{ item.allowed_domains }}"
      allow_subdomains
: "{{ item.allow_subdomains }}"
      max_ttl
: "{{ item.max_ttl }}"
      allow_any_name
: "{{ item.allow_any_name }}"
      enforce_hostnames
: "{{ item.enforce_hostnames }}"
  with_items
: "{{ intermediate_ca_pki_roles }}"



Let me know if you need more information..
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.

Parasuram A Havoji

unread,
Apr 29, 2020, 5:19:56 AM4/29/20
to Ansible Project
And here are the error logs while creating PKI roles task -


TASK
[vault : Create PKI Roles] ***************************************************************************************************
task path
: /root/galorndon-infra/playbooks/roles/vault/tasks/vault-setup-backend.yml:62
   
717 1587713805.45878: sending task start callback
   
717 1587713805.45889: entering _queue_task() for 10.5.4.58/hashivault_write
   
717 1587713805.45900: Creating lock for hashivault_write
   
717 1587713805.46104: worker is 1 (out of 1 available)
   
717 1587713805.46147: exiting _queue_task() for 10.5.4.58/hashivault_write
   
717 1587713805.46159: done queuing things up, now waiting for results queue to drain
   
717 1587713805.46172: waiting for pending results...
   
807 1587713805.46246: running TaskExecutor() for 10.5.4.58/TASK: vault : Create PKI Roles
   
807 1587713805.46378: in run() - task 0242ac11-0002-ef80-e4ad-000000000137
   
807 1587713805.46538: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.46567: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713805.46583: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713805.46608: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713805.46644: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.46693: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713805.46734: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.46787: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.46819: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713805.46948: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713805.46992: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.47002: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.47261: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.47275: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713805.47288: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713805.47294: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713805.47319: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.47333: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713805.47347: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.47361: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.47374: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713805.47425: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713805.47440: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.47447: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.47980: Loaded config def from plugin (lookup/items)
   
807 1587713805.48002: Loading LookupModule 'items' from /py36env/lib64/python3.6/site-packages/ansible/plugins/lookup/items.py (
searched paths
: /root/galorndon-infra/playbooks/plugins/lookup:/py36env/lib64/python3.6/site-packages/ansible/plugins/lookup)
   
807 1587713805.48321: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.48333: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713805.48347: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713805.48354: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713805.48366: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.48379: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713805.48393: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.48422: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.48463: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713805.48628: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713805.48646: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.48668: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.49707: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.49724: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713805.49732: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713805.49738: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713805.49748: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.49762: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713805.49780: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.49787: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.49800: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713805.49849: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713805.49865: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.49872: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.50159: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.50174: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50190: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713805.50202: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50215: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.50230: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50242: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.50255: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.50268: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50371: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713805.50410: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.50435: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.50736: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.50750: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50766: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713805.50772: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50777: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.50790: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50802: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.50810: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.50826: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713805.50881: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713805.50903: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713805.50924: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713805.51128: trying /py36env/lib64/python3.6/site-packages/ansible/plugins/connection
   
807 1587713805.51226: Loading Connection 'ssh' from /py36env/lib64/python3.6/site-packages/ansible/plugins/connection/ssh.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.51257: trying /py36env/lib64/python3.6/site-packages/ansible/plugins/shell
   
807 1587713805.51283: Loading ShellModule 'sh' from /py36env/lib64/python3.6/site-packages/ansible/plugins/shell/sh.py (found_in
_cache
=True, class_only=False)
   
807 1587713805.51302: Loading ShellModule 'sh' from /py36env/lib64/python3.6/site-packages/ansible/plugins/shell/sh.py (found_in
_cache
=True, class_only=False)
   
807 1587713805.51329: trying /py36env/lib64/python3.6/site-packages/ansible/plugins/become
   
807 1587713805.51373: Loading BecomeModule 'sudo' from /py36env/lib64/python3.6/site-packages/ansible/plugins/become/sudo.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713805.51600: Loading ActionModule 'normal' from /py36env/lib64/python3.6/site-packages/ansible/plugins/action/normal.py
 
(searched paths: /py36env/lib64/python3.6/site-packages/ansible/plugins/action/__pycache__:/py36env/lib64/python3.6/site-packages/
ansible
/plugins/action)
   
807 1587713805.51624: starting attempt loop
   
807 1587713805.51630: running the handler
   
807 1587713805.52193: ANSIBALLZ: Using lock for hashivault_write
   
807 1587713805.52203: ANSIBALLZ: Acquiring lock
   
807 1587713805.52214: ANSIBALLZ: Lock acquired: 139996408842000
   
807 1587713805.52222: ANSIBALLZ: Creating module
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/basic.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/hashivault.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/_collections_compat.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/_utils.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/parameters.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/_json_compat.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/text/formatters.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/file.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/validation.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/_text.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/text/converters.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/sys_info.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/text/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/parsing/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/parsing/convert_bool.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/pycompat24.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/six/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/process.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/common/collections.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/distro/__init__.py
Using module_utils file /py36env/lib64/python3.6/site-packages/ansible/module_utils/distro/_distro.
py
   
807 1587713805.73234: ANSIBALLZ: Writing module into payload
   
807 1587713805.73340: ANSIBALLZ: Writing module
   
807 1587713805.73376: ANSIBALLZ: Renaming module
   
807 1587713805.73399: ANSIBALLZ: Done creating module

Using module file /py36env/lib64/python3.6/site-packages/ansible/modules/hashivault/hashivault_write.py
Pipelining is enabled.

   
807 1587713805.73508: _low_level_execute_command(): starting
   
807 1587713805.73522: _low_level_execute_command(): using become for this command
   
807 1587713805.73546: _low_level_execute_command(): executing: /bin/sh -c 'sudo -H -S -n  -u root /bin/sh -c '"'"'echo BECOME-SU
CCESS-irgzbiccgiufigprzpvklrbunpeflyxn ; /usr/bin/python'"'"' && sleep 0'

<10.5.4.58> ESTABLISH SSH CONNECTION FOR USER: opc
<10.5.4.58> SSH: ansible.cfg set ssh_args: (-o)(ProxyCommand=nc --proxy localhost:1080 --proxy-type socks4 %h %p)(-o)(ControlMaster
=auto)(-o)(ControlPersist=600s)(-o)(strictHostKeyChecking=false)
<10.5.4.58> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<10.5.4.58> SSH: ansible_password/ansible_ssh_password not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=
gssapi
-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.5.4.58> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User="opc")
<10.5.4.58> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=20)
<10.5.4.58> SSH: PlayContext set ssh_common_args: ()
<10.5.4.58> SSH: PlayContext set ssh_extra_args: ()
<10.5.4.58> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/3d8557d48c)
<10.5.4.58> SSH: EXEC ssh -vvv -o 'ProxyCommand=nc --proxy localhost:1080 --proxy-type socks4 %h %p' -o ControlMaster=auto -o Contr
olPersist
=600s -o strictHostKeyChecking=false -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentica
tions
=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="opc"' -o ConnectTimeout=20 -o Control
Path=/root/.ansible/cp/3d8557d48c 10.5.4.58 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS
-irgzbiccgiufigprzpvklrbunpeflyxn ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''

   
807 1587713805.74419: Initial state: awaiting_escalation: BECOME-SUCCESS-irgzbiccgiufigprzpvklrbunpeflyxn
   
807 1587713805.74774: stderr chunk (state=1):

>>>OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1
: Reading configuration data /root/.ssh/config
debug1
: Reading configuration data /etc/ssh/ssh_config
debug1
: /etc/ssh/ssh_config line 58: Applying options for *
<<<


   
807 1587713805.74993: stderr chunk (state=1):

>>>debug1: auto-mux: Trying existing master
debug2
: fd 3 setting O_NONBLOCK
debug2
: mux_client_hello_exchange: master version 4
debug3
: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3
: mux_client_request_session: entering
debug3
: mux_client_request_alive:
entering
debug3
: mux_client_request_alive: done pid = 732

debug3
: mux_client_request_session: session request sent
<<<


   
807 1587713806.10032: stderr chunk (state=1):

>>>debug1: mux_client_request_session: master session id: 2
<<<


   
807 1587713806.79049: stdout chunk (state=1):
>>>BECOME-SUCCESS-irgzbiccgiufigprzpvklrbunpeflyxn
<<<

   
807 1587713806.79068: become_success: (source=stdout, state=awaiting_escalation): 'BECOME-SUCCESS-irgzbiccgiufigprzpvklrbunpefly
xn'

Escalation succeeded
   
807 1587713806.79119: Sending initial data
   
807 1587713806.79186: Sent initial data (108690 bytes)
   
807 1587713807.84718: stderr chunk (state=3):

>>>Traceback (most recent call last):
 
File "<stdin>", line 102, in <module>
 
File "<stdin>", line 94, in _ansiballz_main
 
File "<stdin>", line 40, in invoke_module
 
File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
    fname
, loader, pkg_name)
 
File "/usr/lib64/python2.7/runpy.py", line 82, in
_run_module_code
    mod_name
, mod_fname, mod_loader, pkg_name)

 
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
<<<


   
807 1587713807.85737: stderr chunk (state=3):
>>>    exec code in run_globals
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py"
, line 229, in <module>
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py"
, line 109, in main
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072
, in exit_json
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065
, in _return_formatted
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418,
 
in remove_values
<<<

   
807 1587713808.14376: stderr chunk (state=3):
>>>  File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 4
01, in _remove_values_conditions
TypeError: Value of unknown type: <class 'requests.models.Response'>, <Response [204]>
<<<


   
807 1587713808.14527: stderr chunk (state=3):

>>>debug3: mux_client_read_packet: read header failed: Broken pipe
debug2
: Received exit status from master 1
<<<


   
807 1587713808.14576: stderr chunk (state=3):
>>><<<

   
807 1587713808.14588: stdout chunk (state=3):
>>><<<

<10.5.4.58> (1, b'', b'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\nd

ebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: aut
o-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3:
mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_r
equest_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 732\r\ndebug3: mux_client_request_session: session request s

ent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n  File "<stdin>", line 102,
in <module>\n  File "<stdin>", line 94, in _ansiballz_main\n  File "<stdin>", line 40, in invoke_module\n  File "/usr/lib64/python2
.7/runpy.py", line 176, in run_module\n    fname, loader, pkg_name)\n  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_modul
e_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n    exec cod
e in run_globals\n  File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashiva
ult/hashivault_write.py", line 229, in <module>\n  File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payl
oad.zip/ansible/modules/hashivault/hashivault_write.py", line 109, in main\n  File "/tmp/ansible_hashivault_write_payload_Z9CYoA/an

sible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072, in exit_json\n  File "/tmp/ansible_hashivault_write_p
ayload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065, in _return_formatted\n  File "/tmp/an
sible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418, in remove_valu
es\n  File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line
401, in _remove_values_conditions\nTypeError: Value of unknown type: <class \'requests.models.Response\'>, <Response [204]>\ndebug3
: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n'
)
<10.5.4.58> Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017

debug1
: Reading configuration data /root/.ssh/config
debug1
: Reading configuration data /etc/ssh/ssh_config
debug1
: /etc/ssh/ssh_config line 58: Applying options for *
debug1
: auto-mux: Trying existing master
debug2
: fd 3 setting O_NONBLOCK
debug2
: mux_client_hello_exchange: master version 4
debug3
: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3
: mux_client_request_session: entering
debug3
: mux_client_request_alive:
entering
debug3
: mux_client_request_alive: done pid = 732

debug3
: mux_client_request_session: session request sent
debug1
: mux_client_request_session: master session id: 2
Traceback (most recent call last):
 
File "<stdin>", line 102, in <module>
 
File "<stdin>", line 94, in _ansiballz_main
 
File "<stdin>", line 40, in invoke_module
 
File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
    fname
, loader, pkg_name)
 
File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
    mod_name
, mod_fname, mod_loader, pkg_name)
 
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
   
exec code in
run_globals
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py"
, line 229, in <module>
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py"
, line 109, in main
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072
, in exit_json
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065
, in _return_formatted
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418,
 
in remove_values
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 401,

 
in _remove_values_conditions
TypeError: Value of unknown type: <class 'requests.models.Response'>, <Response [204]>
debug3
: mux_client_read_packet: read header failed: Broken pipe
debug2
: Received exit status from master 1

   
807 1587713808.14707: _low_level_execute_command() done: rc=1, stdout=, stderr=OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017

debug1
: Reading configuration data /root/.ssh/config
debug1
: Reading configuration data /etc/ssh/ssh_config
debug1
: /etc/ssh/ssh_config line 58: Applying options for *
debug1
: auto-mux: Trying existing master
debug2
: fd 3 setting O_NONBLOCK
debug2
: mux_client_hello_exchange: master version 4
debug3
: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3
: mux_client_request_session: entering
debug3
: mux_client_request_alive:
entering
debug3
: mux_client_request_alive: done pid = 732

debug3
: mux_client_request_session: session request sent
debug1
: mux_client_request_session: master session id: 2
Traceback (most recent call last):
 
File "<stdin>", line 102, in <module>
 
File "<stdin>", line 94, in _ansiballz_main
 
File "<stdin>", line 40, in invoke_module
 
File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
    fname
, loader, pkg_name)
 
File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
    mod_name
, mod_fname, mod_loader, pkg_name)
 
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
   
exec code in
run_globals
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py"
, line 229, in <module>
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/modules/hashivault/hashivault_wri
te.py"
, line 109, in main
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2072
, in exit_json
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 2065
, in _return_formatted
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 418,
 
in remove_values
 
File "/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py", line 401,

 
in _remove_values_conditions
TypeError: Value of unknown type: <class 'requests.models.Response'>, <Response [204]>
debug3
: mux_client_read_packet: read header failed: Broken pipe
debug2
: Received exit status from master 1


   
807 1587713808.14843: done with _execute_module (hashivault_write, {'url': 'https://127.0.0.1:8200', 'ca_path': '/etc/pki/ca-tru
st/source/anchors/cpetestphx_ca.crt'
, 'token': '7h4AHyZnXINsBAQ4MqYiNzau', 'secret': '/infra_pki/roles/kafka', 'data': {'allowed_do
mains'
: 'osvcstageiad.oraclevcn.com, shared-services', 'allow_subdomains': True, 'max_ttl': '43800h', 'allow_any_name': False, 'enf
orce_hostnames'
: True}, '_ansible_check_mode': False, '_ansible_no_log': False, '_ansible_debug': True, '_ansible_diff': False, '_a
nsible_verbosity'
: 5, '_ansible_version': '2.9.2', '_ansible_module_name': 'hashivault_write', '_ansible_syslog_facility': 'LOG_USE
R'
, '_ansible_selinux_special_fs': ['fuse', 'nfs', 'vboxsf', 'ramfs', '9p', 'vfat'], '_ansible_string_conversion_action': 'warn', '
_ansible_socket'
: None, '_ansible_shell_executable': '/bin/sh', '_ansible_keep_remote_files': False, '_ansible_tmpdir': None, '_ans
ible_remote_tmp'
: '/tmp'})
   
807 1587713808.14865: handler run complete
   
807 1587713808.14882: attempt loop complete, returning result
   
807 1587713808.15068: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713808.15087: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15099: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713808.15109: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15119: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713808.15129: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15140: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713808.15151: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713808.15163: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15247: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713808.15273: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713808.15284: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713808.15461: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713808.15478: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15489: Loading FilterModule 'ipaddr' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/ipaddr.py
 
(found_in_cache=True, class_only=False)
   
807 1587713808.15499: Loading FilterModule 'json_query' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/json_
query
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15508: Loading FilterModule 'k8s' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/k8s.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713808.15517: Loading FilterModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/mathst
uff
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15525: Loading FilterModule 'network' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/network.
py
(found_in_cache=True, class_only=False)
   
807 1587713808.15531: Loading FilterModule 'urls' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urls.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713808.15537: Loading FilterModule 'urlsplit' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/urlspli
t
.py (found_in_cache=True, class_only=False)
   
807 1587713808.15592: Loading TestModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/core.py (found_
in_cache
=True, class_only=False)
   
807 1587713808.15606: Loading TestModule 'files' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/files.py (foun
d_in_cache
=True, class_only=False)
   
807 1587713808.15615: Loading TestModule 'mathstuff' from /py36env/lib64/python3.6/site-packages/ansible/plugins/test/mathstuff.
py
(found_in_cache=True, class_only=False)
   
807 1587713808.16087: Loading FilterModule 'core' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/core.py (fo
und_in_cache
=True, class_only=False)
   
807 1587713808.16108: Loading FilterModule 'gcp_kms_filters' from /py36env/lib64/python3.6/site-packages/ansible/plugins/filter/
gcp_kms_filters
.py (found_in_cache=True, class_only=False)
failed
: [10.5.4.58] (item={'name': 'kafka', 'allowed_domains': 'osvcstageiad.oraclevcn.com, shared-services', 'allow_subdomains': T
rue
, 'max_ttl': '43800h', 'allow_any_name': False, 'enforce_hostnames': True}) => {
   
"ansible_loop_var": "item",
   
"changed": false,
   
"item": {
       
"allow_any_name": false,
       
"allow_subdomains": true,
       
"allowed_domains": "osvcstageiad.oraclevcn.com, shared-services",
       
"enforce_hostnames": true,
       
"max_ttl": "43800h",
       
"name": "kafka"
   
},
   
"module_stderr": "OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\nde

bug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 58: Applying options for *\r\ndebug1: auto
-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: m
ux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_re
quest_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 732\r\ndebug3: mux_client_request_session: session request se

nt\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n  File \"<stdin>\", line 102,
 in <module>\n  File \"<stdin>\", line 94, in _ansiballz_main\n  File \"<stdin>\", line 40, in invoke_module\n  File \"/usr/lib64/p
ython2.7/runpy.py\", line 176, in run_module\n    fname, loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 82, in _

run_module_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n
   exec code in run_globals\n  File \"/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/mod
ules/hashivault/hashivault_write.py\", line 229, in <module>\n  File \"/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashiva
ult_write_payload.zip/ansible/modules/hashivault/hashivault_write.py\", line 109, in main\n  File \"/tmp/ansible_hashivault_write_p
ayload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py\", line 2072, in exit_json\n  File \"/tmp/ansible_
hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py\", line 2065, in _return_formatt
ed\n  File \"/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_utils/basic.py\", lin
e 418, in remove_values\n  File \"/tmp/ansible_hashivault_write_payload_Z9CYoA/ansible_hashivault_write_payload.zip/ansible/module_
utils/basic.py\", line 401, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'requests.models.Response'>, <Re
,
Reply all
Reply to author
Forward
0 new messages