Bug Description
--diagnostics zip file creation failed:
$ nac-test -d data -d .terraform/modules/catalyst_center/defaults/ -t templates -o ../results --diagnostic
=== Creating Summary ===
Performing final credential masking...
Creating archive: /tmp/nac-test-diagnostics-XFLr1C.zip
/home/arc2/sudoku/repos/.venv/lib/python3.12/site-packages/nac_test/support/nac-test-diagnostic.sh: line 850: zip: command not found
╔══════════════════════════════════════════════════════════════════╗
║ DIAGNOSTIC COLLECTION COMPLETE ║
╚══════════════════════════════════════════════════════════════════╝
Archive: /tmp/nac-test-diagnostics-XFLr1C.zip
ls: cannot access '/tmp/nac-test-diagnostics-XFLr1C.zip': No such file or directory
Size:
Files: 55
Platform: Ubuntu 24.04.4 LTS
Architecture: Catalyst Center
Please send the file '/tmp/nac-test-diagnostics-XFLr1C.zip' for analysis.
NOTE: Credentials have been masked in all text, JSON, and log files.
⚠️ IMPORTANT: PyATS archive files (.zip) contain raw execution logs
that MAY INCLUDE CREDENTIALS if debug logging was enabled.
Please review archive contents before sharing if concerned.
The issue was fixed after installing zip: sudo apt install zip unzip
SW: WSL2 on Windows11
Test Framework
Robot Framework (.robot or .j2 templates)
Test Type (PyATS Only)
None
Network as Code (NaC) Architecture
Catalyst Center (DNA Center)
Operating System
Linux
OS Version
WSL2
Installation Method
uv (uv pip install nac-test)
System Information Output
=== Creating Summary ===
Performing final credential masking...
Creating archive: /tmp/nac-test-diagnostics-XFLr1C.zip
/home/arc2/sudoku/repos/.venv/lib/python3.12/site-packages/nac_test/support/nac-test-diagnostic.sh: line 850: zip: command not found
╔══════════════════════════════════════════════════════════════════╗
║ DIAGNOSTIC COLLECTION COMPLETE ║
╚══════════════════════════════════════════════════════════════════╝
Archive: /tmp/nac-test-diagnostics-XFLr1C.zip
ls: cannot access '/tmp/nac-test-diagnostics-XFLr1C.zip': No such file or directory
Size:
Files: 55
Platform: Ubuntu 24.04.4 LTS
Architecture: Catalyst Center
Please send the file '/tmp/nac-test-diagnostics-XFLr1C.zip' for analysis.
NOTE: Credentials have been masked in all text, JSON, and log files.
⚠️ IMPORTANT: PyATS archive files (.zip) contain raw execution logs
that MAY INCLUDE CREDENTIALS if debug logging was enabled.
Please review archive contents before sharing if concerned.
Environment Variables Output
Reproduction Steps
see description
Command Used
nac-test -d data -d .terraform/modules/catalyst_center/defaults/ -t templates -o ../results --diagnostic
$ nac-test --version
nac-test, version 2.0.0a2
Data Model Snippet (if relevant)
Expected Behavior
Starting nac-test execution...
nac-test execution completed
Exit code: 0
Duration: 18s
=== Collecting nac-test Output ===
Collecting: 110_pyats_archives
Copied 0 recent PyATS archives
Collecting: 120_robot_outputs
Copied 40 Robot Framework output files
=== Creating Summary ===
Performing final credential masking...
Creating archive: /tmp/nac-test-diagnostics-oomARS.zip
╔══════════════════════════════════════════════════════════════════╗
║ DIAGNOSTIC COLLECTION COMPLETE ║
╚══════════════════════════════════════════════════════════════════╝
Archive: /tmp/nac-test-diagnostics-oomARS.zip
Size: 628K
Files: 55
Platform: Ubuntu 24.04.4 LTS
Architecture: Catalyst Center
Please send the file '/tmp/nac-test-diagnostics-oomARS.zip' for analysis.
NOTE: Credentials have been masked in all text, JSON, and log files.
⚠️ IMPORTANT: PyATS archive files (.zip) contain raw execution logs
that MAY INCLUDE CREDENTIALS if debug logging was enabled.
Please review archive contents before sharing if concerned.
Actual Behavior / Terminal Output
$ nac-test -d data_c_0.4.1 -d data_c2_0.4.1 -d .terraform/modules/catalyst_center/defaults/ -t templates -o ../results --diagnostic
Running diagnostic collection...
╔══════════════════════════════════════════════════════════════════╗
║ NAC-Test Diagnostic Collection v5.0 ║
║ Architecture-Agnostic Edition ║
╚══════════════════════════════════════════════════════════════════╝
=== NAC-Test Diagnostic Collection v5.0 ===
Timestamp: Thu Mar 19 17:54:00 CET 2026
Platform: Ubuntu 24.04.4 LTS
Architecture: Catalyst Center
Output directory: ../results
nac-test command: /home/arc2/sudoku/repos/.venv/bin/nac-test -d data_c_0.4.1 -d data_c2_0.4.1 -d .terraform/modules/catalyst_center/defaults/ -t templates -o ../results
=== Verifying Environment ===
Virtual environment: /home/arc2/sudoku/repos/.venv
nac-test found: /home/arc2/sudoku/repos/.venv/bin/nac-test
=== Environment Variable Status ===
Collecting: 010_env_var_status
=== Collecting System Information ===
Collecting: 020_system_info
Collecting: 021_linux_details
=== Collecting Python Environment ===
Collecting: 030_python_version
Collecting: 031_python_path
Collecting: 032_pip_packages
Collecting: 033_nac_packages
Collecting: 034_pyats_version
=== Collecting Multiprocessing Configuration ===
Collecting: 040_mp_start_method
=== Collecting PyATS Configuration ===
Collecting: 050_pyats_config
=== Collecting Network Configuration ===
Collecting: 060_ssl_certs
╔══════════════════════════════════════════════════════════════════╗
║ EXECUTING NAC-TEST COMMAND ║
╚══════════════════════════════════════════════════════════════════╝
Command: /home/arc2/sudoku/repos/.venv/bin/nac-test -d data_c_0.4.1 -d data_c2_0.4.1 -d .terraform/modules/catalyst_center/defaults/ -t templates -o ../results
Output directory: ../results
Starting nac-test execution...
nac-test execution completed
Exit code: 0
Duration: 17s
=== Collecting nac-test Output ===
Collecting: 110_pyats_archives
Copied 0 recent PyATS archives
Collecting: 120_robot_outputs
Copied 40 Robot Framework output files
=== Creating Summary ===
Performing final credential masking...
Creating archive: /tmp/nac-test-diagnostics-XFLr1C.zip
/home/arc2/sudoku/repos/.venv/lib/python3.12/site-packages/nac_test/support/nac-test-diagnostic.sh: line 850: zip: command not found
╔══════════════════════════════════════════════════════════════════╗
║ DIAGNOSTIC COLLECTION COMPLETE ║
╚══════════════════════════════════════════════════════════════════╝
Archive: /tmp/nac-test-diagnostics-XFLr1C.zip
ls: cannot access '/tmp/nac-test-diagnostics-XFLr1C.zip': No such file or directory
Size:
Files: 55
Platform: Ubuntu 24.04.4 LTS
Architecture: Catalyst Center
Please send the file '/tmp/nac-test-diagnostics-XFLr1C.zip' for analysis.
NOTE: Credentials have been masked in all text, JSON, and log files.
⚠️ IMPORTANT: PyATS archive files (.zip) contain raw execution logs
that MAY INCLUDE CREDENTIALS if debug logging was enabled.
Please review archive contents before sharing if concerned.
Troubleshooting Attempted
Other Troubleshooting Attempted
No response
Project Directory Structure
Additional Context
No response
Bug Description
--diagnostics zip file creation failed:
$ nac-test -d data -d .terraform/modules/catalyst_center/defaults/ -t templates -o ../results --diagnosticThe issue was fixed after installing zip:
sudo apt install zip unzipSW: WSL2 on Windows11
Test Framework
Robot Framework (.robot or .j2 templates)
Test Type (PyATS Only)
None
Network as Code (NaC) Architecture
Catalyst Center (DNA Center)
Operating System
Linux
OS Version
WSL2
Installation Method
uv (uv pip install nac-test)
System Information Output
Environment Variables Output
Reproduction Steps
see description
Command Used
Data Model Snippet (if relevant)
Expected Behavior
Starting nac-test execution...
nac-test execution completed
Exit code: 0
Duration: 18s
=== Collecting nac-test Output ===
Collecting: 110_pyats_archives
Copied 0 recent PyATS archives
Collecting: 120_robot_outputs
Copied 40 Robot Framework output files
=== Creating Summary ===
Performing final credential masking...
Creating archive: /tmp/nac-test-diagnostics-oomARS.zip
╔══════════════════════════════════════════════════════════════════╗
║ DIAGNOSTIC COLLECTION COMPLETE ║
╚══════════════════════════════════════════════════════════════════╝
Archive: /tmp/nac-test-diagnostics-oomARS.zip
Size: 628K
Files: 55
Platform: Ubuntu 24.04.4 LTS
Architecture: Catalyst Center
Please send the file '/tmp/nac-test-diagnostics-oomARS.zip' for analysis.
NOTE: Credentials have been masked in all text, JSON, and log files.
that MAY INCLUDE CREDENTIALS if debug logging was enabled.
Please review archive contents before sharing if concerned.
Actual Behavior / Terminal Output
Troubleshooting Attempted
NAC_TEST_DEBUG=truefor verbose outputOther Troubleshooting Attempted
No response
Project Directory Structure
Additional Context
No response