Post-Upgrade Snapshot and Report Generation Skipped for Firewalls
Closed this issue · 0 comments
Describe the bug
After completing firewall upgrades, the post-upgrade process is expected to take snapshots and generate diff reports. However, these steps are being skipped, seemingly due to the code block that bypasses the report generation process if settings.yaml is not found. This results in missing post-upgrade snapshots and reports, which are crucial for verifying upgrade success and diagnosing issues.
To Reproduce
Steps to reproduce the behavior:
- Execute the firewall upgrade script without a settings.yaml file in the working directory.
- Complete the firewall upgrade process.
- Observe that the post-upgrade snapshots and diff report generation steps are skipped.
Expected behavior
Regardless of the presence of settings.yaml, post-upgrade snapshots and reports should be generated to ensure that the upgrade's effects can be reviewed and verified.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS, Linux, WSL2
Additional context
The issue seems to stem from the conditional check for settings.yaml
presence, which also considers the snapshot settings within the file. If settings.yaml is not found, the process to generate snapshots, diff, and PDF reports is entirely skipped. A proposed solution is to decouple the snapshot and report generation from the settings.yaml
presence and its snapshot settings, ensuring these post-upgrade steps are always executed.