WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-API] [PATCH] RE: XCP: xe host-evacuate generates wrong error messag

To: 'George Shuklin' <george.shuklin@xxxxxxxxx>
Subject: [Xen-API] [PATCH] RE: XCP: xe host-evacuate generates wrong error message
From: Rob Hoes <Rob.Hoes@xxxxxxxxxx>
Date: Tue, 17 Aug 2010 09:44:45 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 17 Aug 2010 01:48:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1281995580.4595.14.camel@xxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1281995580.4595.14.camel@xxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acs9jXRTtQ+ewK++RM6PUc65tpcHagAWoUzg
Thread-topic: [PATCH] RE: XCP: xe host-evacuate generates wrong error message
Hi George,

I think the error shows the uuid of the vm_guest_metrics instance for your VM, 
rather than the uuid of the VM itself.

The patch below would probably solve it.

Cheers,
Rob

----

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r 3c74a4a1c6e8 ocaml/xapi/xapi_pv_driver_version.ml
--- a/ocaml/xapi/xapi_pv_driver_version.ml
+++ b/ocaml/xapi/xapi_pv_driver_version.ml
@@ -148,4 +148,4 @@
     | (Linux(major, minor, micro, _) | Windows(major, minor, micro, _)) as x 
-> 
        if is_up_to_date x 
        then None
-       else Some(Api_errors.vm_old_pv_drivers, [ Ref.string_of self; 
string_of_int major; string_of_int minor; string_of_int micro])
+       else Some(Api_errors.vm_old_pv_drivers, [ Ref.string_of vm; 
string_of_int major; string_of_int minor; string_of_int micro])


> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of George Shuklin
> Sent: 16 August 2010 22:53
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] XCP: xe host-evacuate generates wrong error
> message
> 
> Good day.
> 
> XCP 0.5
> 
> xe host-evacuate uuid=f9458b0b-5e35-4ee0-adcf-c8945a37868c
> You attempted an operation on a VM which requires a more recent version
> of the PV drivers. Please upgrade your PV drivers.
> vm: a84aaf23-8afe-2ccc-0299-83b9dfd08c35
> 
> But at really vm uuid with bad PV-drivers is
> 42e397c7-3d76-02c0-a1f9-c78d79cac6c6 and no uuid a84aaf23... present in
> pool.
> 
> I think, it is an error in error message.
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Attachment: fix-old-pv-drivers-error
Description: fix-old-pv-drivers-error

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>