Revision 4379b1fa
b/qa/ganeti-qa.py | ||
---|---|---|
143 | 143 |
if qa_config.TestEnabled('instance-modify'): |
144 | 144 |
RunTest(qa_instance.TestInstanceModify, instance) |
145 | 145 |
|
146 |
if qa_config.TestEnabled('instance-console'): |
|
147 |
RunTest(qa_instance.TestInstanceConsole, instance) |
|
148 |
|
|
146 | 149 |
if qa_config.TestEnabled('instance-reinstall'): |
147 | 150 |
RunTest(qa_instance.TestInstanceShutdown, instance) |
148 | 151 |
RunTest(qa_instance.TestInstanceReinstall, instance) |
b/qa/qa-sample.yaml | ||
---|---|---|
64 | 64 |
instance-automatic-restart: False |
65 | 65 |
instance-consecutive-failures: False |
66 | 66 |
|
67 |
# This test might fail with certain hypervisor types, depending on whether |
|
68 |
# they support the `gnt-instance console' command. |
|
69 |
instance-console: False |
|
70 |
|
|
67 | 71 |
# Make sure not to include the disk(s) required for Dom0 to be included in |
68 | 72 |
# the volume group used for instances. Otherwise the whole system may stop |
69 | 73 |
# working until restarted. |
b/qa/qa_instance.py | ||
---|---|---|
184 | 184 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
185 | 185 |
|
186 | 186 |
|
187 |
@qa_utils.DefineHook('instance-console') |
|
188 |
def TestInstanceConsole(instance): |
|
189 |
"""gnt-instance console""" |
|
190 |
master = qa_config.GetMasterNode() |
|
191 |
|
|
192 |
cmd = ['gnt-instance', 'console', '--show-cmd', instance['name']] |
|
193 |
AssertEqual(StartSSH(master['primary'], |
|
194 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
|
195 |
|
|
196 |
|
|
187 | 197 |
@qa_utils.DefineHook('backup-export') |
188 | 198 |
def TestInstanceExport(instance, node): |
189 | 199 |
"""gnt-backup export""" |
Also available in: Unified diff