Added code for CSCwo96334:/tmp directory disk space for snapshot storage#368
Added code for CSCwo96334:/tmp directory disk space for snapshot storage#368Harinadh-Saladi wants to merge 5 commits intodatacenter:v4.1.0-devfrom
Conversation
lovkeshsharma702
left a comment
There was a problem hiding this comment.
review comment and resubmit again please.
|
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)" !!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!! To use a non-default Login Domain, enter apic#DOMAIN\USERNAME Gathering Node Information... Current APIC Version...6.0(2j) 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!! F1529 1 1 /firmware 97% Remove unneeded images Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#apic-disk-space-usage === Summary Result === PASS : 0 ==== Script Version v4.0.1 FIN ==== fab3-apic1# python3 aci-preupgrade-validation-script.py -d apic_disk_space_faults_check -t "5.2(8f)" !!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!! To use a non-default Login Domain, enter apic#DOMAIN\USERNAME Gathering Node Information... Current APIC Version...6.0(2j) 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!! F1528 1 1 /data/log 88% Remove unneeded logs in var/log/dme/log Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#apic-disk-space-usage === Summary Result === PASS : 0 ==== Script Version v4.0.1 FIN ==== fab3-apic1# python3 aci-preupgrade-validation-script.py -d apic_disk_space_faults_check -t "5.2(8f)" !!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!! To use a non-default Login Domain, enter apic#DOMAIN\USERNAME Gathering Node Information... Current APIC Version...6.0(2j) 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!! F1527 1 1 /techsupport 84% Remove unneeded techsupports/cores Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#apic-disk-space-usage === Summary Result === PASS : 0 ==== Script Version v4.0.1 FIN ==== |
diwakarmishra1190
left a comment
There was a problem hiding this comment.
Tested locally.
Note:
In the latest releases, the /tmp directory size has been reduced and snapshot dir change to /data so we will focus on checking /tmp only in the affected release.
Example:
6.0.9
bdsol-aci19-apic1# df -h
tmpfs 16G 44K 16G 1% /tmp
6.1.5
APIC-1# df -h
tmpfs 100M 4.0K 100M 1% /tmp
monrog2
left a comment
There was a problem hiding this comment.
@lovkeshsharma702 run this through the gitlab integration test
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 pass,fail,NA and mixed fault scenarios.
Have tested in the lab and enclosed comprehensive logs along with complete script logs.
CSCwo96334_comprehensive_Logs.txt
CSCwo96334_Pytest_Logs.txt
Complete_Script_logs.txt