|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH OSSTEST 04/12] toolstack: distinguish local and remote migration support
On Mon, 2015-02-09 at 11:09 +0000, Wei Liu wrote:
> Libvirt supports migrating a guest to remote host but not local host.
Jim, is that right?
(Or alternatively, Wei: Do you have a reference for that?)
> diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm
> index acb801c..a804ed5 100644
> --- a/Osstest/Toolstack/libvirt.pm
> +++ b/Osstest/Toolstack/libvirt.pm
> @@ -64,9 +64,22 @@ sub shutdown_wait ($$$) {
> guest_await_destroy($gho,$timeout);
> }
>
> -sub migrate_check ($) {
> - my ($self) = @_;
> - die "Migration check is not yet supported on libvirt.";
> +sub migrate_check ($$) {
> + my ($self, $mode) = @_;
> + my $rc;
> +
> + if ($mode eq 'local') {
> + # local migration is not supported
> + $rc = 1;
> + } else {
> + # $mode eq 'remote'
Perhaps a bool $local would be better than having to sanity check the
values?
> diff --git a/ts-migrate-support-check b/ts-migrate-support-check
> index cd41f68..d237710 100755
> --- a/ts-migrate-support-check
> +++ b/ts-migrate-support-check
> @@ -23,5 +23,8 @@ use Osstest::TestSupport;
> tsreadconfig();
>
> our $ho = selecthost($ARGV[0]);
> +# $ARGV[1] is guest name, $ARG[2] is migration mode.
> +# Mode should be either "local" or "remote"
> +our $mode = $ARGV[2];
>
> -exit(toolstack($ho)->migrate_check());
> +exit(toolstack($ho)->migrate_check($mode));
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |