Hi Dimitris,

not sure how far it will help you on this, but I ran into a similar problem
regarding creating different instances with different disk templates. I
sent a patch "[PATCH master 08/15] qa_instance: refactoring wrt disk
templates" the other day (it is not reviewed yet). Maybe you can built on
top of that once it is in.

Cheers,
Helga


On Tue, Mar 12, 2013 at 7:14 PM, Dimitris Aragiorgis <[email protected]>wrote:

> * Bernardo Dal Seno <[email protected]> [2013-03-12 17:05:26 +0100]:
>
> > On 12 March 2013 15:51, Helga Velroyen <[email protected]> wrote:
> > > Hi!
> > >
> > >
> > >> this patch is a fix on top of the last one. I hope this covers all the
> > >> issues you mentioned (sorry for the lint errors).
> > >>
> > >> May I ask why AquireInstance() returns an inst with _template None?
> This
> > >> way I have to manually set the template inside the test (via
> > >> qa_config.SetInstanceTemplate). I used qa_config.get("os") to get the
> > >> support os. Correct?
> >
> > Dimitris, I think the problem here is that you are writing new
> > functions to create and delete instances instead of using those in
> > qa_instance. If I haven't misunderstood what you are doing, you should
> > add a function in the ganeti-qa.py file that creates the instance,
> > launches the network tests in qa_network, and then removes the
> > instance. You can select any of the allowed disk template (if the
> > actual template doesn't matter for you).
> >
>
> Hello Bernardo,
>
> Thanks a lot for pointing this out. My problem is that I try to test all
> corner cases for networks including the ones related to instances. One
> way to go would be to extend qa_instance to include nics with networks
> (again there I should create/connect networks) but I decided not to mess
> up existing qa.  On the other hand I need more that one instances with
> different nic configurations. So launching one instance and then running
> the network qa is impossible. For the time being I believe I should go
> with Helga's suggestions and in the future try to merge the instance
> related tests in qa_instance.
>
> Does this sound good?
> dimara
>
> > Bernardo
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQEbBAEBCAAGBQJRP3BsAAoJEMk10sCdtK5jgI0H9RwGrYew2AGgVVt1R8OEYnLX
> 0KFJysp3Y+8s40FrDby35M0PtDGBKn7zWmcaLQhZJ6ks7gBn/2BpbvYfVS9KFh2j
> TRdHQw7KaTRm9edpxeaHIzuHd7b705FC9a/GjdQQRpHVND2OzDYQwlyp799IIUJM
> 4OBd1LkdJqlVhTi/AhS29EUcuPNfHMbBIPbCcgvZdAbPxnholewJqLPnKq80fQc+
> UjGIBZlVxUSH+j4uTXwSOkP+MjRd6hzCdkMncNSL7Hx0U7hSGzf6hzLeFtJDffPf
> hguWapajKVl6I+CLZwAPsVs653Mss/buFFE7jin77rivQcgMf0Ula1EFZH3pOA==
> =lhJC
> -----END PGP SIGNATURE-----
>
>

Reply via email to