3 # Attempt to reboot a node in debug state.
15 from monitor.bootman import *
16 from monitor.util import file
18 # MAIN -------------------------------------------------------------------
21 from monitor import parser as parsermodule
22 parser = parsermodule.getParser()
24 parser.set_defaults(child=False, collect=False, nosetup=False, verbose=False,
25 force=None, quiet=False)
26 parser.add_option("", "--child", dest="child", action="store_true",
27 help="This is the child mode of this process.")
28 parser.add_option("", "--force", dest="force", metavar="boot_state",
29 help="Force a boot state passed to BootManager.py.")
30 parser.add_option("", "--quiet", dest="quiet", action="store_true",
31 help="Extra quiet output messages.")
32 parser.add_option("", "--verbose", dest="verbose", action="store_true",
33 help="Extra debug output messages.")
34 parser.add_option("", "--nonet", dest="nonet", action="store_true",
35 help="Do not setup the network, use existing log files to re-run a test pass.")
36 parser.add_option("", "--collect", dest="collect", action="store_true",
37 help="No action, just collect dmesg, and bm.log")
38 parser.add_option("", "--nosetup", dest="nosetup", action="store_true",
39 help="Do not perform the orginary setup phase.")
41 parser = parsermodule.getParser(['nodesets', 'defaults'], parser)
42 config = parsermodule.parse_args(parser)
45 nodes = file.getListFromFile(config.nodelist)
47 nodes = [ config.node ]
54 lb = plccache.plcdb_hn2lb[node]
55 sitehist = SiteInterface.get_or_make(loginbase=lb)
57 restore(sitehist, node, config=None, forced_action=None)
59 if __name__ == "__main__":