All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan O'Hara <rohara@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] resource-agents: Fix migrateuriopt setting
Date: Tue, 7 Dec 2010 09:14:24 -0600	[thread overview]
Message-ID: <20101207151424.GA27700@redhat.com> (raw)
In-Reply-To: <1291649007-28386-1-git-send-email-lhh@redhat.com>


ACK.

On Mon, Dec 06, 2010 at 10:23:27AM -0500, Lon Hohberger wrote:
> When a user was specifically setting migration_uri (for example,
> to get around ssh banners causing migration to fail),
> vm.sh was leaving the migrateuriopt variable unset when using
> QEMU/KVM.  This caused the printf() during command line generation
> to be incorrect.
> 
> This means the generated command line looked like this:
> 
> 	virsh migrate --live vm1 \
>  	   qemu+ssh://node1.example.com/system?command=/bin/quiet_ssh.sh
> 	   node1.example.com
> 
> Instead of:
> 
> 	virsh migrate --live vm1 \
>  	   qemu+ssh://node1.example.com/system?command=/bin/quiet_ssh.sh
> 	   tcp:node1.example.com
> 	   ^^^^
> 
> Resolves: rhbz#659477
> 
> Signed-off-by: Lon Hohberger <lhh@redhat.com>
> ---
>  rgmanager/src/resources/vm.sh |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh
> index e23d5ba..22f29f1 100644
> --- a/rgmanager/src/resources/vm.sh
> +++ b/rgmanager/src/resources/vm.sh
> @@ -810,7 +810,6 @@ validate_all()
>  		# Virsh makes it easier to do this.  Really.
>  		if [ "$OCF_RESKEY_hypervisor" = "qemu" ]; then
>  			export OCF_RESKEY_migration_uri="qemu+ssh://%s/system"
> -			export migrateuriopt="tcp:%s"
>  		fi
>  
>  		# I just need to believe in it more.
> @@ -826,6 +825,10 @@ validate_all()
>  		return $OCF_ERR_ARGS
>  	fi
>  
> +	if [ "$OCF_RESKEY_hypervisor" = "qemu" ]; then
> +		export migrateuriopt="tcp:%s"
> +	fi
> +
>  	#virsh list --all | awk '{print $2}' | grep -q "^$OCF_RESKEY_name\$"
>  	return $?
>  }
> -- 
> 1.7.2.3



      reply	other threads:[~2010-12-07 15:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 15:23 [Cluster-devel] [PATCH] resource-agents: Fix migrateuriopt setting Lon Hohberger
2010-12-07 15:14 ` Ryan O'Hara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101207151424.GA27700@redhat.com \
    --to=rohara@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.