Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions aci-preupgrade-validation-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -6025,6 +6025,26 @@ def apic_downgrade_compat_warning_check(cversion, tversion, **kwargs):

return Result(result=result, headers=headers, data=data, recommended_action=recommended_action, doc_url=doc_url)


@check_wrapper(check_title="svccoreCtrlr or svccoreNode excessive entries check")
def svccoreCtrlr_or_svccoreNode_excessive_entries_check(tversion, **kwargs):
result = PASS
headers = ['svccoreCtrlr Object Count','svccoreNode Object Count']
data = []
recommended_action = "Contact Cisco TAC for Support before upgrade"
doc_url = "https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#svccoreCtrlr-or-svccoreNode-excessive-entries-check"
if not tversion:
return Result(result=MANUAL, msg=TVER_MISSING)
if tversion.older_than("6.2(1h)") or tversion.same_as("6.2(1h)"):
svccore_classes = icurl('class', 'svccoreCtrlr.json')

Choose a reason for hiding this comment

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

svccoreNode class missing. please get clarity from bug engineer if we need to add svccoreNode also or svccoreCtrl is enough ?

svccoreNode_classes = icurl('class', 'svccoreNode.json')
if(len(svccore_classes) > 240 or len(svccoreNode_classes) > 240):
data.append([len(svccore_classes), len(svccoreNode_classes)])
if data:
result = MANUAL
return Result(result=result,headers=headers,data=data,recommended_action=recommended_action,doc_url=doc_url)
else:
return Result(result=NA, msg=VER_NOT_AFFECTED)

# ---- Script Execution ----

Expand Down Expand Up @@ -6114,6 +6134,7 @@ class CheckManager:
validate_32_64_bit_image_check,
fabric_link_redundancy_check,
apic_downgrade_compat_warning_check,
svccoreCtrlr_or_svccoreNode_excessive_entries_check,

# Faults
apic_disk_space_faults_check,
Expand Down
14 changes: 14 additions & 0 deletions docs/docs/validations.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ Items | Defect | This Script
[Stale pconsRA Object][d26] | CSCwp22212 | :warning:{title="Deprecated"} | :no_entry_sign:
[ISIS DTEPs Byte Size][d27] | CSCwp15375 | :white_check_mark: | :no_entry_sign:
[Policydist configpushShardCont Crash][d28] | CSCwp95515 | :white_check_mark: |
[svccoreCtrlr or svccoreNode excessive entries check][d30] | CSCws8423 | :white_check_mark: |

[d1]: #ep-announce-compatibility
[d2]: #eventmgr-db-size-defect-susceptibility
Expand Down Expand Up @@ -222,6 +223,7 @@ Items | Defect | This Script
[d26]: #stale-pconsra-object
[d27]: #isis-dteps-byte-size
[d28]: #policydist-configpushshardcont-crash
[d30]: #svccoreCtrlr-or-svccoreNode-excessive-entries-check


## General Check Details
Expand Down Expand Up @@ -2648,6 +2650,17 @@ Due to [CSCwp95515][59], upgrading to an affected version while having any `conf
If any instances of `configpushShardCont` are flagged by this script, Cisco TAC must be contacted to identify and resolve the underlying issue before performing the upgrade.


### svccoreCtrlr or svccoreNode excessive entries check

Due to excessive `svccoreCtrlr` or `svccoreNode` managed objects, Apic gui stuck in loading multiple queries.

Due to [CSCws84232][62], the APIC GUI may become unresponsive after login, with dashboards stuck in a continuous “Loading…”state.
Administrators may be unable to access or operate the APIC GUI, potentially impacting day-to-day management or upgrade.

This check will verify the count of the `svccoreCtrlr` Managed Object and raise and alarm with the bug if object count found more than 240. Remove the content or objects of `svccoreCtrlr` or `svccoreNode`. Contact Cisco TAC or upgrade to a release containing the fix for CSCws84232 before proceeding with an upgrade.



[0]: https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script
[1]: https://www.cisco.com/c/dam/en/us/td/docs/Website/datacenter/apicmatrix/index.html
[2]: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-release-notes-list.html
Expand Down Expand Up @@ -2710,3 +2723,4 @@ If any instances of `configpushShardCont` are flagged by this script, Cisco TAC
[59]: https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwp95515
[60]: https://www.cisco.com/c/en/us/solutions/collateral/data-center-virtualization/application-centric-infrastructure/white-paper-c11-743951.html#Inter
[61]: https://www.cisco.com/c/en/us/solutions/collateral/data-center-virtualization/application-centric-infrastructure/white-paper-c11-743951.html#EnablePolicyCompression
[63]:https://bst.cloudapps.cisco.com/bugsearch/bug/CSCws84232
Loading