Revision b44bd844 scripts/gnt-instance

b/scripts/gnt-instance
744 744

  
745 745
  """
746 746
  op = opcodes.OpStartupInstance(instance_name=name,
747
                                 force=opts.force)
747
                                 force=opts.force,
748
                                 ignore_offline_nodes=opts.ignore_offline)
748 749
  # do not add these parameters to the opcode unless they're defined
749 750
  if opts.hvparams:
750 751
    op.hvparams = opts.hvparams
......
782 783

  
783 784
  """
784 785
  return opcodes.OpShutdownInstance(instance_name=name,
785
                                    timeout=opts.timeout)
786
                                    timeout=opts.timeout,
787
                                    ignore_offline_nodes=opts.ignore_offline)
786 788

  
787 789

  
788 790
def ReplaceDisks(opts, args):
......
1487 1489
    [m_node_opt, m_pri_node_opt, m_sec_node_opt, m_clust_opt,
1488 1490
     m_node_tags_opt, m_pri_node_tags_opt, m_sec_node_tags_opt,
1489 1491
     m_inst_tags_opt, m_inst_opt, m_force_multi, TIMEOUT_OPT, SUBMIT_OPT,
1490
     DRY_RUN_OPT, PRIORITY_OPT],
1492
     DRY_RUN_OPT, PRIORITY_OPT, IGNORE_OFFLINE_OPT],
1491 1493
    "<instance>", "Stops an instance"),
1492 1494
  'startup': (
1493 1495
    GenericManyOps("startup", _StartupInstance), [ArgInstance()],
1494 1496
    [FORCE_OPT, m_force_multi, m_node_opt, m_pri_node_opt, m_sec_node_opt,
1495 1497
     m_node_tags_opt, m_pri_node_tags_opt, m_sec_node_tags_opt,
1496 1498
     m_inst_tags_opt, m_clust_opt, m_inst_opt, SUBMIT_OPT, HVOPTS_OPT,
1497
     BACKEND_OPT, DRY_RUN_OPT, PRIORITY_OPT],
1499
     BACKEND_OPT, DRY_RUN_OPT, PRIORITY_OPT, IGNORE_OFFLINE_OPT],
1498 1500
    "<instance>", "Starts an instance"),
1499 1501
  'reboot': (
1500 1502
    GenericManyOps("reboot", _RebootInstance), [ArgInstance()],

Also available in: Unified diff