Missed the line below with the plus...  I just ran the sed expression

Thank you

Mark

On Fri, Jan 15, 2010 at 4:17 PM, Florian Haas <[email protected]>wrote:

> On 01/15/2010 10:05 PM, Mark Burgo wrote:
> > Sorry for the reply only to you!
> >
> > I will add the meta tag and try it then
> >
> > The meta tag is not mentioned in the VirtualDomain script or on
> > the Documentation Page
> >
> http://people.linbit.com/~florian/heartbeat-users-guide/re-ra-VirtualDomain.html<http://people.linbit.com/%7Eflorian/heartbeat-users-guide/re-ra-VirtualDomain.html>
>
> Granted, it probably could use a reminder there. But it's actually
> documented here:
>
>
> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ch09s03s04.html
>
> "The resource must have the allow-migrate meta-attribute set to true
> (not the default)."
>
> > The transport I figured out by running the sed script on what should be
> > returned. If using qemu:///system as the hypervisor it changed it to
> > qemutcp://kvm2/system on the system I have configured. That is why I
> > used the plus.
>
> Don't think so.
>
> remoteuri=$(echo ${OCF_RESKEY_hypervisor} | sed -e
>
> "s,\(.*\)://[^/:]*\(:\?[0-9]*\)/\(.*\),\1${transport_suffix}://${target_node}\2/\3,")
>
> Yes I'm responsible for that sed expression and it's horrible. But
> ${transport_suffix} is defined a few lines above as
> transport_suffix="+${OCF_RESKEY_migration_transport}"
>
> Note the "+". The RA adds it for you. You don't have to. Don't believe me?
>
> $ export OCF_RESKEY_migration_transport=tcp
> $ export OCF_RESKEY_hypervisor=qemu:///system
> $ transport_suffix="+${OCF_RESKEY_migration_transport}"
> $ remoteuri=$(echo ${OCF_RESKEY_hypervisor} | sed -e
>
> "s,\(.*\)://[^/:]*\(:\?[0-9]*\)/\(.*\),\1${transport_suffix}://${target_node}\2/\3,")
> $ echo $remoteuri
> qemu+tcp:///system
>
> Excuse line wraps. But this does work for me.
>
> Florian
>
>
>
> Florian
>
>
> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
>
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to