Re: [ovirt-users] [Python-SDK][Ovirt-4.0] Create VM on specific Host.

2017-04-19 Thread Juan Hernández
On 04/19/2017 08:41 AM, TranceWorldLogic . wrote: > Hi, > > I was trying to create VM on specific HOST using python sdk as shown below. > > -- Code --- > vm = vms_service.add( > host = types.Host( > name = "host-01", >

Re: [ovirt-users] [Python-SDK][Ovirt-4.0] Create VM on specific Host.

2017-04-19 Thread Juan Hernández
On 04/19/2017 09:34 AM, Juan Hernández wrote: > On 04/19/2017 08:41 AM, TranceWorldLogic . wrote: >> Hi, >> >> I was trying to create VM on specific HOST using python sdk as shown below. >> >> -- Code --- >> vm = vms_service.add

Re: [ovirt-users] [Python-SDK][Ovirt-4.0] Create VM on specific Host.

2017-04-19 Thread Juan Hernández
; > > On Wed, Apr 19, 2017 at 1:36 PM, TranceWorldLogic . > mailto:tranceworldlo...@gmail.com>> wrote: > > Thanks will try and let you know, > ~Rohit > > On Wed, Apr 19, 2017 at 1:18 PM, Juan Hernández <mailto:jhern...@redhat.com>> wrote: >

Re: [ovirt-users] Missing feature in python SDK4

2017-04-20 Thread Juan Hernández
On 04/20/2017 12:26 PM, Fabrice Bacchella wrote: > I didn't find a way to find the writer that correspond to a given type. Is > there a way to do that, or it's up to the end user to manually manage this > mapping ? > Yes that is missing. We have it for reading, but not for writing. This patch s

Re: [ovirt-users] Missing feature in python SDK4

2017-04-20 Thread Juan Hernández
On 04/20/2017 04:35 PM, Juan Hernández wrote: > On 04/20/2017 12:26 PM, Fabrice Bacchella wrote: >> I didn't find a way to find the writer that correspond to a given type. Is >> there a way to do that, or it's up to the end user to manually manage this >> mappin

Re: [ovirt-users] bug with ConsoleWriter ?

2017-04-22 Thread Juan Hernández
On 04/21/2017 05:26 PM, Fabrice Bacchella wrote: > I'm trying to dump informations about console with the following code: > > vm = vms_service.list(search='name=fa41')[0] > > # Find the service that manages the graphics consoles of the virtual machine: > vm_service = vms_service.vm_service(vm.id)

Re: [ovirt-users] Info on fence_rhevm against oVirt 4.1.1

2017-04-27 Thread Juan Hernández
On 04/27/2017 05:35 PM, Gianluca Cecchi wrote: > On Thu, Apr 27, 2017 at 4:58 PM, Gianluca Cecchi > mailto:gianluca.cec...@gmail.com>> wrote: > > On Thu, Apr 27, 2017 at 4:43 PM, Gianluca Cecchi > mailto:gianluca.cec...@gmail.com>> wrote: > > Hello, > I'm trying to use fen

Re: [ovirt-users] Info on fence_rhevm against oVirt 4.1.1

2017-04-27 Thread Juan Hernández
On 04/28/2017 01:54 AM, Gianluca Cecchi wrote: > On Thu, Apr 27, 2017 at 6:32 PM, Juan Hernández <mailto:jhern...@redhat.com>> wrote: > > That is a known issue: > > fence_rhevm can only work as RHEV admin user not a regular user (that > require

Re: [ovirt-users] Ovirt 4, the missing python sdk

2017-04-28 Thread Juan Hernández
On 04/28/2017 06:00 PM, Ben De Luca wrote: > before people go writing yet another api client wouldn't it make sense > to just define the api client in terms of some thing like swagger > ? http://swagger.io/ > The oVirt API has a formal specification, defined in this project: https://github.com

Re: [ovirt-users] Hello from Bacchus !

2017-04-29 Thread Juan Hernández
On 04/28/2017 09:14 PM, Niyazi Elvan wrote: > Thank you Barak ! > > I will position Bacchus as a protection solution, not only for backups > but also replication. SDK would be a better decision in that way. > > Regards, > Note that the "backup API" is just a subset of the oVirt API. It is not a

Re: [ovirt-users] Current status of ManageIQ to manage oVirt 4.1.1?

2017-05-05 Thread Juan Hernández
On 05/05/2017 03:47 PM, Gianluca Cecchi wrote: > Hello, > is ManageIQ able to manage oVirt version 4.1.1? > From which version of ManageIQ has been included in case? > I see this link abot prblems with 4.x api and such: > https://github.com/ManageIQ/manageiq/issues/7573 > > Thanks, > Gianluca >

Re: [ovirt-users] Current status of ManageIQ to manage oVirt 4.1.1?

2017-05-05 Thread Juan Hernández
On 05/05/2017 04:40 PM, Gianluca Cecchi wrote: > > > On Fri, May 5, 2017 at 4:29 PM, Juan Hernández <mailto:jhern...@redhat.com>> wrote: > > On 05/05/2017 03:47 PM, Gianluca Cecchi wrote: > > Hello, > > is ManageIQ able to manage oVirt version

Re: [ovirt-users] Docker images for oVirt engine

2017-05-11 Thread Juan Hernández
On 05/11/2017 08:54 AM, Barak Korren wrote: > On 11 May 2017 at 06:02, Leni Kadali Mutungi wrote: >>> On 5/10/17, Barak Korren wrote: That one is obsolete AFAIK. The oVirt container images are now being worked on in the 'ovirt-containers' repo. >> >> Checked it out. It seems more compli

Re: [ovirt-users] Current status of ManageIQ to manage oVirt 4.1.1?

2017-05-11 Thread Juan Hernández
On 05/09/2017 01:02 PM, Gianluca Cecchi wrote: > On Fri, May 5, 2017 at 4:47 PM, Juan Hernández <mailto:jhern...@redhat.com>> wrote: > > > Yes, capablanca is too old. > > The instructions that you mention should still work, but remember to > make a ba

Re: [ovirt-users] Python-SDK4: Shutdown a machine with a specific message?

2017-05-12 Thread Juan Hernández
On 05/12/2017 09:46 AM, nico...@devels.es wrote: > Hi, > > Using Python-SDK4, is there a way to shutdown a machine with a specific > message? > > In code I just see this definition: > > def shutdown( > self, > async=None, > headers=None, > query=None, > ):

Re: [ovirt-users] slow kerberos authentication

2017-05-12 Thread Juan Hernández
On 05/12/2017 10:04 AM, Yaniv Kaul wrote: > > > On May 11, 2017 8:25 PM, "Fabrice Bacchella" > mailto:fabrice.bacche...@orange.fr>> wrote: > > I'm using kerberos authentication in ovirt for the URL > /sso/oauth/token-http-auth, but kerberos is done in Apache using > auth_gssapi_modul

Re: [ovirt-users] slow kerberos authentication

2017-05-12 Thread Juan Hernández
On 05/12/2017 11:45 AM, Juan Hernández wrote: > On 05/12/2017 10:04 AM, Yaniv Kaul wrote: >> >> >> On May 11, 2017 8:25 PM, "Fabrice Bacchella" >> mailto:fabrice.bacche...@orange.fr>> wrote: >> >> I'm using kerberos authentication

Re: [ovirt-users] Docker images for oVirt engine

2017-05-15 Thread Juan Hernández
On 05/15/2017 05:24 AM, Leni Kadali Mutungi wrote: > Managed to run the OpenShift cluster well enough. When I went into the > ovirt-containers directory and tried to run `make build`, I got the > following error: > > for godep in gopkg.in/ini.v1 ; do \ > GOPATH=""/home/herabus/ovirt-contai

Re: [ovirt-users] Docker images for oVirt engine

2017-05-18 Thread Juan Hernández
On 05/18/2017 05:29 AM, Leni Kadali Mutungi wrote: > On 5/15/17, Juan Hernández wrote: >> The tool that builds and deploy the containers to the OpenShift cluster >> is a program written in Go. It is compiled when you run 'make ...'. That >> means that you

Re: [ovirt-users] Building ovirt-host-deploy gives `configure: error: otopi-devtools required but missing`

2017-05-19 Thread Juan Hernández
On 05/19/2017 05:38 AM, Leni Kadali Mutungi wrote: > By the way, how does WildFly fit into all of this? Because I > downloaded a zip file from their site as referenced here: > https://github.com/leni1/oVirt-docs-Debian/blob/master/oVirt-Development-Environment.md > and it seemed to me that zip cont

Re: [ovirt-users] Docker images for oVirt engine

2017-05-19 Thread Juan Hernández
On 05/19/2017 05:20 AM, Leni Kadali Mutungi wrote: > Running `make build` went fine until I saw this error: > > Step 26/34 : RUN sed -i 's/multipathd.service //g' > /usr/lib/systemd/system/vdsmd.service > ---> Running in 6a0948c94798 > ERRO[0104] containerd: notify OOM events erro

Re: [ovirt-users] SQL : last time halted?

2017-05-30 Thread Juan Hernández
On 05/30/2017 05:02 PM, Nicolas Ecarnot wrote: > Hello, > > I'm trying to find a way to clean up the VMs list of my DCs. > I think some of my users have created VM they're not using anymore, but > it's difficult to sort them out. > In some cases, I can shutdown some of them and wait. > Is there so

Re: [ovirt-users] Problem while adding a VM NIC via REST API

2017-06-02 Thread Juan Hernández
On 06/02/2017 03:56 PM, Bruno Rodriguez wrote: > Hello everyone, > > I have some scripts that create VMs, which are in perl using libcurl and > oVirt REST API. They work quite fine but I'm experiencing something unusual. > > After I create the machine (let's suppose it's called server.pic.es >

Re: [ovirt-users] Python-SDK4: Managing accents?

2017-06-13 Thread Juan Hernández
On 06/13/2017 01:58 PM, nico...@devels.es wrote: > Currently all our scripts are python2-based, not sure if running them > with Python3 would need a major change, but currently we're happy with > Python2. I'm still not clear if this is a bug or an additional option > should be supplied in order to

Re: [ovirt-users] ovirt sdk and pipelining

2017-06-16 Thread Juan Hernández
On 06/16/2017 09:52 AM, Fabrice Bacchella wrote: > I just read the blog entry about performance increate in for the python sdk > (https://www.ovirt.org/blog/2017/05/higher-performance-for-python-sdk/). > > I'm quite sceptical about pipelining. > > A few explanation about that can be found at: >

Re: [ovirt-users] Unable to rename disks via REST API

2017-06-28 Thread Juan Hernández
On 06/28/2017 10:43 AM, Bruno Rodriguez wrote: > Thank you, Daniel > > I tried a PUT with the same XML body, I got a "405 Method Not Allowed". > It's quite strange, there must be someting I'm missing > The operation to update a disk will be introduced in version 4 of the API with version 4.2 of

Re: [ovirt-users] Unable to rename disks via REST API

2017-06-28 Thread Juan Hernández
n you please check if you get any useful message in /var/log/ovirt-engine/server.log or /var/log/ovirt-engine/engine.log? > > > On Wed, Jun 28, 2017 at 11:18 AM, Bruno Rodriguez <mailto:br...@pic.es>> wrote: > > Thank you very much !!! > > I expected I was mi

Re: [ovirt-users] Unable to rename disks via REST API

2017-06-28 Thread Juan Hernández
Ruby and Java as well.) Finally, if you get a 500 error then there is most probably a bug. The API should never return that, even if you try to do something that doesn't make sense it should respond with a reasonable error message. If you keep getting that 500 error please share the detai

Re: [ovirt-users] SQL : last time halted?

2017-07-06 Thread Juan Hernández
On 07/06/2017 02:07 PM, Nicolas Ecarnot wrote: [For the record] Juan, Thanks to your hint, I eventually found it more convenient for me to use a SQL query to find out which VM was unsed for months : SELECT vm_static.vm_name, vm_dynamic.status, vm_dynamic.vm_ip, vm_dynamic.vm_host

Re: [ovirt-users] oVirt and Foreman

2017-07-27 Thread Juan Hernández
On 07/27/2017 09:46 AM, Davide Ferrari wrote: On 25/07/17 10:59, Davide Ferrari wrote: Hello I've attached logs from: - hammer cli (debug) with the command line I've used - foreman logs - ovirt engine logs (server.log) Any idea about what might be happening? Looks like the oVirt engin

Re: [ovirt-users] oVirt and Foreman

2017-07-28 Thread Juan Hernández
On 07/28/2017 09:34 AM, Davide Ferrari wrote: On 27/07/17 11:17, Juan Hernández wrote: Looks like the oVirt engine is rejecting the request to add the disk because some of the related entities doesn't exist. This is the relevant message in the engine log: 2017-07-25 08:28:03,063Z

Re: [ovirt-users] oVirt and Foreman

2017-07-28 Thread Juan Hernández
On 07/28/2017 01:27 PM, Davide Ferrari wrote: On 28/07/17 10:50, Juan Hernández wrote: [oVirt shell (connected)]# list glustervolumes --cluster-identifier 0002-0002-0002-0002-0345 id : 23f8f1ae-a3ac-47bf-8223-5b5f7c29e508 name : data_ssd id : 6be35972-4720

Re: [ovirt-users] oVirt and Foreman

2017-07-28 Thread Juan Hernández
On 07/28/2017 04:53 PM, Davide Ferrari wrote: On 28/07/17 16:14, Juan Hernández wrote: Ah, I see, in your command you are listing Gluster volumes, not storage domains. They are different kinds of objects inside oVirt, and thus they have different identifiers. That is completely normal. If

Re: [ovirt-users] oVirt and Foreman

2017-08-01 Thread Juan Hernández
On 07/28/2017 06:03 PM, Davide Ferrari wrote: On 28/07/17 17:46, Juan Hernández wrote: The oVirt access log indeed shows that three disks are added to the virtual machine. May it be that Foreman thinks that it has to explicitly add a boot disk? Ohad, Ivan, any idea? I've expli

Re: [ovirt-users] Storage API command

2014-12-01 Thread Juan Hernández
On 12/01/2014 12:05 PM, Koen Vanoppen wrote: > Dear All, > > Quick question. How can we say to the API which storage pool to use when > assigning a disk to a VM? > > Kind regards, > > Koen > Like this: #!/bin/sh -ex url="https://ovirt.example.com/ovirt-engine/api"; user="admin@internal" pass

Re: [ovirt-users] oVirt-shell command to move a disk

2014-12-01 Thread Juan Hernández
On 12/01/2014 12:51 PM, Michael Pasternak wrote: > not sure what sdk version 3.4.4 is, but according to log, latest > official for 3.4 is 3.4.1.1-1 > (make you have it installed) > There are two issues here. First is that the "move" disk operation on the top level collection isn't correctly docum

Re: [ovirt-users] run ovirt-shell script like background job - problem

2014-12-07 Thread Juan Hernández
On 12/07/2014 05:05 PM, Grzegorz Szypa wrote: > Hi, > > I have a problem with running ovirt-shell script, that it starting VMs. > In dialog mode it's fine, but in background no :( > > Example script: > ovirt-shell -E 'action vm WinSrv2012r2 start' > > I start this job in cron as root. > > > Ha

Re: [ovirt-users] Fwd: run ovirt-shell script like background job - problem

2014-12-09 Thread Juan Hernández
rsions 3.5.x of ovirt-engine-cli and ovirt-engine-sdk-python (you will need both) are compatible with version 3.4 of the engine. > 2014-12-07 17:33 GMT+01:00 Juan Hernández <mailto:jhern...@redhat.com>>: > > On 12/07/2014 05:05 PM, Grzegorz Szypa wrote: > > Hi,

Re: [ovirt-users] How to create a vm cloned independent from python sdk

2014-12-10 Thread Juan Hernández
On 12/10/2014 05:11 PM, Amedeo Salvati wrote: > Hello all, > > I'm trying to create a new VM using python sdk with it's disks > cloned/independent and not on thin provisioning, when I create vm I use > template (that has a preallocated disks), and I use this code to create > a vm: > > api.vms.add

Re: [ovirt-users] Questions regarding neutron implementation for oVirt 3.5

2014-12-11 Thread Juan Hernández
On 12/11/2014 09:56 AM, Moti Asayag wrote: > > > - Original Message - >> From: "Andrew Brimer" >> To: "Moti Asayag" >> Cc: users@ovirt.org >> Sent: Thursday, December 11, 2014 1:04:46 AM >> Subject: RE: Questions regarding neutron implementation for oVirt 3.5 >> >> Hi Modi, >> >> In the

Re: [ovirt-users] how to rename disk alias on python sdk

2014-12-11 Thread Juan Hernández
On 12/11/2014 11:29 AM, Amedeo Salvati wrote: > Hello all, > > I want to rename a disk alias using python sdk, but I cannot find an > update method for object returned from api.disks.get (like cdrom, vm, > datacenter objects). > > Simplified code is: > > d1 = api.disks.get(id="7408f728-97e5-4b10

Re: [ovirt-users] python floppy in RunOnce mode

2014-12-22 Thread Juan Hernández
On 12/22/2014 01:21 PM, Giulio Casella wrote: > Hi Juan, > I tried to use builtin sysprep files, with no luck. > Here is my code: > > myvm = api.vms.get(name="vmname") > initialization = params.Initialization() > myvm.set_initialization(initialization) > myvm.update() > myvm.start(params.Action())

Re: [ovirt-users] python floppy in RunOnce mode

2014-12-27 Thread Juan Hernández
/ovirt-engine/engine.conf.d/10-setup-database.conf). > > > > Il 23/12/2014 10:16, Giulio Casella ha scritto: >> Yes, the VM is windows 7: >> >> print myvm.get_os().get_type() >> >> shows "windows_7x64" >> >> Anyway I tried to force

Re: [ovirt-users] Alerts

2015-01-07 Thread Juan Hernández
On 01/07/2015 02:05 PM, Koen Vanoppen wrote: > Thanks. But, is there no other way, besides screwing around in the database? > You can use the Python SDK: #!/usr/bin/python import ovirtsdk.api import ovirtsdk.xml api = ovirtsdk.api.API( url="https://engine.example.com/ovirt-engine/api";, us

Re: [ovirt-users] Details of the host

2015-01-23 Thread Juan Hernández
On 01/21/2015 02:27 PM, ChandraShekar Shastri wrote: > Hi All, > > I want to get the details of the Host without activating is there a way > to do it. > I want to query the RHEV-Manager and would like to get the details of > MAC address without activating it. > > Do you have the script to do th

Re: [ovirt-users] VMs unknown state and ovirt node Non Responsive

2015-01-23 Thread Juan Hernández
On 01/23/2015 05:20 AM, Grzegorz Szypa wrote: > Hi. > > I have a simillar problem like in this link: > https://access.redhat.com/discussions/1326793 > https://bugzilla.redhat.com/show_bug.cgi?id=1165269 > > Similar, becouse I worked it out with the VM uknown status, but I still > have problem wit

Re: [ovirt-users] Details of the host

2015-01-26 Thread Juan Hernández
> Chandrashekar > The Python SDK only supports "Basic" authentication. Version 3.6 will also support Kerberos authentication. There are no plans at the moment to support any other authentication mechanism in the Python SDK. > On Fri, Jan 23, 2015 at 1:46 PM, Juan Hernández <m

Re: [ovirt-users] VMs unknown state and ovirt node Non Responsive

2015-01-26 Thread Juan Hernández
ve to fix properly the issue is to upgrade to 3.5 and then make sure that the VdsmSSLProtocol configuration parameter is set to TLSv1. > 2015-01-23 9:46 GMT+01:00 Juan Hernández <mailto:jhern...@redhat.com>>: > > On 01/23/2015 05:20 AM, Grzegorz Szypa wrote: > > Hi. &

Re: [ovirt-users] movirt -> ovirt 3.5.1 -> server error 500

2015-02-19 Thread Juan Hernández
On 02/19/2015 12:22 PM, Markus Stockhausen wrote: > Hi, > > just installed movirt on my mobile. Upon connection it breaks with the > attached error in the 3.5.1 engine server logs. > > Something I'm missing? > > Markus > > 2015-02-19 12:21:19,757 ERROR > [org.apache.catalina.core.ContainerBa

Re: [ovirt-users] ovirt-shell for ubuntu

2015-03-30 Thread Juan Hernández
On 03/30/2015 04:50 PM, Nathanaël Blanchet wrote: > Hi all, > > Does an ovirt-shell-cli equivalent exist for debian/ubuntu client? > knowing it is written in python, it must be quite easy to port it... The oVirt project doesn't provide a Debian or Ubuntu package for these tools, but they are dis

[ovirt-users] Anyone using YAML support in the RESTAPI?

2015-03-31 Thread Juan Hernández
Hello, Does anyone have a good reason to not remove the YAML support from the RESTAPI? As far as I know it isn't used or tested in any reasonable way, so I would like to remove it completely for 3.6. If anyone is using it and can't move to JSON or XML please speak up. Regards, Juan Hernandez --

Re: [ovirt-users] Anyone using YAML support in the RESTAPI?

2015-04-06 Thread Juan Hernández
On 04/02/2015 05:17 PM, Sven Kieske wrote: > > > On 31/03/15 15:34, Juan Hernández wrote: >> Hello, >> >> Does anyone have a good reason to not remove the YAML support from the >> RESTAPI? As far as I know it isn't used or tested in any reasonable way, >

Re: [ovirt-users] ovirt-shell for ubuntu

2015-04-15 Thread Juan Hernández
On 04/15/2015 11:32 AM, Nathanaël Blanchet wrote: > Hello, > > I tried the same for engine-iso-uploader, but pip doesn't seem to find > it. Does it exist for ubuntu? > I don't have an answer for that. Sandro? > Le 30/03/2015 16:58, Juan Hernández a écrit : >>

Re: [ovirt-users] [Rest API / Python SDK] Setting VM Video Type

2015-12-11 Thread Juan Hernández
On 12/11/2015 12:27 PM, Ollie Armstrong wrote: > Hi everyone, > > I'm looking for a method of settings the VM's video type to QXL from > the Python SDK, which doesn't appear to be possible in any way. > Whenever I set the graphics protocol to VNC it defaults the video type > to CIRRUS. I'd like t

Re: [ovirt-users] [Rest API / Python SDK] Setting VM Video Type

2015-12-11 Thread Juan Hernández
On 12/11/2015 01:51 PM, Ollie Armstrong wrote: > On 11 December 2015 at 12:04, Juan Hernández wrote: >> What version of the engine are you using? Can you share the script that >> you are using to try to change the display type? >> >> In version 3.6 of th

Re: [ovirt-users] Can I reduce the Java heap size of engine-backup???

2015-12-31 Thread Juan Hernández
On 12/31/2015 08:48 AM, Yedidyah Bar David wrote: > On Wed, Dec 30, 2015 at 7:50 PM, John Florian wrote: >> On 12/29/2015 02:02 AM, Yedidyah Bar David wrote: >>> On Tue, Dec 29, 2015 at 12:51 AM, John Florian >>> wrote: I'm trying to run the engine-backup script via a Bacula job using the >

Re: [ovirt-users] Regarding ovirt

2016-01-11 Thread Juan Hernández
On 12/28/2015 06:12 PM, shailendra saxena wrote: > Hi, > Does ovirt-restapi provide any URL which can provide all storage devices > attached to the particular host and partition list of every device ? Is > creating and deleting partition also supported ? > > Thanks > Shailendra > The closest thi

Re: [ovirt-users] API Importing a VM from an export domain fails

2016-01-13 Thread Juan Hernández
On 01/12/2016 08:44 PM, Tim Bielawa wrote: > Hello virt folks, > > Background: > > I'm using the REST API to import a VM from an attached export domain. > The VM was imported using the virt-v2v tool. I've tried this with cURL > and with the python SDK, both yield the same error message. > > RHEV

Re: [ovirt-users] API Importing a VM from an export domain fails

2016-01-13 Thread Juan Hernández
On 01/13/2016 05:54 PM, Tim Bielawa wrote: > > On Wed, Jan 13, 2016 at 5:01 AM, Juan Hernández <mailto:jhern...@redhat.com>> wrote: > > On 01/12/2016 08:44 PM, Tim Bielawa wrote: > > Hello virt folks, > > > > Background: > > >

Re: [ovirt-users] [ovirt-shell] update hostnic/nic ???

2016-01-14 Thread Juan Hernández
On 01/14/2016 11:24 AM, Bloemen, Jurriën wrote: > Hi, > > First I created a bonding interface: > > # add nic --parent-host-name server01 --name bond0 --network-name > VLAN602 --bonding-slaves-host_nic host_nic.name=eno1 > --bonding-slaves-host_nic host_nic.name=eno2 > > This works great but no I

Re: [ovirt-users] Python API question

2016-01-15 Thread Juan Hernández
On 01/15/2016 05:23 AM, Colin Coe wrote: > Hi all > > I've written a Python script to take nightly snapshots of VMs which are > kept for x days. After x days the snapshot is deleted. > > I can't work out how to wait for the snapshot deletion to complete. I > know how to do it for creating the s

Re: [ovirt-users] [ovirt-shell] update hostnic/nic ???

2016-01-15 Thread Juan Hernández
On 01/14/2016 01:28 PM, Bloemen, Jurriën wrote: >> >> On 14-01-16 12:16, Juan Hernández wrote: >>> On 01/14/2016 11:24 AM, Bloemen, Jurriën wrote: >>>> Hi, >>>> >>>> First I created a bonding interface: >>>> >>>&g

Re: [ovirt-users] Ovirt python-sdk cloning VM

2016-01-18 Thread Juan Hernández
On 01/18/2016 02:49 PM, Algirdas Žemaitis wrote: > Hello, > > > I was playing with Ovirt API/python-sdk for a week or so and stuck in > one from first sight simple yet unsolvable spot… > > Ovirt web GUI has option to clone VM from snapshot, to new(other) > storage domain. Is it possible to do so

Re: [ovirt-users] Ovirt python API clone VM to other data domain

2016-01-18 Thread Juan Hernández
On 01/18/2016 03:39 PM, Algirdas Žemaitis wrote: > Hello, > > > > It seems ovirt API lacks of possibility to define storage domain, in > which cloned vm (from snapshot) will be created, is it done on purpose, > or it is just missing/under development ? > > > > Scenario using WEB GUI : > >

Re: [ovirt-users] Gracefully GUEST shutown via ovirt Python-SDK

2016-01-19 Thread Juan Hernández
On 01/19/2016 11:57 AM, Jean-Pierre Ribeauville wrote: > Hi, > > > > By using vm.shutdown() instead of vm.stop() , for a Windows guest then > I got a graceful shutdown but not on my Linux Guest . > > > > Strange isn’t ? > Depending on the Linux variant that you have installed you may nee

Re: [ovirt-users] [ovirt-shell] update hostnic/nic ???

2016-01-20 Thread Juan Hernández
On 01/20/2016 11:31 AM, Bloemen, Jurriën wrote: > On 15-01-16 12:20, Juan Hernández wrote: >> On 01/14/2016 01:28 PM, Bloemen, Jurriën wrote: >>>> On 14-01-16 12:16, Juan Hernández wrote: >>>>> On 01/14/2016 11:24 AM, Bloemen, Jurriën wrote: >>>&g

[ovirt-users] Alpha version of the Ruby SDK ready for use

2016-01-20 Thread Juan Hernández
Hello, Version 4 of oVirt will include a new Ruby SDK. It is currently in "alpha" status, but I think it is already usable. It is available from "rubygems.org": https://rubygems.org/gems/ovirt-engine-sdk You can install it as usual: $ gem install ovirt-engine-sdk There are examples of how

Re: [ovirt-users] [ovirt-shell] update hostnic/nic ???

2016-01-20 Thread Juan Hernández
On 01/20/2016 02:03 PM, Bloemen, Jurriën wrote: > > On 20-01-16 12:24, Juan Hernández wrote: >> On 01/20/2016 11:31 AM, Bloemen, Jurriën wrote: >>> On 15-01-16 12:20, Juan Hernández wrote: >>>> On 01/14/2016 01:28 PM, Bloemen, Jurriën wrote: >>>&

Re: [ovirt-users] VM manipulate DMI Chassis Serial value

2016-01-26 Thread Juan Hernández
On 01/22/2016 10:01 PM, Nir Soffer wrote: > Adding Francesco > > On Fri, Jan 22, 2016 at 1:40 PM, wrote: >> Hi list, >> >> it is possible to change the DMI Chassis Serial value in the VM config? >> >> Virtualbox is able to perform this via the following command for example: >> c:\Program Files\O

Re: [ovirt-users] REST API - Problem when trying to retrieve vms list

2016-02-24 Thread Juan Hernández
On 02/19/2016 09:22 AM, jaumotte, styve wrote: > Hi everyone, > > I confirm that the field "guestos_kernel_version" crash the REST API. When I > change manually the value for a test VM, no more error. I try to update the > kernel but the new one "2.6.37.6-24-default" causes a crash again. Not >

Re: [ovirt-users] Tracking asynchronous tasks results in Python SDK

2016-03-08 Thread Juan Hernández
On 03/08/2016 09:45 AM, Sandro Bonazzola wrote: > > > On Sat, Mar 5, 2016 at 8:29 PM, James Michels > > wrote: > > Greetings > > How can I track asynchronous tasks with python sdk? For instance, I > want to copy a disk so I use: > >d

Re: [ovirt-users] VM migration by using the Python SDK

2016-03-08 Thread Juan Hernández
On 03/07/2016 07:59 PM, Yaniv Kaul wrote: > > > On Mon, Mar 7, 2016 at 6:17 PM, Jean-Pierre Ribeauville > mailto:jpribeauvi...@axway.com>> wrote: > > Hi, > > __ __ > > __ __ > > I’m a little bit lost by looking how to migrate a Guest between two > nodes of a same clust

Re: [ovirt-users] changing vm's product serial

2016-03-09 Thread Juan Hernández
On 03/08/2016 04:57 PM, Nathanaël Blanchet wrote: > Hi all, > > We've been using templates for months before we realized that "ocs > report" used Serial Number given into "demidecode -t system" to identify > a VM as unique. > This Serial Number is located into > /sys/devices/virtual/dmi/id/product

Re: [ovirt-users] a KVM Host has different UUIDs ?

2016-03-14 Thread Juan Hernández
On 03/11/2016 11:34 AM, Jean-Pierre Ribeauville wrote: > Hi, > > When retrieving KVM Host UUID via virsh getcapabilities() or via > ovirt Python SDK ( by using obj.get_id() ), then both UUIDs are not > identical . > > (FYI, Guest UUIDs retrieved via both ways , i.e. > virDomainGetUUIDSt

Re: [ovirt-users] How to get logged in into restapi in java using session ID

2016-03-14 Thread Juan Hernández
On 02/18/2016 03:22 PM, shailendra saxena wrote: > Has somebody tried to get API object with the constructor having > parameters- URL and restapisession- by using java-sdk ? > Here is the following syntax ? > Api api =new Api(RestURL,restapisessionID) > > I have searched a lot but i didn't find

Re: [ovirt-users] Using REST API to get a proxyticket

2016-03-25 Thread Juan Hernández
On 03/24/2016 07:17 PM, Ollie Armstrong wrote: > Thanks. > > Unfortunately that still gives me the same NPE in the engine.log that > I uploaded in my first email. I think I'll report this on BZ as it > isn't working for me when it works for you. > This is the effect of the following bug: sig

Re: [ovirt-users] python sdk create vm to specific target storage domain from template

2016-03-28 Thread Juan Hernández
On 03/22/2016 02:41 PM, Dobó László wrote: > Hi, > > Here is one of my system setup: > > Data Centers > dc01 > Storage > storagedomain01 > storagedomain02 > storagedomain03 > Clusters > cl01 > > When i making vm from temp

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-29 Thread Juan Hernández
On 03/29/2016 03:07 PM, Arpit Makhiyaviya wrote: > Thanks for quick response. > we already knew this and we are passing following xml when calling Start > action. > What version of the engine are you using exactly? This is a known bug. The "cloud_init" element is ignored. See here for details:

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-30 Thread Juan Hernández
;8.8.4.4 > > > > > > > > > > > > > Regards, > *Arpit Makhiyaviya* > Software Engineer > +91-79-40038284 > +91-971-437-6669 > <http://www.sculptsoft.com> >

Re: [ovirt-users] User permission error in add new disk using API

2016-03-30 Thread Juan Hernández
On 03/30/2016 01:31 PM, Vishal Panchal wrote: > Hello, > > I got following error during add new disk using API but on other side > from admin panel I can create new disk. > > *Error :* > Cannot add Virtual Machine Disk. The user doesn't have permissions to > attach Disk Profile to the Disk.* > *

Re: [ovirt-users] User permission error in add new disk using API

2016-03-31 Thread Juan Hernández
to Everyone group to newly added storagedomain's profile https://bugzilla.redhat.com/1209505 That can affect you if you are trying to perform this operation with an user that doesn't have the permission. Are you? Or are you using the adminstrator? Ondra, do you know if there is a worka

Re: [ovirt-users] ovirt-shell : Smart way to run a cmd WHEN another is finished?

2016-04-01 Thread Juan Hernández
On 04/01/2016 09:40 AM, Nicolas Ecarnot wrote: > Hello, > > I'd like to night-batch series of actions through some ovirt-shell scripts. > Amongst those actions, some are taking a very long time and are treated > asynchronously by oVirt. (That may be exports, imports, snapshots, boot, > shutdown.

Re: [ovirt-users] ovirt reports install js-ant failed to execute

2016-04-01 Thread Juan Hernández
On 04/01/2016 05:47 PM, Bill James wrote: > I just upgraded to ovirt-engine 3.6.4 and thought I'd try reports to see > what they are: http://www.ovirt.org/documentation/how-to/reports/reports/ > > yum install ovirt-engine-dwh ovirt-engine-reports > > engine-setup fails with: > > [ INFO ] Deplo

Re: [ovirt-users] Start VM with cloud_init and ssh key using REST API

2016-04-05 Thread Juan Hernández
On 04/05/2016 10:30 AM, Vishal Panchal wrote: > Hello, > > I have already create vm and configure network properties using cloud > init and REST API.But now I want to implement SSH feature.So I used > following XML request but it give me bad request response. > > XML Request : > > > >

Re: [ovirt-users] ovirt-shell issue

2016-04-07 Thread Juan Hernández
On 04/06/2016 07:28 PM, Nathanaël Blanchet wrote: > Hello, > in an interactive shell, I can successfully execute such a command: > add network --name brv13 --vlan-id 13 --datacenter-identifier Cines > --description A_FORM > but the same as an argument of ovirt-shell, > # ovirt-shell -E "add netwo

Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-11 Thread Juan Hernández
On 04/10/2016 12:16 PM, Yaniv Kaul wrote: > > > On Sun, Apr 10, 2016 at 11:02 AM, Yedidyah Bar David > wrote: > > On Sun, Apr 10, 2016 at 10:43 AM, Barak Korren > wrote: > > Hi there, I use the following Python SDK snippet to creat

Re: [ovirt-users] python sdk and params

2016-04-11 Thread Juan Hernández
On 04/11/2016 11:51 AM, Fabrice Bacchella wrote: > I'm playing with the python sdk. > > When I want to delete a VM, I see that it takes a action with settings : > > [@param action.force: boolean] > [@param action.vm.disks.detach_only: boolean] > [@param action.async: boolean] > [@param action.gra

Re: [ovirt-users] debuging Python SDK

2016-04-11 Thread Juan Hernández
On 04/11/2016 12:24 PM, Fabrice Bacchella wrote: > I writting code to generate a VM. > > But I'm getting : > Traceback (most recent call last): > ... > newvm = self.api.vms.add(params.VM(**kwargs)) > File > "build/bdist.macosx-10.10-x86_64/egg/ovirtsdk/infrastructure/brokers.py", line > 35

Re: [ovirt-users] python sdk and /api/hosts/{host:id}/install

2016-04-21 Thread Juan Hernández
On 04/21/2016 04:58 PM, Fabrice Bacchella wrote: > I'm trying to the use the API to reinstall an hosts. > > But if a post the following content : > POST /api/hosts/X/install > >> >> >> false >> >> >> 22 >> SHA256: >> publickey >> >> >

Re: [ovirt-users] ovirt-shell show vm doesn't show all vm properties

2016-04-22 Thread Juan Hernández
On 04/22/2016 10:14 AM, Nathanaël Blanchet wrote: > Hi all, > > I'd like to find any vms with some defined properties like > (console-enabled or serial_number-policy for example) with ovirt-shell > -E "show vm name", but I can't find all information that I can get with > edit vm popupin the UI.

Re: [ovirt-users] audit_log table performance tuning

2016-04-25 Thread Juan Hernández
On 04/23/2016 07:17 AM, Oved Ourfali wrote: > > On Apr 23, 2016 7:46 AM, "Marina Kalinin" > wrote: >> >> Hi all, >> >> So far I created this solution for immediate remedy: >> https://access.redhat.com/solutions/721423 >> >> I created this general RFE, that would help i

Re: [ovirt-users] ovirt and JMX

2016-04-29 Thread Juan Hernández
On 04/29/2016 04:46 PM, Fabrice Bacchella wrote: > I'm trying to communicate with ovirt-engine using jmx. > > I read https://www.ovirt.org/develop/developer-guide/engine/jmx-support/ > > In the line > ENGINE_JMX_INTERFACE=public > > what is public ? Is that the string 'public', if I set that,

[ovirt-users] Prepare for version 4 of oVirt API

2016-05-04 Thread Juan Hernández
Hello all, For those of you that use oVirt API, I wanted to inform you that version 4 of oVirt will by default use a new version of the API, incompatible with the previous one. The previous version will still be supported, but only for clients that explicitly send the "Version: 3" header, as descr

Re: [ovirt-users] Prepare for version 4 of oVirt API

2016-05-05 Thread Juan Hernández
On 05/05/2016 11:34 AM, René Koch wrote: > On 05/04/2016 04:39 PM, Juan Hernández wrote: >> Hello all, >> >> For those of you that use oVirt API, I wanted to inform you that >> version 4 of oVirt will by default use a new version of the API, >> incompatible wi

Re: [ovirt-users] engine gives JBAS015011 java.lang.NullPointerException

2016-05-06 Thread Juan Hernández
On 05/06/2016 07:58 AM, Jorick Astrego wrote: > Hi, > > One of our older ovirt engine 3.5.5 (CentOS 7) machines had a raid > controller faillure and no recent ovirt-engine backup. > > So I recovered the files + database and reinstalled with > ovirt-engine-3.5.6.2-1. But I can't get it to work. >

Re: [ovirt-users] configuring bonding on host

2016-05-07 Thread Juan Hernández
On 05/06/2016 05:20 PM, Fabrice Bacchella wrote: > I'm following the example given > in http://www.ovirt.org/develop/api/pythonapi/ for bonding interfaces. > > I'm checking that the network is a plain configuration, > exporting /api/hosts//nics return : > > href="/api/hosts/db240f83-9266-4892-a6

[ovirt-users] Ondra Machacek is now the main maintainer of the Python and Java SDK

2016-05-09 Thread Juan Hernández
Hello, Ondra Machacek has been doing an excellent work in the new versions of the Java and Python SDKs for version 4 of the engine. As a result we have decided to appoint him as the main maintainer of these two components. Starting intermediately he will take full responsibility and ownership of v

Re: [ovirt-users] creation of lun disks

2016-05-13 Thread Juan Hernández
On 05/13/2016 04:21 PM, Fabrice Bacchella wrote: > I'm trying to generated a lun disk, using the python SDK. > > My code can be found > at https://github.com/fbacchella/ovirtcmd/blob/master/ovlib/disks/__init__.py > > If a try to see the content of a existing disk and test with : > print disk.get

Re: [ovirt-users] Migrate to python-ovirt-engine-sdk4

2016-07-04 Thread Juan Hernández
On 07/03/2016 12:37 PM, gregor wrote: > Hi, > > today I will migrate my backup tool [1] from oVirt version 3 to 4. > Is there anywhere a documentation to the new SDK? I downloaded the > source and read in the meantime through the code. It seems it will be a > lot of work :-( > > cheers > gregor >

Re: [ovirt-users] Ovirt Java SDK access to 'next run' configuration

2016-07-11 Thread Juan Hernández
On 07/08/2016 04:09 PM, Sebastien Fuchs wrote: > Hi, > > I'm developping (in JAVA) an automatic configuration manager to modify > memory and cpu allocation (cpushares for the moment) updated on a > calendar basis. It will also be used as a kind of enforcer/elastic > scheduler on top of the ovirt p

  1   2   3   >