On Mon, Mar 7, 2016 at 6:17 PM, Jean-Pierre Ribeauville < jpribeauvi...@axway.com> wrote:
> Hi, > > > > > > I’m a little bit lost by looking how to migrate a Guest between two nodes > of a same cluster by using ovirt python API . > Copy-paste from oVirt system tests[1], adapt as you need: def vm_migrate(prefix): api = prefix.virt_env.engine_vm().get_api() host_names = [h.name() for h in prefix.virt_env.host_vms()] migrate_params = params.Action( host=params.Host( name=sorted(host_names)[1] ), ) api.vms.get(VM1_NAME).migrate(migrate_params) testlib.assert_true_within_short( lambda: api.vms.get(VM1_NAME).status.state == 'up', ) Y. [1] https://gerrit.ovirt.org/#/c/48206/4/basic_suite_3.6/test-scenarios/004_basic_sanity.py > > > Is it the good way to start for ovirt engine sources ? > > > > Thx for help. > > > > Regards, > > > > Jean-Pierre RIBEAUVILLE > > > > +33 1 4717 2049 > > > > [image: axway_logo_tagline_87px] > > > > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users