Reorder checks in instance create
Reorder checks in instance create

This patch reorders the checks in the instance create prereq so that all
checks and normalisations that are not node-dependent are done before
the node dependent checks.

This is done so that, after the instance-related opcode parameters are
checked and fixed, we can run the allocator and compute the primary (and
any secondary) nodes, and only then proceed with node-related checks.

Reviewed-by: ultrotter


apyrgio/ganeti,leshchevds/ganeti,bitemyapp/ganeti,grnet/snf-ganeti,ganeti-github-testing/ganeti-test-1,apyrgio/ganeti,mbakke/ganeti,leshchevds/ganeti,ganeti/ganeti,ganeti/ganeti,yiannist/ganeti,apyrgio/snf-ganeti,mbakke/ganeti,grnet/snf-ganeti,bitemyapp/ganeti,mbakke/ganeti,yiannist/ganeti,ganeti-github-testing/ganeti-test-1,dimara/ganeti,andir/ganeti,onponomarev/ganeti,yiannist/ganeti,onponomarev/ganeti,apyrgio/snf-ganeti,andir/ganeti,dimara/ganeti,andir/ganeti,leshchevds/ganeti,ganeti/ganeti