if error_messages: for e in error_messages: print e raise SystemExit, 1 args = ([{'tag':'partition', 'name':partname} for partname in parts], {'queue':opts.queue}, whoami) parts = component_call(system.set_partitions, args) elif opts.dump: args = ([{'tag':'partition', 'name':'*', 'size':'*', 'state':'*', 'functional':'*', 'scheduled':'*', 'queue':'*', 'deps':'*'}], ) parts = component_call(system.get_partitions, args) elif opts.boot_stop: if sys_type == 'bgp': print "Boot control not available for BG/P systems" sys.exit(0) system.halt_booting(whoami) print "Halting booting: halting scheduling is advised" sys.exit(0) elif opts.boot_start: if sys_type == 'bgp': print "Boot control not available for BG/P systems" sys.exit(0) system.resume_booting(whoami) print "Enabling booting" sys.exit(0) elif opts.boot_status: if sys_type == 'bgp': print "Boot control not available for BG/P systems" sys.exit(0) boot_status = system.booting_status() if not boot_status:
args = ([{ 'tag': 'partition', 'name': '*', 'size': '*', 'state': '*', 'functional': '*', 'scheduled': '*', 'queue': '*', 'deps': '*' }], ) parts = component_call(system.get_partitions, args) elif opts.boot_stop: if sys_type == 'bgp': print "Boot control not available for BG/P systems" sys.exit(0) system.halt_booting(whoami) print "Halting booting: halting scheduling is advised" sys.exit(0) elif opts.boot_start: if sys_type == 'bgp': print "Boot control not available for BG/P systems" sys.exit(0) system.resume_booting(whoami) print "Enabling booting" sys.exit(0) elif opts.boot_status: if sys_type == 'bgp': print "Boot control not available for BG/P systems" sys.exit(0) boot_status = system.booting_status() if not boot_status: