You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Juniper router upgrade
Revision as of 16:09, 8 June 2020 by imported>Ayounsi
- Download the proper image to apt1001:/srv/junos/
- We now only use 64bits vmhost
- Based on upgrade task and Juniper recommended
- Make room for the image
request system storage cleanup
- Save rescue config (just in case)
request system configuration rescue save
- Copy image
file copy "https://apt.wikimedia.org/junos/$filename.tgz" /var/tmp/
- Check checksum
file checksum md5 /var/tmp/$filename.tgz
- Compare with checksum on Juniper's website
- Check if console port is working
- Depool site (optional)
- Drain traffic away from router
deactivate protocols bgp group Transit4
deactivate protocols bgp group Transit6
deactivate protocols bgp group IX4
deactivate protocols bgp group IX6
- Adjust OSPF metrics
- Ensure router is not VRRP master
show vrrp summary
- TODO
- Downtime host in Icinga and LibreNMS
If Multi RE:
- Remove
graceful-switchover
deactivate chassis redundancy graceful-switchover
- Install image on backup RE
request vmhost software add /var/tmp/$filename.tgz re1
- Reboot RE1
request vmhost reboot re1
- Once back up, perform RE switchover (impactful)
request chassis routing-engine master switch
- Once done, repeat previous 3 steps for re0
- Rollback "Remove
graceful-switchover
"
If single RE:
- Install image on RE
request vmhost software add /var/tmp/$filename.tgz
- Reboot router
request vmhost reboot
Both single and dual RE:
- Check if router is healthy
show log messages | last
show system alarms
show ospf(3) interface
show bgp summary
- All green in Icinga and LibreNMS
- Cleanup the mess
request system storage cleanup
- Save rescue config (just in case)
request system configuration rescue save
- Remove Icinga and LibreNMS downtimes
- Rollback "Drain traffic away from router"
- Rollback VRRP change if any