Mailing List Archive

Suggested fix for Xen RA (live migration over dedicated network)
Hi!

If you want to use node_ip_attribute, you should make sure the code has this fix:
---
# diff -u /usr/lib/ocf/resource.d/heartbeat/Xen.orig /usr/lib/ocf/resource.d/heartbeat/Xen
--- /usr/lib/ocf/resource.d/heartbeat/Xen.orig 2012-07-24 10:54:12.000000000 +0200
+++ /usr/lib/ocf/resource.d/heartbeat/Xen 2012-09-27 17:33:06.000000000 +0200
@@ -366,7 +366,7 @@

Xen_Migrate_To() {
target_node="$OCF_RESKEY_CRM_meta_migrate_target"
- target_attr="$OCF_RESKEY_CRM_node_ip_attribute"
+ target_attr="$OCF_RESKEY_node_ip_attribute"
target_addr="$target_node"

if Xen_Status ${DOMAIN_NAME}; then
---

Regards,
Ulrich


_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Re: Suggested fix for Xen RA (live migration over dedicated network) [ In reply to ]
Hi Ulrich,

On Thu, Sep 27, 2012 at 05:41:54PM +0200, Ulrich Windl wrote:
> Hi!
>
> If you want to use node_ip_attribute, you should make sure the code has this fix:
> ---
> # diff -u /usr/lib/ocf/resource.d/heartbeat/Xen.orig /usr/lib/ocf/resource.d/heartbeat/Xen
> --- /usr/lib/ocf/resource.d/heartbeat/Xen.orig 2012-07-24 10:54:12.000000000 +0200
> +++ /usr/lib/ocf/resource.d/heartbeat/Xen 2012-09-27 17:33:06.000000000 +0200
> @@ -366,7 +366,7 @@
>
> Xen_Migrate_To() {
> target_node="$OCF_RESKEY_CRM_meta_migrate_target"
> - target_attr="$OCF_RESKEY_CRM_node_ip_attribute"
> + target_attr="$OCF_RESKEY_node_ip_attribute"
> target_addr="$target_node"
>
> if Xen_Status ${DOMAIN_NAME}; then
> ---

Good catch! Applied and pushed.

Cheers,

Dejan

>
> Regards,
> Ulrich
>
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/