<?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 GAiA API failing to install with Ansible in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66887#M49</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following task in my ansible playbook for installing the GAiA API (version 1.3) on my gateways and SMS:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;name:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Install&amp;nbsp;gaia_api&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;shell:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;./install_gaia_api.sh&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;args:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chdir:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;/home/admin/gaia_api&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;register:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;name: Output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;debug:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;output.stdout_lines&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I'm running the playbook on my gateways (reimaged with blink_image_1.1_Check_Point_R80.30_Gateway.tgz) and SMS (reimaged with blink_image_1.1_Check_Point_R80.30_Management.tgz), I'm getting the following output after performing a 'gaia_api status' on the gateways, but on the SMS everything seems to be working fine:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Expert@GW1:0]# gaia_api status&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/rest_api/ckp/client_util/serverStatusPrinter.py", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;from objects.serverStatus import *&lt;BR /&gt;File "/rest_api/ckp/objects/serverStatus.py", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;from infra.annotations import *&lt;BR /&gt;File "/rest_api/ckp/infra/annotations.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;import rest_rba&lt;BR /&gt;File "/rest_api/libs/rest_rba.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;import sessions_manager&lt;BR /&gt;File "/rest_api/libs/sessions_manager.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;import rest_api_xml_parser&lt;BR /&gt;File "/rest_api/libs/rest_api_xml_parser.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;import command_factory as fact&lt;BR /&gt;File "/rest_api/libs/command_factory.py", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;import clish&lt;BR /&gt;File "/rest_api/libs/clish.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt;from flaskApi import getRequestHeader&lt;BR /&gt;File "/rest_api/libs/flaskApi.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;from flask import *&lt;BR /&gt;ImportError: No module named flask&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked the Ansible output and even though it says the installation completed successfully it's still giving me the output errors when running &lt;EM&gt;gaia_api status&lt;/EM&gt;. But when I manually run the&amp;nbsp;&lt;EM&gt;install_gaia_api.sh&amp;nbsp;&lt;/EM&gt;script it seems to be working.&lt;/P&gt;&lt;P&gt;ok: [GW1] =&amp;gt; {&lt;BR /&gt;"output.stdout_lines": [&lt;BR /&gt;"Starting gaia_api installation",&lt;BR /&gt;"Old version removed successfully",&lt;BR /&gt;"Installing gaia_api...",&lt;BR /&gt;"Successfully installed gaia_api, use \"gaia_api status\" to monitor the state"&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my Python interpreter set as:&amp;nbsp;&lt;EM&gt;ansible_python_interpreter="/opt/CPsuite-R8*/fw1/Python/bin/python"&lt;/EM&gt;&lt;BR /&gt;Remarkably, when I use&amp;nbsp;&lt;EM&gt;ansible_python_interpreter=python, I'm getting the following error on the gateways (not on the SMS):&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fatal: [GW2]: FAILED! =&amp;gt; {"changed": false, "module_stderr": "Shared connection to 10.23.112.102 closed.\r\n", "module_stdout": "/bin/sh: python: command not found\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc":&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Which makes me think it's a Python issue.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any suggestions? I'd appreciate some input.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 17:33:56 GMT</pubDate>
    <dc:creator>DemisT</dc:creator>
    <dc:date>2019-11-08T17:33:56Z</dc:date>
    <item>
      <title>GAiA API failing to install with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66887#M49</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following task in my ansible playbook for installing the GAiA API (version 1.3) on my gateways and SMS:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;name:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Install&amp;nbsp;gaia_api&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;shell:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;./install_gaia_api.sh&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;args:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chdir:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;/home/admin/gaia_api&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;register:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;name: Output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;debug:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;output.stdout_lines&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I'm running the playbook on my gateways (reimaged with blink_image_1.1_Check_Point_R80.30_Gateway.tgz) and SMS (reimaged with blink_image_1.1_Check_Point_R80.30_Management.tgz), I'm getting the following output after performing a 'gaia_api status' on the gateways, but on the SMS everything seems to be working fine:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Expert@GW1:0]# gaia_api status&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/rest_api/ckp/client_util/serverStatusPrinter.py", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;from objects.serverStatus import *&lt;BR /&gt;File "/rest_api/ckp/objects/serverStatus.py", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;from infra.annotations import *&lt;BR /&gt;File "/rest_api/ckp/infra/annotations.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;import rest_rba&lt;BR /&gt;File "/rest_api/libs/rest_rba.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;import sessions_manager&lt;BR /&gt;File "/rest_api/libs/sessions_manager.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;import rest_api_xml_parser&lt;BR /&gt;File "/rest_api/libs/rest_api_xml_parser.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;import command_factory as fact&lt;BR /&gt;File "/rest_api/libs/command_factory.py", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;import clish&lt;BR /&gt;File "/rest_api/libs/clish.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt;from flaskApi import getRequestHeader&lt;BR /&gt;File "/rest_api/libs/flaskApi.py", line 12, in &amp;lt;module&amp;gt;&lt;BR /&gt;from flask import *&lt;BR /&gt;ImportError: No module named flask&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked the Ansible output and even though it says the installation completed successfully it's still giving me the output errors when running &lt;EM&gt;gaia_api status&lt;/EM&gt;. But when I manually run the&amp;nbsp;&lt;EM&gt;install_gaia_api.sh&amp;nbsp;&lt;/EM&gt;script it seems to be working.&lt;/P&gt;&lt;P&gt;ok: [GW1] =&amp;gt; {&lt;BR /&gt;"output.stdout_lines": [&lt;BR /&gt;"Starting gaia_api installation",&lt;BR /&gt;"Old version removed successfully",&lt;BR /&gt;"Installing gaia_api...",&lt;BR /&gt;"Successfully installed gaia_api, use \"gaia_api status\" to monitor the state"&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my Python interpreter set as:&amp;nbsp;&lt;EM&gt;ansible_python_interpreter="/opt/CPsuite-R8*/fw1/Python/bin/python"&lt;/EM&gt;&lt;BR /&gt;Remarkably, when I use&amp;nbsp;&lt;EM&gt;ansible_python_interpreter=python, I'm getting the following error on the gateways (not on the SMS):&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fatal: [GW2]: FAILED! =&amp;gt; {"changed": false, "module_stderr": "Shared connection to 10.23.112.102 closed.\r\n", "module_stdout": "/bin/sh: python: command not found\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc":&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Which makes me think it's a Python issue.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any suggestions? I'd appreciate some input.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 17:33:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66887#M49</guid>
      <dc:creator>DemisT</dc:creator>
      <dc:date>2019-11-08T17:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: GAiA API failing to install with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66949#M50</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/186"&gt;@Amiad_Stern&lt;/a&gt;&amp;nbsp;what say you?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 08:25:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66949#M50</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-11-09T08:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: GAiA API failing to install with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66973#M51</link>
      <description>&lt;P&gt;It seemed like the post rpm install scripts were not executing after the task. The fix was to add&amp;nbsp;&lt;STRONG&gt;pipelining=true&amp;nbsp;&lt;/STRONG&gt;inside the ansible.cfg file.&lt;/P&gt;&lt;P&gt;Tested on a clean installation of Gaia 80.10 and 80.30&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 15:42:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66973#M51</guid>
      <dc:creator>DemisT</dc:creator>
      <dc:date>2019-11-09T15:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: GAiA API failing to install with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66994#M52</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/35134"&gt;@DemisT&lt;/a&gt;&amp;nbsp;, since it is Gaia API related, i'm adding&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/28024"&gt;@Itaiw&lt;/a&gt;&amp;nbsp;(Team Leader) .&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 06:03:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/GAiA-API-failing-to-install-with-Ansible/m-p/66994#M52</guid>
      <dc:creator>Amiad_Stern</dc:creator>
      <dc:date>2019-11-10T06:03:16Z</dc:date>
    </item>
  </channel>
</rss>

