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

El mar., 28 abr. 2020 a las 11:14, Parasuram A Havoji (<hpara...@gmail.com>)
escribió:

> 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
>
>
> --
> 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-project+unsubscr...@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
> <https://groups.google.com/d/msgid/ansible-project/eaa0593b-ffea-4367-8883-f774b8d9a8b4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFtje5OD2R5i3ufEHT2EPbUtV28yBDF2gSJrrqSQnku19EceNw%40mail.gmail.com.

Reply via email to