Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow migrating to UNIX socket
We don't allow local migrations for couple of reasons.  The checks for that were
being added throughout the times, but one of the early ones was actually just
checking for the server part of the destination URI.  This check is surpassed by
other checks (host UUID and hostname) and there are also other checks that would
fail when migrating to the same daemon as duplicate guest UUID.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
  • Loading branch information
nertpinx committed Oct 16, 2018
1 parent 3a1cdb0 commit 5f0bcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libvirt-domain.c
Expand Up @@ -3298,7 +3298,7 @@ virDomainMigrateCheckNotLocal(const char *dconnuri)

if (!(tempuri = virURIParse(dconnuri)))
goto cleanup;
if (!tempuri->server || STRPREFIX(tempuri->server, "localhost")) {
if (tempuri->server && STRPREFIX(tempuri->server, "localhost")) {
virReportInvalidArg(dconnuri, "%s",
_("Attempt to migrate guest to the same host"));
goto cleanup;
Expand Down

0 comments on commit 5f0bcbf

Please sign in to comment.