FSM sam:dme:MgmtControllerUpdateSwitch

Rule ID:269

FSM For Switch Upgrade
Applies to MO: mgmt:Controller

Name: UpdateSwitch
Stage: post-explicit
Message: update fabric interconnect image(FSM:sam:dme:MgmtControllerUpdateSwitch)

Begin State: updateLocal


States
 updateLocal
NO COMMENTS

  On Success: verifyLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 1200000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: updating local fabric interconnect(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:updateLocal)

  Notify:
   Target: sam:dcosAG
   Instance: self
   Purpose: mod
   Custom: true
   Data: firmware:BootDefinition
   Method: FsmMgmtControllerUpdateSwitchUpdateLocal

 verifyLocal
NO COMMENTS

  On Success: resetLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: verifying boot variables for local fabric interconnect(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:verifyLocal)

  Notify:
   Target: sam:dcosAG
   Instance: self
   Purpose: mod
   Custom: false
   Data:
   Method: FsmMgmtControllerUpdateSwitchVerifyLocal

 resetLocal
NO COMMENTS

  On Success: updateSpLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: rebooting local fabric interconnect(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:resetLocal)

  Notify:
   Target: sam:dcosAG
   Instance: self
   Purpose: mod
   Custom: false
   Data:
   Method: FsmMgmtControllerUpdateSwitchResetLocal

 updateSpLocal
NO COMMENTS

  On Success: updateRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 20000
  Retry Count: 30
  Unavailable: UNAVAIL_RETRY
  Message: updating sp version on local fabric interconnect and reboot switch if needed(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:updateSpLocal)

  Notify:
   Target: sam:dcosAG
   Instance: self
   Purpose: mod
   Custom: true
   Data: mgmt:Controller
   Method: FsmMgmtControllerUpdateSwitchUpdateSpLocal

 updateRemote
NO COMMENTS

  On Success: verifyRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 1200000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: updating peer fabric interconnect(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:updateRemote)

  Notify:
   Target: sam:dcosAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data: firmware:BootDefinition
   Method: FsmMgmtControllerUpdateSwitchUpdateRemote

 verifyRemote
NO COMMENTS

  On Success: resetRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: verifying boot variables for remote fabric interconnect(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:verifyRemote)

  Notify:
   Target: sam:dcosAG
   Instance: peer
   Purpose: mod
   Custom: false
   Data:
   Method: FsmMgmtControllerUpdateSwitchVerifyRemote

 resetRemote
NO COMMENTS

  On Success: updateSpRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: rebooting remote fabric interconnect(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:resetRemote)

  Notify:
   Target: sam:dcosAG
   Instance: peer
   Purpose: mod
   Custom: false
   Data:
   Method: FsmMgmtControllerUpdateSwitchResetRemote

 updateSpRemote
NO COMMENTS

  On Success:
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 20000
  Retry Count: 30
  Unavailable: UNAVAIL_RETRY
  Message: updating sp version on peer fabric interconnect and reboot switch if needed(FSM-STAGE:sam:dme:MgmtControllerUpdateSwitch:updateSpRemote)

  Notify:
   Target: sam:dcosAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data: mgmt:Controller
   Method: FsmMgmtControllerUpdateSwitchUpdateSpRemote