Re: [ovirt-users] How to generate Swagger specification of the oVirt API?

2018-03-22 Thread Juan Hernández
On 03/22/2018 04:40 AM, Shao-Da Huang wrote: Hi Juan, I saw the discussion in users-list: http://lists.ovirt.org/pipermail/users/2017-April/081618.html and I'm curious about how to generate the Swagger specfication of existing oVirt API (or maybe can generate by ovirt-engine-api-model?). Could

Re: [ovirt-users] Tunable parameters in ovirt engine

2018-03-08 Thread Juan Hernández
that it is due to the connection drop. So It would be Great, If you could check my Apache server configuration I shared in the thread and let me know your thoughts on this. Thanks, Hari On Thu, Mar 8, 2018 at 4:56 PM, Juan Hernández <jhern...@redhat.com> wrote: But other than those SSL error me

Re: [ovirt-users] Tunable parameters in ovirt engine

2018-03-08 Thread Juan Hernández
ake failed (5). Could you let me know the configuration of Apache web server is correct? Thanks, Hari On Thu, Mar 8, 2018 at 1:08 AM, Juan Hernández <jhern...@redhat.com> wrote: If you are still having problems I am inclined to think that it is a client issue. For example, I'd try to remove

Re: [ovirt-users] Tunable parameters in ovirt engine

2018-03-07 Thread Juan Hernández
on we need to change? Also, we are taking a benchmark in using oVirt, So I need to find the maximum possible oVirt request. So please let me know the configuration tuning for oVirt to achieve maximum concurrent request. Thanks, Hari On Wed, Mar 7, 2018 at 7:25 PM, Juan Hernández <jhern...@redh

Re: [ovirt-users] Tunable parameters in ovirt engine

2018-03-07 Thread Juan Hernández
s? Thanks, Hari On Wed, Mar 7, 2018 at 7:05 PM, Juan Hernández <jhern...@redhat.com> wrote: The first thing you will need to change for such a test is the number of simultaneous connections accepted by the Apache web server: by default the max is 256. See the Apache documentation

Re: [ovirt-users] Tunable parameters in ovirt engine

2018-03-07 Thread Juan Hernández
The first thing you will need to change for such a test is the number of simultaneous connections accepted by the Apache web server: by default the max is 256. See the Apache documentation here: https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxrequestworkers In addition I also

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 explicitly

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

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

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

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,

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

2017-06-28 Thread Juan Hernández
ou 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 details. > On Wed, Jun 28, 2017 at 1:03 PM, Ju

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

2017-06-28 Thread Juan Hernández
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 <br...@pic.es > <mailto:br...@pic.es>> wrote: > > Thank you very much !!! > > I expected I was missing

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

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

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

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

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

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" >> <fabrice.bacche...@orange.fr <mailto:fabrice.bacche...@orange.fr>> wrote: >> >> I'm u

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" > > wrote: > > I'm using kerberos authentication in ovirt for the URL > /sso/oauth/token-http-auth, but kerberos is done in

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] 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 <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > > Yes, capablanca is too old. > > The instructions that you mention should still work, bu

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'

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 <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > On 05/05/2017 03:47 PM, Gianluca Cecchi wrote: > > Hello, > > is M

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

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

2017-04-28 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 <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > That is a known issue: > > fence_rhevm can only work as RHEV admin user not a regular user (tha

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 > > wrote: > > On Thu, Apr 27, 2017 at 4:43 PM, Gianluca Cecchi > >

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 =

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 >> mapping ? >&g

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

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

2017-04-19 Thread Juan Hernández
n Wed, Apr 19, 2017 at 1:36 PM, TranceWorldLogic . > <tranceworldlo...@gmail.com <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 <jhern...@redhat.com > <

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 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-SDK4: How to list VM user sessions?

2017-04-10 Thread Juan Hernández
rt just the user name and domain, if available. But returning 404 and failing in that case isn't correct, in my opinion. I have opened the following bug to track this issue: Don't fail with 404 if session user doesn't exist in the database https://bugzilla.redhat.com/1440861 > On 04/10/2017 01:

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-10 Thread Juan Hernández
On 04/10/2017 11:10 AM, Giulio Casella wrote: > On 07/04/2017 16:00, Juan Hernández wrote: >> I have been trying to reproduce this and I wasn't able. In theory the >> 404 error that you get should only happen if the virtual machine doesn't >> exist, but that isn't the case

Re: [ovirt-users] [Ovirt 4.0 Python SDK] Host fail to move in Maintenance State

2017-04-10 Thread Juan Hernández
On 04/07/2017 12:06 PM, TranceWorldLogic . wrote: > Hi, > > I was trying to deactivate host via python SDK but found that host is > not moving in Maintenance State. > > In this scenario, I found that I have one additional network added in > cluster but not setup on Host. > Hence it retrying in

Re: [ovirt-users] JavaAPI exporting VM

2017-04-07 Thread Juan Hernández
On 04/07/2017 03:04 PM, David David wrote: > Hello. > > Can't reexport a VM if this VM is already present in the export domain > > With Java api: > > *VM vm = api.getVMs().get("vm01"); > > StorageDomain exportDomain = api.getStorageDomains().get("export"); * > > *Action act =

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-04-07 Thread Juan Hernández
Found" message? On 03/31/2017 10:25 AM, Giulio Casella wrote: > On 30/03/2017 20:05, Juan Hernández wrote: >> On 03/30/2017 01:01 PM, Giulio Casella wrote: >>> Hi, >>> I'm trying to obtain a list of users connected to a VM, using python SDK >>> v4. >>&g

Re: [ovirt-users] Python-SDK4: Listing template by ID throws exception

2017-04-04 Thread Juan Hernández
On 04/04/2017 10:59 AM, nico...@devels.es wrote: > Hi, > > I'm using ovirt-engine-sdk-python 4.1.3 (ovirt ver is 4.1.0), and in a > snippet I'm trying to get a template by its id. For that, I did this: > > conn = ovirtsdk4.Connection(...) > sys_serv = conn.system_service() > tpl_serv =

Re: [ovirt-users] Python-SDK4: How to list VM user sessions?

2017-03-30 Thread Juan Hernández
On 03/30/2017 01:01 PM, Giulio Casella wrote: > Hi, > I'm trying to obtain a list of users connected to a VM, using python SDK > v4. > Here's what I'm doing: > > vm = vms_service.list(search="name=vmname")[0] > vm_service = vms_service.vm_service(vm.id) > sessions =

Re: [ovirt-users] Python-SDK4: How to list user permissions?

2017-03-29 Thread Juan Hernández
On 03/29/2017 01:05 PM, nico...@devels.es wrote: > Hi, > > I'm trying to get a user's list of permissions, i.e., list all > permissions a user have on VMs and VmPools. > > In SDK3 that was easy as I could run (being 'u' a User object): > > for perm in u.permissions.list(): > vm =

Re: [ovirt-users] ovirt-shell backup

2017-03-23 Thread Juan Hernández
On 03/23/2017 02:40 PM, Marcin Kruk wrote: > Hello is it possible to execute below actions from the ovirth-shell: > 1. Make snapshot > ( ovirt-shell -E 'add snapshot --parent-vm-name --description > ) > 2. Make clone from snaphot above > ( ? ) > 3. Export clone > ( ? ) > The ovirt-shell tools

Re: [ovirt-users] How to set priority for HA VM via Python SDK ?

2017-03-23 Thread Juan Hernández
On 03/23/2017 08:59 AM, TranceWorldLogic . wrote: > Hi, > > I want to set priority of Highly Available VM as High via python SDK. > I provided information as shown below: > > vm = self.vms_service.add( > vm = types.Vm ( > high_availability =

Re: [ovirt-users] Python-SDK: ovirtsdk4.Connection object autologout?

2017-03-22 Thread Juan Hernández
On 03/22/2017 01:50 PM, Juan Hernández wrote: > On 03/22/2017 01:10 PM, nico...@devels.es wrote: >> Hi, >> >> We've recently upgraded from oVirt 4.0.x to 4.1.0 and it seems that the >> behavior of a script we wrote in Python-SDK has changed slightly. We >> have a

Re: [ovirt-users] Python-SDK: ovirtsdk4.Connection object autologout?

2017-03-22 Thread Juan Hernández
On 03/22/2017 01:10 PM, nico...@devels.es wrote: > Hi, > > We've recently upgraded from oVirt 4.0.x to 4.1.0 and it seems that the > behavior of a script we wrote in Python-SDK has changed slightly. We > have a script that needs to be executed forever (daemon mode). This > daemon creates an

Re: [ovirt-users] ovirt-shell -- cannot even get started

2017-03-16 Thread Juan Hernández
On 03/16/2017 09:48 PM, Phil Meyer wrote: > This is either some very obscure syntax, or it may not be working. > > Difficult to tell, since the error message seems to be generic: > > ... > > ERROR > = >

Re: [ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread Juan Hernández
ributes of 'types.Initialization', as explained here: https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/start_vm_with_cloud_init.py#L59-L86 > > > On Thu, Mar 16, 2017 at 7:33 PM, Juan Hernández <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote

Re: [ovirt-users] How to configure Cloud-init in Guest OS ?

2017-03-16 Thread Juan Hernández
On 03/16/2017 02:22 PM, TranceWorldLogic . wrote: > Hi, > > I am trying to use cloud-int to provide some text file in guest OS as > mention in below link. (tried using sdk) > But it is not working. > http://www.ovirt.org/develop/release-management/features/cloud/cloud-init-integration/ > What

Re: [ovirt-users] cannot exceed maximum memory size

2017-03-09 Thread Juan Hernández
On 03/09/2017 04:00 PM, Jakub Niedermertl wrote: > Based on the snipped provided at the beginning of the conversation I > assume rest api v3 is used. I'm not sure, max memory property was > backported there. > > @Juan do we have some support for 4.1 changes in rest api v3? > > In rest api v4

Re: [ovirt-users] oVirt VM backup and restore

2017-03-09 Thread Juan Hernández
On 03/09/2017 02:10 PM, Nathanaël Blanchet wrote: > > > Le 09/03/2017 à 12:10, Juan Hernández a écrit : >> On 03/09/2017 11:57 AM, Gianluca Cecchi wrote: >>> On Thu, Mar 9, 2017 at 11:39 AM, Nathanaël Blanchet <blanc...@abes.fr >>> <mailto:blanc...@abes.fr

Re: [ovirt-users] oVirt VM backup and restore

2017-03-09 Thread Juan Hernández
On 03/09/2017 11:57 AM, Gianluca Cecchi wrote: > On Thu, Mar 9, 2017 at 11:39 AM, Nathanaël Blanchet > wrote: > > > > Le 09/03/2017 à 10:25, Gianluca Cecchi a écrit : >> On Wed, Mar 8, 2017 at 6:05 PM, Gianluca Cecchi >>

Re: [ovirt-users] oVirt VM backup and restore

2017-03-09 Thread Juan Hernández
On 03/09/2017 11:11 AM, Gianluca Cecchi wrote: > On Thu, Mar 9, 2017 at 10:58 AM, Juan Hernández <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > > > Very good point Gialuca, you are right, the 'persist_memorystate' flag > is 'true' by

Re: [ovirt-users] oVirt VM backup and restore

2017-03-09 Thread Juan Hernández
On 03/09/2017 10:25 AM, Gianluca Cecchi wrote: > On Wed, Mar 8, 2017 at 6:05 PM, Gianluca Cecchi > > wrote: > > > > NOTE: during the snapshot creation I see in web admin console the VM > in paused state and also not responsive

Re: [ovirt-users] ovirt-engine-sdk-python-4.1 clone a vm from snapshot

2017-03-08 Thread Juan Hernández
On 03/08/2017 06:53 PM, Niyazi Elvan wrote: > Hi Folks ! > > I am looking for a documentation for ovirt-engine-sdk-python-4.1 but > could not find anything yet. Looks like there are many changes compared > to 4.0. > Version 4.1 of the SDK isn't very different for version 4.0. It is very

Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Juan Hernández
On 03/08/2017 06:23 PM, Nathanaël Blanchet wrote: > > > Le 08/03/2017 à 18:17, Juan Hernández a écrit : >> On 03/08/2017 06:15 PM, Barak Korren wrote: >>> On 8 March 2017 at 19:07, Juan Hernández <jhern...@redhat.com> wrote: >>>> The best way to

Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Juan Hernández
On 03/08/2017 06:15 PM, Barak Korren wrote: > On 8 March 2017 at 19:07, Juan Hernández <jhern...@redhat.com> wrote: >> >> The best way to get the latest versions of those packages is to install >> the oVirt release RPM: >> >> dnf install http://resources

Re: [ovirt-users] Python sdk 4 for Fedora 25 where?

2017-03-08 Thread Juan Hernández
On 03/08/2017 05:58 PM, Gianluca Cecchi wrote: > Hello, > it seems that on my Fedora 25 I'm able to find > only ovirt-engine-sdk-python that is 3.6.9.1 > What should I execute to get sdk 4 on Fedora 25? > Can I have both the sdk 3 and 4 for test an a single machine? > > Thanks in advance, >

Re: [ovirt-users] ovirt_nics problem at ansible module

2017-03-08 Thread Juan Hernández
On 03/08/2017 03:44 PM, Oğuz Yarımtepe wrote: > Hi, > > Below is my playbook > > --- > - name: Setup oVirt environment > hosts: vms > tasks: > - block: > - name: Include oVirt password > #no_log: true > include_vars: vars.yml > > - name: Obtain SSO

Re: [ovirt-users] ovirt ansible module

2017-03-08 Thread Juan Hernández
On 03/08/2017 10:08 AM, Oğuz Yarımtepe wrote: > I didn't see any parameter at the current ansible documentation related > with these features. How can i set these feature if i am using ansible? > Any possibility to set them via SDK after the vm is opened via ansible? > The target storage domain

Re: [ovirt-users] restapi

2017-03-07 Thread Juan Hernández
On 03/07/2017 12:50 PM, qinglong.d...@horebdata.cn wrote: > Hi, all > I have a cloud foundry environment. I have noticed that cloud > foundry can schedule vitual machines created by vmware or openstack > using restapi. Ovirt supports restapi, too. So I want to know if it is > possible to

Re: [ovirt-users] ansible ovirt-vms

2017-02-23 Thread Juan Hernández
On 02/23/2017 01:58 PM, Norman Lamponi wrote: > Hello all, > > i'm trying to implement automatic deploy of vm on a rhevm/ovirt platform > using ansible and ovirt_vms module. > > I take rhel 7.3 kvm guest with cloud init like template, i can deploy vm > with no problem but when i try using

Re: [ovirt-users] How to manage to update the Quota limits parameters (cpu, memory and disk)

2017-02-17 Thread Juan Hernández
On 02/17/2017 01:21 PM, Manuel Luis Aznar wrote: > Hello there, > > I want to update the quota limit parameters for vcpu, memory and disk, > but I dont find the way. > > I manage to get the actual values but I am unable to manage how to > update this values. > > I am doing the following (I

Re: [ovirt-users] Getting error while trying to add VmPool using ovirtsdk4 version of the python api

2017-02-10 Thread Juan Hernández
On 02/10/2017 01:43 PM, Manuel Luis Aznar wrote: > Hello there, > > I am trying to add a VmPool to oVirt using the python ovirtSDK4 with > following lines: > > I am omitting the import packages lines and connection lines. > > > > system_service = connection.system_service() > >

Re: [ovirt-users] Ovirt FQDN

2017-01-28 Thread Juan Hernández
On 01/28/2017 09:28 AM, Yaniv Kaul wrote: > > > On Jan 27, 2017 12:32 PM, "Juan Hernández" <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > On 01/27/2017 11:56 AM, Alex wrote: > > Hi, > > > > I added the IP

Re: [ovirt-users] Ovirt FQDN

2017-01-27 Thread Juan Hernández
on network and I dont have direct SSH access to final hop. > > I will also add a custom config next to 11-setup-sso.conf file. Thanx > for pointing it out. > > Alex > > > On January 27, 2017 1:32:14 PM EET, "Juan Hernández" > <jhern...@redhat.com> wrote: &

Re: [ovirt-users] Ovirt FQDN

2017-01-27 Thread Juan Hernández
On 01/27/2017 11:56 AM, Alex wrote: > Hi, > > I added the IP address at 11-setup-sso.conf (found at > /etc/ovirt-engine/engine.conf.d), at line SSO_ALTERNATE_ENGINE_FQDNS="IP". > Then restarted engine. > I can access now engine vm using IP, but I cannot when connecting > remotely using localhost

Re: [ovirt-users] get UI working throug ALIAS and real hostname

2017-01-24 Thread Juan Hernández
ave decided that the risk of unforeseen issues & potential problems > down the line, are far greater than the pain of redeploying & migrating > to a new environment. > > A really hacky hack, without interfering with the engine, would be to > try & put a reverse proxy in front

Re: [ovirt-users] get UI working throug ALIAS and real hostname

2017-01-24 Thread Juan Hernández
On 01/24/2017 03:15 PM, emanuel.santosvar...@mahle.com wrote: > If I access the UI via "ALIAS" I get the Error-Page "The client is not > authorized to request an authorization. It's required to access the > system using FQDN. > > What can I do to get UI working through ALIAS and real hostname? >

Re: [ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Juan Hernández
On 01/24/2017 01:18 PM, Nicolas Ecarnot wrote: > Juan, > > Thank you very much for your help, this is working. > > Some comments below. > > Le 24/01/2017 à 11:04, Juan Hernández a écrit : >> In order to do that you need to specify that you want to clone t

Re: [ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Juan Hernández
On 01/24/2017 10:13 AM, Nicolas Ecarnot wrote: > Hello, > > When trying to create a VM by cloning a template, I found out I couldn't > choose the target storage domain : > > [...] > vm_storage_domain = api.storagedomains.get(name=storage_domain) > vm_params = params.VM(name=vm_name, >

Re: [ovirt-users] oVirt Python SDK on Ubuntu

2017-01-23 Thread Juan Hernández
On 01/23/2017 03:05 PM, Ondra Machacek wrote: > On Mon, Jan 23, 2017 at 2:53 PM, Nicolas Ecarnot wrote: >> Le 23/01/2017 à 13:38, Ondra Machacek a écrit : >>> >>> On Mon, Jan 23, 2017 at 1:23 PM, Nicolas Ecarnot >>> wrote: Hello, I'm

Re: [ovirt-users] Attach Storage via CLI

2017-01-21 Thread Juan Hernández
On 01/20/2017 03:30 PM, Steffen Nolden wrote: > Hi, > > i have create a storagedomain with ovirt-shell: > > add storagedomain --host-name --type data --storage-type > glusterfs --storage-path :/data --storage-vfs_type glusterfs --name > Data-Domain > > > Now i try to attach it to the

Re: [ovirt-users] Delay difference between queries (Python vs REST)

2017-01-18 Thread Juan Hernández
On 01/17/2017 08:42 PM, Yaniv Kaul wrote: > > > On Tue, Jan 17, 2017 at 6:03 PM, Juan Hernández <jhern...@redhat.com > <mailto:jhern...@redhat.com>> wrote: > > On 01/17/2017 04:59 PM, Nicolas Ecarnot wrote: > > Le 17/01/2017 à 16:26, Juan Hernández a

Re: [ovirt-users] Delay difference between queries (Python vs REST)

2017-01-17 Thread Juan Hernández
On 01/17/2017 04:59 PM, Nicolas Ecarnot wrote: > Le 17/01/2017 à 16:26, Juan Hernández a écrit : >> On 01/17/2017 03:56 PM, Nicolas Ecarnot wrote: >>> Hello, >>> >>> On a 3.6.5 DC, I'm trying to figure out how many VMs there are, using >>> two met

Re: [ovirt-users] Delay difference between queries (Python vs REST)

2017-01-17 Thread Juan Hernández
On 01/17/2017 03:56 PM, Nicolas Ecarnot wrote: > Hello, > > On a 3.6.5 DC, I'm trying to figure out how many VMs there are, using > two methods : > > _*Python SDK :*_ > > *from ovirtsdk.xml import params > from ovirtsdk.api import API > api = API(url='https://engine.fqdn/ovirt-engine/api', >

Re: [ovirt-users] Max number of api calls per user?

2017-01-12 Thread Juan Hernández
sitive=True HTTP/1.1" 200 990370 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:33 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:33 +0100] "GET > /ovirt-engine/api/vms;case_sensitiv

Re: [ovirt-users] Specifying the datastore on a VmPool creation via Python-SDK?

2017-01-12 Thread Juan Hernández
On 01/11/2017 03:53 PM, nico...@devels.es wrote: > Any ideas to this? > My understanding is that there is no way to this with the API currently. If you need it, please open a RFE. Meanwhile, I'd suggest to copy the templates to the storage domain that you want to use, and then use the copied

Re: [ovirt-users] Max number of api calls per user?

2017-01-11 Thread Juan Hernández
On 01/11/2017 03:16 PM, Grundmann, Christian wrote: > Hi, > > is there a maximum number of sessions per user? > There is no limit, except the available memory. > > > I am doing python-api calls to remove VMs > > If I call my script 30 times simultaneously, one or two get an error. > What

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-10 Thread Juan Hernández
On 01/06/2017 02:44 PM, Nathanaël Blanchet wrote: > > > Le 06/01/2017 à 13:39, Juan Hernández a écrit : >> On 01/06/2017 12:20 PM, Nathanaël Blanchet wrote: >>> >>> Le 04/01/2017 à 18:55, Juan Hernández a écrit : >>>> On 01/04/2017 05:38 PM, Nathanaë

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-06 Thread Juan Hernández
On 01/06/2017 12:20 PM, Nathanaël Blanchet wrote: > > > Le 04/01/2017 à 18:55, Juan Hernández a écrit : >> On 01/04/2017 05:38 PM, Nathanaël Blanchet wrote: >>> >>> Le 04/01/2017 à 15:41, Juan Hernández a écrit : >>>> On 01/04/2017 12:30 PM, Yaniv Kau

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-04 Thread Juan Hernández
On 01/04/2017 05:38 PM, Nathanaël Blanchet wrote: > > > Le 04/01/2017 à 15:41, Juan Hernández a écrit : >> On 01/04/2017 12:30 PM, Yaniv Kaul wrote: >>> >>> On Wed, Jan 4, 2017 at 1:04 PM, Nicolas Ecarnot <nico...@ecarnot.net >>> <mailto

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-04 Thread Juan Hernández
On 01/04/2017 12:30 PM, Yaniv Kaul wrote: > > > On Wed, Jan 4, 2017 at 1:04 PM, Nicolas Ecarnot > wrote: > > Hello, > > Le 04/01/2017 à 11:49, Nathanaël Blanchet a écrit : > > > > Le 04/01/2017 à 10:09, Andrea Ghelardi a

Re: [ovirt-users] I wrote an oVirt thing

2016-12-28 Thread Juan Hernández
-python==3.6.9.2 > > Le 29/11/2016 à 17:19, Juan Hernández a écrit : >> On 11/29/2016 04:51 PM, Juan Hernández wrote: >>> On 11/29/2016 03:19 PM, Sandro Bonazzola wrote: >>>> >>>> On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali <oourf...@redh

Re: [ovirt-users] How to setup OVS using python SDK ?

2016-12-20 Thread Juan Hernández
On 12/20/2016 02:19 PM, TranceWorldLogic . wrote: > Hi, > > I am trying to setup OVS network using ovirt and found guide as shown below: > https://www.ovirt.org/networking/ovs/ > > Then, I tried to explore "vNic Profile" in sdk but not found any ovs > profile in types.py. > Can anyone help me

Re: [ovirt-users] Python SDK .remove() does not return True?

2016-12-18 Thread Juan Hernández
On 12/18/2016 05:32 PM, Yaniv Kaul wrote: > I'd expect, like other actions, add() for example, that I can ensure > .remove() (for clusters, DCs, etc.) will return True as a sign for success. > Is that a bug or a design choice? > TIA, > Y. > It is by design. The method returns nothing, because in

Re: [ovirt-users] Requesting Python SDK example for VDSM

2016-12-13 Thread Juan Hernández
On 12/13/2016 03:36 PM, TranceWorldLogic . wrote: > Hi, > > I had install ovirt relase 40 . > > Now I want to write a python script to interact with VDSM. > Can some one point me to a tutorial guide for ovirtsdk4 ? > [Document, tutorial, blog ...] > > I tried google search but not got good

Re: [ovirt-users] API req to update power mgmt options

2016-12-08 Thread Juan Hernández
On 12/06/2016 10:19 AM, Emil Flink wrote: > Hi, > > Can someone please provide an example request to edit the power > management options of a host? > > Ie. the options contained in > host['power_management']['agents']['agent'][0]['options']['option'] and >

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Juan Hernández
On 11/29/2016 04:51 PM, Juan Hernández wrote: > On 11/29/2016 03:19 PM, Sandro Bonazzola wrote: >> >> >> On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali <oourf...@redhat.com >> <mailto:oourf...@redhat.com>> wrote: >> >> BTW, the ovirt-shell is

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Juan Hernández
. > Yes, I can say it, because I have been telling everybody to avoid using version 3 of the API, version 3 of the SDKs and the CLI. That is the meaning of "deprecate", according to the dictionary. > > On Tue, Nov 29, 2016 at 4:51 PM, Juan Hernández <jhern...@redhat.com

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Juan Hernández
On 11/29/2016 03:19 PM, Sandro Bonazzola wrote: > > > On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali > wrote: > > BTW, the ovirt-shell is something we deprecated. > > Can you please point me to the deprecation bug for it? > I can't see it

Re: [ovirt-users] Checking VmPool status with Python-SDK?

2016-11-08 Thread Juan Hernández
On 11/08/2016 09:46 AM, nico...@devels.es wrote: > Hi, > > We're running oVirt 4.0.4.4 with engine python SDK version 3.6.7, and > currently we're developing an application that first creates a VmPool > and afterwards it updates it. However, sometimes happens that both > operations occur at

Re: [ovirt-users] RHEVM3.3 java SDK on RHEV3.6

2016-11-08 Thread Juan Hernández
On 11/06/2016 09:39 AM, Tejesh M wrote: > Hi All, > > I'm facing an issue in invoking Cloudinit while customization in RHEV > 3.6 using RHEV Java SDK 3.6. > > Below link says we need to explicitly call *use_cloud_init=True*, but > i'm not sure how to pass this value as parameter while creating

Re: [ovirt-users] oVirt SDK v4 backwards compatibility

2016-11-08 Thread Juan Hernández
On 11/07/2016 07:06 PM, Rafael Martins wrote: > - Original Message - >> From: "Karli Sjöberg" >> To: "Rafael Martins" >> Cc: users@ovirt.org >> Sent: Monday, November 7, 2016 6:13:33 PM >> Subject: Re: [ovirt-users] oVirt SDK v4 backwards

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

2016-10-11 Thread Juan Hernández
5 It will be fixed by this patch: cli: Base should be None when there is no base https://gerrit.ovirt.org/65371 That will hopefully be included in release 4.0.6 of the oVirt project. > > Le 22/04/2016 à 11:39, Juan Hernández a écrit : >> On 04/22/2016 10:14 AM, Nathanaël Blanchet w

  1   2   3   >