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