FSM sam:dme:EquipmentChassisFwUpgrade

Rule ID:1962

Chassis Fw Upgrade FSM
Applies to MO: equipment:Chassis

Name: FwUpgrade
Stage: post-explicit
Message: Chassis profile FwUpgrade with Chassis(FSM:sam:dme:EquipmentChassisFwUpgrade)

Begin State: downloadImages


States
 downloadImages
Resolve Images from UCS Central

  On Success: copyRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 3600000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Download images(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:downloadImages)

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

 copyRemote
Resolve Images from UCS Central

  On Success: WaitBeforeInstallation
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 240000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Copy images to peer node(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:copyRemote)

  Notify:
   Target: sam:dcosAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data:
   Method: FsmEquipmentChassisFwUpgradeCopyRemote

 WaitBeforeInstallation
NO COMMENTS

  On Success: UpdateCmc
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 10000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Wait before installation(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:WaitBeforeInstallation)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: false
   Data:

 UpdateCmc
NO COMMENTS

  On Success: PollUpdateCmc
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 300000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Update CMC fw(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:UpdateCmc)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data:

 PollUpdateCmc
NO COMMENTS

  On Success: UpdateAdaptor
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 50
  Unavailable: UNAVAIL_RETRY
  Message: Poll Update CMC fw(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:PollUpdateCmc)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data:

 UpdateAdaptor
NO COMMENTS

  On Success: PollUpdateAdaptor
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 180000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Update Adaptor fw(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:UpdateAdaptor)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data:

 PollUpdateAdaptor
NO COMMENTS

  On Success: UpdateSasExpander
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 50
  Unavailable: UNAVAIL_RETRY
  Message: Poll Update Adaptor fw(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:PollUpdateAdaptor)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data:

 UpdateSasExpander
NO COMMENTS

  On Success: PollUpdateSasExpander
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 180000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Update SAS expander fw(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:UpdateSasExpander)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data:

 PollUpdateSasExpander
NO COMMENTS

  On Success: DeleteCurlDownloadedImages
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Poll Update SAS expander fw(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:PollUpdateSasExpander)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data:

 DeleteCurlDownloadedImages
Resolve Images from UCS Central

  On Success: DeleteImagesRemote
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 120000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Delete images downloaded from operations manager(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:DeleteCurlDownloadedImages)

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

 DeleteImagesRemote
Remove images from subordinate

  On Success: UnlockFirmwareImage
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 120000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Delete images downloaded from operations manager(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:DeleteImagesRemote)

  Notify:
   Target: sam:dcosAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data:
   Method: FsmEquipmentChassisFwUpgradeDeleteImagesRemote

 UnlockFirmwareImage
NO COMMENTS

  On Success:
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FOREVER
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Releasing the lock obtained(FSM-STAGE:sam:dme:EquipmentChassisFwUpgrade:UnlockFirmwareImage)

  Notify:
   Target:
   Instance: active
   Purpose: mod
   Custom: true
   Data: