Commit fddad11c authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[feature] default lease creation on skylakes

Add an option to create haswell allocations, but default to skylake

Skylakes are required for power management.
parent 159f4f37
......@@ -32,7 +32,10 @@ def do_create(argv):
end_time = start_time + datetime.timedelta(hours=argv.length)
# resource properties
props = ['=', '$node_type', 'compute_haswell']
if argv.haswell:
props = ['=', '$node_type', 'compute_haswell']
props = ['=', '$node_type', 'compute_skylake']
resources = {'min': node_count,
'max': node_count,
'resource_type': 'physical:host',
......@@ -102,6 +105,9 @@ def main():
# create a lease
parser_create = subparsers.add_parser("create", help="Create a lease")
help="Use haswell nodes instead of skylake",
parser_create.add_argument("name", help="Lease name")
parser_create.add_argument("size", help="Number of hosts to lease",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment