<?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: Intermittent 403 - Failed Connection Errors in Ansible Playbook in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/405045#M2652</link>
    <description>&lt;P&gt;Thanks for your response ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I am using the panos ansible modules to run these tasks against the panorama.&amp;nbsp;&lt;BR /&gt;In our case, the service account user has admin access (it is a superuser) to all the templates, device groups and we are using api_username and api_password to authenticate to the device.&lt;BR /&gt;&lt;BR /&gt;Another interesting fact is it works while running most of tasks in the playbook , but randomly fails on one of them (And sometimes it doesn't fail). The panorama logs indicate that "Authorization Failed. Could not find the role/ado for the user &amp;lt;service_account&amp;gt;. However after checking the Remote auth server logs and policies looks like the policies and roles have been configured correctly on the Auth server.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you have any other suggestions ? Thanks a lot in advance for your help !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Siddhant Kulkarni&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 22:04:23 GMT</pubDate>
    <dc:creator>Siddhant</dc:creator>
    <dc:date>2021-05-05T22:04:23Z</dc:date>
    <item>
      <title>Intermittent 403 - Failed Connection Errors in Ansible Playbook</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/395617#M2610</link>
      <description>&lt;P&gt;I have an ansible playbook that creates address,service objects -&amp;gt; security policy -&amp;gt; Commit and push to different device groups.&amp;nbsp;&lt;BR /&gt;Randomly one of the task fails during executing with the error - Failed Connection: URL Error: code: 403 reason: Forbidden.&amp;nbsp;&lt;BR /&gt;This is not specific to any particular module and have seen it happening in panos_address_object, &lt;SPAN&gt;panos_commit_push etc. Any guidance on this ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Siddhant_0-1617387452800.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/30706iBC9A16D2B54944D9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Siddhant_0-1617387452800.png" alt="Siddhant_0-1617387452800.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 18:18:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/395617#M2610</guid>
      <dc:creator>Siddhant</dc:creator>
      <dc:date>2021-04-02T18:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 403 - Failed Connection Errors in Ansible Playbook</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/400412#M2634</link>
      <description>&lt;P&gt;You are using the REST-API right ? If so maybe you have generated an API key from a username that is not an admin with full permisions ? Because you mention device groups I think that you are using the Ansible with an API key to control Panorama and the error 403 also confirms that REST-API is used not ssh. It is possible that your user that you use the API_key in the Ansible may have access domain just to some device groups or templates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/pan-os-xml-api-error-codes.html" target="_blank" rel="noopener"&gt;https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/pan-os-xml-api-error-codes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/panorama/9-0/panorama-admin/panorama-overview/role-based-access-control/access-domains.html" target="_blank" rel="noopener"&gt;https://docs.paloaltonetworks.com/panorama/9-0/panorama-admin/panorama-overview/role-based-access-control/access-domains.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 09:48:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/400412#M2634</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2021-04-20T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 403 - Failed Connection Errors in Ansible Playbook</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/405045#M2652</link>
      <description>&lt;P&gt;Thanks for your response ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I am using the panos ansible modules to run these tasks against the panorama.&amp;nbsp;&lt;BR /&gt;In our case, the service account user has admin access (it is a superuser) to all the templates, device groups and we are using api_username and api_password to authenticate to the device.&lt;BR /&gt;&lt;BR /&gt;Another interesting fact is it works while running most of tasks in the playbook , but randomly fails on one of them (And sometimes it doesn't fail). The panorama logs indicate that "Authorization Failed. Could not find the role/ado for the user &amp;lt;service_account&amp;gt;. However after checking the Remote auth server logs and policies looks like the policies and roles have been configured correctly on the Auth server.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you have any other suggestions ? Thanks a lot in advance for your help !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Siddhant Kulkarni&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 22:04:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/405045#M2652</guid>
      <dc:creator>Siddhant</dc:creator>
      <dc:date>2021-05-05T22:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 403 - Failed Connection Errors in Ansible Playbook</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/463173#M2905</link>
      <description>&lt;P&gt;We have the same issue when calling some API endpoints.. It happens randomly and once we retry the same exact call with the same exact parameters, it works fine.. We were unable to find the root cause so we worked around it by adding a retry mechanism in our code (python) and whenever we hit a 403 we just retry...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice to know what might be causing this behaviour though&lt;/P&gt;&lt;P&gt;We're running Panorama 9.1 for reference&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 18:48:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/intermittent-403-failed-connection-errors-in-ansible-playbook/m-p/463173#M2905</guid>
      <dc:creator>abedJawhar</dc:creator>
      <dc:date>2022-02-03T18:48:28Z</dc:date>
    </item>
  </channel>
</rss>

