CreateInstance: separate the reading of the export
CreateInstance: separate the reading of the export

We move the reading of the export to a separate function, to simplify
CheckPrepreq and also read it earlier. This will allow building the
missing opcode parameters from the export information, instead of
requiring all of them on the command line.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Michael Hanselmann <68b67885ff74281219b4a4be33cc20fd45078d7c@google.com>

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