Revision 1c3231aa lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
2020 2020
    return result
2021 2021

  
2022 2022
  @classmethod
2023
  def GetInstanceConsole(cls, instance, hvparams, beparams):
2023
  def GetInstanceConsole(cls, instance, primary_node, hvparams, beparams):
2024 2024
    """Return a command for connecting to the console of an instance.
2025 2025

  
2026 2026
    """
......
2032 2032
             "UNIX-CONNECT:%s" % cls._InstanceSerial(instance.name)]
2033 2033
      return objects.InstanceConsole(instance=instance.name,
2034 2034
                                     kind=constants.CONS_SSH,
2035
                                     host=instance.primary_node,
2035
                                     host=primary_node.name,
2036 2036
                                     user=constants.SSH_CONSOLE_USER,
2037 2037
                                     command=cmd)
2038 2038

  

Also available in: Unified diff