Revision 4a0e011f lib/cmdlib.py

b/lib/cmdlib.py
3990 3990
    _StartInstanceDisks(self, inst, None)
3991 3991
    try:
3992 3992
      feedback_fn("Running the instance OS create scripts...")
3993
      result = self.rpc.call_instance_os_add(inst.primary_node, inst, True)
3993
      # FIXME: pass debug option from opcode to backend
3994
      result = self.rpc.call_instance_os_add(inst.primary_node, inst, True, 0)
3994 3995
      result.Raise("Could not install OS for instance %s on node %s" %
3995 3996
                   (inst.name, inst.primary_node))
3996 3997
    finally:
......
4174 4175
    _StartInstanceDisks(self, inst, None)
4175 4176
    try:
4176 4177
      result = self.rpc.call_instance_run_rename(inst.primary_node, inst,
4177
                                                 old_name)
4178
                                                 old_name, 0)
4178 4179
      msg = result.fail_msg
4179 4180
      if msg:
4180 4181
        msg = ("Could not run OS rename script for instance %s on node %s"
......
6227 6228
    if iobj.disk_template != constants.DT_DISKLESS:
6228 6229
      if self.op.mode == constants.INSTANCE_CREATE:
6229 6230
        feedback_fn("* running the instance OS create scripts...")
6230
        result = self.rpc.call_instance_os_add(pnode_name, iobj, False)
6231
        # FIXME: pass debug option from opcode to backend
6232
        result = self.rpc.call_instance_os_add(pnode_name, iobj, False, 0)
6231 6233
        result.Raise("Could not add os for instance %s"
6232 6234
                     " on node %s" % (instance, pnode_name))
6233 6235

  
......
6236 6238
        src_node = self.op.src_node
6237 6239
        src_images = self.src_images
6238 6240
        cluster_name = self.cfg.GetClusterName()
6241
        # FIXME: pass debug option from opcode to backend
6239 6242
        import_result = self.rpc.call_instance_os_import(pnode_name, iobj,
6240 6243
                                                         src_node, src_images,
6241
                                                         cluster_name)
6244
                                                         cluster_name, 0)
6242 6245
        msg = import_result.fail_msg
6243 6246
        if msg:
6244 6247
          self.LogWarning("Error while importing the disk images for instance"
......
8146 8149
        feedback_fn("Exporting snapshot %s from %s to %s" %
8147 8150
                    (idx, src_node, dst_node.name))
8148 8151
        if dev:
8152
          # FIXME: pass debug from opcode to backend
8149 8153
          result = self.rpc.call_snapshot_export(src_node, dev, dst_node.name,
8150
                                                 instance, cluster_name, idx)
8154
                                                 instance, cluster_name,
8155
                                                 idx, 0)
8151 8156
          msg = result.fail_msg
8152 8157
          if msg:
8153 8158
            self.LogWarning("Could not export disk/%s from node %s to"

Also available in: Unified diff