FSM sam:dme:FabricSanCloudSwitchMode

Rule ID:618

NO COMMENTS
Applies to MO: fabric:SanCloud

Name: SwitchMode
Stage: post-explicit
Message: Fabric interconnect FC mode configuration(FSM:sam:dme:FabricSanCloudSwitchMode)

Begin State: SwConfigPeer


States
 SwConfigPeer
TODO: Fc Zoning: Add Local & Peer zoneUnconfig stages. When UCSM is connected to upstream switches, zones created by UCSM are also distributed to the upstream switches. Before moving to end-host-mode UCSM should delete all the zones and zonesets created by it otherwsie orphan zones and zonesets will be left on the upstream switches. This may not be required for 1st phase of the Fc-Zoning feature because in 1st phase zoning is done from UCSM only when there is no upstream switch present. This config will restart the switch. So, first config the Peer switch to avoid the DME failover. Once the peer is configured and we get successful FSM stage completion, then we apply the config to local switch and let it reboot. TODO - Do we need to gracefully switchover the the AGs running on the other switch to move to this switch? If so, we need to re-balance them after this FSM is over

  On Success: WaitForUserAck
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FINITE
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 60000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Fabric interconnect FC mode configuration to secondary(FSM-STAGE:sam:dme:FabricSanCloudSwitchMode:SwConfigPeer)

  Notify:
   Target: sam:portAG
   Instance: peer
   Purpose: mod
   Custom: true
   Data: fabric:SanCloud
   Method: FsmFabricSanCloudSwitchModeSwConfigPeer

 WaitForUserAck
NO COMMENTS

  On Success: SwConfigLocal
  On Fail:
  Restart: INIT_RESET
  Retry: RETRY_FOREVER
  Retry Exhaust: RETRY_EXHAUST_RESET_FSM
  Retry Interval: 1000000000
  Retry Count: 20
  Unavailable: UNAVAIL_RETRY
  Message: Waiting for User Acknowledgment to configuration on primary(FSM-STAGE:sam:dme:FabricSanCloudSwitchMode:WaitForUserAck)

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

 SwConfigLocal
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: Fabric interconnect FC mode configuration to primary(FSM-STAGE:sam:dme:FabricSanCloudSwitchMode:SwConfigLocal)

  Notify:
   Target: sam:portAG
   Instance: self
   Purpose: mod
   Custom: true
   Data: fabric:SanCloud
   Method: FsmFabricSanCloudSwitchModeSwConfigLocal