cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
847
Views
0
Helpful
1
Replies

CAT9K 17.6.4 // python3 cli-API: OSError: [Errno 28] No space left on

pschoinz
Level 1
Level 1

Maybe someone ran into the same problem?

- After every run, more and more diskspace is shown as used.
- 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.


# python3 script used to reproduce issue

guestshell run python3
import cli
for s in range (1,10000):
print (s)
x=cli.cli("show version")


# sh platform software mount | i /dev/loop11 showing diskspace

cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 37 3767 1% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 213 3591 6% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 266 3538 7% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 443 3361 12% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 646 3158 17% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#
cat9k1#! stopped python3 script execution and started it again
cat9k1#
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 646 3158 17% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 975 2829 26% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#
cat9k1#! stopped python3 script execution and started it again
cat9k1#
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 1045 2759 28% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 2140 1664 57% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#
cat9k1#! stopped python3 script execution and started it again
cat9k1#
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 2260 1544 60% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 3142 662 83% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#sh platform software mount | i /dev/loop11
/dev/loop11 3778 26 100% /mnt/sd3/iox_alt_hdd_mount_dir
cat9k1#
cat9k1#! OSError: [Errno 28] No space left on device
cat9k1#


# error message when /dev/loop11 100% diskspace usage is reached

4219
4220
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/usr/lib/python3.6/site-packages/cli/__init__.py", line 337, in cli
_log_to_file("Executing cmdline %s" % cmdline)
File "/usr/lib/python3.6/site-packages/cli/__init__.py", line 87, in _log_to_file
logfile.close()
OSError: [Errno 28] No space left on device
>>>

 

1 Reply 1

Alexander Stevenson
Cisco Employee
Cisco Employee

Hello @pschoinz,

Please see the reply to the discussion here:

IR829: Error during app installation - Not enough memory in disk

https://community.cisco.com/t5/edge-computing-infrastructure/ir829-error-during-app-installation-not-enough-memory-in-disk/td-p/4731605

These tips may help you as well.