Revision c42be2c0 lib/hypervisor/hv_lxc.py
b/lib/hypervisor/hv_lxc.py | ||
---|---|---|
407 | 407 |
return self.GetLinuxNodeInfo() |
408 | 408 |
|
409 | 409 |
@classmethod |
410 |
def GetInstanceConsole(cls, instance, primary_node, hvparams, beparams): |
|
410 |
def GetInstanceConsole(cls, instance, primary_node, node_group, |
|
411 |
hvparams, beparams): |
|
411 | 412 |
"""Return a command for connecting to the console of an instance. |
412 | 413 |
|
413 | 414 |
""" |
415 |
ndparams = node_group.FillND(primary_node) |
|
414 | 416 |
return objects.InstanceConsole(instance=instance.name, |
415 | 417 |
kind=constants.CONS_SSH, |
416 | 418 |
host=primary_node.name, |
419 |
port=ndparams.get(constants.ND_SSH_PORT), |
|
417 | 420 |
user=constants.SSH_CONSOLE_USER, |
418 | 421 |
command=["lxc-console", "-n", instance.name]) |
419 | 422 |
|
Also available in: Unified diff