Re: [ovirt-users] oVirt: 3rd party support

2017-06-13 Thread Yedidyah Bar David
On Wed, Jun 14, 2017 at 9:23 AM, Sandro Bonazzola 
wrote:

>
>
> On Wed, Jun 14, 2017 at 7:23 AM,  wrote:
>
>> No I have not looked at Red Hat, I just assumed it would be too
>> expensive/out of my price range.
>>
>> I looked on this page, which one is it? https://www.redhat.com/en/stor
>> e/all-products
>
>
> It's this one https://www.redhat.com/en/technologies/virtualization/
> enterprise-virtualization
>

See also:

http://www.ovirt.org/community/user-stories/users-and-providers/

Best,


>
>
>
>
>>
>>
>> On 2017-06-13 22:15, Sandro Bonazzola wrote:
>>
>>> Il 14 Giu 2017 04:50,  ha scritto:
>>>
>>> Are there any shops or folks on this list that provide 3rd party
 support for oVirt?
 Support via email, remote login or phone/skype etc?
 Not looking for or asking about free support.

>>>
>>> Did you consider getting 24/7 support from Red Hat with a Red Hat
>>> Virtualization subscription?
>>>
>>> ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users [1]

>>>
>>>
>>>
>>> Links:
>>> --
>>> [1] http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


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


Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1

2017-06-13 Thread Tomas Jelinek
On Mon, Jun 12, 2017 at 6:30 PM, Pavel Gashev  wrote:

> Tomas,
>
>
>
> Since the restart is not actually required in my case, what if I set
> compatibility version in the DB directly to make the engine happy?
>

that's a nasty hack...


>
>
> I have no plans to restart my VMs in this year. And I don’t want to block
> online updating of VM parameters by the “next run configuration”.
>

By online updating you mean hotplug? Or just normal update of fields which
don't need restart (like description)? Because both are possible even with
a next run snapshot.


>
>
>
>
> *From: *Tomas Jelinek 
> *Date: *Monday, 12 June 2017 at 16:42
> *To: *Pavel Gashev 
> *Cc: *James , users 
>
> *Subject: *Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1
>
>
>
>
>
>
>
> On Mon, Jun 12, 2017 at 2:12 PM, Pavel Gashev  wrote:
>
> Can I update VMs compatibility version without restarting VMs?
>
>
>
> yes, but it will be applied only after restart.
>
>
>
>
>
> According to the source code, restarting is required during upgrading to
> 4.1 only if a VM uses random generator device. If it doesn’t, a restart is
> not really required.
>
>
>
> right, but the VM will still be marked with this "next run configuration"
> and will be set to have the old compatibility version.
>
>
>
>
>
>
>
> *From: * on behalf of Tomas Jelinek <
> tjeli...@redhat.com>
> *Date: *Monday, 12 June 2017 at 14:15
> *To: *James 
> *Cc: *users 
> *Subject: *Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1
>
>
>
>
>
>
>
> On Mon, Jun 12, 2017 at 12:17 PM, James  wrote:
>
> We recently moved our oVirt cluster from 4.0 to 4.1 and have migrated
> all the hosts. The datacenter currently has a compatability setting of
> 4.1 but the cluster is still on 4.0. As cross-cluster migrations has
> been removed (no option anymore?) we aren't 100% sure how to get the
> cluster onto 4.1 whilst keeping the VMs online. Do we just change the
> compatibility version live and it "just works" or do we have to have
> downtime?
>
>
>
> yes, you just change the compatibility version. The VMs which are down
> will be automatically updated and work with the new cluster, the running
> ones will be marked with a "triangle" icon and will be automatically
> updated on restart of them.
>
>
>
>
> Any info would be great!
>
> Regards,
> James
> ___
> 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 storage best practise

2017-06-13 Thread Idan Shaby
Direct luns are disks that are not managed by oVirt. Ovirt communicates
directly with the lun itself, without any other layer in between (like lvm
in image disks).
The advantage of the direct lun is that it should have better performance
since there's no overhead of another layer in the middle.
The disadvantage is that you can't take a snapshot of it (when attached to
a vm, of course), can't make it a part of a template, export it, and in
general - you don't manage it.


Regards,
Idan

On Mon, Jun 12, 2017 at 10:10 PM, Stefano Bovina  wrote:

> Thank you very much.
> What about "direct lun" usage and database example?
>
>
> 2017-06-08 16:40 GMT+02:00 Elad Ben Aharon :
>
>> Hi,
>> Answer inline
>>
>> On Thu, Jun 8, 2017 at 1:07 PM, Stefano Bovina  wrote:
>>
>>> Hi,
>>> does a storage best practise document for oVirt exist?
>>>
>>>
>>> Some examples:
>>>
>>> oVirt allows to extend an existing storage domain: Is it better to keep
>>> a 1:1 relation between LUN and oVirt storage domain?
>>>
>> What do you mean by 1:1 relation? Between storage domain and the number
>> of LUNs the domain reside on?
>>
>>> If not, is it better to avoid adding LUNs to an already existing storage
>>> domain?
>>>
>> No problems with storage domain extension.
>>
>>>
>>> Following the previous questions:
>>>
>>> Is it better to have 1 Big oVirt storage domain or many small oVirt
>>> storage domains?
>>>
>> Depends on your needs, be aware to the following:
>> - Each domain has its own metadata which allocates ~5GB of the domain
>> size.
>> - Each domain is being constatntly monitored by the system, so large
>> number of domain can decrease the system performance.
>> There are also downsides with having big domains, like less flexability
>>
>>> There is a max num VM/disks for storage domain?
>>>
>>>
>>> In which case is it better to use "direct attached lun" with respect to
>>> an image on an oVirt storage domain?
>>>
>>
>>>
>>
>>> Example:
>>>
>>> Simple web server:   > image
>>> Large database (simple example):
>>>- root,swap etc: 30GB  > image?
>>>- data disk: 500GB-> (direct or image?)
>>>
>>> Regards,
>>>
>>> Stefano
>>>
>>> ___
>>> 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
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt: 3rd party support

2017-06-13 Thread Sandro Bonazzola
On Wed, Jun 14, 2017 at 7:23 AM,  wrote:

> No I have not looked at Red Hat, I just assumed it would be too
> expensive/out of my price range.
>
> I looked on this page, which one is it? https://www.redhat.com/en/stor
> e/all-products


It's this one
https://www.redhat.com/en/technologies/virtualization/enterprise-virtualization




>
>
> On 2017-06-13 22:15, Sandro Bonazzola wrote:
>
>> Il 14 Giu 2017 04:50,  ha scritto:
>>
>> Are there any shops or folks on this list that provide 3rd party
>>> support for oVirt?
>>> Support via email, remote login or phone/skype etc?
>>> Not looking for or asking about free support.
>>>
>>
>> Did you consider getting 24/7 support from Red Hat with a Red Hat
>> Virtualization subscription?
>>
>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users [1]
>>>
>>
>>
>>
>> Links:
>> --
>> [1] http://lists.ovirt.org/mailman/listinfo/users
>>
>


-- 

SANDRO BONAZZOLA

ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D

Red Hat EMEA 

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


Re: [ovirt-users] oVirt: 3rd party support

2017-06-13 Thread ovirt
No I have not looked at Red Hat, I just assumed it would be too 
expensive/out of my price range.


I looked on this page, which one is it? 
https://www.redhat.com/en/store/all-products


On 2017-06-13 22:15, Sandro Bonazzola wrote:

Il 14 Giu 2017 04:50,  ha scritto:


Are there any shops or folks on this list that provide 3rd party
support for oVirt?
Support via email, remote login or phone/skype etc?
Not looking for or asking about free support.


Did you consider getting 24/7 support from Red Hat with a Red Hat
Virtualization subscription?


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




Links:
--
[1] http://lists.ovirt.org/mailman/listinfo/users

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


Re: [ovirt-users] oVirt: 3rd party support

2017-06-13 Thread Sandro Bonazzola
Il 14 Giu 2017 04:50,  ha scritto:

Are there any shops or folks on this list that provide 3rd party support
for oVirt?
Support via email, remote login or phone/skype etc?
Not looking for or asking about free support.


Did you consider getting 24/7 support from Red Hat with a Red Hat
Virtualization subscription?



___
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] oVirt: 3rd party support

2017-06-13 Thread ovirt
Are there any shops or folks on this list that provide 3rd party support 
for oVirt?

Support via email, remote login or phone/skype etc?
Not looking for or asking about free support.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] New installation

2017-06-13 Thread david caughey
Hi Folks,

I just got the go ahead to install oVirt to use as a lab.
The servers are:
1xdl360 4x30010k in raid 10 for OS (Manager) should this be clustered with
another server for resiliency
5xdl380 2x30010k for OS 6x1TB7.2k RAID5 on each for a data store
It will all be behind a proxy and be connected with 1GB links, (2x4 bonds)

My plan is to have 1 manager as this is a lab scenario and not production,
(yet), or is it better to have a cluster.

Is it ok to have a data store on each host, (they won't let me have
dedicated storage yet)?
Is it wise to share these data_stores between hosts or should 1 store be
dedicated to each host individually?

There is no need for performance, basically as long as it runs it will work.
The final intention is to have templates for OpenStack and CEPH plus lots
of Linux examples set up with SDN etc.
We have a 90% Windows shop but it is all rapidly changing to OpenStack et
al and I want to try and give people the opportunity to use Linux in the
lab before they are let lose in production.
Plus it gives me the chance to show management exactly what ovirt can do.

Any help, advice or links would be greatly appreciated,

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


[ovirt-users] default login info for repository images

2017-06-13 Thread Dan Sullivan
I've created a VM using a template imported from a Fedora 24 image in 
the repository.  Now that it is created, what credentials do I use to 
log into it from the console?

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


Re: [ovirt-users] Performance differences between ext4 and XFS

2017-06-13 Thread Fabrice Bacchella
I just got bitten by this particular problem, on a heavily used disk image. I'm 
trying to defragment the disk images. Hop this will help.


> Le 8 juin 2017 à 07:19, Markus Stockhausen  a écrit :
> 
> Hi Fernando, 
> 
> we personally like XFS very much. But XFS + qcow2 (even for snapshots in 
> OVirt)
> comes close to a no-go these days. We are experience excessive fragmentation.
> For more info see unresolved Redhat Info:
> 
> https://access.redhat.com/solutions/532663 
> 
> 
> Even with tuning the XFS allocation policy on the qcow2 directory with 
> 
> xfs_io -c 'extsize -R 2M' 
> 
> A nice 3rd party explanation can be found here:
> 
> https://blog.codecentric.de/en/2017/04/xfs-possible-memory-allocation-deadlock-kmem_alloc/
>  
> 
> 
> Markus
> 
> Von: users-boun...@ovirt.org  
> [users-boun...@ovirt.org ]" im Auftrag von 
> "FERNANDO FREDIANI [fernando.fredi...@upx.com 
> ]
> Gesendet: Mittwoch, 7. Juni 2017 23:35
> An: users@ovirt.org 
> Betreff: [ovirt-users] Performance differences between ext4 and XFS
> 
> Just wanted to find out what filesystem people are using to host Virtual 
> Machines in qcow2 files in a filesystem in Localstorage, ext4 or XFS ?
> 
> I normally like XFS for big files which is the case fo VMs, but wondered if 
> anyone could see any performance advantage when compared with ext4.
> 
> Fernando
> ___
> 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] Ovirt adding routes

2017-06-13 Thread Alan Griffiths
Hi,

When installing an ovirt host I got these routes automatically added

default dev ovirtmgmt  table 2886865805  scope link
172.18.19.128/26 via 172.18.19.141 dev ovirtmgmt  table 2886865805

What is their intended purpose? It seems to be stopping packets from being
correctly routed to the local gateway.

Thanks,

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


Re: [ovirt-users] Need Support - Engine VM Down

2017-06-13 Thread Staniforth, Paul

Hello Rizwan,

  The upgrade from 3.6 to 4.0 involves installing a new O/S 
for the engine and restoring from a backup of the 3.6 system, could you set up 
a new machine (physical or VM) and restore from backups then migrate later into 
hosted engine setup?


http://www.ovirt.org/documentation/upgrade-guide/chap-Upgrading_to_oVirt_4.0/


Regards,

   Paul S.


From: users-boun...@ovirt.org  on behalf of Rizwan 
Qureshi 
Sent: 12 June 2017 09:50
To: users@ovirt.org
Subject: [ovirt-users] Need Support - Engine VM Down

Hello Developers,
We are new to ovirt. We unfortunately managed to break our oVirt installation. 
The engine VM does not seem to start after we updated to 4.0 from 3.6 and did a 
restart.

We are looking for someone specialized to fix this kind of issues. I have 
failed to find anyone who provides support for oVirt so resorting to the users 
list now. Already tried using the users list and someone did try to help but 
could not get it to work. You can see the thread below for reference and logs 
that I posted:

http://lists.ovirt.org/pipermail/users/2017-May/082309.html

Can anyone help please?


--
Best Regards,
Rizwan Qureshi
VoIP Admin
Ph: 01482427836

To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html

To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Host name already in use in oVirt Engine

2017-06-13 Thread FERNANDO FREDIANI

Replying on my own email.

I managed to add the host again but had to do some very manual steps:

- Removed /etc/vdsm/vdsm.id from the Host
- engine=# select vds_id from vds_static where host_name = 'host.name';
- engine=# delete from vds_statistics where vds_id = 'host.name.uuid';
- engine=# delete from vds_dynamic where vds_id = 'host.name.uuid';
- engine=# delete from vds_static where vds_id = 'host.name.uuid';
- uuidgen > /etc/vdsm/vdsm.id on the Host

Should I report it as a bug as when I removed everything from the Admin 
Web Interface it should have done all this clean up in the Database ?


Fernando

On 13/06/2017 10:04, FERNANDO FREDIANI wrote:

Hello.

I had a previous Datacenter and Cluster with a Host in it which I have 
removed completelly from oVirt Engine. In order to remove I did the 
following steps:


- Removed all Virtual Machines on the top of the Host
- Put the only Local Datastore in Maintenence mode (It didn't allow to 
remove it for some reason. Said I had to remove the Datacenter instead)
- As the Datastore couldn't be remove so the Host. I then removed the 
Datacenter and it removed everything.


Then I created a new Cluster and tried to add the same Host with the 
same hostname in it and I am getting the message: "Cannot add Host. 
The Host name is already in use, please choose a unique name and try 
again."


It seems that something was left lost in the Database which still 
beleives that host exists in oVirt Engine. How can I clean that up and 
add it again as I am not willing to change its name.


Thanks
Fernand


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


[ovirt-users] problems migrating to hosted engine from bare metal

2017-06-13 Thread cmc
Hi,

I created a new host to deploy a hosted engine, and then used a backup
from the bare metal engine and restored this, as per the procedure in:

http://www.ovirt.org/documentation/self-hosted/chap-Migrating_from_Bare_Metal_to_an_EL-Based_Self-Hosted_Environment/

Everything worked fine up until step 15 ('Continue setup') as the
script said the engine was not responding. I tried the reboot option
(option 3), but still it would not connect. So I could not do the
final step involving the internal CA, adding the host to an existing
cluster (of which there were two other hosts). I was able to connect
via vnc and ssh fine to the engine, and from here I could see that the
ovirt-engine service was up. I had to install the aaa-ldap extension
package to enable ldap auth separately however, but once done I was
able to log in, and it showed the old cluster as it was on the bare
metal engine. I added the host that I created the hosted engine on,
and it installed various packages and then I configured the network
and it looked fine, apart from the fact that I could not see a VM
named 'HostedEngine' in the list of VMs. I think however that this was
not a properly working setup, as the NFS storage I used to setup the
hosted engine became unavailable and I think this killed the hosted
engine, which caused it to reboot the host it was on. The hosted
engine has not come back since then, so I'm guessing it either isn't
properly set up for HA or it needs the NFS storage or something else
was not properly done by me in the setup. I've restarted the bare
metal engine for now as I needed it running for now.

 My questions are:

1. My understanding is that the NFS storage is initially used to
create the hosted engine disk image, and is temporary, and that the
hosted engine later gets migrated to the storage used by the rest of
the cluster (which in my case is directly attached to the hosts via
fibre channel). I suspect that this did not happen. The bare metal
engine had some local ISO storage (on a hard disk local to it), which
will not be replicated to the hosted engine VM - will this cause a
problem for the deployment? I can create some new ISO storage later if
not.

2. What is the recommended way to recover from this situation? Should
I just run 'hosted-engine --deploy' again and try and find out what is
going wrong at step 15?

I can probably get the disk image that was on NFS and mount it to find
out what went wrong on the initial deployment, or I can run the
deployment again and then get the log when it fails at step 15.

Ovirt version was 4.1.2.2

Thanks for any help,

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


Re: [ovirt-users] SPM in case of Failure

2017-06-13 Thread Maor Lipchuk
Hi arsene,

See my comments inline

On Mon, Jun 12, 2017 at 1:02 PM, Arsène Gschwind
 wrote:
> Hi
>
> Our setup looks like:
>
> - 2 clusters in 2 different site connected with 10GBit LAN
> - Storage based on FC SAN replicated on both site and available for both
> site (The LUNs are available over 4 pathes, 2 from each site)
>
> My observation:
>
> In case one site goes down and this site owned SPM is it not possible to
> move or force SPM on the second site.

It could be a sanlock issue.
The SPM uses sanlock on the storage domain, so once the SPM host will
be rebooted and sanlock will be released from the storage domain (IINM
after 80 seconds) another Host can obtain a lock on that storage
domain and become the new SPM.
What is the message in the logs that you get when you try to do that?


> On the site which is down it's possible to reset all VMs that crashed using
> the "Confirm Host rebooted" menu on the oVirt Host but this does not reset
> SPM.
> The only solution I found was to bring the Host which owned SPM up again to
> be able to move it to the other site and then reactivate the storage
> domains.

I would try to attach the storage domain ( detach it first if it is
already attached) so you could register any VMs/Templates/Disks that
were added in the original env.

>
> Is this a normal behavior?
> Is there any way to force SPM reelection ?
>
> Thanks for your help or idea...
>
> Regards,
> Arsène
>
> --
>
> Arsène Gschwind
> Fa. Sapify AG im Auftrag der Universität Basel
> IT Services
> Klingelbergstr. 70 |  CH-4056 Basel  |  Switzerland
> Tel. +41 79 449 25 63  |  http://its.unibas.ch
> ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11
>
>
> ___
> 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] Host name already in use in oVirt Engine

2017-06-13 Thread FERNANDO FREDIANI

Hello.

I had a previous Datacenter and Cluster with a Host in it which I have 
removed completelly from oVirt Engine. In order to remove I did the 
following steps:


- Removed all Virtual Machines on the top of the Host
- Put the only Local Datastore in Maintenence mode (It didn't allow to 
remove it for some reason. Said I had to remove the Datacenter instead)
- As the Datastore couldn't be remove so the Host. I then removed the 
Datacenter and it removed everything.


Then I created a new Cluster and tried to add the same Host with the 
same hostname in it and I am getting the message: "Cannot add Host. The 
Host name is already in use, please choose a unique name and try again."


It seems that something was left lost in the Database which still 
beleives that host exists in oVirt Engine. How can I clean that up and 
add it again as I am not willing to change its name.


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


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

2017-06-13 Thread nicolas

El 2017-06-13 13:30, Juan Hernández escribió:

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 make this work.

Thanks.



It is a but. I think it was introduced recently. Please try to use
version 4.1.3 and check if it works correctly. Open a bug reporting the
results. We will probably need to do something like this to fix it:

  Fix parsing of multi-byte UTF-8 characters
  https://gerrit.ovirt.org/78112



Done [1].

Thanks!

  [1]: https://bugzilla.redhat.com/show_bug.cgi?id=1461060


El 2017-06-12 14:48, Fabrice Bacchella escribió:

Did you try with python 3 ? UTF management changed a lot with this
version, it might works better in your case.


Le 12 juin 2017 à 12:33, nico...@devels.es a écrit :

Hi,

We're running Python SDK (ovirt-engine-sdk-python) ver 4.1.4 and
we're having some issues getting values that contain accents. For
example, this snippet fails:

   import ovirtsdk4 as sdk
   import ovirtsdk4.types as types

   # Create the connection to the server:
   connection = sdk.Connection(
   url='https://fqdn/ovirt-engine/api',
   username='...',
   password='...',
   ca_file='...',
   debug=True,
   )

   users_service = connection.system_service().users_service()
   users = users_service.list()

   connection.close()

This snippet fails in the "users = users_service.list()" line,
because one of the records have a tilde (ó).

The trace is:
Traceback (most recent call last):
 File "lista_users", line 23, in 
   users = users_service.list()
 File
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/services.py",
line 22155, in list
   return self._internal_get(headers, query, wait)
 File
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
line 202, in _internal_get
   return future.wait() if wait else future
 File
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
line 53, in wait
   return self._code(response)
 File
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
line 197, in callback
   return self._internal_read_body(response)
 File
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
line 310, in _internal_read_body
   return reader.Reader.read(response.body)
 File
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/reader.py",
line 297, in read
   cursor = xml.XmlReader(io.BytesIO(source.encode('utf-8')))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
1899: ordinal not in range(128)

Opening the source code (ovirtsdk4/reader.py) file and seeking the
exact line that fails I can see:

   if isinstance(source, str):
   cursor = 
xml.XmlReader(io.BytesIO(source.encode('utf-8')))


If I add a line just after the 'if' being "cursor =
cursor.decode('utf-8')", it seems to work, but I guess the source
code should handle this kind of situations.

Is this a known issue? Should I open a BZ? Any workaround meanwhile?

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

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


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 make this work.
> 
> Thanks.
> 

It is a but. I think it was introduced recently. Please try to use
version 4.1.3 and check if it works correctly. Open a bug reporting the
results. We will probably need to do something like this to fix it:

  Fix parsing of multi-byte UTF-8 characters
  https://gerrit.ovirt.org/78112

> El 2017-06-12 14:48, Fabrice Bacchella escribió:
>> Did you try with python 3 ? UTF management changed a lot with this
>> version, it might works better in your case.
>>
>>> Le 12 juin 2017 à 12:33, nico...@devels.es a écrit :
>>>
>>> Hi,
>>>
>>> We're running Python SDK (ovirt-engine-sdk-python) ver 4.1.4 and
>>> we're having some issues getting values that contain accents. For
>>> example, this snippet fails:
>>>
>>>import ovirtsdk4 as sdk
>>>import ovirtsdk4.types as types
>>>
>>># Create the connection to the server:
>>>connection = sdk.Connection(
>>>url='https://fqdn/ovirt-engine/api',
>>>username='...',
>>>password='...',
>>>ca_file='...',
>>>debug=True,
>>>)
>>>
>>>users_service = connection.system_service().users_service()
>>>users = users_service.list()
>>>
>>>connection.close()
>>>
>>> This snippet fails in the "users = users_service.list()" line,
>>> because one of the records have a tilde (ó).
>>>
>>> The trace is:
>>> Traceback (most recent call last):
>>>  File "lista_users", line 23, in 
>>>users = users_service.list()
>>>  File
>>> "/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/services.py",
>>> line 22155, in list
>>>return self._internal_get(headers, query, wait)
>>>  File
>>> "/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
>>> line 202, in _internal_get
>>>return future.wait() if wait else future
>>>  File
>>> "/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
>>> line 53, in wait
>>>return self._code(response)
>>>  File
>>> "/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
>>> line 197, in callback
>>>return self._internal_read_body(response)
>>>  File
>>> "/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py",
>>> line 310, in _internal_read_body
>>>return reader.Reader.read(response.body)
>>>  File
>>> "/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/reader.py",
>>> line 297, in read
>>>cursor = xml.XmlReader(io.BytesIO(source.encode('utf-8')))
>>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
>>> 1899: ordinal not in range(128)
>>>
>>> Opening the source code (ovirtsdk4/reader.py) file and seeking the
>>> exact line that fails I can see:
>>>
>>>if isinstance(source, str):
>>>cursor = xml.XmlReader(io.BytesIO(source.encode('utf-8')))
>>>
>>> If I add a line just after the 'if' being "cursor =
>>> cursor.decode('utf-8')", it seems to work, but I guess the source
>>> code should handle this kind of situations.
>>>
>>> Is this a known issue? Should I open a BZ? Any workaround meanwhile?
>>>
>>> Thanks.
>>> ___
>>> 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

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


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

2017-06-13 Thread nicolas
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 make this work.


Thanks.

El 2017-06-12 14:48, Fabrice Bacchella escribió:

Did you try with python 3 ? UTF management changed a lot with this
version, it might works better in your case.


Le 12 juin 2017 à 12:33, nico...@devels.es a écrit :

Hi,

We're running Python SDK (ovirt-engine-sdk-python) ver 4.1.4 and we're 
having some issues getting values that contain accents. For example, 
this snippet fails:


   import ovirtsdk4 as sdk
   import ovirtsdk4.types as types

   # Create the connection to the server:
   connection = sdk.Connection(
   url='https://fqdn/ovirt-engine/api',
   username='...',
   password='...',
   ca_file='...',
   debug=True,
   )

   users_service = connection.system_service().users_service()
   users = users_service.list()

   connection.close()

This snippet fails in the "users = users_service.list()" line, because 
one of the records have a tilde (ó).


The trace is:
Traceback (most recent call last):
 File "lista_users", line 23, in 
   users = users_service.list()
 File 
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/services.py", 
line 22155, in list

   return self._internal_get(headers, query, wait)
 File 
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py", 
line 202, in _internal_get

   return future.wait() if wait else future
 File 
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py", 
line 53, in wait

   return self._code(response)
 File 
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py", 
line 197, in callback

   return self._internal_read_body(response)
 File 
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/service.py", 
line 310, in _internal_read_body

   return reader.Reader.read(response.body)
 File 
"/home/ovirt/prueba/ejemplo2/lib/python2.7/site-packages/ovirtsdk4/reader.py", 
line 297, in read

   cursor = xml.XmlReader(io.BytesIO(source.encode('utf-8')))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 
1899: ordinal not in range(128)


Opening the source code (ovirtsdk4/reader.py) file and seeking the 
exact line that fails I can see:


   if isinstance(source, str):
   cursor = xml.XmlReader(io.BytesIO(source.encode('utf-8')))

If I add a line just after the 'if' being "cursor = 
cursor.decode('utf-8')", it seems to work, but I guess the source code 
should handle this kind of situations.


Is this a known issue? Should I open a BZ? Any workaround meanwhile?

Thanks.
___
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 storage best practise

2017-06-13 Thread Luca 'remix_tj' Lorenzetto
On Thu, Jun 8, 2017 at 4:40 PM, Elad Ben Aharon  wrote:
> Hi,
> Answer inline
>
> On Thu, Jun 8, 2017 at 1:07 PM, Stefano Bovina  wrote:
>>
>> Hi,
>> does a storage best practise document for oVirt exist?
>>
>>
>> Some examples:
>>
>> oVirt allows to extend an existing storage domain: Is it better to keep a
>> 1:1 relation between LUN and oVirt storage domain?
>
> What do you mean by 1:1 relation? Between storage domain and the number of
> LUNs the domain reside on?
>>
>> If not, is it better to avoid adding LUNs to an already existing storage
>> domain?
>
> No problems with storage domain extension.
>>
>>
>> Following the previous questions:
>>
>> Is it better to have 1 Big oVirt storage domain or many small oVirt
>> storage domains?
>
> Depends on your needs, be aware to the following:
> - Each domain has its own metadata which allocates ~5GB of the domain size.
> - Each domain is being constatntly monitored by the system, so large number
> of domain can decrease the system performance.


What do you mean by "reducing system performance"? on hypervisor side
or manager side?

We're planning to move serveral TBs of vm, splitted in several SD of
1TB of size.


Do you suggest creating a big storage domain of several terabytes?
It would be easier also for our deployment scripts, but we're still
valuating if is a good choice.

> There are also downsides with having big domains, like less flexability

Exactly what i was thinking: how do i replace a component of a storage domain?


Luca


-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hosted-engine network

2017-06-13 Thread Arsène Gschwind

Sorry for that, I haven't checked.

I've replaced the log file with a new version which should work i hope.

Many Thanks.

Regards,
Arsène


On 06/12/2017 02:33 PM, Martin Sivak wrote:

I am sorry to say so, but it seems the log archive is corrupted. I
can't open it.

Regards

Martin Sivak

On Mon, Jun 12, 2017 at 12:47 PM, Arsène Gschwind
 wrote:

Please find the logs here:
https://www.dropbox.com/sh/k2zk7ig4tbd9tnj/AAB2NKjVk2z6lVPQ15NIeAtCa?dl=0

Thanks.

Regards,
Arsène

Hi,

Sorry for this, it seems that the attachment have been detached.

So let's try again

Regards,
Arsène


On 06/12/2017 11:59 AM, Martin Sivak wrote:

Hi,

I would love to help you, but I didn't get the log file..

Regards

Martin Sivak

On Mon, Jun 12, 2017 at 11:49 AM, Arsène Gschwind
 wrote:

Hi all,

Any chance to get help or a hint to solve my Problem, I have no idea how to
change this configuration since it is not possible using the WebUI.

Thanks a lot.

Regards,
Arsène


On 06/07/2017 11:50 AM, Arsène Gschwind wrote:

Hi all,

Please find attached the agent.log DEBUG and a screenshot from webui

Thanks a lot

Best regards,

Arsène


On 06/07/2017 11:27 AM, Martin Sivak wrote:

Hi all,

Yanir is right, the local vm.conf is just a cache of what was
retrieved from the engine.

I might be interesting to check what the configuration of the engine
VM shows when edited using the webadmin. Or enable debug logging [1]
for hosted engine and add the OVF dump we send there now and then (the
xml representation of the VM).

[1] See /etc/ovirt-hosted-engine-ha/agent-log.conf and change the
level for root logger to DEBUG

Best regards

Martin Sivak

On Wed, Jun 7, 2017 at 11:12 AM, Yanir Quinn  wrote:

If im not mistaken the values of vm.conf are repopulated from the database ,
but i wouldn't recommend meddling with DB data.
maybe the network device wasn't set properly during the hosted engine setup
?

On Wed, Jun 7, 2017 at 11:47 AM, Arsène Gschwind 
wrote:

Hi,

Any chance to get a hint how to change the vm.conf file so it will not be
overwritten constantly?

Thanks a lot.

Arsène


On 06/06/2017 09:50 AM, Arsène Gschwind wrote:

Hi,

I've migrated our oVirt engine to hosted-engine located on a FC storage
LUN, so far so good.
For some reason I'm not able to start the hosted-engine VM, after digging
in the log files i could figured out the reason. The Network device was set
to "None" as follow:

devices={nicModel:pv,macAddr:00:16:3e:3a:6b:60,linkActive:true,network:None,deviceId:56cb4d71-13ff-42a8-bb83-7faef99fd3ea,address:{slot:0x03,bus:0x00,domain:0x,type:pci,function:0x0},device:bridge,type:interface}

I've created a new config file /var/run/ovirt-hosted-engine-ha/vm.conf.new
and set the nic device to ovirtmgnt, the I could start the hosted-engine
using :
hosted-engine --vm-start
--vm-conf=var/run/ovirt-hosted-engine-ha/vm.conf.new

The nic  device line in vm.conf.new looks like:

devices={nicModel:pv,macAddr:00:16:3e:3a:6b:60,linkActive:true,network:ovirtmgmt,deviceId:56cb4d71-13ff-42a8-bb83-7faef99fd3ea,address:{slot:0x03,bus:0x00,domain:0x,type:pci,function:0x0},device:bridge,type:interface}

I tried to find out a way to change this setting on vm.conf but it is
constantly rewritten, even when using the webui is say's:
HostedEngine:

There was an attempt to change Hosted Engine VM values that are locked.

Is there a way to modify/correct the hosted-engine vm.conf file so it will
stay and not be overwritten?

Thanks a lot for any hint/help

rgds,
arsène

--

Arsène Gschwind
Fa. Sapify AG im Auftrag der Universität Basel
IT Services
Klingelbergstr. 70 |  CH-4056 Basel  |  Switzerland
Tel. +41 79 449 25 63  |  http://its.unibas.ch
ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11



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


--

Arsène Gschwind
Fa. Sapify AG im Auftrag der Universität Basel
IT Services
Klingelbergstr. 70 |  CH-4056 Basel  |  Switzerland
Tel. +41 79 449 25 63  |  http://its.unibas.ch
ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11


___
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


--

Arsène Gschwind
Fa. Sapify AG im Auftrag der Universität Basel
IT Services
Klingelbergstr. 70 |  CH-4056 Basel  |  Switzerland
Tel. +41 79 449 25 63  |  http://its.unibas.ch
ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11



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


--

Arsène Gschwind
Fa. Sapify AG im Auftrag der Universität Basel
IT Services
Klingelbergstr. 70 |  CH-4056 Basel  |  Switzerland
Tel. +41 79 449 25 63  |  http://its.unibas.ch
ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11


_