<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MGMT API with Ansible Checkpoint Modules in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93728#M352</link>
    <description>&lt;P&gt;The following error is returned in the cli when the playbook is run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TASK [run-script] ****************************************************************************************************************&lt;/P&gt;&lt;P&gt;fatal: [10.1.2.51]: FAILED! =&amp;gt; {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": {" code": "generic_err_invalid_parameter", "message": "ERROR: Failed to handle asynchronous tasks as synchronous, tasks result is und efined.\nInvalid parameter for [task-id]. Invalid value"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An mentioned, the task actually runs successfully against the target gateway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the related information from $FWDIR/log/api.elg&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;ID: 14684&lt;/P&gt;&lt;P&gt;Response-Code: 400&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Headers: {Content-Type=[application/json], Date=[Thu, 23 Jul 2020 23:57:15 GMT]}&lt;/P&gt;&lt;P&gt;Payload: {&lt;/P&gt;&lt;P&gt;"code" : "generic_err_invalid_parameter",&lt;/P&gt;&lt;P&gt;"message" : "Invalid parameter for [task-id]. Invalid value"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,419 INFO org.apache.cxf.interceptor.LoggingInInterceptor.log:250 [qtp1325351680-37] - Inbound Message&lt;/P&gt;&lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;ID: 14685&lt;/P&gt;&lt;P&gt;Address:&amp;nbsp;&lt;A href="http://127.0.0.1:50276/web_api/show-task" target="_blank"&gt;http://127.0.0.1:50276/web_api/show-task&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Encoding: ISO-8859-1&lt;/P&gt;&lt;P&gt;Http-Method: POST&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Headers: {accept-encoding=[identity], connection=[keep-alive], Content-Length=[114], content-type=[application/json], Host=[127.0.0.1:50276], User-Agent=[Python-urllib/2.7], X-Chkp-Sid=[8b04d47571c316b5c41d763d30263ffe], X-Forwarded-For=[10.1.7.110], X-Forwarded-Host=[10.1.2.51:443], X-Forwarded-Host-Port=[443], X-Forwarded-Server=[10.1.2.51]}&lt;/P&gt;&lt;P&gt;Payload: {"task-id": {"task-id": "01466935-7a42-4478-89bd-d38019364e0b", "target": "26db824a-f9a9-436b-a826-9899f41c8c4e"}}&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,425 WARN com.checkpoint.management.web_api_is.utils.helpers.RequestHeadersHelper.getMediaType_aroundBody6:9 [qtp1325351680-37] - No Accept header received. Falling back to default media type [application/json].&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,426 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.&amp;lt;init&amp;gt;:21 [qtp1325351680-37] - Cache created and initialized&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,427 ERROR com.checkpoint.management.web_api_is.utils.jackson.deserializers.BaseMultiValueDeserializer.deserializeSingleObject_aroundBody2:16 [qtp1325351680-37] - Failed to deserialize parameter: [task-id], value is not from type: [java.lang.String]&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,427 ERROR com.checkpoint.management.web_api_is.exceptions.WebApiGeneralException.log:42 [qtp1325351680-37] - Error code: [GENERIC_ERR_INVALID_PARAMETER]&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,428 ERROR com.checkpoint.management.web_api_is.exceptions.WebApiGeneralException.log:43 [qtp1325351680-37] - Error message: [Invalid parameter for [task-id]. Invalid value]&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 04:24:33 GMT</pubDate>
    <dc:creator>Simon_Macpherso</dc:creator>
    <dc:date>2020-08-10T04:24:33Z</dc:date>
    <item>
      <title>MGMT API with Ansible Checkpoint Modules</title>
      <link>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93536#M349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm running a bash script using the cp_mgmt_run_script Ansible module for checkpoint against one remote gateway.&lt;/P&gt;&lt;P&gt;The script runs successfully on the gateway.&lt;/P&gt;&lt;P&gt;Within Smart Console however, the task populates in the recent task list with 40% progress but not not complete. It does not progress and must be manually cleared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone aware of a bug that could be causing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a workaround that could be written in to the playbook or bash script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If I run the script vi a POST api call using the&amp;nbsp;run-script module using either mgmt_cli or web services, the task progresses to completion as expected. This indicate Ansible is the cause.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I will open a TAC case if no one is aware.&lt;/P&gt;&lt;P&gt;Versions:&lt;/P&gt;&lt;P&gt;Mgmt version:&amp;nbsp; R80.30 GA 210&lt;/P&gt;&lt;P&gt;Gateway version:&amp;nbsp;&amp;nbsp; R80.30 GA 196&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 00:35:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93536#M349</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2020-08-07T00:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: MGMT API with Ansible Checkpoint Modules</title>
      <link>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93703#M350</link>
      <description>&lt;P&gt;Most likely this will require a TAC case.&lt;BR /&gt;What's the script?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 05:00:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93703#M350</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-08-09T05:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: MGMT API with Ansible Checkpoint Modules</title>
      <link>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93727#M351</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;I've tried a couple of bash scripts so it seems it could be a problem with the cp_mgmt_run_script module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've opened a TAC case.&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 04:23:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93727#M351</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2020-08-10T04:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: MGMT API with Ansible Checkpoint Modules</title>
      <link>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93728#M352</link>
      <description>&lt;P&gt;The following error is returned in the cli when the playbook is run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TASK [run-script] ****************************************************************************************************************&lt;/P&gt;&lt;P&gt;fatal: [10.1.2.51]: FAILED! =&amp;gt; {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "msg": {" code": "generic_err_invalid_parameter", "message": "ERROR: Failed to handle asynchronous tasks as synchronous, tasks result is und efined.\nInvalid parameter for [task-id]. Invalid value"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An mentioned, the task actually runs successfully against the target gateway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the related information from $FWDIR/log/api.elg&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;ID: 14684&lt;/P&gt;&lt;P&gt;Response-Code: 400&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Headers: {Content-Type=[application/json], Date=[Thu, 23 Jul 2020 23:57:15 GMT]}&lt;/P&gt;&lt;P&gt;Payload: {&lt;/P&gt;&lt;P&gt;"code" : "generic_err_invalid_parameter",&lt;/P&gt;&lt;P&gt;"message" : "Invalid parameter for [task-id]. Invalid value"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,419 INFO org.apache.cxf.interceptor.LoggingInInterceptor.log:250 [qtp1325351680-37] - Inbound Message&lt;/P&gt;&lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;ID: 14685&lt;/P&gt;&lt;P&gt;Address:&amp;nbsp;&lt;A href="http://127.0.0.1:50276/web_api/show-task" target="_blank"&gt;http://127.0.0.1:50276/web_api/show-task&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Encoding: ISO-8859-1&lt;/P&gt;&lt;P&gt;Http-Method: POST&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Headers: {accept-encoding=[identity], connection=[keep-alive], Content-Length=[114], content-type=[application/json], Host=[127.0.0.1:50276], User-Agent=[Python-urllib/2.7], X-Chkp-Sid=[8b04d47571c316b5c41d763d30263ffe], X-Forwarded-For=[10.1.7.110], X-Forwarded-Host=[10.1.2.51:443], X-Forwarded-Host-Port=[443], X-Forwarded-Server=[10.1.2.51]}&lt;/P&gt;&lt;P&gt;Payload: {"task-id": {"task-id": "01466935-7a42-4478-89bd-d38019364e0b", "target": "26db824a-f9a9-436b-a826-9899f41c8c4e"}}&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,425 WARN com.checkpoint.management.web_api_is.utils.helpers.RequestHeadersHelper.getMediaType_aroundBody6:9 [qtp1325351680-37] - No Accept header received. Falling back to default media type [application/json].&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,426 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.&amp;lt;init&amp;gt;:21 [qtp1325351680-37] - Cache created and initialized&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,427 ERROR com.checkpoint.management.web_api_is.utils.jackson.deserializers.BaseMultiValueDeserializer.deserializeSingleObject_aroundBody2:16 [qtp1325351680-37] - Failed to deserialize parameter: [task-id], value is not from type: [java.lang.String]&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,427 ERROR com.checkpoint.management.web_api_is.exceptions.WebApiGeneralException.log:42 [qtp1325351680-37] - Error code: [GENERIC_ERR_INVALID_PARAMETER]&lt;/P&gt;&lt;P&gt;2020-07-23 23:57:17,428 ERROR com.checkpoint.management.web_api_is.exceptions.WebApiGeneralException.log:43 [qtp1325351680-37] - Error message: [Invalid parameter for [task-id]. Invalid value]&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 04:24:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/MGMT-API-with-Ansible-Checkpoint-Modules/m-p/93728#M352</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2020-08-10T04:24:33Z</dc:date>
    </item>
  </channel>
</rss>

