Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Cannot Reproduce
    • 4.2.0
    • 4.3.0
    • Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • 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()); }

      }
      }

      Attachments

        Activity

          People

            damoder.reddy Damodar Reddy T
            swamy Venkata Swamy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: