FSM sam:dme:ComputePhysicalDecommission

Rule ID:592

Blade de-commission FSM
Applies to MO: compute:Physical

Name: Decommission
Stage: post-explicit
Message: Decommission server dn(FSM:sam:dme:ComputePhysicalDecommission)

Begin State: StopVMediaLocal


States
 StopVMediaLocal
NO COMMENTS

  On Success: StopVMediaPeer
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 40000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Unprovisioning the V-Media bootable device for server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:StopVMediaLocal)

  Notify:
   Target: sam:bladeAG
   Instance: self
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionStopVMediaLocal

 StopVMediaPeer
NO COMMENTS

  On Success: UnconfigExtMgmtRules
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 40000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Unprovisioning the V-Media bootable device for server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:StopVMediaPeer)

  Notify:
   Target: sam:bladeAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionStopVMediaPeer

 UnconfigExtMgmtRules
Scriptable vmedia/cimc vmedia related cleanup stages

  On Success: UnconfigExtMgmtGw
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 40000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: cleaning all ext mgmt rules for vmedia(FSM-STAGE:sam:dme:ComputePhysicalDecommission:UnconfigExtMgmtRules)

  Notify:
   Target: sam:bladeAG
   Instance: active
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionUnconfigExtMgmtRules

 UnconfigExtMgmtGw
NO COMMENTS

  On Success: CleanupCIMC
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 40000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: cleaning all ext mgmt gateway for vmedia(FSM-STAGE:sam:dme:ComputePhysicalDecommission:UnconfigExtMgmtGw)

  Notify:
   Target: sam:bladeAG
   Instance: active
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionUnconfigExtMgmtGw

 CleanupCIMC
NO COMMENTS

  On Success: Execute
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 40000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Cleaning up CIMC configuration for server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:CleanupCIMC)

  Notify:
   Target: sam:bladeAG
   Instance: active
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionCleanupCIMC

 Execute
NO COMMENTS

  On Success: PrecleanupPortConfig
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 1
  Unavailable: UNAVAIL_RETRY
  Message: Decommissioning server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:Execute)

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

 PrecleanupPortConfig
NO COMMENTS

  On Success: CleanupPortConfigLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 1
  Unavailable: UNAVAIL_RETRY
  Message: Preparing to clean port config for server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:PrecleanupPortConfig)

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

 CleanupPortConfigLocal
NO COMMENTS

  On Success: CleanupPortConfigPeer
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Cleaning up local port config for server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:CleanupPortConfigLocal)

  Notify:
   Target: sam:portAG
   Instance: self
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionCleanupPortConfigLocal

 CleanupPortConfigPeer
NO COMMENTS

  On Success:
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Cleaning up peer port config for server dn(FSM-STAGE:sam:dme:ComputePhysicalDecommission:CleanupPortConfigPeer)

  Notify:
   Target: sam:portAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data: compute:Physical
   Method: FsmComputePhysicalDecommissionCleanupPortConfigPeer