[libvirt] [PATCH 1/5] Public API to allow defining new domain using OVA file

2013-01-05 Thread Ata E Husain Bohra
Appends a new API to libvirt public driver that supports defining a new domain using OVA format. API expects following inputs: 1. connection pointer. 2. path to OVA package (single file format). 3. Storage pool name where new domain needs to be created. API returns pointers to newly created

[libvirt] [PATCH 0/5] Add support to define new domain using an OVA package.

2013-01-05 Thread Ata E Husain Bohra
hypervisor driver, they are posted as seperate reviews: 1. https://www.redhat.com/archives/libvir-list/2012-December/msg01377.html 2. https://www.redhat.com/archives/libvir-list/2013-January/msg7.html Above patches are necessary for proper functioning of the proposed feature. Ata E Husain

[libvirt] [PATCH 2/5] Parsing and file handling operations for an OVA file

2013-01-05 Thread Ata E Husain Bohra
/parsing + * + * Copyright (C) 2013 Ata E Husain Bohra ata.hus...@hotmail.com + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1

[libvirt] [PATCH 3/5] ESX: CURL routine to allow file upload to the server

2013-01-05 Thread Ata E Husain Bohra
(-) diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c index 99c1eb1..a49ab7e 100644 --- a/src/esx/esx_vi.c +++ b/src/esx/esx_vi.c @@ -4,6 +4,7 @@ * * Copyright (C) 2010-2012 Red Hat, Inc. * Copyright (C) 2009-2012 Matthias Bolte matthias.bo...@googlemail.com + * Copyright (C) 2013 Ata E Husain Bohra

[libvirt] [PATCH 5/5] virsh: Command to define new domain using OVA package.

2013-01-05 Thread Ata E Husain Bohra
This patch provides virsh commands to support defining new domain using an OVA package. --- tools/virsh-domain.c | 44 1 file changed, 44 insertions(+) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index f3da1d5..5218d12 100644 ---

[libvirt] [PATCH] ESX: Fix DISPATCH_FREE generation code to free all extended objects

2013-01-01 Thread Ata E Husain Bohra
...@googlemail.com +# Copyright (C) 2013 Ata E Husain Bohra ata.hus...@hotmail.com # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -785,9 +786,7 @@ class Object(Type): source += ESX_VI__TEMPLATE__DYNAMIC_FREE

[libvirt] [PATCH] ESX: Add AnyType_Serialize routine to esx_vi_types.c

2012-12-28 Thread Ata E Husain Bohra
Add esxVI_AnyType_Serialize routine to allow serialization of objects containing variables of type AnyType. The routine attempts to determine the type of the object that covers: boolean, long, int, string, short, byte. If variables does not fall under any above mentioned types then it is

[libvirt] [PATCH] ESX: append CURL headers to fix serviceContent entities

2012-12-25 Thread Ata E Husain Bohra
It seems with current SOAP header the call to retrieve serviceContent object does not populate all available references (for instance: ovfManager). The host exposes details of these Managed Object References (MoBs) if header is appended with SOAPACtion field. Ata E Husain Bohra (1): ESX: append

[libvirt] [PATCH] ESX: append CURL headers to fix serviceContent entities

2012-12-25 Thread Ata E Husain Bohra
Append curl headers with SOAPAction header to populate serviceContent object entities which are otherwise missing. --- src/esx/esx_vi.c |2 ++ src/esx/esx_vi_generator.input |3 +++ 2 files changed, 5 insertions(+) diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c index

[libvirt] libvirt [PATCHv2 0/2] Refactor ESX storage driver and append support for iSCSI devices.

2012-11-09 Thread Ata E Husain Bohra
Major changes: Split changes to two parts: a. Refactor ESX storage driver to implement facade design. b. Add backend driver to support iSCSI devices. Ata E Husain Bohra (2): Refactor ESX storage driver to implement facade pattern Add iSCSI backend storage driver for ESX. daemon/remote.c

[libvirt] [PATCH] Refactor ESX storage driver and add iSCSI support

2012-08-20 Thread Ata E Husain Bohra
Resent of http://www.redhat.com/archives/libvir-list/2012-August/msg01353.html. Merging recent branch updates to this patch. Ata E Husain Bohra (1): Refactor ESX storage driver and add iSCSI support src/Makefile.am | 16 +- src/esx/esx_driver.c|4

[libvirt] [PATCH v5] ESX: Add routines to interface driver

2012-08-02 Thread Ata E Husain Bohra
Major changes includes: a. Check for Memory allocation from strdup calls. b. Removed ESX_VI__TEMPLATE__PROPERTY__DESERIALIZE_STRING_LIST workaround c. Remove overwriting of error messages where it's not required. Ata E Husain Bohra (1): ESX: Add routines to interface driver src/esx

[libvirt] [PATCH v5] ESX: Add routines to interface driver

2012-08-02 Thread Ata E Husain Bohra
Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_interface_driver.c | 551 +++- src/esx/esx_vi.c | 125 + src/esx/esx_vi.h | 10 + src/esx/esx_vi_generator.input | 227 + src/esx

[libvirt] [libivrt][PATCH v1] ESX: Add Byte datatype

2012-08-01 Thread Ata E Husain Bohra
Updated as per Matthias comment. Ata E Husain Bohra (1): ESX: Add Byte datatype src/esx/esx_vi_generator.py |1 + src/esx/esx_vi_types.c | 57 +++ src/esx/esx_vi_types.h | 29 ++ 3 files changed, 87 insertions

[libvirt] [PATCH v1] ESX: Add Byte datatype

2012-08-01 Thread Ata E Husain Bohra
Append Byte to set of predefined datatype objects. Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_vi_generator.py |1 + src/esx/esx_vi_types.c | 57 +++ src/esx/esx_vi_types.h | 29 ++ 3 files

Re: [libvirt] [PATCH v4 0/3] ESX: Add routines to interface driver

2012-08-01 Thread Ata E Husain
Please see comments inline. Regards, Ata -Original Message- From: Matthias Bolte [mailto:matthias.bo...@googlemail.com] Sent: Wednesday, August 01, 2012 1:08 PM To: Ata E Husain Bohra Cc: libvir-list@redhat.com Subject: Re: [libvirt] [PATCH v4 0/3] ESX: Add routines to interface

[libvirt] [PATCH] ESX: Add Byte datatype

2012-07-31 Thread Ata E Husain Bohra
Append Byte datatype to esx_vi_types predefined datatype set. Ata E Husain Bohra (1): ESX: Add Byte datatype src/esx/esx_vi_generator.py |1 + src/esx/esx_vi_types.c | 57 +++ src/esx/esx_vi_types.h | 28 + 3 files

[libvirt] [PATCH] ESX: Add Byte datatype

2012-07-31 Thread Ata E Husain Bohra
Append Byte to set of predefined object data types. Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_vi_generator.py |1 + src/esx/esx_vi_types.c | 57 +++ src/esx/esx_vi_types.h | 28 + 3 files

[libvirt] [PATCH v4 0/3] ESX: Add routines to interface driver

2012-07-28 Thread Ata E Husain Bohra
Updated the patch against review comments from Laine and Matthias. Ata E Husain Bohra (3): ESX: Add routines to interface driver ESX: Add routines to interface driver ESX: Add routines to interface driver src/esx/esx_interface_driver.c | 499 +++- src

[libvirt] [PATCH v4 3/3] ESX: Add routines to interface driver

2012-07-28 Thread Ata E Husain Bohra
Updated the variable names to match vSphere terminology. Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_interface_driver.c | 179 src/esx/esx_vi.c | 30 +++ src/esx/esx_vi.h |6 +- 3 files

[libvirt] [PATCH v4 2/3] ESX: Add routines to interface driver

2012-07-28 Thread Ata E Husain Bohra
Use ATTRIBUTE_UNUSED for unused variable. Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_interface_driver.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/esx/esx_interface_driver.c b/src/esx/esx_interface_driver.c index

[libvirt] [PATCH v4 1/3] ESX: Add routines to interface driver

2012-07-28 Thread Ata E Husain Bohra
Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_interface_driver.c | 506 +++- src/esx/esx_vi.c | 126 ++ src/esx/esx_vi.h | 10 + src/esx/esx_vi_generator.input | 227 ++ src/esx

Re: [libvirt] [PATCH 1/2] ESX: Add routines to interface driver

2012-07-27 Thread Ata E Husain
, Ata E Husain Bohra wrote: Add following routines to esx_interface_driver: esxNumOfInterfaces, esxNumOfDefinedInterfaces, esxListInterfaces, esxListDefinedInterfaces, esxInterfaceLookupByMACString, esxInterfaceGetXMLDesc, esxInterfaceUndefine

Re: [libvirt] [Libvirt][PATCH] ESX: Fix ESX_VI__TEMPLATE__DYNAMIC_DEEP_COPY

2012-07-22 Thread Ata E Husain
Thanks for reviewing the patch Matthias! -Original Message- From: Matthias Bolte [mailto:matthias.bo...@googlemail.com] Sent: Saturday, July 21, 2012 2:39 PM To: Ata E Husain Bohra Cc: libvirt-l...@redhat.com Subject: Re: [libvirt] [Libvirt][PATCH] ESX: Fix

[libvirt] [PATCH 1/2] ESX: Add routines to interface driver

2012-07-20 Thread Ata E Husain Bohra
Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_interface_driver.c | 506 +++- src/esx/esx_vi.c | 126 ++ src/esx/esx_vi.h | 10 + src/esx/esx_vi_generator.input | 227 ++ src/esx

[libvirt] [PATCH 2/2] Use ATTRIBUTE_UNUSED for unused variable.

2012-07-20 Thread Ata E Husain Bohra
--- src/esx/esx_interface_driver.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/esx/esx_interface_driver.c b/src/esx/esx_interface_driver.c index b1ba5e2..01caed0 100644 --- a/src/esx/esx_interface_driver.c +++ b/src/esx/esx_interface_driver.c @@

[libvirt] [PATCH v3 0/2] ESX: Add routines to interface driver

2012-07-20 Thread Ata E Husain Bohra
Repost of https://www.redhat.com/archives/libvir-list/2012-July/msg00990.html. Thanks Eric for pointing the message-ID issue with earlier post. Ata E Husain Bohra (2): ESX: Add routines to interface driver Use ATTRIBUTE_UNUSED for unused variable. src/esx/esx_interface_driver.c | 500

[libvirt] [Libvirt][PATCH] ESX: Fix ESX_VI__TEMPLATE__DYNAMIC_DEEP_COPY

2012-07-19 Thread Ata E Husain Bohra
Fix addresses two issues: 1. Fix generator code to allow deep copy operation for objects with Dynamic_Cast capabilities. 2. Add missing deep copy routine to Long datatype. Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_vi_generator.py |2 +- src/esx/esx_vi_types.c

Re: [libvirt] Intend to add OVA installation API

2012-07-19 Thread Ata E Husain Bohra
-Original Message- From: Raghunatha Reddy Sent: Tuesday, July 10, 2012 1:53 AM To: libvir-list@redhat.com Subject: Re: [libvirt] Intend to add OVA installation API Ata Bohra ata.husain at hotmail.com writes: Thanks again Doug. With this direction, I have started looking into

[libvirt] [PATCH v3 0/2] ESX: Add routines to interface driver

2012-07-19 Thread Ata E Husain Bohra
Updated code to use ATTRIBUTE_UNUSED for un-used variable. Ata E Husain Bohra (2): ESX: Add routines to interface driver Use ATTRIBUTE_UNUSED for unused variable. src/esx/esx_interface_driver.c | 500 +++- src/esx/esx_vi.c | 126

[libvirt] [PATCH v3 1/2] ESX: Add routines to interface driver

2012-07-19 Thread Ata E Husain Bohra
Signed-off-by: Ata E Husain Bohra ata.hus...@hotmail.com --- src/esx/esx_interface_driver.c | 506 +++- src/esx/esx_vi.c | 126 ++ src/esx/esx_vi.h | 10 + src/esx/esx_vi_generator.input | 227 ++ src/esx

[libvirt] [PATCH v3 2/2] ESX: Add routines to interface driver- Use ATTRIBUTE_UNUSED for unused variable.

2012-07-19 Thread Ata E Husain Bohra
--- src/esx/esx_interface_driver.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/esx/esx_interface_driver.c b/src/esx/esx_interface_driver.c index b1ba5e2..01caed0 100644 --- a/src/esx/esx_interface_driver.c +++ b/src/esx/esx_interface_driver.c @@

Re: [libvirt] ESX: failure while performing CastFromAnyType

2012-07-18 Thread Ata E Husain Bohra
18, 2012 12:19 PM To: Ata E Husain Bohra Cc: libvirt-l...@redhat.com Subject: Re: [libvirt] ESX: failure while performing CastFromAnyType Hi, do you have a patch that allows me to reproduce this problem? So I can improve the error reporting here? Regards, Matthias 2012/7/18 Ata E Husain Bohra

Re: [libvirt] ESX: failure while performing CastFromAnyType

2012-07-17 Thread Ata E Husain Bohra
useful information. Thanks! Ata From: Ata E Husain Bohra Sent: Monday, July 16, 2012 2:59 PM To: LIbvirt Subject: [libvirt] ESX: failure while performing CastFromAnyType Hi All, I am trying to extend “iscsi” support for iSCSI driver, currently am stuck at getting iSCSI target list from

[libvirt] ESX: failure while performing CastFromAnyType

2012-07-16 Thread Ata E Husain Bohra
Hi All, I am trying to extend “iscsi” support for iSCSI driver, currently am stuck at getting iSCSI target list from the hypervisor. I am using hostSystem object (propertyNameList is set to “config.storageDevice.hostBusAdapter”) to retrieve list of “HostHostBusAdapter” from ESX, but the call

[libvirt] ESX: failure while performing CastFromAnyType

2012-07-16 Thread Ata E Husain Bohra
Hi All, I am trying to extend “iscsi” support for iSCSI driver, currently am stuck at getting iSCSI target list from the hypervisor. I am using hostSystem object (propertyNameList is set to “config.storageDevice.hostBusAdapter”) to retrieve list of “HostHostBusAdapter” from ESX, but the call