You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Juniper router upgrade

From Wikitech-static
Revision as of 16:09, 8 June 2020 by imported>Ayounsi
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. Download the proper image to apt1001:/srv/junos/
  2. Make room for the image
    • request system storage cleanup
  3. Save rescue config (just in case)
    • request system configuration rescue save
  4. Copy image
  5. Check checksum
    • file checksum md5 /var/tmp/$filename.tgz
    • Compare with checksum on Juniper's website
  6. Check if console port is working
  7. Depool site (optional)
  8. 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
  9. Ensure router is not VRRP master
    • show vrrp summary
    • TODO
  10. Downtime host in Icinga and LibreNMS

If Multi RE:

  1. Remove graceful-switchover
    • deactivate chassis redundancy graceful-switchover
  2. Install image on backup RE
    • request vmhost software add /var/tmp/$filename.tgz re1
  3. Reboot RE1
    • request vmhost reboot re1
  4. Once back up, perform RE switchover (impactful)
    • request chassis routing-engine master switch
  5. Once done, repeat previous 3 steps for re0
  6. Rollback "Remove graceful-switchover"

If single RE:

  1. Install image on RE
    • request vmhost software add /var/tmp/$filename.tgz
  2. Reboot router
    • request vmhost reboot

Both single and dual RE:

  1. 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
  2. Cleanup the mess
    • request system storage cleanup
  3. Save rescue config (just in case)
    • request system configuration rescue save
  4. Remove Icinga and LibreNMS downtimes
  5. Rollback "Drain traffic away from router"
  6. Rollback VRRP change if any