<?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 CAT9K 17.6.4 // python3 cli-API: OSError: [Errno 28] No space left on in Network Devices</title>
    <link>https://community.cisco.com/t5/network-devices/cat9k-17-6-4-python3-cli-api-oserror-errno-28-no-space-left-on/m-p/4714681#M66</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Maybe someone ran into the same problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- After every run, more and more diskspace is shown as used.&lt;BR /&gt;- After 100% diskspace usage is reached, the script fails, no diskspace is released anymore, the python3 scripts can no longer be executed and the guest shell must be destroyed and reactivated to get this working again.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# python3 script used to reproduce issue&lt;/P&gt;
&lt;P&gt;guestshell run python3&lt;BR /&gt;import cli&lt;BR /&gt;for s in range (1,10000):&lt;BR /&gt;print (s)&lt;BR /&gt;x=cli.cli("show version")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# sh platform software mount | i /dev/loop11 showing diskspace&lt;/P&gt;
&lt;P&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 37 3767 1% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 213 3591 6% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 266 3538 7% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 443 3361 12% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 646 3158 17% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! stopped python3 script execution and started it again&lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 646 3158 17% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 975 2829 26% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! stopped python3 script execution and started it again&lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 1045 2759 28% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 2140 1664 57% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! stopped python3 script execution and started it again&lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 2260 1544 60% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 3142 662 83% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 3778 26 100% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! OSError: [Errno 28] No space left on device&lt;BR /&gt;cat9k1#&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# error message when /dev/loop11 100% diskspace usage is reached&lt;/P&gt;
&lt;P&gt;4219&lt;BR /&gt;4220&lt;BR /&gt;OSError: [Errno 28] No space left on device&lt;/P&gt;
&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/usr/lib/python3.6/site-packages/cli/__init__.py", line 337, in cli&lt;BR /&gt;_log_to_file("Executing cmdline %s" % cmdline)&lt;BR /&gt;File "/usr/lib/python3.6/site-packages/cli/__init__.py", line 87, in _log_to_file&lt;BR /&gt;logfile.close()&lt;BR /&gt;OSError: [Errno 28] No space left on device&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 18:00:55 GMT</pubDate>
    <dc:creator>pschoinz</dc:creator>
    <dc:date>2023-05-08T18:00:55Z</dc:date>
    <item>
      <title>CAT9K 17.6.4 // python3 cli-API: OSError: [Errno 28] No space left on</title>
      <link>https://community.cisco.com/t5/network-devices/cat9k-17-6-4-python3-cli-api-oserror-errno-28-no-space-left-on/m-p/4714681#M66</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Maybe someone ran into the same problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- After every run, more and more diskspace is shown as used.&lt;BR /&gt;- After 100% diskspace usage is reached, the script fails, no diskspace is released anymore, the python3 scripts can no longer be executed and the guest shell must be destroyed and reactivated to get this working again.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# python3 script used to reproduce issue&lt;/P&gt;
&lt;P&gt;guestshell run python3&lt;BR /&gt;import cli&lt;BR /&gt;for s in range (1,10000):&lt;BR /&gt;print (s)&lt;BR /&gt;x=cli.cli("show version")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# sh platform software mount | i /dev/loop11 showing diskspace&lt;/P&gt;
&lt;P&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 37 3767 1% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 213 3591 6% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 266 3538 7% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 443 3361 12% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 646 3158 17% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! stopped python3 script execution and started it again&lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 646 3158 17% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 975 2829 26% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! stopped python3 script execution and started it again&lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 1045 2759 28% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 2140 1664 57% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! stopped python3 script execution and started it again&lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 2260 1544 60% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 3142 662 83% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#sh platform software mount | i /dev/loop11 &lt;BR /&gt;/dev/loop11 3778 26 100% /mnt/sd3/iox_alt_hdd_mount_dir &lt;BR /&gt;cat9k1#&lt;BR /&gt;cat9k1#! OSError: [Errno 28] No space left on device&lt;BR /&gt;cat9k1#&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# error message when /dev/loop11 100% diskspace usage is reached&lt;/P&gt;
&lt;P&gt;4219&lt;BR /&gt;4220&lt;BR /&gt;OSError: [Errno 28] No space left on device&lt;/P&gt;
&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/usr/lib/python3.6/site-packages/cli/__init__.py", line 337, in cli&lt;BR /&gt;_log_to_file("Executing cmdline %s" % cmdline)&lt;BR /&gt;File "/usr/lib/python3.6/site-packages/cli/__init__.py", line 87, in _log_to_file&lt;BR /&gt;logfile.close()&lt;BR /&gt;OSError: [Errno 28] No space left on device&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 18:00:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/cat9k-17-6-4-python3-cli-api-oserror-errno-28-no-space-left-on/m-p/4714681#M66</guid>
      <dc:creator>pschoinz</dc:creator>
      <dc:date>2023-05-08T18:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: CAT9K 17.6.4 // python3 cli-API: OSError: [Errno 28] No space left</title>
      <link>https://community.cisco.com/t5/network-devices/cat9k-17-6-4-python3-cli-api-oserror-errno-28-no-space-left-on/m-p/4749726#M67</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/323791"&gt;@pschoinz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please see the reply to the discussion here:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;IR829: Error during app installation - Not enough memory in disk&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.cisco.com/t5/edge-computing-infrastructure/ir829-error-during-app-installation-not-enough-memory-in-disk/td-p/4731605" target="_blank"&gt;https://community.cisco.com/t5/edge-computing-infrastructure/ir829-error-during-app-installation-not-enough-memory-in-disk/td-p/4731605&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These tips may help you as well.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 15:51:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/cat9k-17-6-4-python3-cli-api-oserror-errno-28-no-space-left-on/m-p/4749726#M67</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2023-01-05T15:51:21Z</dc:date>
    </item>
  </channel>
</rss>

