CloudStack
  1. CloudStack
  2. CLOUDSTACK-2562

[VMWARE] As per the code, currently CloudStack fails to program PF/NAT/LB rules when VR is restarted by VMWARE HA

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None
    • Environment:
      commit # b3e9b2a5dc0439cad60058d693cba9d3c714af70

      Description

      When VR is restarted out-of-band by VMware HA then there is no way currently CloudStack can reprogram PF/NAT/LB rules.

      Here is the code snippet from .//server/src/com/cloud/vm/VirtualMachineManagerImpl.java

      if (trackExternalChange) {
      if (serverState == State.Starting) {
      if (vm.getHostId() != null && vm.getHostId() != hostId)

      { s_logger.info("CloudStack is starting VM on host " + vm.getHostId() + ", but status report comes from a different host " + hostId + ", skip status sync for vm: " + vm.getInstanceName()); return null; }

      }

      if (serverState == State.Running) {
      try {
      //
      // we had a bug that sometimes VM may be at Running State
      // but host_id is null, we will cover it here.
      // means that when CloudStack DB lost of host information,
      // we will heal it with the info reported from host
      //
      if (vm.getHostId() == null || hostId != vm.getHostId()) {
      if (s_logger.isDebugEnabled())

      { s_logger.debug("detected host change when VM " + vm + " is at running state, VM could be live-migrated externally from host " + vm.getHostId() + " to host " + hostId); }

      stateTransitTo(vm, VirtualMachine.Event.AgentReportMigrated, hostId);
      }
      } catch (NoTransitionException e)

      { s_logger.warn(e.getMessage()); }

      }
      }

        Activity

        Hide
        Abhinandan Prateek added a comment -

        Sateesh, This was fixed can you comment ?

        Show
        Abhinandan Prateek added a comment - Sateesh, This was fixed can you comment ?
        Hide
        Abhinandan Prateek added a comment -

        Sateesh, I remember this bug was fixed by you. Can you verify and close this ticket.

        Show
        Abhinandan Prateek added a comment - Sateesh, I remember this bug was fixed by you. Can you verify and close this ticket.
        Hide
        Damodar Reddy T added a comment -

        As it is fixed by Sateesh as part of another fix.

        Show
        Damodar Reddy T added a comment - As it is fixed by Sateesh as part of another fix.

          People

          • Assignee:
            Damodar Reddy T
            Reporter:
            venkata swamybabu budumuru
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development