qa_instance: refactoring wrt disk templates
qa_instance: refactoring wrt disk templates

This patch is a preparation for later patches in QA in this series
it refactors the instance QA to make it more flexible regarding
creation of instances with different disk templates. Right now we
only support creation of instances with disk templates 'drbd', 'plain',
and 'diskless'. With our current plans to improve storage handling,
we should make QA more flexible to also create instances of other
templates. This patch restructures the code in a way that instances
can be created more easily to be used in other QA scripts.

Signed-off-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>
Reviewed-by: Michele Tartara <e28994c840ce8e1c5c7d881013b818e2358d00c1@google.com>

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