uzh / vm-mad

Dynamically grow or shrink GridEngine clusters using cloud-based nodes
https://arxiv.org/abs/1302.2529
Apache License 2.0
3 stars 2 forks source link

`simul.py` prints exception when called without arguments #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Start `simul.py` without any argument.
2. See it start and print an exception:

    $ ./simul.py 
    vmmad: DEBUG: Creating LibCloud's 'Dummy' provider ...
    vmmad: INFO: Using cloud provider 'DummyNodeDriver'.
    ....
    vmmad: INFO: VMs will use image '1' (Ubuntu 9.10) on hardware kind '1' (Small)
    Traceback (most recent call last):
      File "./simul.py", line 265, in <module>
        OrchestratorSimulation(args.max_vms, args.max_delta, args.max_idle, args.startup_delay, args.job_number, args.min_duration, args.max_duration, args.output_file, args.csv_file, args.start_time, args.time_interval, args.cluster_size).run(0)
      File "./simul.py", line 111, in __init__
        reverse=True))
      File "./simul.py", line 108, in <genexpr>
        for row in rows if float(row['SUBMITTED_AT']) > self.starting_time),
    KeyError: 'SUBMITTED_AT'

What is the expected output? What do you see instead?

If some argument is expected, the program should print a usage error
and exit with code 1.  See the `argparse` documentation.

Original issue reported on code.google.com by riccardo.murri@gmail.com on 17 Apr 2012 at 12:53

GoogleCodeExporter commented 9 years ago
Wrong file format was the cause of the error.

(We should have graceful handling of errors, but that's a different report.)

Original comment by riccardo.murri@gmail.com on 17 Apr 2012 at 2:34