Skip to content

Added code for CSCwo96334:/tmp directory disk space for snapshot storage#368

Open
Harinadh-Saladi wants to merge 3 commits intodatacenter:masterfrom
Harinadh-Saladi:tmp_dir_snapshot
Open

Added code for CSCwo96334:/tmp directory disk space for snapshot storage#368
Harinadh-Saladi wants to merge 3 commits intodatacenter:masterfrom
Harinadh-Saladi:tmp_dir_snapshot

Conversation

@Harinadh-Saladi
Copy link

@Harinadh-Saladi Harinadh-Saladi commented Mar 18, 2026

Added tmp_dir_snapshot_storage_check to validate /tmp space before upgrades < 6.1(4a)
Check monitors F1527/F1528/F1529 faults on /tmp mount point only
Returns FAIL_UF if /tmp disk space issues found, NA for versions >= 6.1(4a)
Added comprehensive test cases covering affected and fixed versions
Added test fixtures for positive, negative, and mixed fault scenarios.

Have tested in the lab and enclosed comprehensive logs.

CSCwo96334_comprehensive_Logs.txt

CSCwo96334_Pytest_Logs.txt

Copy link

@lovkeshsharma702 lovkeshsharma702 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review comment and resubmit again please.

@Harinadh-Saladi
Copy link
Author

Below are the mixed fail scenario logs with /techsupport, /data/log, /firmware and /tmp directories full.

fab3-apic1# python3 aci-preupgrade-validation-script.py -d apic_disk_space_faults_check -t "5.2(8f)"
==== 2026-03-25T11-35-25+0000, Script Version v4.0.1 ====

!!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!!

To use a non-default Login Domain, enter apic#DOMAIN\USERNAME
Enter username for APIC login : admin
Enter password for corresponding User :

Gathering Node Information...

Current APIC Version...6.0(2j)
Lowest Switch Version...4.2(3j)

Target APIC version is overridden to 5.2(8f)

Collecting VPC Node IDs...

Progress: |████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 checks completed

=== Check Result (failed only) ===

[Check 1/1] APIC Disk Space Usage (F1527, F1528, F1529 equipment-full)... FAIL - UPGRADE FAILURE!!
Fault Pod Node Mount Point Current Usage % Recommended Action


F1529 1 1 /firmware 97% Remove unneeded images
F1529 1 1 /tmp 100% Remove unneeded logs in /tmp directory

Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#apic-disk-space-usage

=== Summary Result ===

PASS : 0
FAIL - OUTAGE WARNING!! : 0
FAIL - UPGRADE FAILURE!! : 1
MANUAL CHECK REQUIRED : 0
POST UPGRADE CHECK REQUIRED : 0
N/A : 0
ERROR !! : 0
TOTAL : 1

Pre-Upgrade Check Complete.
Next Steps: Address all checks flagged as FAIL, ERROR or MANUAL CHECK REQUIRED

Result output and debug info saved to below bundle for later reference.
Attach this bundle to Cisco TAC SRs opened to address the flagged checks.

  Result Bundle: /data/techsupport/hari_test/preupgrade_validator_2026-03-25T11-35-25+0000.tgz

==== Script Version v4.0.1 FIN ====
fab3-apic1#

fab3-apic1# python3 aci-preupgrade-validation-script.py -d apic_disk_space_faults_check -t "5.2(8f)"
==== 2026-03-25T11-58-22+0000, Script Version v4.0.1 ====

!!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!!

To use a non-default Login Domain, enter apic#DOMAIN\USERNAME
Enter username for APIC login : admin
Enter password for corresponding User :

Gathering Node Information...

Current APIC Version...6.0(2j)
Lowest Switch Version...4.2(3j)

Target APIC version is overridden to 5.2(8f)

Collecting VPC Node IDs...

Progress: |████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 checks completed

=== Check Result (failed only) ===

[Check 1/1] APIC Disk Space Usage (F1527, F1528, F1529 equipment-full)... FAIL - UPGRADE FAILURE!!
Fault Pod Node Mount Point Current Usage % Recommended Action


F1528 1 1 /data/log 88% Remove unneeded logs in var/log/dme/log
F1529 1 1 /firmware 97% Remove unneeded images
F1529 1 1 /tmp 100% Remove unneeded logs in /tmp directory

Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#apic-disk-space-usage

=== Summary Result ===

PASS : 0
FAIL - OUTAGE WARNING!! : 0
FAIL - UPGRADE FAILURE!! : 1
MANUAL CHECK REQUIRED : 0
POST UPGRADE CHECK REQUIRED : 0
N/A : 0
ERROR !! : 0
TOTAL : 1

Pre-Upgrade Check Complete.
Next Steps: Address all checks flagged as FAIL, ERROR or MANUAL CHECK REQUIRED

Result output and debug info saved to below bundle for later reference.
Attach this bundle to Cisco TAC SRs opened to address the flagged checks.

  Result Bundle: /data/techsupport/hari_test/preupgrade_validator_2026-03-25T11-58-22+0000.tgz

==== Script Version v4.0.1 FIN ====
fab3-apic1#

fab3-apic1# python3 aci-preupgrade-validation-script.py -d apic_disk_space_faults_check -t "5.2(8f)"
==== 2026-03-25T12-21-25+0000, Script Version v4.0.1 ====

!!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!!

To use a non-default Login Domain, enter apic#DOMAIN\USERNAME
Enter username for APIC login : admin
Enter password for corresponding User :

Gathering Node Information...

Current APIC Version...6.0(2j)
Lowest Switch Version...4.2(3j)

Target APIC version is overridden to 5.2(8f)

Collecting VPC Node IDs...

Progress: |████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 checks completed

=== Check Result (failed only) ===

[Check 1/1] APIC Disk Space Usage (F1527, F1528, F1529 equipment-full)... FAIL - UPGRADE FAILURE!!
Fault Pod Node Mount Point Current Usage % Recommended Action


F1527 1 1 /techsupport 84% Remove unneeded techsupports/cores
F1528 1 1 /data/log 85% Remove unneeded logs in var/log/dme/log
F1529 1 1 /firmware 97% Remove unneeded images
F1529 1 1 /tmp 100% Remove unneeded logs in /tmp directory

Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#apic-disk-space-usage

=== Summary Result ===

PASS : 0
FAIL - OUTAGE WARNING!! : 0
FAIL - UPGRADE FAILURE!! : 1
MANUAL CHECK REQUIRED : 0
POST UPGRADE CHECK REQUIRED : 0
N/A : 0
ERROR !! : 0
TOTAL : 1

Pre-Upgrade Check Complete.
Next Steps: Address all checks flagged as FAIL, ERROR or MANUAL CHECK REQUIRED

Result output and debug info saved to below bundle for later reference.
Attach this bundle to Cisco TAC SRs opened to address the flagged checks.

  Result Bundle: /data/techsupport/hari_test/preupgrade_validator_2026-03-25T12-21-25+0000.tgz

==== Script Version v4.0.1 FIN ====
fab3-apic1#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants