Revision 8a4e8898

b/qa/ganeti-qa.py
151 151
    RunTest(qa_instance.TestInstanceReinstall, instance)
152 152
    RunTest(qa_instance.TestInstanceStartup, instance)
153 153

  
154
  if qa_config.TestEnabled('instance-reboot'):
155
    RunTest(qa_instance.TestInstanceReboot, instance)
156

  
154 157
  if qa_config.TestEnabled('tags'):
155 158
    RunTest(qa_tags.TestInstanceTags, instance)
156 159

  
b/qa/qa-sample.yaml
61 61
  instance-export: True
62 62
  instance-import: True
63 63
  instance-reinstall: True
64
  instance-reboot: True
64 65
  instance-shutdown: True
65 66
  instance-automatic-restart: False
66 67
  instance-consecutive-failures: False
b/qa/qa_instance.py
111 111
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
112 112

  
113 113

  
114
@qa_utils.DefineHook('instance-reboot')
115
def TestInstanceReboot(instance):
116
  """gnt-instance reboot"""
117
  master = qa_config.GetMasterNode()
118

  
119
  for reboottype in ["soft", "hard", "full"]:
120
    cmd = ['gnt-instance', 'reboot', '--type=%s' % reboottype,
121
           instance['name']]
122
    AssertEqual(StartSSH(master['primary'],
123
                         utils.ShellQuoteArgs(cmd)).wait(), 0)
124

  
125

  
114 126
@qa_utils.DefineHook('instance-reinstall')
115 127
def TestInstanceReinstall(instance):
116 128
  """gnt-instance reinstall"""

Also available in: Unified diff