Skip to content

Install OS for IOS goes to infinite loop when there is not enough free disk to complete an install mode upgrade #317

@balmasea

Description

@balmasea

Environment

  • Python version: 3.9.18
  • pyntc version: 2.0.0

Expected Behavior

After running a command
# install add file flash:cat9k_iosxe.17.12.04.SPA.bin activate commit prompt-level none
and getting this output
FAILED: There is not enough free disk available to perform this operation on switch 1. At least 1276287 KB of free disk is required
error should be reported and process should be interrupted.

Observed Behavior

Instead of early failing, it is waiting for the device reboot until timeout expires.

Steps to Reproduce

  1. Run IOSDevice::install_os with install_mode as True in a device with not enough free disk available.
  2. Check that commands show version is being executed in a loop until timeout expires.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions