Fix checking of node free disk in CreateInstance
authorIustin Pop <iustin@google.com>
Mon, 28 Jan 2008 14:42:28 +0000 (14:42 +0000)
committerIustin Pop <iustin@google.com>
Mon, 28 Jan 2008 14:42:28 +0000 (14:42 +0000)
commit6248146c62a909ba6ddae9b149667b6caea165d5
tree7ee79a7aaec3fb47e0a9dcbdf0873931f06b2ea6
parent4cc4c4a041fdfc6dbc39575dc5032780f553f19b
Fix checking of node free disk in CreateInstance

This patch does two things:
  - checks that the result values from call_node_info are valid integer
    values and aborts otherwise
  - skips disk space computation for the DT_DISKLESS case

The most important point of the patch is the verification of results
from the rpc call, as it prepares for a patch that allows failures to be
better reported from the remote node.

Reviewed-by: ultrotter
lib/cmdlib.py