<?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 Ansible nxos_facts CLI commands // trigger python crash in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/ansible-nxos-facts-cli-commands-trigger-python-crash/m-p/4110880#M2054</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working to bring automation with Ansible into a large corporate network with a lot of Nexus 5/6K many of which are running relatively old software (uptime of 3 years is not uncommon). I have started to use Ansible nxos_facts (v2.9) to gather information from these Nexus switches. I use "network_cli" connection plugin. It has been noticed that from time to time log messages appear in Nexus switches as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%SYSMGR-2-LAST_CORE_BASIC_TRACE: : PID 1753 with message python(non-sysmgr) crashed, core will be saved&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These messages seem to coincide with Ansible logging in and the suspicion&amp;nbsp;is that Ansible is triggering these crashes. The commands that be seen in "show accounting log all" don't give a clue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sat Jun 20 08:09:20 2020:type=update:id=::added user cnd_awx
Sat Jun 20 08:09:21 2020:type=start:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=
Sat Jun 20 08:09:22 2020:type=update:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=terminal length 0 (SUCCESS)
Sat Jun 20 08:09:23 2020:type=update:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=terminal width 511 (SUCCESS)
Sat Jun 20 08:09:33 2020:type=update:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=dir (SUCCESS)
Sat Jun 20 08:10:10 2020:type=stop:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=shell terminated because the ssh session 
closed&lt;/PRE&gt;&lt;P&gt;The TACACS accounting records don't show anything more.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) Is there a connection between the on box python crash and Ansible running?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) What commands does Ansible run against when facts are gathered and why are these commands not appearing in accounting logs?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 15:11:22 GMT</pubDate>
    <dc:creator>Rod Oliver</dc:creator>
    <dc:date>2020-06-29T15:11:22Z</dc:date>
    <item>
      <title>Ansible nxos_facts CLI commands // trigger python crash</title>
      <link>https://community.cisco.com/t5/controllers/ansible-nxos-facts-cli-commands-trigger-python-crash/m-p/4110880#M2054</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working to bring automation with Ansible into a large corporate network with a lot of Nexus 5/6K many of which are running relatively old software (uptime of 3 years is not uncommon). I have started to use Ansible nxos_facts (v2.9) to gather information from these Nexus switches. I use "network_cli" connection plugin. It has been noticed that from time to time log messages appear in Nexus switches as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%SYSMGR-2-LAST_CORE_BASIC_TRACE: : PID 1753 with message python(non-sysmgr) crashed, core will be saved&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These messages seem to coincide with Ansible logging in and the suspicion&amp;nbsp;is that Ansible is triggering these crashes. The commands that be seen in "show accounting log all" don't give a clue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sat Jun 20 08:09:20 2020:type=update:id=::added user cnd_awx
Sat Jun 20 08:09:21 2020:type=start:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=
Sat Jun 20 08:09:22 2020:type=update:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=terminal length 0 (SUCCESS)
Sat Jun 20 08:09:23 2020:type=update:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=terminal width 511 (SUCCESS)
Sat Jun 20 08:09:33 2020:type=update:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=dir (SUCCESS)
Sat Jun 20 08:10:10 2020:type=stop:id=&amp;lt;jumphost&amp;gt;@pts/0:user=&amp;lt;user&amp;gt;:cmd=shell terminated because the ssh session 
closed&lt;/PRE&gt;&lt;P&gt;The TACACS accounting records don't show anything more.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) Is there a connection between the on box python crash and Ansible running?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) What commands does Ansible run against when facts are gathered and why are these commands not appearing in accounting logs?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 15:11:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ansible-nxos-facts-cli-commands-trigger-python-crash/m-p/4110880#M2054</guid>
      <dc:creator>Rod Oliver</dc:creator>
      <dc:date>2020-06-29T15:11:22Z</dc:date>
    </item>
  </channel>
</rss>

