Revision 4a0e011f lib/rpc.py

b/lib/rpc.py
576 576
                                [self._InstDict(inst), reboot_type,
577 577
                                 shutdown_timeout])
578 578

  
579
  def call_instance_os_add(self, node, inst, reinstall):
579
  def call_instance_os_add(self, node, inst, reinstall, debug):
580 580
    """Installs an OS on the given instance.
581 581

  
582 582
    This is a single-node call.
583 583

  
584 584
    """
585 585
    return self._SingleNodeCall(node, "instance_os_add",
586
                                [self._InstDict(inst), reinstall])
586
                                [self._InstDict(inst), reinstall, debug])
587 587

  
588
  def call_instance_run_rename(self, node, inst, old_name):
588
  def call_instance_run_rename(self, node, inst, old_name, debug):
589 589
    """Run the OS rename script for an instance.
590 590

  
591 591
    This is a single-node call.
592 592

  
593 593
    """
594 594
    return self._SingleNodeCall(node, "instance_run_rename",
595
                                [self._InstDict(inst), old_name])
595
                                [self._InstDict(inst), old_name, debug])
596 596

  
597 597
  def call_instance_info(self, node, instance, hname):
598 598
    """Returns information about a single instance.
......
988 988
    return self._SingleNodeCall(node, "blockdev_snapshot", [cf_bdev.ToDict()])
989 989

  
990 990
  def call_snapshot_export(self, node, snap_bdev, dest_node, instance,
991
                           cluster_name, idx):
991
                           cluster_name, idx, debug):
992 992
    """Request the export of a given snapshot.
993 993

  
994 994
    This is a single-node call.
......
996 996
    """
997 997
    return self._SingleNodeCall(node, "snapshot_export",
998 998
                                [snap_bdev.ToDict(), dest_node,
999
                                 self._InstDict(instance), cluster_name, idx])
999
                                 self._InstDict(instance), cluster_name,
1000
                                 idx, debug])
1000 1001

  
1001 1002
  def call_finalize_export(self, node, instance, snap_disks):
1002 1003
    """Request the completion of an export operation.
......
1025 1026
    return self._SingleNodeCall(node, "export_info", [path])
1026 1027

  
1027 1028
  def call_instance_os_import(self, node, inst, src_node, src_images,
1028
                              cluster_name):
1029
                              cluster_name, debug):
1029 1030
    """Request the import of a backup into an instance.
1030 1031

  
1031 1032
    This is a single-node call.
......
1033 1034
    """
1034 1035
    return self._SingleNodeCall(node, "instance_os_import",
1035 1036
                                [self._InstDict(inst), src_node, src_images,
1036
                                 cluster_name])
1037
                                 cluster_name, debug])
1037 1038

  
1038 1039
  def call_export_list(self, node_list):
1039 1040
    """Gets the stored exports list.

Also available in: Unified diff