Skip to content

Conversation

@jeestr4d
Copy link
Collaborator

Fixes #308 fixed

Copy link
Collaborator Author

@jeestr4d jeestr4d left a comment

Choose a reason for hiding this comment

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

Lab output (modified logic):

[Check 84/90] Sup-A(+) /MNT/PSS Filesystem Check...                                                               FAIL - UPGRADE FAILURE!!
  Switch ID  Switch Name  /mnt/pss Folder usage (MB)  File Location
  ---------  -----------  --------------------------  -------------
  1201       a1-spine1    1                           /mnt/pss/bootlogs/8/sysmgr.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/auto_epld.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/boot.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/dmesg
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/dotclean.log.tar.gz
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/isan.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/nvram_prev_dmesg_blk_1_active.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/nvram_prev_dmesg_blk_2_inactive.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/nvram_prev_oops_blk_1.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/nvram_prev_oops_blk_2.log
  1201       a1-spine1    1                           /mnt/pss/bootlogs/9/sysmgr.log
  1201       a1-spine1    2                           /mnt/pss/bootlogs/1/sysmgr.log
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/boot.log
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/dmesg
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/dotclean.log.tar.gz
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/isan.log
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/nvram_prev_dmesg_blk_1_active.log
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/nvram_prev_dmesg_blk_2_inactive.log
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/nvram_prev_oops_blk_1.log
  1202       a1-spine2    1                           /mnt/pss/bootlogs/9/nvram_prev_oops_blk_2.log
  1202       a1-spine2    3                           /mnt/pss/bootlogs/5/sysmgr.log
  1202       a1-spine2    3                           /mnt/pss/bootlogs/9/sysmgr.log
  1202       a1-spine2    4                           /mnt/pss/bootlogs/7/sysmgr.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/isan.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/nvram_prev_dmesg_blk_1_active.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/nvram_prev_dmesg_blk_2_inactive.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/nvram_prev_oops_blk_1.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/nvram_prev_oops_blk_2.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/presysmgr.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/stateless_conversion.log
  1203       a1-spine3    1                           /mnt/pss/bootlogs/9/sysmgr.log
  1203       a1-spine3    14                          /mnt/pss/bootlogs/2/sysmgr.log
  1203       a1-spine3    3                           /mnt/pss/bootlogs/6/sysmgr.log
  1203       a1-spine3    7                           /mnt/pss/bootlogs/4/sysmgr.log

local pytest:

((ACI-PRE) ) jeestrad@JEESTRAD-M-L6VV ACI-Pre-Upgrade-Validation-Script % python3.12 -m pytest tests/checks/sup_a_filesystem_check
=================================================================================================== test session starts ===================================================================================================
platform darwin -- Python 3.12.12, pytest-7.4.0, pluggy-1.2.0
rootdir: /Users/jeestrad/Documents/Python/pre-upgrade/ACI-Pre-Upgrade-Validation-Script
configfile: pytest.ini
collected 7 items                                                                                                                                                                                                         

tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs0-fabric_nodes0-False-False-conn_cmds0-MANUAL CHECK REQUIRED-expected_data0] 
----------------------------------------------------------------------------------------------------- live log setup ------------------------------------------------------------------------------------------------------
[12:20:41.003 INFO     init_system:6130(MainThread)] Cleaning up previous run files in preupgrade_validator_logs/
[12:20:41.003 INFO     init_system:6132(MainThread)] Creating directories preupgrade_validator_logs/ and preupgrade_validator_logs/json_results/
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.004 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.004 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.
[12:20:41.005 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check
[12:20:41.005 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [ 14%]
tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs1-fabric_nodes1-6.0(8a)-False-conn_cmds1-N/A-expected_data1] 
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.019 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.019 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.
[12:20:41.019 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check
[12:20:41.020 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [ 28%]
tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs2-fabric_nodes2-6.1(4d)-False-conn_cmds2-N/A-expected_data2] 
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.034 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.034 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.---------------| 0/1 checks completed
[12:20:41.034 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check
[12:20:41.034 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [ 42%]
tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs3-fabric_nodes3-4.2(4c)-True-conn_cmds3-ERROR !!-expected_data3] 
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.046 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.046 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.---------------| 0/1 checks completed
[12:20:41.046 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check
[12:20:41.046 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [ 57%]
tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs4-fabric_nodes4-5.2(4l)-False-conn_cmds4-ERROR !!-expected_data4] 
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.059 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.059 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.
[12:20:41.059 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check----------------------| 0/1 checks completed
[12:20:41.060 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [ 71%]
tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs5-fabric_nodes5-5.2(4c)-False-conn_cmds5-PASS-expected_data5] 
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.071 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.072 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.---------------| 0/1 checks completed
[12:20:41.072 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check
[12:20:41.072 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [ 85%]
tests/checks/sup_a_filesystem_check/test_sup_a_filesystem_check.py::test_logic[icurl_outputs6-fabric_nodes6-5.2(4p)-False-conn_cmds6-FAIL - UPGRADE FAILURE!!-expected_data6] 
------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------
[12:20:41.085 INFO     init_result:1182(MainThread)] Initialized in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
[12:20:41.085 INFO     _start_thread:1105(MainThread)] (sup_a_filesystem_check) Starting thread.---------------| 0/1 checks completed
[12:20:41.086 INFO     wrapper:1349(sup_a_filesystem_check)] Start sup_a_filesystem_check
[12:20:41.086 INFO     update_result:1191(sup_a_filesystem_check)] Finalized result in preupgrade_validator_logs/json_results/sup_a_filesystem_check.json
PASSED                                                                                                                                                                                                              [100%]

==================================================================================================== 7 passed in 0.10s ====================================================================================================
((ACI-PRE) ) jeestrad@JEESTRAD-M-L6VV ACI-Pre-Upgrade-Validation-Script % 

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.

NewValidation: CSCwq58901

1 participant