11-02-2022 12:04 AM - last edited on 05-08-2023 11:00 AM by Paul Zimmerman
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
>>>
01-05-2023 07:51 AM
Hello @pschoinz,
Please see the reply to the discussion here:
IR829: Error during app installation - Not enough memory in disk
These tips may help you as well.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide