[ovirt-users] Windows Networking Issues -

2015-11-24 Thread Matt Wells
Hi all, I have a question about Windows VMs and a networking issue I'm
having.

Here's the setup -
* oVirt - 3.5.1.1-1
* Hypervisors are CentOS 6.7 box with 2 NICs in bond0 'mode=4 miimon=100
lacp_rate=1'
* On bond0 I have a few networks using vlan tagging.
* Networks are 5,10,15,20 - All on an external switch

Network 15 has a Windows 2012 R2 server and a CentOS 6.7 server on it.
The rest of the networks have a few linux.

Every linux box on every network is happy.  However any and all Windows
boxes I bring online are incapable of patching or hitting the web.  I
pointed the Windows box to the linux box next to it as a proxy (after
installing squid on it)  When I do that the Windows box has no issues at
all; it's only when he's attempting to leave on his own.

On my firewall I put in a 'permit any any' on the M$ box IP however all I
see is tcp resets in PCAPs,

I've been playing with for some time but can't seem to find the issue.  It
would be one thing if everything on the 15 was bad but the linux box on the
network is fine. Here's the rub, I'm 99.999% sure this used to work.
 gggrrr...

Any assistance anyone can offer would be amazingly appreciated.

Thank you for taking the time to read this.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2015-11-24 Thread Nir Soffer
On Tue, Nov 24, 2015 at 3:49 PM, John Hunter  wrote:

>
>
> On Tue, Nov 24, 2015 at 9:15 PM, Juan Hernández 
> wrote:
>
>> 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
>> > artificially delayed RESTAPI responses by 5 seconds:
>> >
>> >   brute force prevention login delay should not be applied to
>> successful
>> > login requests
>> >   https://bugzilla.redhat.com/1255814
>> >
>> > That matches the description of the issue, but in theory it has been
>> > fixed. I would suggest him to check that he is using the right
>> version
>> > of the extension.
>> >
>> > I did not use the extension ovirt-engine-extension-aaa-jdbc, and I don't
>> > think this bug matches my problem, because even there is only one line
>> > in the python script, it still cost like 3 seconds, I don't think this
>> is a
>> > reasonable time as when I import other package, it cost almost no time.
>> >
>> > Can you explain why this import line costs so much time?
>> >
>>
>> If you are using 3.6 then you are using ovirt-engine-extension-aaa-jdbc,
>> as it is enabled by default, but looks like it isn't related to your
>> problem.
>>
>> That line takes a long time to execute because it has to process two
>> large Python modules: the "params" module that contains a class per each
>> type used by the API (393 classes) and the "brokers" module that
>> contains a class per each resource used by the API (358 classes). That
>> makes a total of 751 classes. In my environment it takes 0.9 seconds,
>> approx. You may want to use the python profile in your environment and
>> share the results:
>>
>> $ cat > profile.py <<.
>> import cProfile
>> cProfile.run("from ovirtsdk.api import API")
>> .
>>
>> $ python profile.py
>>
>> I won't be surprised to see this taking those 3 seconds in a slower
>> environment.
>>
>> But even if this takes those 3 seconds it shouldn't be a big problem,
>> because you shouldn't be running that "from ... import ..." line
>> frequently. Your program should do this once only, when it starts.
>>
>> Assume that I have two functions to implement, one is to list all the vms
> belong
> to the user, and the other is to retrieve one vm's virt-viewer connection
> file, as
> far as I can see, I have to write two python scripts and import the
> ovirtsdk.api in both
> scripts, each script has to take the 3 seconds :(
>

No, you have two functions, which can be in the same module, or in
different modules, depending on how you want to organize your code.

Python imports are done only once, on the first time you import a module
anywhere. The module is stored in sys.modules, and the next import fetch
the module object from sys.modules.

Can you share a profile of a simple script importing the Python sdk?

Do:

python -m cProfile -o myscript.prof myscript.py

The profile will be stored in myscript.prof.

For viewing the profile, I recommend to use the profile-stats tool:
https://github.com/oVirt/vdsm/blob/master/contrib/profile-stats


>
> How can I run the "from ... import ..." just once ?
>
>
>> >
>> > In addition we also know that retrieving large lists of objects
>> with the
>> > SDK is slow:
>> >
>> >[RFE][performance] - generate large scale list running to slow.
>> >https://bugzilla.redhat.com/1221238
>> >
>> > We don't have a solution for that yet.
>> >
>> > CC-ing Juan in case you have additional questions.
>> >
>> >
>> > On Mon, Nov 23, 2015 at 11:27 AM, John Hunter > > > wrote:
>> >
>> > Hi guys,
>> >
>> > I am using the ovirt-engine-sdk-python to communicate with the
>> > ovirt-engine,
>> > I am ok to list the vms but the processing time is too long,
>> > like 4.5 seconds,
>> > and this line:
>> > from ovirtsdk.api import API
>> > take almost 3 seconds.
>> >
>> > This seems a little bit longer than I expected it to be, so I am
>> > asking is there
>> > a quicker way to communicate with the ovirt-engine?
>> >
>>
>> --
>> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
>> 3ºD, 28016 Madrid, Spain
>> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>>
>
>
>
> --
> Best regards
> Junwang Zhao
> Department of Computer Science 
> Peking University
> Beijing, 100871, PRC
>
> ___
> Devel mailing list
> de...@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Delete disk references without deleting the disk

2015-11-24 Thread Liron Aravot


- Original Message -
> From: "Johan Kooijman" 
> To: "Liron Aravot" 
> Cc: "Nir Soffer" , "users" 
> Sent: Tuesday, November 24, 2015 6:52:51 PM
> Subject: Re: [ovirt-users] Delete disk references without deleting the disk
> 
> When I deactivate the disk on a VM, I can click remove. It then offers me
> the dialog te remove it with a checkbox "Remove permanently". I don't check
> that, the disk will be deleted from inventory, but won't be deleted from
> storage domain?
> Can't try for myself, it'll kill my storage domain.

Yes, when you do that the disk will remain "floating" (you'll be able to see it 
under the
Disks tab) and you'll be able to attach it to another vm later on.
> 
> On Mon, Nov 23, 2015 at 12:46 PM, Johan Kooijman 
> wrote:
> 
> > Ok. Any way to do it without? Because with snapshot deletion I end up with
> > the same issue - I can't remove images form my storage.
> >
> > On Mon, Nov 23, 2015 at 12:18 PM, Liron Aravot  wrote:
> >
> >>
> >>
> >> - Original Message -
> >> > From: "Johan Kooijman" 
> >> > To: "Nir Soffer" 
> >> > Cc: "users" 
> >> > Sent: Monday, November 23, 2015 10:10:27 AM
> >> > Subject: Re: [ovirt-users] Delete disk references without deleting the
> >> disk
> >> >
> >> > One weird thing though: when I try to remove the VM itself, it won't
> >> let me
> >> > uncheck the "Remove disks" checkbox.
> >> >
> >>
> >> That is because that there are snapshots for the disks, you can remove
> >> the snapshots and then you could
> >> leave your disks. Currently oVirt doesn't support snapshots for floating
> >> disks.
> >> >
> >> > On Sun, Nov 22, 2015 at 9:00 PM, Nir Soffer < nsof...@redhat.com >
> >> wrote:
> >> >
> >> >
> >> > On Sun, Nov 22, 2015 at 6:14 PM, Johan Kooijman <
> >> m...@johankooijman.com >
> >> > wrote:
> >> > > Hi all,
> >> > >
> >> > > I have about 100 old VM's in my cluster. They're powered down, ready
> >> for
> >> > > deletion. What I want to do is delete the VM's including disks without
> >> > > actually deleting the disk images from the storage array itself. Is
> >> that
> >> > > possible?
> >> >
> >> > Select the vm, click "remove", in the confirmation dialog, uncheck the
> >> > "Delete disks"
> >> > checkbox, confirm.
> >> >
> >> > > At the end I want to be able to delete the storage domain (which
> >> > > then should not hold any data, as far as ovirt is concerned).
> >> >
> >> > Ovirt deleted the vms, but is keeping the disks, so the storage domain
> >> > does hold all
> >> > the disks.
> >> >
> >> > >
> >> > > Reason for this: it's a ZFS pool with dedup enabled, deleting the
> >> images
> >> > > one
> >> > > by one will kill the array with 100% iowa for some time.
> >> >
> >> > So what do you need is to destroy the storage domain, which will
> >> > remove all the entities
> >> > associated with it, but will keep the storage without any change.
> >> >
> >> > Do this:
> >> > 1. Select the storage tab
> >> > 2. select the domain
> >> > 3. In the data center sub tab, click "maintenance"
> >> > 4. When domain is in maintenance, click "detach"
> >> > 5. Right click the domain and choose "destroy"
> >> >
> >> > This will remove the storage domain from engine database, leaving
> >> > the contents of the domain.
> >> >
> >> > You can now delete the contents using favorite system tools.
> >> >
> >> > Now, if we want to add support for this in ovirt, how would you delete
> >> > the entire domain in a more efficient way?
> >> >
> >> > Nir
> >> >
> >> >
> >> >
> >> > --
> >> > Met vriendelijke groeten / With kind regards,
> >> > Johan Kooijman
> >> >
> >> > ___
> >> > Users mailing list
> >> > Users@ovirt.org
> >> > http://lists.ovirt.org/mailman/listinfo/users
> >> >
> >>
> >
> >
> >
> > --
> > Met vriendelijke groeten / With kind regards,
> > Johan Kooijman
> >
> 
> 
> 
> --
> Met vriendelijke groeten / With kind regards,
> Johan Kooijman
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Attach Export Domain (NFS) to multiple datacenter

2015-11-24 Thread Punit Dambiwal
Hi,

I want to attach the same nfs (export) volume to multiple datacenter in the
ovirt..is it possible to do so..or any workaround for the same..

Thanks.
Punit
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2015-11-24 Thread John Hunter
On Tue, Nov 24, 2015 at 9:56 PM, Juan Hernández  wrote:

> On 11/24/2015 02:49 PM, John Hunter wrote:
> >
> >
> > On Tue, Nov 24, 2015 at 9:15 PM, Juan Hernández  > > wrote:
> >
> > 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
> > > artificially delayed RESTAPI responses by 5 seconds:
> > >
> > >   brute force prevention login delay should not be applied to
> successful
> > > login requests
> > >   https://bugzilla.redhat.com/1255814
> > >
> > > That matches the description of the issue, but in theory it
> has been
> > > fixed. I would suggest him to check that he is using the right
> version
> > > of the extension.
> > >
> > > I did not use the extension ovirt-engine-extension-aaa-jdbc, and I
> don't
> > > think this bug matches my problem, because even there is only one
> line
> > > in the python script, it still cost like 3 seconds, I don't think
> this is a
> > > reasonable time as when I import other package, it cost almost no
> time.
> > >
> > > Can you explain why this import line costs so much time?
> > >
> >
> > If you are using 3.6 then you are using
> ovirt-engine-extension-aaa-jdbc,
> > as it is enabled by default, but looks like it isn't related to your
> > problem.
> >
> > That line takes a long time to execute because it has to process two
> > large Python modules: the "params" module that contains a class per
> each
> > type used by the API (393 classes) and the "brokers" module that
> > contains a class per each resource used by the API (358 classes).
> That
> > makes a total of 751 classes. In my environment it takes 0.9 seconds,
> > approx. You may want to use the python profile in your environment
> and
> > share the results:
> >
> > $ cat > profile.py <<.
> > import cProfile
> > cProfile.run("from ovirtsdk.api import API")
> > .
> >
> > $ python profile.py
> >
> > I won't be surprised to see this taking those 3 seconds in a slower
> > environment.
> >
> > But even if this takes those 3 seconds it shouldn't be a big problem,
> > because you shouldn't be running that "from ... import ..." line
> > frequently. Your program should do this once only, when it starts.
> >
> > Assume that I have two functions to implement, one is to list all the
> > vms belong
> > to the user, and the other is to retrieve one vm's virt-viewer
> > connection file, as
> > far as I can see, I have to write two python scripts and import the
> > ovirtsdk.api in both
> > scripts, each script has to take the 3 seconds :(
> >
> > How can I run the "from ... import ..." just once ?
> >
>
> I don't know what technology or tools are you using to write that
> program, but if you are using Python then you don't need to import it
> twice.
>
> Yeah, I am just using Python scripts to access the RESTAPI, since I am
not skillful in python, I might have asked some stupid question.

I will try to learn more about Python.

Anyway, thanks for your patience.


> If for whatever the reason you decide to call external python scripts
> from another program then you will have to pay the price of the startup
> of the Python SDK. If that is unacceptable because of performance then
> you should look for a different way to access the RESTAPI, like sending
> XML or JSON directly, or using the Java SDK, or rbovirt, it all depends
> on the technology that you are using for your application.
>
> >
> > >
> > > In addition we also know that retrieving large lists of
> objects with the
> > > SDK is slow:
> > >
> > >[RFE][performance] - generate large scale list running to
> slow.
> > >https://bugzilla.redhat.com/1221238
> > >
> > > We don't have a solution for that yet.
> > >
> > > CC-ing Juan in case you have additional questions.
> > >
> > >
> > > On Mon, Nov 23, 2015 at 11:27 AM, John Hunter <
> zhjw...@gmail.com 
> > > >> wrote:
> > >
> > > Hi guys,
> > >
> > > I am using the ovirt-engine-sdk-python to communicate with
> the
> > > ovirt-engine,
> > > I am ok to list the vms but the processing time is too
> long,
> > > like 4.5 seconds,
> > > and this line:
> > > from ovirtsdk.api import API
> > > take almost 3 seconds.
> > >
> > > 

Re: [ovirt-users] Move cluster between datacenters

2015-11-24 Thread Simone Tiraboschi
On Tue, Nov 24, 2015 at 12:49 PM, Dael Maselli 
wrote:

> Hello,
>
> I have an environment with two data centers with some clusters in each
> one. Each cluster has one or more dedicated FC storage domains.
>
> We have some management problem because adding storage to one cluster
> means to add it to all nodes of all clusters in the same data center, by
> the way I found this a little overkill and I think it should be managed
> like networks.
>
Anyway, to resolve out problems we would like to create a new datacenter
> and move a cluster from old data center to the new one, obviously with it's
> own storage domain.
>
> Is there a way to do this without export/import all vms?
>
>
If you allow a downtime, the simplest option is to detach your storage
domain (you cannot detach the storage domain if it is the last available
cause you always need a master storage domain within your datacenter) from
your old data center and attach it to the new one once you created a new
cluster and you migrated some hosts here.

>
> Thank you.
>
> Regards,
> Dael Maselli.
>
>
> --
> ___
>
> Dael Maselli  ---  INFN-LNF Computing Service  --  +39.06.9403.2214
> ___
>
>  * http://www.lnf.infn.it/~dmaselli/ *
> ___
>
> Democracy is two wolves and a lamb voting on what to have for lunch
> ___
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Problem with hosted engine setup - vsdmd does not start

2015-11-24 Thread Willard Dennis
Hi all,

Tried to run the hosted engine setup, got:
[ ERROR ] Failed to execute stage 'Environment setup': [Errno 111] Connection 
refused

( full run output here: 
https://gist.githubusercontent.com/wdennis/4390042447354b2cb1c4/raw/c0f9127c676759b19b1d32a212c8c3694fac580e/hosted-engine-setup-output.txt
 

 )

Looked at the setup log file referenced in the output, saw this traceback in it 
that also referenced the Error 111:
https://gist.githubusercontent.com/wdennis/4390042447354b2cb1c4/raw/c0f9127c676759b19b1d32a212c8c3694fac580e/configurevm-py_error.txt
 


I diagnosed it (Google ftw) and saw that it was likely a vdsmd problem; sure 
enough, when I did a 'systemctl status vdsmd’ I saw that it was in error state -
Process: 28163 ExecStart=/usr/share/vdsm/daemonAdapter -0 /dev/null -1 
/dev/null -2 /dev/null /usr/share/vdsm/vdsm (code=exited, status=1/FAILURE)

( full status output here: 
https://gist.githubusercontent.com/wdennis/4390042447354b2cb1c4/raw/c0f9127c676759b19b1d32a212c8c3694fac580e/systemctl_status_vdsmd.txt
 

 )

Does anyone know how I can troubleshoot and fix the VDSM daemon start process?

Thanks,
Will

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Delete disk references without deleting the disk

2015-11-24 Thread Johan Kooijman
When I deactivate the disk on a VM, I can click remove. It then offers me
the dialog te remove it with a checkbox "Remove permanently". I don't check
that, the disk will be deleted from inventory, but won't be deleted from
storage domain?
Can't try for myself, it'll kill my storage domain.

On Mon, Nov 23, 2015 at 12:46 PM, Johan Kooijman 
wrote:

> Ok. Any way to do it without? Because with snapshot deletion I end up with
> the same issue - I can't remove images form my storage.
>
> On Mon, Nov 23, 2015 at 12:18 PM, Liron Aravot  wrote:
>
>>
>>
>> - Original Message -
>> > From: "Johan Kooijman" 
>> > To: "Nir Soffer" 
>> > Cc: "users" 
>> > Sent: Monday, November 23, 2015 10:10:27 AM
>> > Subject: Re: [ovirt-users] Delete disk references without deleting the
>> disk
>> >
>> > One weird thing though: when I try to remove the VM itself, it won't
>> let me
>> > uncheck the "Remove disks" checkbox.
>> >
>>
>> That is because that there are snapshots for the disks, you can remove
>> the snapshots and then you could
>> leave your disks. Currently oVirt doesn't support snapshots for floating
>> disks.
>> >
>> > On Sun, Nov 22, 2015 at 9:00 PM, Nir Soffer < nsof...@redhat.com >
>> wrote:
>> >
>> >
>> > On Sun, Nov 22, 2015 at 6:14 PM, Johan Kooijman <
>> m...@johankooijman.com >
>> > wrote:
>> > > Hi all,
>> > >
>> > > I have about 100 old VM's in my cluster. They're powered down, ready
>> for
>> > > deletion. What I want to do is delete the VM's including disks without
>> > > actually deleting the disk images from the storage array itself. Is
>> that
>> > > possible?
>> >
>> > Select the vm, click "remove", in the confirmation dialog, uncheck the
>> > "Delete disks"
>> > checkbox, confirm.
>> >
>> > > At the end I want to be able to delete the storage domain (which
>> > > then should not hold any data, as far as ovirt is concerned).
>> >
>> > Ovirt deleted the vms, but is keeping the disks, so the storage domain
>> > does hold all
>> > the disks.
>> >
>> > >
>> > > Reason for this: it's a ZFS pool with dedup enabled, deleting the
>> images
>> > > one
>> > > by one will kill the array with 100% iowa for some time.
>> >
>> > So what do you need is to destroy the storage domain, which will
>> > remove all the entities
>> > associated with it, but will keep the storage without any change.
>> >
>> > Do this:
>> > 1. Select the storage tab
>> > 2. select the domain
>> > 3. In the data center sub tab, click "maintenance"
>> > 4. When domain is in maintenance, click "detach"
>> > 5. Right click the domain and choose "destroy"
>> >
>> > This will remove the storage domain from engine database, leaving
>> > the contents of the domain.
>> >
>> > You can now delete the contents using favorite system tools.
>> >
>> > Now, if we want to add support for this in ovirt, how would you delete
>> > the entire domain in a more efficient way?
>> >
>> > Nir
>> >
>> >
>> >
>> > --
>> > Met vriendelijke groeten / With kind regards,
>> > Johan Kooijman
>> >
>> > ___
>> > Users mailing list
>> > Users@ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/users
>> >
>>
>
>
>
> --
> Met vriendelijke groeten / With kind regards,
> Johan Kooijman
>



-- 
Met vriendelijke groeten / With kind regards,
Johan Kooijman
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt 4.0 wishlist: oVirt Node

2015-11-24 Thread Fabian Deutsch
On Fri, Nov 20, 2015 at 1:54 PM, Giuseppe Ragusa
 wrote:
> Hi all,
> I'm trying to organize my wishes/hopes for oVirt 4.0
>
> These items derive from both solitary mumblings and community talks at the 
> the first Italian oVirt Meetup.
>
> I offer to help in coding (work/family schedules permitting) but keep in mind 
> that I'm a sysadmin with mainly C and bash-scripting skills (but hoping to 
> improve my less-than-newbie Python too...)
>
> Since I have related interests/wishes also for Engine and VDSM, I'll send a 
> separate message for each one.

Giuseppe,

this is a nice compilation of wishes!

> Let's start from the oVirt Node:
>
> *) oVirt Node complete convergence with Atomic Host: start from Project 
> Atomic tools and define an ISO-installable Atomic Host variant [1] to include 
> gluster, qemu, libvirt, vdsm and all the packages/configurations that an 
> oVirt Node would need (remove unneeded parts)

That's a nice idea and we actually actively investigated to use Atomic Host.
Atomic is pretty strong on quickly building and deploying trees. It
also provides the nice features to rollback in case of accidents, and
also has a vibrant community.
But we encountered a few issues i.e. Atomic has tough requirements on
how the root filesystem must look, and how packages can touch/change
the root file-system. Besides that we were seeing issues when it comes
to support a wider range of (multipathed) storage hardware. To just
name two issues.

So for now we don't aim to build Node an the foundations of Atomic.

But we are working on an approach which is similar to Atomic and
allows us to address some long standing issues and make Node much
easier to use, maintain, and customize.

Stay tuned for news on the Node development road-map.

> *) add oVirt Node ability to host containers (independent of the above 
> mentioned convergence with Atomic); note that Atomic Host has 
> Docker/Kubernetes, but libvirt already has a LXC driver [2] and the Engine 
> could benefit from some added smartness in managing groups of guests etc. in 
> the vm case too; there are related wishlist items on configuring/managing 
> containers on the Engine and on VDSM

Actually a good point which I also had on my mind.
The main focus of Node will be to host VMs, but having basic container
support to host containers for supporting a feature is surely
something interesting.

> *) add Open vSwitch direct support (not Neutron-mediated); there are related 
> wishlist items on configuring/managing Open vSwitch on the Engine and on VDSM

This will need work on the vdsm side before it makes sense to pull
this into Node.

> *) add oVirt Node ability to fully perform as a stand-alone hypervisor: I 
> hear that Cockpit is coming, so why not Kimchi too? ;)

Yep, Cockpit will be part of the game on Node.
Kimchi might be problematic - not because of Node - but because of the
way how libvirtd is tuned towards vdsm.
The last time I looked the issue was that libvirtd is not consumable
by kimchi anymore, once vdsm has configured it.
And to me it looks like this does not really fit anyway right now,
because the current assumption is that Engine has the full control
over VMs - and this would be not true anymore if you could use kimchi
to administer your VMs.

- fabian
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Problem with Adding Pre-Configured Domain

2015-11-24 Thread Ivan Bulatovic

Hi Roger,

you can not import the snapshot because you already have an active 
storage domain that contains the same (meta)data. Try detaching the 
storage domain that you take snapshots from, and remove it (do not 
select to wipe the data), and then try to import the snapshot. You will 
see a warning that the domain is already registered within ovirt engine 
and you can force the import to continue. After that, you should see the 
domain registered in ovirt webadmin. Before detaching the domain, make 
sure you have another domain active so it can become a master domain, 
and create exports of the VM's that are part of that domain just in case.


I had the same problem while trying to import a replicated storage 
domain, you can see that oVirt tries to import the domain, but it just 
returns to import domain dialog. It actually mounts the domain for a few 
seconds, then disconnects and removes the mount point under 
/rhev/data-center/ and then it tries to unmount it and fails because 
mount point doesn't exist anymore.


Mentioned it here recently: 
http://lists.ovirt.org/pipermail/users/2015-November/036027.html


Maybe there is a workaround for importing the clone/snap of the domain 
while the source is still active (messing with the metadata), but I 
haven't tried it so far (there are several implications that needs to be 
taken into the account). However, I'm also interested if there is a way 
to do such a thing, especially when you have two separate datacenters 
registered within the same engine, and it would be great for us to be 
able to import snaps/replicated storage domains and/or VM's that reside 
on it while still having the original VM's active and running.


Something similar to the third RFE here (this is only for VM's): 
http://www.ovirt.org/Features/ImportUnregisteredEntities#RFEs


In any case, I'll try this ASAP, always an interesting topic. Any 
insights on this is highly appreciated.


Ivan

On 11/24/2015 12:40 PM, Roger Meier wrote:

Hi All,

I don't know if this is a Bug or an error on my side.

At the moment,  i have a oVirt 3.6 installation with two Nodes and Two 
Storage Server, which
are configured themselfs als master/slave (solaris zfs snapshot copy 
from master to slave all 2 hours)


Now i try to do some tests for some failure use cases like, master 
storage isn't available anymore or

one of the virtual machines must be restored from the snapshot.

Because the data n the slave is a snapshot copy, all data which are on 
the Data Domain NFS Storage,

are also on the slave NFS Storage.

I tried it to add over WebUI over the option "Import Domain" (Import 
Pre-Configured Domain) with both
Domain Functions (Data and Export) but nothing happens, expect some 
errors in the vdsm.log Logfile.


Something like this

Thread-253746::ERROR::2015-11-24 
11:44:41,758::hsm::2549::Storage.HSM::(disconnectStorageServer) Could 
not disconnect from storageServer

Traceback (most recent call last):
  File "/usr/share/vdsm/storage/hsm.py", line 2545, in 
disconnectStorageServer

conObj.disconnect()
  File "/usr/share/vdsm/storage/storageServer.py", line 425, in disconnect
return self._mountCon.disconnect()
  File "/usr/share/vdsm/storage/storageServer.py", line 254, in disconnect
self._mount.umount(True, True)
  File "/usr/share/vdsm/storage/mount.py", line 256, in umount
return self._runcmd(cmd, timeout)
  File "/usr/share/vdsm/storage/mount.py", line 241, in _runcmd
raise MountError(rc, ";".join((out, err)))
MountError: (32, ';umount: 
/rhev/data-center/mnt/192.168.1.13:_oi-srv2-sasData1_oi-srv1-sasData1_nfsshare1: 
mountpoint not found\n')


I checked with nfs-check.py if all permissions are ok, the tool say this:

Konsole output
[root@lin-ovirt1 contrib]# python ./nfs-check.py 
192.168.1.13:/oi-srv2-sasData1/oi-srv1-sasData1/nfsshare1

Current hostname: lin-ovirt1 - IP addr 192.168.1.14
Trying to /bin/mount -t nfs 
192.168.1.13:/oi-srv2-sasData1/oi-srv1-sasData1/nfsshare1...

Executing NFS tests..
Removing vdsmTest file..
Status of tests [OK]
Disconnecting from NFS Server..
Done!

Greetings
Roger Meier


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-hosted-engine-setup and single machine install

2015-11-24 Thread Roman Mohr
Hi Johan,

On Mon, Nov 23, 2015 at 9:39 PM, Johan Vermeulen 
wrote:

> Hello All,
>
> after configuring a first setup, based on the quick start guide, I'm now
> looking
> at the hosted-engine setup.
> My question is: after I do the hosted-engine-setup, how do I setup vm's on
> the same
> machine that hosts the now-virtualized engine?
>

You can add this host like any other host. You will then also see the
hosted engine VM as a special VM in the VMs tab of the web admin portal.
Just make sure that your VM can reach the physical host.


> Greetings, J.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
Best Regards,
Roman
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-hosted-engine-setup and single machine install

2015-11-24 Thread Simone Tiraboschi
On Tue, Nov 24, 2015 at 9:05 AM, Roman Mohr  wrote:

> Hi Johan,
>
> On Mon, Nov 23, 2015 at 9:39 PM, Johan Vermeulen 
> wrote:
>
>> Hello All,
>>
>> after configuring a first setup, based on the quick start guide, I'm now
>> looking
>> at the hosted-engine setup.
>> My question is: after I do the hosted-engine-setup, how do I setup vm's
>> on the same
>> machine that hosts the now-virtualized engine?
>>
>
> You can add this host like any other host. You will then also see the
> hosted engine VM as a special VM in the VMs tab of the web admin portal.
> Just make sure that your VM can reach the physical host.
>

Just an addition: your first host will be automatically added to your
engine so you don't have to do anything special on that.
hosted-engine on the other side, is using a dedicated storage domain for
the engine VM and you cannot use it for other VMs so you still need to add
a second storage domain for regular VMs.

Take care that loopback mounting NFS could lead to deadlocks:
 https://lwn.net/Articles/595652/
On a single host with the storage on the same host iSCSI seams more
reliable.


>
>> Greetings, J.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
> Best Regards,
> Roman
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] import ova/ovf

2015-11-24 Thread Simone Tiraboschi
On Tue, Nov 24, 2015 at 7:37 AM, alireza sadeh seighalan <
seighal...@gmail.com> wrote:

> hi everyone
>
> how can i  import an ovf file from a server  to my  ovirt. thanks in
> advance
>
>
What do you mean with from a server?
You can use virt-v2v integration to extract your VM for other hyper-visor
and convert to oVirt:
 https://www.youtube.com/watch?v=QSss__Nl5rU

Or you can simply use engine-image-uploader
if your image is already ready for oVirt.



> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-hosted-engine-setup and single machine install

2015-11-24 Thread Gianluca Cecchi
On Tue, Nov 24, 2015 at 9:39 AM, Simone Tiraboschi wrote:

>
>
>>
> Just an addition: your first host will be automatically added to your
> engine so you don't have to do anything special on that.
> hosted-engine on the other side, is using a dedicated storage domain for
> the engine VM and you cannot use it for other VMs so you still need to add
> a second storage domain for regular VMs.
>
> Take care that loopback mounting NFS could lead to deadlocks:
>  https://lwn.net/Articles/595652/
> On a single host with the storage on the same host iSCSI seams more
> reliable.
>
>
Take in mind also that in 3.6.0 there is a bug so that you don't actually
see your engine vm inside admin portal and also you cannot import it. To be
fixed in 3.6.1. See:
https://bugzilla.redhat.com/show_bug.cgi?id=1269768

Also, if you plan to have a single host and you use NFS for storage domains
on your single host, you have to manually change
/usr/lib/systemd/system/ovirt-ha-broker.service

so that in the [Unit] section it looks like:

[Unit]
Description=oVirt Hosted Engine High Availability Communications Broker
After=nfs-server.service

otherwise ovirt-ha-broker will fail to start and you have to manually start
it after boot and nfs service has come up.

HIH,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] What is a data center with local storage?

2015-11-24 Thread Simone Tiraboschi
On Mon, Nov 23, 2015 at 7:39 PM, Christophe TREFOIS <
christophe.tref...@uni.lu> wrote:

> Hi,
>
> When creating a new data center, in oVirt 3.5 there is the options to have
> “local” or “shared” storage types.
>
> Is there any resource out there that explains the difference between the
> two? The official doc does not really help there.
>
> My current understanding is as follows:
>
> In shared mode, I can create data domains that are shared between hosts in
> a same data center, eg NFS, iSCSI etc.
> In lcoal mode, I can only create data domains locally, but I can “import”
> an existing iSCSI or Export domain to move VMs (with downtime) between data
> centers.
>

> 1. Is this correct or am I missing something here?
>


local means that the storage domain is local to a single host.
Using a local storage domain you loose different capabilities.


> 2. What would be the reason to go for a “local” storage type cluster?
>

It's just if you don't have or for any reason (single host, demo mode...)
you don't any any shared storage technologies.
It was mainly used in all-in-one mode.


>
> Thank you very much for helping out a newcomer :)
> Kind regards,
>
> —
> Christophe
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-hosted-engine-setup and single machine install

2015-11-24 Thread Johan Vermeulen
Hello Roman and Simone,

thanks for pointing me in the right direction.
I just messed up the first attempt by selection the wrong interface during
the install.
But I think I get the overall picture.

Greetings, J.

2015-11-24 9:39 GMT+01:00 Simone Tiraboschi :

>
>
> On Tue, Nov 24, 2015 at 9:05 AM, Roman Mohr  wrote:
>
>> Hi Johan,
>>
>> On Mon, Nov 23, 2015 at 9:39 PM, Johan Vermeulen 
>> wrote:
>>
>>> Hello All,
>>>
>>> after configuring a first setup, based on the quick start guide, I'm now
>>> looking
>>> at the hosted-engine setup.
>>> My question is: after I do the hosted-engine-setup, how do I setup vm's
>>> on the same
>>> machine that hosts the now-virtualized engine?
>>>
>>
>> You can add this host like any other host. You will then also see the
>> hosted engine VM as a special VM in the VMs tab of the web admin portal.
>> Just make sure that your VM can reach the physical host.
>>
>
> Just an addition: your first host will be automatically added to your
> engine so you don't have to do anything special on that.
> hosted-engine on the other side, is using a dedicated storage domain for
> the engine VM and you cannot use it for other VMs so you still need to add
> a second storage domain for regular VMs.
>
> Take care that loopback mounting NFS could lead to deadlocks:
>  https://lwn.net/Articles/595652/
> On a single host with the storage on the same host iSCSI seams more
> reliable.
>
>
>>
>>> Greetings, J.
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>> Best Regards,
>> Roman
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2015-11-24 Thread John Hunter
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
> artificially delayed RESTAPI responses by 5 seconds:
>
>   brute force prevention login delay should not be applied to successful
> login requests
>   https://bugzilla.redhat.com/1255814
>
> That matches the description of the issue, but in theory it has been
> fixed. I would suggest him to check that he is using the right version
> of the extension.
>
> I did not use the extension ovirt-engine-extension-aaa-jdbc, and I don't
think this bug matches my problem, because even there is only one line
in the python script, it still cost like 3 seconds, I don't think this is a
reasonable time as when I import other package, it cost almost no time.

Can you explain why this import line costs so much time?


> In addition we also know that retrieving large lists of objects with the
> SDK is slow:
>
>[RFE][performance] - generate large scale list running to slow.
>https://bugzilla.redhat.com/1221238
>
> We don't have a solution for that yet.
>
> CC-ing Juan in case you have additional questions.
>
>
> On Mon, Nov 23, 2015 at 11:27 AM, John Hunter  wrote:
>
>> Hi guys,
>>
>> I am using the ovirt-engine-sdk-python to communicate with the
>> ovirt-engine,
>> I am ok to list the vms but the processing time is too long, like 4.5
>> seconds,
>> and this line:
>> from ovirtsdk.api import API
>> take almost 3 seconds.
>>
>> This seems a little bit longer than I expected it to be, so I am asking
>> is there
>> a quicker way to communicate with the ovirt-engine?
>>
>> --
>> Best regards
>> Junwang Zhao
>> Department of Computer Science 
>> Peking University
>> Beijing, 100871, PRC
>>
>> ___
>> Devel mailing list
>> de...@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>>
>
>


-- 
Best regards
Junwang Zhao
Department of Computer Science 
Peking University
Beijing, 100871, PRC
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Move cluster between datacenters

2015-11-24 Thread Dael Maselli

Hello,

I have an environment with two data centers with some clusters in each 
one. Each cluster has one or more dedicated FC storage domains.


We have some management problem because adding storage to one cluster 
means to add it to all nodes of all clusters in the same data center, by 
the way I found this a little overkill and I think it should be managed 
like networks.


Anyway, to resolve out problems we would like to create a new datacenter 
and move a cluster from old data center to the new one, obviously with 
it's own storage domain.


Is there a way to do this without export/import all vms?

Thank you.

Regards,
Dael Maselli.


--
___

Dael Maselli  ---  INFN-LNF Computing Service  --  +39.06.9403.2214
___

 * http://www.lnf.infn.it/~dmaselli/ *
___

Democracy is two wolves and a lamb voting on what to have for lunch
___

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] 3.6 master hosted engine setup error

2015-11-24 Thread Gianluca Cecchi
On Fri, Nov 20, 2015 at 1:32 PM, Simone Tiraboschi 
wrote:

>
> On Fri, Nov 20, 2015 at 12:07 PM, Gianluca Cecchi <
> gianluca.cec...@gmail.com> wrote:
>
>>
>>
[snip]


>

>>> Hello,
>>> retrying from master, as the problem solution should have been merged.
>>> But it seems the package for the appliance is not available now...
>>>
>>>
>>>
>
[snip]


> This one is simply the appliance from 3.6 so everything else looks correct.
> The appliance build from master is here:
>
> http://jenkins.ovirt.org/job/ovirt-appliance-engine_master_create-rpms-el7-noarch_merged/
>
>
>
Hello Simone,
always trying to setup a working environment from master using self hosted
engine
I'm using the appliance at the link you provided, because it seems that the
ovirt-appliance rpm is outside from master repo (I suppose due to its size
and daily mirrors effort?)

But it seems it remains stuck at

[ INFO  ] Connecting to the Engine
[ INFO  ] Waiting for the host to become operational in the engine. This
may take several minutes...

in this phase I see that the engine vm is not up
In /var/log/libvirt/qemu/HostedEngine.log
2015-11-24 10:51:15.576+: shutting down

and both ovirt-ha-broker and ovirt-ha-agent are down and yet disable at
host side.

and at the end
[ INFO  ] Still waiting for VDSM host to become operational...
...
[ INFO  ] Still waiting for VDSM host to become operational...
[ ERROR ] Timed out while waiting for host to start. Please check the logs.
[ ERROR ] Unable to add hosted_engine_1 to the manager
[ INFO  ] Saving hosted-engine configuration on the shared storage domain
[ INFO  ] Shutting down the engine VM
[ INFO  ] Enabling and starting HA services
  Hosted Engine successfully set up
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20151124123248.conf'
[ INFO  ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination

Perhaps is it better to configure a separate self hosted engine os and not
use the appliance?
Or all the sef hosted engine in master is broken right now and I have to
wait?
On the same infra if I configure 3.6.0 in the same way I have no problem.
I'm working at snapshot level in virt-manager so I can revert back just to
before the phase where I enable of 3.6-master repo on host.

Let me know if you want me to test anything.

Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Problem with Adding Pre-Configured Domain

2015-11-24 Thread Roger Meier
Hi All,

I don't know if this is a Bug or an error on my side.

At the moment,  i have a oVirt 3.6 installation with two Nodes and Two
Storage Server, which
are configured themselfs als master/slave (solaris zfs snapshot copy
from master to slave all 2 hours)

Now i try to do some tests for some failure use cases like, master
storage isn't available anymore or
one of the virtual machines must be restored from the snapshot.

Because the data n the slave is a snapshot copy, all data which are on
the Data Domain NFS Storage,
are also on the slave NFS Storage.

I tried it to add over WebUI over the option "Import Domain" (Import
Pre-Configured Domain) with both
Domain Functions (Data and Export) but nothing happens, expect some
errors in the vdsm.log Logfile.

Something like this

Thread-253746::ERROR::2015-11-24
11:44:41,758::hsm::2549::Storage.HSM::(disconnectStorageServer) Could
not disconnect from storageServer
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/hsm.py", line 2545, in
disconnectStorageServer
conObj.disconnect()
  File "/usr/share/vdsm/storage/storageServer.py", line 425, in disconnect
return self._mountCon.disconnect()
  File "/usr/share/vdsm/storage/storageServer.py", line 254, in disconnect
self._mount.umount(True, True)
  File "/usr/share/vdsm/storage/mount.py", line 256, in umount
return self._runcmd(cmd, timeout)
  File "/usr/share/vdsm/storage/mount.py", line 241, in _runcmd
raise MountError(rc, ";".join((out, err)))
MountError: (32, ';umount:
/rhev/data-center/mnt/192.168.1.13:_oi-srv2-sasData1_oi-srv1-sasData1_nfsshare1:
mountpoint not found\n')

I checked with nfs-check.py if all permissions are ok, the tool say this:

Konsole output
[root@lin-ovirt1 contrib]# python ./nfs-check.py
192.168.1.13:/oi-srv2-sasData1/oi-srv1-sasData1/nfsshare1
Current hostname: lin-ovirt1 - IP addr 192.168.1.14
Trying to /bin/mount -t nfs
192.168.1.13:/oi-srv2-sasData1/oi-srv1-sasData1/nfsshare1...
Executing NFS tests..
Removing vdsmTest file..
Status of tests [OK]
Disconnecting from NFS Server..
Done!

Greetings
Roger Meier
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] [ANN] oVirt 3.5.6 Third Release Candidate is now available for testing

2015-11-24 Thread Sandro Bonazzola
The oVirt Project is pleased to announce the availability
of the Third oVirt 3.5.6 Release Candidate for testing, as of November
24th, 2015.

This release is available now for
Red Hat Enterprise Linux 6.7, CentOS Linux 6.7 (or similar) and
Red Hat Enterprise Linux 7.1, CentOS Linux 7.1 (or similar).

This release supports Hypervisor Hosts running
Red Hat Enterprise Linux 6.7, CentOS Linux 6.7 (or similar) and
Red Hat Enterprise Linux 7.1, CentOS Linux 7.1 (or similar).

This release includes updated packages for:
- VDSM

See the release notes [1] for a list of fixed bugs.

Please refer to release notes [1] for Installation / Upgrade instructions.
a new oVirt Live ISO is already available[2].

Please note that mirrors[3] may need usually one day before being
synchronized.

Please refer to the release notes for known issues in this release.
Please add yourself to the test page[4] if you're testing this release.

[1] http://www.ovirt.org/OVirt_3.5.6_Release_Notes
[2] http://resources.ovirt.org/pub/ovirt-3.5-pre/iso/ovirt-live/
[3] http://www.ovirt.org/Repository_mirrors#Current_mirrors
[4] http://www.ovirt.org/Testing/oVirt_3.5.6_Testing

-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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  > wrote:
> 
> 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
> > artificially delayed RESTAPI responses by 5 seconds:
> >
> >   brute force prevention login delay should not be applied to 
> successful
> > login requests
> >   https://bugzilla.redhat.com/1255814
> >
> > That matches the description of the issue, but in theory it has been
> > fixed. I would suggest him to check that he is using the right 
> version
> > of the extension.
> >
> > I did not use the extension ovirt-engine-extension-aaa-jdbc, and I don't
> > think this bug matches my problem, because even there is only one line
> > in the python script, it still cost like 3 seconds, I don't think this 
> is a
> > reasonable time as when I import other package, it cost almost no time.
> >
> > Can you explain why this import line costs so much time?
> >
> 
> If you are using 3.6 then you are using ovirt-engine-extension-aaa-jdbc,
> as it is enabled by default, but looks like it isn't related to your
> problem.
> 
> That line takes a long time to execute because it has to process two
> large Python modules: the "params" module that contains a class per each
> type used by the API (393 classes) and the "brokers" module that
> contains a class per each resource used by the API (358 classes). That
> makes a total of 751 classes. In my environment it takes 0.9 seconds,
> approx. You may want to use the python profile in your environment and
> share the results:
> 
> $ cat > profile.py <<.
> import cProfile
> cProfile.run("from ovirtsdk.api import API")
> .
> 
> $ python profile.py
> 
> I won't be surprised to see this taking those 3 seconds in a slower
> environment.
> 
> But even if this takes those 3 seconds it shouldn't be a big problem,
> because you shouldn't be running that "from ... import ..." line
> frequently. Your program should do this once only, when it starts.
> 
> Assume that I have two functions to implement, one is to list all the
> vms belong
> to the user, and the other is to retrieve one vm's virt-viewer
> connection file, as 
> far as I can see, I have to write two python scripts and import the
> ovirtsdk.api in both
> scripts, each script has to take the 3 seconds :(
> 
> How can I run the "from ... import ..." just once ?
>  

I don't know what technology or tools are you using to write that
program, but if you are using Python then you don't need to import it twice.

If for whatever the reason you decide to call external python scripts
from another program then you will have to pay the price of the startup
of the Python SDK. If that is unacceptable because of performance then
you should look for a different way to access the RESTAPI, like sending
XML or JSON directly, or using the Java SDK, or rbovirt, it all depends
on the technology that you are using for your application.

> 
> >
> > In addition we also know that retrieving large lists of objects 
> with the
> > SDK is slow:
> >
> >[RFE][performance] - generate large scale list running to slow.
> >https://bugzilla.redhat.com/1221238
> >
> > We don't have a solution for that yet.
> >
> > CC-ing Juan in case you have additional questions.
> >
> >
> > On Mon, Nov 23, 2015 at 11:27 AM, John Hunter  
> > >> wrote:
> >
> > Hi guys,
> >
> > I am using the ovirt-engine-sdk-python to communicate with the
> > ovirt-engine,
> > I am ok to list the vms but the processing time is too long,
> > like 4.5 seconds,
> > and this line:
> > from ovirtsdk.api import API
> > take almost 3 seconds.
> >
> > This seems a little bit longer than I expected it to be, so I am
> > asking is there
> > a quicker way to communicate with the ovirt-engine?
> >
> 

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Invitation: [Deep dive] Host Network QoS - oVirt 3.6 @ Tue Nov 24 5pm - Thu Nov 26, 2015 6pm (ibar...@redhat.com)

2015-11-24 Thread ibarkan
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20151124T15Z
DTEND:20151126T16Z
DTSTAMP:20151124T130809Z
ORGANIZER;CN=ibar...@redhat.com:mailto:ibar...@redhat.com
UID:4fqeu4t4dkfk2gur4s7kb64...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=ibar...@redhat.com;X-NUM-GUESTS=0:mailto:ibar...@redhat.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=users@ovirt.org;X-NUM-GUESTS=0:mailto:users@ovirt.org
CREATED:20151124T130809Z
DESCRIPTION:Hangouts on air: https://plus.google.com/events/c3la9vdse911atq
 991qflogtq0g\nyou tube link: https://plus.google.com/events/c3la9vdse911atq
 991qflogtq0g\nView your event at https://www.google.com/calendar/event?acti
 on=VIEW=NGZxZXU0dDRka2ZrMmd1cjRzN2tiNjRwY2sgdXNlcnNAb3ZpcnQub3Jn=MT
 gjaWJhcmthbkByZWRoYXQuY29tMjkyNTNlN2U0YzM5MzZhNWNmNjE5ZjVmM2VjODUzMGQxN2YzY
 2E5Nw=Asia/Jerusalem=en.
LAST-MODIFIED:20151124T130809Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:[Deep dive] Host Network QoS - oVirt 3.6
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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
> artificially delayed RESTAPI responses by 5 seconds:
> 
>   brute force prevention login delay should not be applied to successful
> login requests
>   https://bugzilla.redhat.com/1255814
> 
> That matches the description of the issue, but in theory it has been
> fixed. I would suggest him to check that he is using the right version
> of the extension.
> 
> I did not use the extension ovirt-engine-extension-aaa-jdbc, and I don't 
> think this bug matches my problem, because even there is only one line
> in the python script, it still cost like 3 seconds, I don't think this is a
> reasonable time as when I import other package, it cost almost no time.
> 
> Can you explain why this import line costs so much time?
> 

If you are using 3.6 then you are using ovirt-engine-extension-aaa-jdbc,
as it is enabled by default, but looks like it isn't related to your
problem.

That line takes a long time to execute because it has to process two
large Python modules: the "params" module that contains a class per each
type used by the API (393 classes) and the "brokers" module that
contains a class per each resource used by the API (358 classes). That
makes a total of 751 classes. In my environment it takes 0.9 seconds,
approx. You may want to use the python profile in your environment and
share the results:

$ cat > profile.py <<.
import cProfile
cProfile.run("from ovirtsdk.api import API")
.

$ python profile.py

I won't be surprised to see this taking those 3 seconds in a slower
environment.

But even if this takes those 3 seconds it shouldn't be a big problem,
because you shouldn't be running that "from ... import ..." line
frequently. Your program should do this once only, when it starts.

> 
> In addition we also know that retrieving large lists of objects with the
> SDK is slow:
> 
>[RFE][performance] - generate large scale list running to slow.
>https://bugzilla.redhat.com/1221238
> 
> We don't have a solution for that yet.
> 
> CC-ing Juan in case you have additional questions.
> 
> 
> On Mon, Nov 23, 2015 at 11:27 AM, John Hunter  > wrote:
> 
> Hi guys,
> 
> I am using the ovirt-engine-sdk-python to communicate with the
> ovirt-engine,
> I am ok to list the vms but the processing time is too long,
> like 4.5 seconds,
> and this line:
> from ovirtsdk.api import API
> take almost 3 seconds.
> 
> This seems a little bit longer than I expected it to be, so I am
> asking is there
> a quicker way to communicate with the ovirt-engine? 
> 

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2015-11-24 Thread John Hunter
On Tue, Nov 24, 2015 at 9:15 PM, Juan Hernández  wrote:

> 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
> > artificially delayed RESTAPI responses by 5 seconds:
> >
> >   brute force prevention login delay should not be applied to
> successful
> > login requests
> >   https://bugzilla.redhat.com/1255814
> >
> > That matches the description of the issue, but in theory it has been
> > fixed. I would suggest him to check that he is using the right
> version
> > of the extension.
> >
> > I did not use the extension ovirt-engine-extension-aaa-jdbc, and I don't
> > think this bug matches my problem, because even there is only one line
> > in the python script, it still cost like 3 seconds, I don't think this
> is a
> > reasonable time as when I import other package, it cost almost no time.
> >
> > Can you explain why this import line costs so much time?
> >
>
> If you are using 3.6 then you are using ovirt-engine-extension-aaa-jdbc,
> as it is enabled by default, but looks like it isn't related to your
> problem.
>
> That line takes a long time to execute because it has to process two
> large Python modules: the "params" module that contains a class per each
> type used by the API (393 classes) and the "brokers" module that
> contains a class per each resource used by the API (358 classes). That
> makes a total of 751 classes. In my environment it takes 0.9 seconds,
> approx. You may want to use the python profile in your environment and
> share the results:
>
> $ cat > profile.py <<.
> import cProfile
> cProfile.run("from ovirtsdk.api import API")
> .
>
> $ python profile.py
>
> I won't be surprised to see this taking those 3 seconds in a slower
> environment.
>
> But even if this takes those 3 seconds it shouldn't be a big problem,
> because you shouldn't be running that "from ... import ..." line
> frequently. Your program should do this once only, when it starts.
>
> Assume that I have two functions to implement, one is to list all the vms
belong
to the user, and the other is to retrieve one vm's virt-viewer connection
file, as
far as I can see, I have to write two python scripts and import the
ovirtsdk.api in both
scripts, each script has to take the 3 seconds :(

How can I run the "from ... import ..." just once ?


> >
> > In addition we also know that retrieving large lists of objects with
> the
> > SDK is slow:
> >
> >[RFE][performance] - generate large scale list running to slow.
> >https://bugzilla.redhat.com/1221238
> >
> > We don't have a solution for that yet.
> >
> > CC-ing Juan in case you have additional questions.
> >
> >
> > On Mon, Nov 23, 2015 at 11:27 AM, John Hunter  > > wrote:
> >
> > Hi guys,
> >
> > I am using the ovirt-engine-sdk-python to communicate with the
> > ovirt-engine,
> > I am ok to list the vms but the processing time is too long,
> > like 4.5 seconds,
> > and this line:
> > from ovirtsdk.api import API
> > take almost 3 seconds.
> >
> > This seems a little bit longer than I expected it to be, so I am
> > asking is there
> > a quicker way to communicate with the ovirt-engine?
> >
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>



-- 
Best regards
Junwang Zhao
Department of Computer Science 
Peking University
Beijing, 100871, PRC
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Highly Available in 3.6 and USB support

2015-11-24 Thread Roman Mohr
On Tue, Nov 24, 2015 at 1:10 PM, jaumotte, styve <
s.jaumo...@maine-et-loire.fr> wrote:

> Hi All,
>
> I join to this message an extract of the engine.log.
>
> To complete informations, the node which I turn off is a R620 with a drac7
> fence agent.
> When poweroff, after few seconds (perhaps 1 minute), this server is turn
> on automatically (drac command I think).
>
>

Adding Roy to the discussion. @Roy, any ideas?


> This VM is Windows 10 but I also  have test with linux VM and the result
> is the same.
>
> Another question not related to this subject is that all my windows VM are
> with an orange exclamation point. I don't see anywhere any reason !
>
> Thank's,
>
> SJ
>
>
> Réponse ou transfert de la part de Styve JAUMOTTE
> De : Roman Mohr [mailto:rm...@redhat.com]
> Envoyé : lundi 23 novembre 2015 17:20
> À : jaumotte, styve
> Cc : users@ovirt.org
> Objet : Re: [ovirt-users] Highly Available in 3.6 and USB support
>
>
>
> On Mon, Nov 23, 2015 at 5:12 PM, Roman Mohr  wrote:
> Hi Styve,
>
> On Mon, Nov 23, 2015 at 3:10 PM, jaumotte, styve <
> s.jaumo...@maine-et-loire.fr> wrote:
> Hi everybody,
>
> After testing some features on 3.5, we are planning to finaly go to 3.6.
> Some problems still exist.
>
> A major problem still remain on the « Highly Available » option on vm wich
> doesn't work. I had a cluster with 4 engines and a simple vm. When I start
> a poweroff from the node where this vm is living, the node is shutting down
> but my vm doesn't restart on another node of the cluster.
>
> Do you have a fencing agent configured for your host? It is configureable
> under 'Edit Host'->'Power Management'. If there is no fencing agent
> configured, the engine can not make sure that the host is really off when
> it is non responsive. To avoid disk corruptions without a fencing agent, it
> does nothing. You can find more about HA here [1]. About fencing here [2].
> The power managment of all the node are correctly configure.
>
> Oh I missed that. When that is configured correctly, as @Simone already
> said, the logs would be great.
>
> The HA feature of then hosted-engine is working well (except it is very
> long).
>
> Glad to hear that this is working. Regarding the (sometimes long)
> downtimes, you can find some numbers here [3].
>
>
>
> Another problem consist of passing usb host device to the virtual machine.
> We've got some specials usb keys for activating old application and we need
> to attach this key to vm. At first, I try with standard usb mass storage
> key to test this approach. I can't start virtual machine when I add usb
> device, I always have the message « The host . did not satisfy internal
> filter HostDevice because it does not support host device passthrough ».
> Have any idea where I can find an HowTo to help me ?
>
> Tanks for your help,
>
> SJ
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
> Best regards,
> Roman
>
> [1]
> http://www.ovirt.org/OVirt_Administration_Guide#.E2.81.A0Improving_Uptime_with_Virtual_Machine_High_Availability
> [2] http://www.ovirt.org/OVirt_Administration_Guide#Host_Resilience
> [3]
> http://www.ovirt.org/Hosted_Engine_Howto#What_is_the_expected_downtime_in_case_of_Datacenter_.2F_Host_.2F_VM_failure.3F
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Updated Invitation: [Deep dive] Host Network QoS - oVirt 3.6 @ Thu Nov 26, 2015 5pm - 6pm (ibar...@redhat.com)

2015-11-24 Thread ibarkan
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20151126T15Z
DTEND:20151126T16Z
DTSTAMP:20151124T130832Z
ORGANIZER;CN=ibar...@redhat.com:mailto:ibar...@redhat.com
UID:4fqeu4t4dkfk2gur4s7kb64...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=ibar...@redhat.com;X-NUM-GUESTS=0:mailto:ibar...@redhat.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=users@ovirt.org;X-NUM-GUESTS=0:mailto:users@ovirt.org
CREATED:20151124T130809Z
DESCRIPTION:Hangouts on air: https://plus.google.com/events/c3la9vdse911atq
 991qflogtq0g\nyou tube link: https://plus.google.com/events/c3la9vdse911atq
 991qflogtq0g\nView your event at https://www.google.com/calendar/event?acti
 on=VIEW=NGZxZXU0dDRka2ZrMmd1cjRzN2tiNjRwY2sgdXNlcnNAb3ZpcnQub3Jn=MT
 gjaWJhcmthbkByZWRoYXQuY29tMjkyNTNlN2U0YzM5MzZhNWNmNjE5ZjVmM2VjODUzMGQxN2YzY
 2E5Nw=Asia/Jerusalem=en.
LAST-MODIFIED:20151124T130832Z
LOCATION:
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:[Deep dive] Host Network QoS - oVirt 3.6
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [SPAM] [OT] Gmail is marking the list as spam.

2015-11-24 Thread Eyal Edri
adding infra list.

On Tue, Nov 17, 2015 at 4:38 PM, Daniel Helgenberger <
daniel.helgenber...@m-box.de> wrote:

>
>
> On 11/16/2015 06:30 PM, Juan Pablo Lorier wrote:
> > Hi,
> >
> > Someone may take a look at the spam policy of Gmail to see what is not
> > been done as it's been months since I have to get the mails from spam
> > folder no matter how much I try to get them as legitime.
> > Regards
>
> At least ovirt.org seems to have an ipv6 SPF softfail:
>
> On my Mailserver, running dual stack, I get:
> Received-SPF: SoftFail domain of transitioning
>  users-boun...@ovirt.org discourages use of
> 2600:3c01::f03c:91ff:fe93:4b0d as
>  permitted sender
>
> Doing some 'dig'-ging reveals a faulty/missing IPv6 SPF while '
> lists.ovirt.org' is sending mails via IPv6:
>
> nslookup 2600:3c01::f03c:91ff:fe93:4b0d
> Non-authoritative answer:
> d.0.b.4.3.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.1.0.c.3.0.0.6.2.ip6.arpa
>   name = lists.ovirt.org.
>
> But:
> dig ovirt.org TXT +short
> "v=spf1 a:linode01.ovirt.org a:lists.ovirt.org ~all"
>
> and:
> dig lists.ovirt.org  +short
> linode01.ovirt.org.
>
> dig lists.ovirt.org A +short
> linode01.ovirt.org.
> 173.255.252.138
>
>
>
>
> >
> > El 22/10/15 a las 12:24 p.m., users-requ...@ovirt.org escribió:
> >> Send Users mailing list submissions to
> >>  users@ovirt.org
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>  http://lists.ovirt.org/mailman/listinfo/users
> >> or, via email, send a message with subject or body 'help' to
> >>  users-requ...@ovirt.org
> >>
> >> You can reach the person managing the list at
> >>  users-ow...@ovirt.org
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of Users digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >> 1.  [ANN] oVirt 3.6.0 Third Release Candidate is now available
> >>for testing (Sandro Bonazzola)
> >> 2. Re:  Testing self hosted engine in 3.6: hostname not resolved
> >>error (Gianluca Cecchi)
> >> 3. Re:  3.6 upgrade issue (Yaniv Dary)
> >> 4. Re:  How to change the hosted engine VM RAM size after
> >>deploying (Simone Tiraboschi)
> >>
> >>
> >> --
> >>
> >> Message: 1
> >> Date: Thu, 22 Oct 2015 16:08:25 +0200
> >> From: Sandro Bonazzola 
> >> To: annou...@ovirt.org, users , devel
> >>  
> >> Subject: [ovirt-users] [ANN] oVirt 3.6.0 Third Release Candidate is
> >>  now available for testing
> >> Message-ID:
> >>