Re: [ovirt-users] Clone and export VM by ovirt-shell

2016-09-29 Thread Juan Hernández
snapshot > snapshot.id={snapshot.id} does not exist. > > = > > I see my snapshot's in list snapshots --parent-vm {vm-name} > Should be something like this: remove snapshot 935d92a0-2f04-4ab6-ab71-f578a22ca788 --parent-vm-name myvm > > > &

Re: [ovirt-users] Clone and export VM by ovirt-shell

2016-09-29 Thread Juan Hernández
On 09/29/2016 01:38 PM, vasily.lamy...@megafon.ru wrote: > I use ovirt 3.6. > > How can I clone vm from snapshot. > > I want to do it by ovirt-shell. > > And after this I want to export VM. > > > > I can’t get information help for vm clone. > > And I don’t understand help action export. >

Re: [ovirt-users] ovirtsdk4 and cloud-init

2016-09-02 Thread Juan Hernández
On 09/01/2016 05:26 PM, Renout Gerrits wrote: > Thanks for pointing me in the right direction. That works :) > > On Wed, Aug 31, 2016 at 12:45 PM, Ondra Machacek > wrote: > > On 08/31/2016 12:36 PM, Renout Gerrits wrote: > > I have

Re: [ovirt-users] ovirt 3.6 python sdk how to find logical network from a host nic?

2016-08-16 Thread Juan Hernández
; but the gui says the network configuration is not saved. I can¹t find any > relevant params in the Action. > > Thanks, > Huan > Saving the network configuration is a different action: host.commitnetconfig() > > On 8/13/16, 5:09 AM, "Juan Hernández" <jhern..

Re: [ovirt-users] oVirt 4 + Foreman

2016-08-16 Thread Juan Hernández
On 08/16/2016 11:58 AM, Arsène Gschwind wrote: > Hi, > > has anybody been able to configure Foreman with oVirt 4 ? When trying to > add Foreman as an external provider and test the login it always return > : Failed to communicate with the external provider, see log for > additional details. > >

Re: [ovirt-users] qos problem in ovirt python sdk

2016-08-16 Thread Juan Hernández
On 08/16/2016 03:52 AM, like...@cs2c.com.cn wrote: > Hello, > > I'm using ovirt3.6.7, and i want to use QoS function by restapi. But i > fount i can't update the qos to unlimited. > For example, i assigned a qos named qos1 to a vnic profile named > vprofile1, then i want to set the qos of

Re: [ovirt-users] How to open vm console by API ?

2016-08-14 Thread Juan Hernández
On 08/14/2016 01:26 PM, Nicolás wrote: > Hi, > > This has been asked a short time ago, you can find the thread in [1]. > > In [2] you can find an unofficial oVirt project written in Python + QT5 > that already does that, it connects to the API, gets a list of available > VMs for the supplied

Re: [ovirt-users] ovirt 3.6 python sdk how to find logical network from a host nic?

2016-08-13 Thread Juan Hernández
On 08/13/2016 12:17 AM, Huan He (huhe) wrote: > Assuming the logical network ovirtmgmt has been configured in host NIC > enp6s0. > > host = api.hosts.get(‘host-123’) > host_nic = host.nics.get(‘enp6s0’) > > How to get the logical network name ovirtmgmt? > > I basically need to find ovirtmgmt is

Re: [ovirt-users] problem setting up bonding via rest in ovirt 3.6.6.2

2016-08-09 Thread Juan Hernández
On 08/09/2016 05:14 PM, Sven Kieske wrote: > Hi, > > I'd like to setup host network in the following way: > > I have 4 interfaces: eth0, eno1, eno2, eno3 > > ovirtmgmt network resides on eth0 and is working. > > Now I want to setup a bonding with the slave interfaces > eno2 and eno3 via the

Re: [ovirt-users] python sdk v3 host nic issues

2016-08-06 Thread Juan Hernández
On 08/05/2016 08:08 PM, Huan He (huhe) wrote: > Hi, > > I tried the host nic and bond sample code > in http://www.ovirt.org/develop/api/pythonapi/. In gui, I am able to > create bond and vlan network without issues. > > here is my code > > > if __name__ == '__main__': > > url =

Re: [ovirt-users] How do I activate a hot-plugged disk (in v3 Python SDK) ?

2016-07-26 Thread Juan Hernández
On 07/26/2016 08:53 AM, Yaniv Kaul wrote: > > > On Mon, Jul 25, 2016 at 4:36 PM, Ondra Machacek > wrote: > > You actually have to run method 'activate()'[1] on VM disk. > > So it will look like this: > >

Re: [ovirt-users] OVirt API question

2016-07-25 Thread Juan Hernández
On 07/25/2016 08:43 AM, Костя Климук wrote: > Hello, OVirt community! > > I have some problems in understanding with OVirt (v 3.6.0) API. > I'm trying to create user with specifying his roles, by using such > signature in POST call: > > > > testuser@saml-auth > > > >

Re: [ovirt-users] Snapshot creation using REST API

2016-07-22 Thread Juan Hernández
On 07/21/2016 04:06 PM, Vishal Panchal wrote: > Hello, > > I have created a snapshot using Ovirt REST API. After creation in > response I found a link that gives me creation status of snapshot but > when I am using that URL I am getting 404 Error(URL Not Found). I am > using Ovirt version 3 API .

Re: [ovirt-users] Cannot install new host on 4.0, Certificate enrollment failed

2016-07-20 Thread Juan Hernández
; I think it can't be shortened, as most TLS/SSL clients check that the host name matches exactly the common name inside the certificate, and this check would fail if you shorten it. > > > 2016-07-20 13:07 GMT+02:00 Juan Hernández <jhern...@redhat.com>: >> On 07/20/20

Re: [ovirt-users] Cannot install new host on 4.0, Certificate enrollment failed

2016-07-20 Thread Juan Hernández
virt 19 Jul 18 20:46 private drwxr-xr-x. 2 ovirt ovirt 4096 Jul 18 20:46 requests -rw-r--r--. 1 ovirt ovirt5 Jul 8 11:42 serial.txt -rw-r--r--. 1 ovirt ovirt5 Jul 8 11:42 serial.txt.old > > > 2016-07-19 19:08 GMT+02:00 Juan Hernández <jhern...@redhat.com>: >> On 07/19/

Re: [ovirt-users] Cannot install new host on 4.0, Certificate enrollment failed

2016-07-19 Thread Juan Hernández
On 07/19/2016 06:16 PM, Matt . wrote: > Can anyone confirm what max. number of subdomains can be used for a > certificate ? > > The length of 65 per subdomain should be default. > > 2016-07-19 15:06 GMT+02:00 Matt . : >> It's the fqdn indeed, not it's hostname. >> >> Fqdn

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

2016-07-13 Thread Juan Hernández
On 07/13/2016 10:30 AM, Jure Kranjc wrote: > On 01. 12. 2014 14:40, Nicolas Ecarnot wrote: >> Le 01/12/2014 13:23, Juan Hernández a écrit : >>> On 12/01/2014 12:51 PM, Michael Pasternak wrote: >>>> not sure what sdk version 3.4.4 is, but according to log, latest >

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

2016-07-12 Thread Juan Hernández
hat is a bug, opened the following BZ to track it: It isn't possible to change the CPU shares of virtual machine when it is up https://bugzilla.redhat.com/1355865 > > On Mon, Jul 11, 2016 at 1:07 PM, Juan Hernández <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote

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

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] 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

[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

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 : > >

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

[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

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,

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

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

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] 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

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

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

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 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 ]

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, >

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 workaro

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] 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] 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] 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

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:

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] 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. >

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 >

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 > > wrote: > > Hi, > > __ __ > > __ __ > > I’m a little bit lost by looking how to migrate a Guest between two

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

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] 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: >>

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] 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

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

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] [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] 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

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

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. > >

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 <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > On 01/12/2016 08:44 PM, Tim Bielawa wrote: > > Hello virt folks, > > > > B

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

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

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

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 <jhern...@redhat.com> 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 vers

Re: [ovirt-users] Setting PXE boot via Python API

2015-12-04 Thread Juan Hernández
On 12/03/2015 10:59 PM, Jamie Lawrence wrote: > Hello, > > I’m currently playing with scripted VM creation and have an issue getting the > newly created VM to PXE boot. My objective is to port some creation scripts > from the environment this will eventually replace and worry about making this

Re: [ovirt-users] Power Management with python SDK

2015-12-01 Thread Juan Hernández
On 12/01/2015 03:16 PM, Giulio Casella wrote: > Hi everybody, > I'm trying to enable power management on a host using python, but I'm stuck. > > Previously (ovirt 3.5) I directly wrote power management parameters into > PowerManagement structure (and everything was working fine), but > starting

Re: [ovirt-users] Error when trying to retrieve cluster, hosts via ovirt API

2015-11-26 Thread Juan Hernández
re another way to get these infos > "locally" on the host itself ? > I'm not aware of any way to do that, I'd suggest that you stick to interacting with the engine for that. > > -Message d'origine- > De : Juan Hernández [mailto:jhern...@redhat.com] > En

Re: [ovirt-users] [ovirt-devel] ovirt-engine-sdk-python too slow

2015-11-25 Thread Juan Hernández
nsof...@redhat.com > <mailto:nsof...@redhat.com>> wrote: > > On Tue, Nov 24, 2015 at 3:49 PM, John Hunter <zhjw...@gmail.com > <mailto:zhjw...@gmail.com>> wrote: > > > > On Tue, Nov 24, 2015 at 9:15 PM, Juan Hernández > &l

Re: [ovirt-users] [ovirt-devel] ovirt-engine-sdk-python too slow

2015-11-24 Thread Juan Hernández
On 11/24/2015 02:49 PM, John Hunter wrote: > > > On Tue, Nov 24, 2015 at 9:15 PM, Juan Hernández <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > On 11/24/2015 01:40 PM, John Hunter wrote: > > Hi, > > > > On T

Re: [ovirt-users] [ovirt-devel] ovirt-engine-sdk-python too slow

2015-11-24 Thread Juan Hernández
On 11/24/2015 01:40 PM, John Hunter wrote: > Hi, > > On Tue, Nov 24, 2015 at 5:18 PM, Oved Ourfali > wrote: > > Hi > > I discussed it with Juan (cc-ed). > > There used to be a bug in the JDBC authenticion extension that >

Re: [ovirt-users] Error when trying to retrieve cluster, hosts via ovirt API

2015-11-18 Thread Juan Hernández
On 11/18/2015 12:22 PM, Jean-Pierre Ribeauville wrote: > Hi, > > You were right . > > By setting correct URL and correct certificate file location , it’s working. > > If I well understand , as this certificate file has to be on the client > side , isn’t a point if failure ? > The certificate

Re: [ovirt-users] 3.6: Can't change display disconnect action policy in templates

2015-11-11 Thread Juan Hernández
On 11/11/2015 10:15 AM, Cristian Mammoli wrote: > Hi, in 3.6 it is not possible to change display disconnect policy in > templates. Well, you can change it and save but when you go back to the > config it goes back to lock_screen > > It does not work even with shell: > > [oVirt shell

Re: [ovirt-users] ovirt-shell - Polling or also events?

2015-11-10 Thread Juan Hernández
On 11/10/2015 04:22 PM, Fabian Deutsch wrote: > On Tue, Nov 10, 2015 at 1:03 PM, Juan Hernández <jhern...@redhat.com> wrote: >> On 11/09/2015 08:53 AM, Fabian Deutsch wrote: >>> Hey, >>> >>> does somebody know if ovirt-shell can also wait (block) for

Re: [ovirt-users] ovirt-shell - Polling or also events?

2015-11-10 Thread Juan Hernández
On 11/09/2015 08:53 AM, Fabian Deutsch wrote: > Hey, > > does somebody know if ovirt-shell can also wait (block) for properties > of an object to change, i.e.: > > ovirt-shell wait --query "status-state=installed" > > - fabian > No, ovirt-shell can't wait, and it is very unlikely that we

Re: [ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Juan Hernández
On 10/22/2015 07:50 AM, Indunil Jayasooriya wrote: > Hi list, > > I want to *schedule a VM backup* in ovirt 3.5. I read below > URL. > > http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups > > It gives an

Re: [ovirt-users] Running an ovirt phyton scrit on a newly RHEL7 installed system

2015-09-15 Thread Juan Hernández
On 09/15/2015 11:02 AM, Jean-Pierre Ribeauville wrote: > Hi, > > > > I’m trying to retrieve datacenters clusters hosts and vms by using > ovirt python script needing some imports : > > > > /import sys/ > > /from ovirtsdk.api import API/ > > /from ovirtsdk.xml import params/ > > /from

Re: [ovirt-users] Stuck at Enrolling serial console certificate

2015-08-21 Thread Juan Hernández
On 08/21/2015 12:22 PM, Sahina Bose wrote: On 08/21/2015 03:50 PM, Alon Bar-Lev wrote: Interesting. Please execute manually: # /usr/share/ovirt-engine/bin/pki-enroll-openssh-cert.sh --name=rhsdev9.lab.eng.blr.redhat.com-ssh --host --id=rhsdev9.lab.eng.blr.redhat.com

Re: [ovirt-users] ovirt-shell and PAGER

2015-08-20 Thread Juan Hernández
On 08/20/2015 01:17 PM, Fabrice Bacchella wrote: ovirt shell uses PAGER for all output, even single line one. I was using PAGER=less, it made it barely usable. That's strange any way for a interactive shell. I have created the following bug to track this issue:

Re: [ovirt-users] ovirt shell on mac OS ?

2015-08-20 Thread Juan Hernández
On 08/20/2015 01:00 PM, Fabrice Bacchella wrote: I'm trying to install ovirt-shell on my mac, as explained in http://www.ovirt.org/CLI#pypi , but if fails : $ virtualenv-2.7 ovirt New python executable in ovirt/bin/python Installing setuptools, pip, wheel...done. $

Re: [ovirt-users] ovirt shell on mac OS ?

2015-08-20 Thread Juan Hernández
On 08/20/2015 04:32 PM, Fabrice Bacchella wrote: Le 20 août 2015 à 16:03, Juan Hernández jhern...@redhat.com a écrit : This is related to the cli/platform/__init__.py, there we check what is the platform using the Python sys.platform variable. Currently we only check for linux2 and win32

Re: [ovirt-users] ovirt shell on mac OS ?

2015-08-20 Thread Juan Hernández
On 08/20/2015 04:01 PM, Juan Hernández wrote: On 08/20/2015 03:52 PM, Fabrice Bacchella wrote: Le 20 août 2015 à 15:50, Juan Hernández jhern...@redhat.com a écrit : On 08/20/2015 01:00 PM, Fabrice Bacchella wrote: I'm trying to install ovirt-shell on my mac, as explained in http

Re: [ovirt-users] ovirt-shell and PAGER

2015-08-20 Thread Juan Hernández
On 08/20/2015 01:17 PM, Fabrice Bacchella wrote: ovirt shell uses PAGER for all output, even single line one. I was using PAGER=less, it made it barely usable. That's strange any way for a interactive shell. I have created the following bug to track this issue:

Re: [ovirt-users] ovirt-shell and PAGER

2015-08-20 Thread Juan Hernández
On 08/20/2015 03:50 PM, Fabrice Bacchella wrote: The PAGER bug is not related to mac os. I had the problem on a Centos 6. I know, replied to the wrong message, sorry. Le 20 août 2015 à 15:49, Juan Hernández jhern...@redhat.com a écrit : On 08/20/2015 01:17 PM, Fabrice Bacchella wrote

Re: [ovirt-users] Doc for ovirt-shell command

2015-07-21 Thread Juan Hernández
On 07/21/2015 05:36 PM, Arsène Gschwind wrote: Hi, I've searched but couldn't find any doc for some ovirt-shell command like: # update storagedomain --storage-logical_unit Could somebody point me to some infos... Thanks a lot Rgds, Arsène Try here:

Re: [ovirt-users] Setting VmPool type via ovirtsdk

2015-07-20 Thread Juan Hernández
On 07/20/2015 12:51 PM, nico...@devels.es wrote: Hi, I'm defining new VmPools via python code using ovirtSDK along with oVirt v. 3.5.3.1-1. Pool creation seems to work fine, but by default they are created as 'Automatic' and I need them to be 'Manual', however, I can't find out the SDK

Re: [ovirt-users] Where can I find the full document/description of ovirtsdk 3.5?

2015-07-15 Thread Juan Hernández
On 07/15/2015 04:53 AM, lof yer wrote: Where can I find the full document/description of ovirtsdk 3.5? Since help(xxx) in python is not very useful. I suggest you use this:

Re: [ovirt-users] VM run once API required

2015-07-03 Thread Juan Hernández
On 07/03/2015 09:03 AM, Chandrahasa S wrote: Any one can help on this ?? Thanks Regards I answered that a few days ago, maybe you didn't receive it. It is here: http://lists.ovirt.org/pipermail/users/2015-June/033482.html From:Chandrahasa S/MUM/TCS To:

Re: [ovirt-users] VM run once API required

2015-06-30 Thread Juan Hernández
On 06/30/2015 08:16 AM, Chandrahasa S wrote: Hi Experts, We are integrating RHEV(M) with our internal cloud portal using RHEV(M) API, we are able to provision Linux VM using API. But IP and Hostname not getting reflected on vm first boot. If we boot VM manually using run once its working

Re: [ovirt-users] Help with REST api and json examples

2015-06-23 Thread Juan Hernández
On 06/23/2015 02:49 PM, Scott Miller wrote: I am unable to POST with json to the REST api. Every attempt is returned with: { message: Request syntactically incorrect. See the description below for the correct usage:, From what I can see the syntax should be ok however I am unable to

Re: [ovirt-users] Run Once Python SDK

2015-06-19 Thread Juan Hernández
On 06/19/2015 11:24 AM, Jiri Belka wrote: I was looking into performing the run once option via the SDK with an attached ISO. With the plan to be to attach an ISO and force a VM to boot from the CD. Basically: 1) Mount an ISO in run once mode 2) Make CD-ROM the first item in the boot

Re: [ovirt-users] how to pause a VM from rest-api?

2015-05-21 Thread Juan Hernández
On 05/21/2015 02:43 PM, Ernest Beinrohr wrote: I'd like to pause a VM from rest-api. But the docs are not mentioning pause, only suspend. This works: URL/api/vms/ID/suspend and pause doesn't. Pausing from vdsClient works however, but I'd like to use rest-api: vdsClient -s host1 pause ID

Re: [ovirt-users] missing disk after storage domain expansion

2015-05-20 Thread Juan Hernández
On 05/19/2015 06:23 PM, Maor Lipchuk wrote: Hi Andrea, I'm using postman chrome-extension to execute my REST requests. For firefox the rest-client add-on you can use is https://addons.mozilla.org/de/firefox/addon/restclient/ Juan, do we have a wiki for step by step instructions of REST

Re: [ovirt-users] Unable to Delete a VM snapshot .

2015-05-13 Thread Juan Hernández
On 05/11/2015 02:12 PM, Kumar R, Prashanth (Prashanth) wrote: Hi All, I am facing issue in deleting a VM snapshot. I am using ovirt-engine-sdk-java-3.5.0.5.jar According to the SDK API,I can delete a VM using :

Re: [ovirt-users] autologin into vm desktop

2015-05-07 Thread Juan Hernández
On 05/07/2015 05:25 AM, Adolfo wrote: :`(... after looking at this, this is not what i was looking for (but almost). This API call seems to make logon on desktop using the credentials of the client. I mean, we can't pass the user credentials (as with vdsClient), ovirt takes them from their

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 : On 03/30/2015 04:50 PM, Nathanaël

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, so I would like to remove it completely for 3.6

[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] 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

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

Re: [ovirt-users] Details of the host

2015-01-26 Thread Juan Hernández
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 jhern...@redhat.com mailto:jhern...@redhat.com wrote

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

2015-01-26 Thread Juan Hernández
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 jhern...@redhat.com mailto:jhern...@redhat.com: On 01/23/2015 05:20 AM, Grzegorz Szypa wrote: Hi. I have a simillar problem like in this link

<    1   2   3   >