PIW Cisco ACI Upgrade Best Practices
PIW Cisco ACI Upgrade Best Practices
PIW Cisco ACI Upgrade Best Practices
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Software Release Guidelines
Long Lived Releases
4 Direct Upgrade From One Long Lived To Next Long -Lived Release Will Be Supported
5 Long Lived Releases Are Recommended For Networks That Will Not be Upgraded Frequently
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Where to Start?
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Recommended Guides !
Cisco ACI Upgrade Checklist – Important Starting Point
https://www.cisco.com/c/en/us/td/docs/swi
tches/datacenter/aci/apic/sw/kb/Cisco-ACI-
Upgrade-Checklist.html
https://www.cisco.com/c/en/us/td/docs/dc
n/aci/apic/all/apic-installation-aci-upgrade-
downgrade/Cisco-APIC-Installation-ACI-
Upgrade-Downgrade-Guide.html
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Agenda
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Agenda
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
ACI Firmware Upgrade Best Practice 101
Consider the fabric as
one huge switch
Spine
(Fabric Card)
APIC (Supervisor)
ACI is a solution to manage multiple switches as if it’s one huge switch
https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/all/apic-installation-aci-upgrade-downgrade/Cisco-APIC-Installation-ACI-Upgrade-Downgrade-Guide/m-installing-or-
recovering-cisco-apic-images.html#id_22801
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
APIC and CIMC Versions
Two: Check APIC Release Notes (for your version) for HUU ISO
https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/5x/release-notes/cisco-apic-release-notes-524.html#HardwareCompatibilityInformation
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Agenda
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
ACI Switch Upgrade Flow
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
ACI Switch Upgrade Flow
Preparation
Reboot
Boot Up
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
ACI Switch Upgrade Flow
Upgrade Token
• The switch receives approval from APIC (Approval)
Scheduler
• Controls switches that are upgraded in parallel
Boot Up
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
ACI Switch Upgrade Flow
Scheduler
Reboot
Boot Up
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
ACI Switch Upgrade Flow •
Depends on other conditions such as:
Link failure detection time on the external device
• Routing protocol
Preparation
Reboot
Boot Up
Fail over with
the link down
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
ACI Switch Upgrade Flow
Image Download
Scheduler
Preparation Boot Up
Reboot
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
ACI Switch Upgrade Flow (Boot Up Sequence)
Boot Up • Various traffic flow optimizations
02
03
Bring up
fabric ports
04
05
06
07
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
ACI Switch Upgrade Flow (Boot Up Sequence)
Boot Up • Various traffic flow optimizations
03
TEP IP is
restored
04
05
06
07
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
ACI Switch Upgrade Flow (Boot Up Sequence)
Boot Up • Various traffic flow optimizations
04
05
06
07
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
ACI Switch Upgrade Flow (Boot Up Sequence)
Boot Up • Various traffic flow optimizations
05
06
07
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
ACI Switch Upgrade Flow (Boot Up Sequence)
Boot Up • Various traffic flow optimizations
06
ISIS multicast overload timer
• Leaf nodes – Fixed 1min
• Spine nodes – When FTAG tree is created
07 (Fixed 1 min prior to Switch 14.2(1))
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
ACI Switch Upgrade Flow (Boot Up Sequence)
Boot Up • Various traffic flow optimizations Ready to receive traffic
• VLANs are deployed
• Bring up fabric links • For VMM, depends on Resolution Immediacy
01 • Bring up APIC connected down links • Contracts are deployed
• Admin down other down links • Depends on Deployment Immediacy
• Spine-Proxy is ready
• An APIC discovers the switch via DHCP/LLDP • Flood handling (FTAG) is ready
02 • The same TEP IP is assigned
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Helpful Tips for Multi-Pod / Multi-Site
Verify Spines are Sending Routes to the IPN after upgrade
IPN
Node Upgrade Group 1 Node Upgrade Group 1
Spine 1,4 Spine 1,4
• When Node Upgrade Group 1 finishes, Spines may show as “completed” in upgrade UI but routes
towards IPN/ISN may still be in hold down period (up to 10 min)
• Before starting Spine Node Upgrade Group 2, verify that TEP routes of pods / sites are being sent /
received from newly upgraded spines in Group 1
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Helpful Tips for Multi-Pod / Multi-Site
Set default IS-IS fabric policy to a lower value before upgrade
IPN
https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvd75131
• Short Explanation:
• Default fabric wide IS-IS metric is set at 63 (max value)
• During upgrade, spines want to overload this value by design Set this value to < 63
• If fabric-wide value is already at max, there is no room to overload before any upgrade
• Can create unexpected traffic interruption in a strict HA upgrade window
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
ACI Switch Upgrade
with Graceful Option
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
ACI Switch Upgrade with graceful option
Image Download
Scheduler
Graceful Option is to gracefully isolate
the switch before the switch goes
down for the upgrade
Preparation
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Additional reboot sequence with graceful option
• Graceful option disabled
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
GIR and Graceful Upgrade in ACI
Both GIR (Graceful Insertion and Removal) and an upgrade using the graceful option put the
switch in MMode (Maintenance Mode) to isolate the switch from the fabric.
However, the use case for these two features are completely different.
GIR (Graceful Insertion and Removal) An upgrade with the graceful option
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Agenda
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
ACI Switch Upgrade Configuration Improvements
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Recommended Upgrade Procedure crossing 4.0
Although APIC takes care of the merging of firmware and maintenance groups for pre-4.0 to post-4.0 APIC upgrade
seamlessly, there were defects in the past.
➢ To avoid any unexpected behavior, the following procedure is recommended:
Upgrade switches from pre-14.0 to post-14.0 (ex. 13.2 -> 14.2) with the
04
new upgrade groups
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Agenda
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
ACI Upgrade Enhancement Quick Summary
Supported APIC Version 3.2 4.1(1) 4.2(*) 4.2(4) 4.2(5) 5.0(1) Switch version requirements
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Backported from 5.0(1) * APIC is what enforces/validate those rules
Upgrade Time Reduction
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
4.1(1)
Switch Image Pre-Download with a scheduler
1. Schedule for a long time ahead just to trigger pre-download of a switch image.
2. During the actual maintenance window, come back to this same window (maintenance group) and select “Now” to trigger the upgrade on
demand. Switches don’t need to re-download images and can proceed with the upgrade immediately.
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
4.2(5)
Switch Image Download Progress
• All switches (regardless of pods or vPC) in the update group download the switch image from APICs in parallel. During this period, the
Upgrade Progress remains 0 %.
• With the new Download Progress bar, users can see if switches finished the download and ready to upgrade.
• If it was triggered with a scheduler, all switches wait after they completed their download.
• If it was triggered with “Upgrade Now”, each switch proceed with the upgrade as soon as it has completed its download.
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
OLD
Upgrade multiple pods/switches in parallel
When the actual upgrade starts, APICs allow each switch to upgrade based on the following rules;
• From APIC 14.2(5) or later, any switches in any pods can be upgraded in parallel
• “Upgrade Now” is no longer limited to 20 switches at a time
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Useability
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
4.2(5)
APIC “Install Stage”
For older APIC versions to run some of the validations added in later release:
https://dcappcenter.cisco.com/pre-upgrade-validator.html
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Pre-upgrade validation (AppCenter App)
The goal of the app
https://dcappcenter.cisco.com/pre-upgrade-validator.html
To be able to apply the latest validations on any APIC
versions via AppCenter app
(Currently only for APIC upgrade validations)
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Live Demo With Script
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Nexus Dashboard Insights (Optional)
Benefit of Nexus Insights
Does both a pre-check and a post-check to alert on effects
and changes in the upgrade window
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Final Tips
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Back Up Configuration with AES File Encryption !
In the Checklist But A Commonly Missed Step
Setting Global AES Encryption allows all the
• Turn this on before taking backup secure properties of the configuration (like
credentials) to be successfully imported when
• The AES passphrase that generates the encryption restoring the fabric
keys cannot be recovered or read by an ACI
administrator or any other user. The AES passphrase
is not stored. Copy your passphrase somewhere
safe!
Pre ACI v4.0.1 Setting Location: ACI v4.0.1 and later Location:
Admin > AAA > AES Encryption Passphrase and Keys for Config System > System Settings > Global AES Passphrase Encryption
Export (and Import) Settings
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Remember Overlapping VLANs?
Why avoiding overlapping VLAN pools
• Operational result when overlapping VLAN occurs is
unpredictable
We covered the Overlapping VLAN use case and solution in a previous event on Access Policy Best Practices
Recording: https://players.brightcove.net/1384193102001/NJgI8K0ie_default/index.html?videoId=6274036977001
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Remote Leaf Upgrade Order
CSCvs167670 – Only when going from 4.1(2) to 4.2(2)
Specific corner case if your customer has the following:
Why: ACI 4.1.(2) was the first release where we enabled direct forwarding between Remote Leafs (versus
hairpin via Spines) resulting in some internal enhancements
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
• ACI Upgrades can be done with minimal
to no impact to traffic forwarding with
Graceful Option
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
• Cisco APIC Installation and ACI Upgrade and Downgrade
Guide https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/all/apic-installation-
aci-upgrade-downgrade/Cisco-APIC-Installation-ACI-Upgrade-Downgrade-Guide.html
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
• Access Policies (Delivered: Sept 2021)
Forwarding and Data-Plane
Coming Topics •
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public 61