Re: [ovirt-users] do we need some documentation mainteiners?

2017-05-10 Thread Yedidyah Bar David
On Wed, May 10, 2017 at 8:07 PM, Juan Pablo  wrote:
> I am!  =)
> but Im dizzy on how/where to start.
> suggestions/ideas are welcome

Perhaps start by reading the readme file of the site:

https://github.com/oVirt/ovirt-site

and continue with "CONTRIBUTING.md" and "MAINTAINING.md" there.

If you are new to git/github, you should probably read about them too,
although for simply editing the web site the basics should be enough.

Feel free to ask any questions - perhaps on de...@ovirt.org instead of
here. Welcome and good luck!

>
> JP
>
> El 10/5/2017 12:20, "Barak Korren"  escribió:
>>
>> On 10 May 2017 at 14:18, Juan Pablo  wrote:
>> > this was not the intention of the thread. so please stop throwing
>> > bananas
>> > each other.
>> >
>> > Lets focus on the subject here:do we need some documentation
>> > mainteiners?
>> > yes/no
>>
>> My answer would be definitely.
>> If you are volunteering, you would be very welcome.
>>
>>
>> --
>> Barak Korren
>> RHV DevOps team , RHCE, RHCi
>> Red Hat EMEA
>> redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/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] unhappiness with ovirt engine after upgrading file server handling storage domain

2017-05-10 Thread plysan
did you restart your nfs service or reboot your nfs host during the upgrade
progress ?
if you did, what's the webadmin portal's storage domain's status at the
time ?

what i'm suspecting is that you were restarting nfs while ovirt-engine is
using it.

2017-05-11 2:02 GMT+08:00 Jason Keltz :

> Hi.
>
> I recently upgraded my oVirt infrastructure to the latest
> 4.1.1.8-1.el7.centos, which went smoothly.  Thanks oVirt team! This
> morning, I upgraded my NFS file server which manages the storage domain.  I
> stopped ovirt engine, did a yum update to bring the server from its older
> CentOS 7.2 release to CentOS 7.3, rebooted it, then restarted engine.   At
> that point, engine was unhappy because our 4 virtualization hosts had a
> total of 30 VMs all waiting to reconnect to storage.  The status of all the
> VMs went to unknown in engine.  It took almost 2 hours before everything
> was completely normal again.  It seems that the hosts were available long
> before engine updated status.  I'm assuming it's better to restart engine
> when I know that NFS has resumed on all the 30 virtalized hosts.  However,
> it's hard to know when that's happened, without trying to connect manually
> to all the hosts.  Is there a way to warn engine that you're about to mess
> with the storage domain, and you don't want it to do anything drastic? Sort
> of like a "maintenance mode" for storage?I would hate for it to start
> trying to power off hosts via power management or migrate hosts when it
> just needs to wait a bit...
>
> Thanks!
>
> Jason.
>
> ___
> 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] Docker images for oVirt engine

2017-05-10 Thread Leni Kadali Mutungi
> On 5/10/17, Barak Korren  wrote:
>> That one is obsolete AFAIK. The oVirt container images are now being
>> worked on in the 'ovirt-containers' repo.

Checked it out. It seems more complicated than what I need, which
would be just a Dockerfile that pulls the required image. The
ovirt-containers repo seems to have a dependency on OpenCluster, which
I think I won't need since I'm after a basic install on one machine
for documentation purposes. Your advice is appreciated.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] quota consumer

2017-05-10 Thread Staniforth, Paul
Hello,

I can create quotas with the SDK ( python) and make a user a 
consumer of the quota in the admin portal but don't know how to do it with the 
SDK or API.


Any help appreciated.



Thanks,

 Paul S.

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

2017-05-10 Thread Bryan Sockel
About what i would expect to see:

[  3] local 10.20.101.207 port 43688 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec   979 MBytes   820 Mbits/sec


-Original Message-
From: Juan Pablo 
To: Bryan Sockel 
Cc: users 
Date: Wed, 10 May 2017 16:26:44 -0300
Subject: Re: [ovirt-users] Network Performance

ok, so those numbers are not bad. just to check, can you please verify same 
test from x server to vm? (server different than host vm please ).

regards,
JP

2017-05-10 16:21 GMT-03:00 Bryan Sockel :
Hi Juan,

Currently we are seeing the lag/delay in the VM's. The slowness comes from 
when we access applications from the network vs. locally.  For instance 
Putty opens quickly when run locally, but when run from the network it may 
take a minute or so to launch.

I am watching the Nload graph on the physical server and not seeing 
any/minimal traffic go out on the vlan the vm is running on.

Currently my bonding options are setup as follows:

BONDING_OPTS='mode=4 miimon=1'

I will be changing the options to:
mode=4 miimon=100 xmit_hash_policy=2



Iperf Host to host before Bonding Options change
[  4] local 10.20.101.181 port 5001 connected with 10.20.101.183 port 54892
[ ID] Interval   Transfer Bandwidth
[  4]  0.0-10.0 sec  1.09 GBytes   935 Mbits/sec

Host to vm Before Bonding Options Change

[  3] local 10.20.101.207 port 33142 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  23.6 GBytes  20.2 Gbits/sec

Host to Gluster Servers

[  5] local 10.20.101.181 port 5001 connected with 10.20.101.185 port 51588
[  5]  0.0-10.0 sec  1.07 GBytes   915 Mbits/sec
[  4] local 10.20.101.181 port 5001 connected with 10.20.101.187 port 45548
[  4]  0.0-10.0 sec   946 MBytes   790 Mbits/sec


After Bonding Changes:

Host to Host
[  3] local 10.20.101.183 port 57656 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  1.04 GBytes   897 Mbits/sec

Host to VM

[  3] local 10.20.101.207 port 43686 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  26.2 GBytes  22.5 Gbits/sec

Host to Storage
[  3] local 10.20.101.185 port 51590 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  1.02 GBytes   876 Mbits/sec


VM was running on the same host i was testing the performance against.


After further testing and investigation i have noticed that Kaspersky AV 
maybe the main factor.  

Thanks


-Original Message-
From: Juan Pablo 
To: Bryan Sockel 
Cc: "users@ovirt.org" 
Date: Wed, 10 May 2017 14:14:13 -0300
Subject: Re: [ovirt-users] Network Performance

Bryan, could you please elaborate your setup? do you see lag on your 
virt-host or in your VM's? what have you tried so far to test? can you 
please run:
"iperf -s" on your server (or where do you see lagg)
and "iperf -c $serveripaddress" replace $serveripaddress with your interface 
IP.
and paste your output?
can you also descrie if this is a layer2 or layer 3 network?

regards,
JP

2017-05-10 13:05 GMT-03:00 Bryan Sockel :
I am doing some testing with our current ovirt setup and i am seeing some 
lagging going on when i attempt to launch or access files from a network 
share, or even run windows updates.  

My current setup is 4 X 1 GB Nic bond with multiple Vlan's attached.  Server 
usage is currently low. I have also not setup any additional Network QoS and 
everything else is set to default.




___
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] Network Performance

2017-05-10 Thread Juan Pablo
ok, so those numbers are not bad. just to check, can you please verify same
test from x server to vm? (server different than host vm please ).

regards,
JP

2017-05-10 16:21 GMT-03:00 Bryan Sockel :

> Hi Juan,
>
> Currently we are seeing the lag/delay in the VM's. The slowness comes from
> when we access applications from the network vs. locally.  For instance
> Putty opens quickly when run locally, but when run from the network it may
> take a minute or so to launch.
>
> I am watching the Nload graph on the physical server and not seeing
> any/minimal traffic go out on the vlan the vm is running on.
>
> Currently my bonding options are setup as follows:
>
> BONDING_OPTS='mode=4 miimon=1'
>
> I will be changing the options to:
> mode=4 miimon=100 xmit_hash_policy=2
>
>
>
> Iperf Host to host before Bonding Options change
> [  4] local 10.20.101.181 port 5001 connected with 10.20.101.183 port 54892
> [ ID] Interval   Transfer Bandwidth
> [  4]  0.0-10.0 sec  1.09 GBytes   935 Mbits/sec
>
> Host to vm Before Bonding Options Change
> 
> [  3] local 10.20.101.207 port 33142 connected with 10.20.101.181 port 5001
> [ ID] Interval   Transfer Bandwidth
> [  3]  0.0-10.0 sec  23.6 GBytes  20.2 Gbits/sec
>
> Host to Gluster Servers
>
> [  5] local 10.20.101.181 port 5001 connected with 10.20.101.185 port 51588
> [  5]  0.0-10.0 sec  1.07 GBytes   915 Mbits/sec
> [  4] local 10.20.101.181 port 5001 connected with 10.20.101.187 port 45548
> [  4]  0.0-10.0 sec   946 MBytes   790 Mbits/sec
>
>
> After Bonding Changes:
>
> Host to Host
> [  3] local 10.20.101.183 port 57656 connected with 10.20.101.181 port 5001
> [ ID] Interval   Transfer Bandwidth
> [  3]  0.0-10.0 sec  1.04 GBytes   897 Mbits/sec
>
> Host to VM
>
> [  3] local 10.20.101.207 port 43686 connected with 10.20.101.181 port 5001
> [ ID] Interval   Transfer Bandwidth
> [  3]  0.0-10.0 sec  26.2 GBytes  22.5 Gbits/sec
>
> Host to Storage
> [  3] local 10.20.101.185 port 51590 connected with 10.20.101.181 port 5001
> [ ID] Interval   Transfer Bandwidth
> [  3]  0.0-10.0 sec  1.02 GBytes   876 Mbits/sec
>
>
> VM was running on the same host i was testing the performance against.
>
>
> After further testing and investigation i have noticed that Kaspersky AV
> maybe the main factor.
>
> Thanks
>
>
>
> -Original Message-
> From: Juan Pablo 
> To: Bryan Sockel 
> Cc: "users@ovirt.org" 
> Date: Wed, 10 May 2017 14:14:13 -0300
> Subject: Re: [ovirt-users] Network Performance
>
> Bryan, could you please elaborate your setup? do you see lag on your
> virt-host or in your VM's? what have you tried so far to test? can you
> please run:
> "iperf -s" on your server (or where do you see lagg)
> and "iperf -c $serveripaddress" replace $serveripaddress with your
> interface IP.
> and paste your output?
> can you also descrie if this is a layer2 or layer 3 network?
>
> regards,
> JP
>
> 2017-05-10 13:05 GMT-03:00 Bryan Sockel :
>>
>> I am doing some testing with our current ovirt setup and i am seeing some
>> lagging going on when i attempt to launch or access files from a network
>> share, or even run windows updates.
>>
>> My current setup is 4 X 1 GB Nic bond with multiple Vlan's attached.
>> Server usage is currently low. I have also not setup any additional Network
>> QoS and everything else is set to default.
>>
>>
>>
>>
>> ___
>> 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] Network Performance

2017-05-10 Thread Bryan Sockel
Hi Juan,

Currently we are seeing the lag/delay in the VM's. The slowness comes from 
when we access applications from the network vs. locally.  For instance 
Putty opens quickly when run locally, but when run from the network it may 
take a minute or so to launch.

I am watching the Nload graph on the physical server and not seeing 
any/minimal traffic go out on the vlan the vm is running on.

Currently my bonding options are setup as follows:

BONDING_OPTS='mode=4 miimon=1'

I will be changing the options to:
mode=4 miimon=100 xmit_hash_policy=2



Iperf Host to host before Bonding Options change
[  4] local 10.20.101.181 port 5001 connected with 10.20.101.183 port 54892
[ ID] Interval   Transfer Bandwidth
[  4]  0.0-10.0 sec  1.09 GBytes   935 Mbits/sec

Host to vm Before Bonding Options Change

[  3] local 10.20.101.207 port 33142 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  23.6 GBytes  20.2 Gbits/sec

Host to Gluster Servers

[  5] local 10.20.101.181 port 5001 connected with 10.20.101.185 port 51588
[  5]  0.0-10.0 sec  1.07 GBytes   915 Mbits/sec
[  4] local 10.20.101.181 port 5001 connected with 10.20.101.187 port 45548
[  4]  0.0-10.0 sec   946 MBytes   790 Mbits/sec


After Bonding Changes:

Host to Host
[  3] local 10.20.101.183 port 57656 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  1.04 GBytes   897 Mbits/sec

Host to VM

[  3] local 10.20.101.207 port 43686 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  26.2 GBytes  22.5 Gbits/sec

Host to Storage
[  3] local 10.20.101.185 port 51590 connected with 10.20.101.181 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec  1.02 GBytes   876 Mbits/sec


VM was running on the same host i was testing the performance against.


After further testing and investigation i have noticed that Kaspersky AV 
maybe the main factor.  

Thanks


-Original Message-
From: Juan Pablo 
To: Bryan Sockel 
Cc: "users@ovirt.org" 
Date: Wed, 10 May 2017 14:14:13 -0300
Subject: Re: [ovirt-users] Network Performance

Bryan, could you please elaborate your setup? do you see lag on your 
virt-host or in your VM's? what have you tried so far to test? can you 
please run:
"iperf -s" on your server (or where do you see lagg)
and "iperf -c $serveripaddress" replace $serveripaddress with your interface 
IP.
and paste your output?
can you also descrie if this is a layer2 or layer 3 network?

regards,
JP

2017-05-10 13:05 GMT-03:00 Bryan Sockel :
I am doing some testing with our current ovirt setup and i am seeing some 
lagging going on when i attempt to launch or access files from a network 
share, or even run windows updates.  

My current setup is 4 X 1 GB Nic bond with multiple Vlan's attached.  Server 
usage is currently low. I have also not setup any additional Network QoS and 
everything else is set to default.




___
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] Do we have to update ovirt to import storage domain?

2017-05-10 Thread wodel youchi
Hi,

We have a test environment build on ovirt 3.5 and now we have installed a
new platform build on ovirt 4.1 and we want to import the test VMs into it.

The question : do we have to update the test environment to be able to
import the vms?

If yes, to what version do we have to update? The minimum version needed

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


[ovirt-users] unhappiness with ovirt engine after upgrading file server handling storage domain

2017-05-10 Thread Jason Keltz

Hi.

I recently upgraded my oVirt infrastructure to the latest 
4.1.1.8-1.el7.centos, which went smoothly.  Thanks oVirt team! This 
morning, I upgraded my NFS file server which manages the storage 
domain.  I stopped ovirt engine, did a yum update to bring the server 
from its older CentOS 7.2 release to CentOS 7.3, rebooted it, then 
restarted engine.   At that point, engine was unhappy because our 4 
virtualization hosts had a total of 30 VMs all waiting to reconnect to 
storage.  The status of all the VMs went to unknown in engine.  It took 
almost 2 hours before everything was completely normal again.  It seems 
that the hosts were available long before engine updated status.  I'm 
assuming it's better to restart engine when I know that NFS has resumed 
on all the 30 virtalized hosts.  However, it's hard to know when that's 
happened, without trying to connect manually to all the hosts.  Is there 
a way to warn engine that you're about to mess with the storage domain, 
and you don't want it to do anything drastic? Sort of like a 
"maintenance mode" for storage?I would hate for it to start trying 
to power off hosts via power management or migrate hosts when it just 
needs to wait a bit...


Thanks!

Jason.

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


Re: [ovirt-users] unable to set group on volume

2017-05-10 Thread Joel Diaz
I though I would try something different so I removed the key group and
value virt when creating the volumes. I was able to create the volumes. I
stopped the data volume. I then tried to set the volume group by issuing a
"gluster volume data group virt"

Still get "unable to open file '/var/lib/gluster/Virt'. Error: No such file
or directory.

I don't know if I should continue with the setup until I can set this value.

Please let me know if I can provide some logs to identify the issue.

Thanks for your help,

Joel

On May 10, 2017 6:57 AM, "Joel Diaz"  wrote:

Thanks for the reply.

The file is empty. I created the file by issuing a "touch
/var/lib/glusterd/groups/virt"

The first time I attempted to set the group volume, the error was that the
file was missing. I read a bug report that advised to remove and reinstall
the gluster package in order to properly recreate the file. Since that did
not work, I created it manually.

Thank you,

Joel

On Wed, May 10, 2017 at 2:12 AM, knarra  wrote:

> On 05/10/2017 06:37 AM, Joel Diaz wrote:
>
> Hello ovirt users,
>
> First off all, thanks for your work. I've been using the software for a
> few months and the experience has been great.
>
> I'm having a hard time trying to set the group on a glusterfs volume
>
> PLAY [master] 
> **
>
> TASK [Sets options for volume] **
> ***
> failed: [192.168.170.141] (item={u'key': u'group', u'value': u'virt'}) =>
> {"failed": true, "item": {"key": "group", "value": "virt"}, "msg":
> "'/var/lib/glusterd/groups/virt' file format not valid.\n"}
>
> From this error it looks like the virt file format is not valid? Can you
> please paste the contents of this file?
>
> changed: [192.168.170.141] => (item={u'key': u'storage.owner-uid',
> u'value': u'36'})
> changed: [192.168.170.141] => (item={u'key': u'storage.owner-gid',
> u'value': u'36'})
> changed: [192.168.170.141] => (item={u'key': u'network.ping-timeout',
> u'value': u'30'})
> changed: [192.168.170.141] => (item={u'key': u'performance.strict-o-direct',
> u'value': u'on'})
> changed: [192.168.170.141] => (item={u'key': u'network.remote-dio',
> u'value': u'off'})
> changed: [192.168.170.141] => (item={u'key': u'cluster.granular-entry-heal',
> u'value': u'enable'})
> to retry, use: --limit @/tmp/tmpdTWQ8B/gluster-volume-set.retry
>
> PLAY RECAP 
> *
> 192.168.170.141: ok=0changed=0unreachable=0failed=1
>
> I've tried to remove remove glusterfs, wiping the glusterfs configurations
> and reinstalling the service.
>
> Any help would be appreciated.
>
> Thank you,
>
> Joel
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Network Performance

2017-05-10 Thread Juan Pablo
Bryan, could you please elaborate your setup? do you see lag on your
virt-host or in your VM's? what have you tried so far to test? can you
please run:
"iperf -s" on your server (or where do you see lagg)
and "iperf -c $serveripaddress" replace $serveripaddress with your
interface IP.
and paste your output?
can you also descrie if this is a layer2 or layer 3 network?

regards,
JP

2017-05-10 13:05 GMT-03:00 Bryan Sockel :

> I am doing some testing with our current ovirt setup and i am seeing some
> lagging going on when i attempt to launch or access files from a network
> share, or even run windows updates.
>
> My current setup is 4 X 1 GB Nic bond with multiple Vlan's attached.
> Server usage is currently low. I have also not setup any additional Network
> QoS and everything else is set to default.
>
>
>
>
> ___
> 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] do we need some documentation mainteiners?

2017-05-10 Thread Juan Pablo
I am!  =)
but Im dizzy on how/where to start.
suggestions/ideas are welcome

JP

El 10/5/2017 12:20, "Barak Korren"  escribió:

> On 10 May 2017 at 14:18, Juan Pablo  wrote:
> > this was not the intention of the thread. so please stop throwing bananas
> > each other.
> >
> > Lets focus on the subject here:do we need some documentation mainteiners?
> > yes/no
>
> My answer would be definitely.
> If you are volunteering, you would be very welcome.
>
>
> --
> Barak Korren
> RHV DevOps team , RHCE, RHCi
> Red Hat EMEA
> redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Network Performance

2017-05-10 Thread Bryan Sockel
I am doing some testing with our current ovirt setup and i am seeing some 
lagging going on when i attempt to launch or access files from a network 
share, or even run windows updates.  

My current setup is 4 X 1 GB Nic bond with multiple Vlan's attached.  Server 
usage is currently low. I have also not setup any additional Network QoS and 
everything else is set to default.


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


Re: [ovirt-users] do we need some documentation mainteiners?

2017-05-10 Thread Barak Korren
On 10 May 2017 at 14:18, Juan Pablo  wrote:
> this was not the intention of the thread. so please stop throwing bananas
> each other.
>
> Lets focus on the subject here:do we need some documentation mainteiners?
> yes/no

My answer would be definitely.
If you are volunteering, you would be very welcome.


-- 
Barak Korren
RHV DevOps team , RHCE, RHCi
Red Hat EMEA
redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2017-05-10 Thread Leni Kadali Mutungi
On 5/10/17, Barak Korren  wrote:
> That one is obsolete AFAIK. The oVirt container images are now being
> worked on in the 'ovirt-containers' repo.
>
> GitHub generally contains a read-only mirror on the oVirt sources,
> development work for most projects is done via gerrit.ovirt.org.
>
Thank you. Found it.


-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2017-05-10 Thread Barak Korren
On 10 May 2017 at 17:46, Leni Kadali Mutungi  wrote:
> I noticed that there had been some discussion regarding Docker images
> in the devel mailing list. I wanted to confirm that this:
> https://github.com/oVirt/ovirt-container-engine is alright to use with
> Docker. If this isn't the official source to use, pointers in the
> right direction would appreciated.

That one is obsolete AFAIK. The oVirt container images are now being
worked on in the 'ovirt-containers' repo.

GitHub generally contains a read-only mirror on the oVirt sources,
development work for most projects is done via gerrit.ovirt.org.

-- 
Barak Korren
RHV DevOps team , RHCE, RHCi
Red Hat EMEA
redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Docker images for oVirt engine

2017-05-10 Thread Leni Kadali Mutungi
I noticed that there had been some discussion regarding Docker images
in the devel mailing list. I wanted to confirm that this:
https://github.com/oVirt/ovirt-container-engine is alright to use with
Docker. If this isn't the official source to use, pointers in the
right direction would appreciated.

-- 
- Warm regards
Leni Kadali Mutungi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2017-05-10 Thread Leni Kadali Mutungi
Sorry for the silence. I've been doing some tinkering. I did what
Jason did i.e. `./configure --enable-java-sdk --with-maven
--with-otopi-sources=/home/user/otopi` since that's where I had
checked out otopi. ./configure is able to locate where the
otopi-bundle file is (/usr/share/otopi directory for me) with the
options above. If you try to use the options `--otopi-bundle` or
`--with-otopi-bundle`, you'll get a unrecognized option from
./configure.

I then ran `sudo ovirt-host-deploy/src/bin/ovirt-host-deploy` at my
command prompt and got the same error as that which Jason got.
 # ./src/bin/ovirt-host-deploy
 [ INFO  ] Stage: Initializing
   Continuing will configure this host for serving as
 hypervisor. Are you sure you want to continue? (yes/no) yes
 [ INFO  ] Stage: Environment setup
   Configuration files: []
   Log file: /tmp/ovirt-host-deploy-20170425170102-6mdsx6.log
   Version: otopi-1.7.0_master ()
   Version: ovirt-host-deploy-1.7.0_master ()
 [ INFO  ] Stage: Environment packages setup
 [ ERROR ] Failed to execute stage 'Environment packages setup':
 Packager install not implemented
 [ INFO  ] Stage: Pre-termination
 [ INFO  ] Stage: Termination

Difference being that I wasn't doing the compilation as root, I was
using sudo for elevated privileges. Looking at the log file, I saw the
following errors:
2017-05-07 07:21:37,011+0300 DEBUG
otopi.plugins.otopi.packagers.yumpackager yumpackager._boot:184 Cannot
initialize miniyum
Traceback (most recent call last):
  File "/home/user/otopi/src/bin/../plugins/otopi/packagers/yumpackager.py",
line 176, in _boot
self._refreshMiniyum()
  File "/home/user/otopi/src/bin/../plugins/otopi/packagers/yumpackager.py",
line 134, in _refreshMiniyum
constants.PackEnv.YUM_ENABLED_PLUGINS
  File "/home/user/otopi/src/bin/../plugins/otopi/packagers/yumpackager.py",
line 61, in _getMiniYum
from otopi import miniyum
  File "/home/user/otopi/src/otopi/miniyum.py", line 17, in 
import rpmUtils.miscutils

Traceback (most recent call last):
  File "/home/user/otopi/src/otopi/context.py", line 132, in _executeMethod
method['method']()
  File 
"/home/user/ovirt-host-deploy/src/bin/../plugins/ovirt-host-deploy/vdsm/vdsmid.py",
line 84, in _packages
self.packager.install(('dmidecode',))
  File "/home/user/otopi/src/otopi/packager.py", line 98, in install
raise NotImplementedError(_('Packager install not implemented'))
NotImplementedError: Packager install not implemented

So as a workaround, I used the instructions in the README to create a
file called /etc/ovirt-host-deploy.conf.d/50-offline-packager.conf to
suppress this reaction.
Contains the following instructions:

  [environment:init]
  ODEPLOY/offlinePackager=bool:True
  PACKAGER/yumpackagerEnabled=bool:False

This allowed it to run further than it did for Jason (and myself when
I tried it out). The new error message I got was:
user@localhost:~$ sudo ovirt-host-deploy/src/bin/ovirt-host-deploy
[sudo] password for user:
[ INFO  ] Stage: Initializing
  Continuing will configure this host for serving as
hypervisor. Are you sure you want to continue? (yes/no) y
[ INFO  ] Stage: Environment setup
  Configuration files:
['/etc/ovirt-host-deploy.conf.d/50-fakevmstats.conf',
'/etc/ovirt-host-deploy.conf.d/50-faqemu.conf',
'/etc/ovirt-host-deploy.conf.d/50-offline-packager.conf']
  Log file: /tmp/ovirt-host-deploy-20170509143602-zo5v24.log
  Version: otopi-1.7.0_master ()
  Version: ovirt-host-deploy-1.7.0_master ()
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment customization
[ INFO  ] Kdump unsupported
[ INFO  ] Stage: Setup validation
[WARNING] Cannot validate host name settings, reason: resolved host
does not match any of the local addresses
[WARNING] Grubby not present - not setting kernel arguments.
[ ERROR ] Failed to execute stage 'Setup validation': 'VIRT/enable'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination

Looking at the log file showed the following errors:

2017-05-09 14:36:02,309+0300 DEBUG otopi.context
context._executeMethod:128 Stage boot METHOD
otopi.plugins.otopi.packagers.yumpackager.Plugin._boot
2017-05-09 14:36:02,316+0300 DEBUG
otopi.plugins.otopi.packagers.yumpackager yumpackager._boot:184 Cannot
initialize miniyum
Traceback (most recent call last):
  File "/home/herabus/otopi/src/bin/../plugins/otopi/packagers/yumpackager.py",
line 176, in _boot
self._refreshMiniyum()
  File "/home/herabus/otopi/src/bin/../plugins/otopi/packagers/yumpackager.py",
line 134, in _refreshMiniyum
constants.PackEnv.YUM_ENABLED_PLUGINS
  File "/home/herabus/otopi/src/bin/../plugins/otopi/packagers/yumpackager.py",
line 61, in _getMiniYum
from otopi import miniyum
  File "/home/herabus/otopi/src/otopi/miniyum.py", line 17, in 
import rpmUtils.miscutils
ImportError: No 

Re: [ovirt-users] Gluster Bricks Out of Space

2017-05-10 Thread Sahina Bose
On Mon, May 8, 2017 at 10:46 PM, Ryan Housand <
rhous...@empoweredbenefits.com> wrote:

> We have three gluster shares (_data, _engine, _export) created by a brick
> located on three of our VM hosts. See output from "gluster volume info"
> below:
>
>  Volume Name: data
> Type: Replicate
> Volume ID: c07fdf43-b838-4e4b-bb26-61dbf406cb57
> Status: Started
> Number of Bricks: 1 x (2 + 1) = 3
> Transport-type: tcp
> Bricks:
> Brick1: vmhost01-chi.empoweredbenefits.com:/gluster/brick2/data
> Brick2: vmhost02-chi.empoweredbenefits.com:/gluster/brick2/data
> Brick3: vmhost03-chi.empoweredbenefits.com:/gluster/brick2/data (arbiter)
> Options Reconfigured:
> performance.readdir-ahead: on
> performance.quick-read: off
> performance.read-ahead: off
> performance.io-cache: off
> performance.stat-prefetch: off
> cluster.eager-lock: enable
> network.remote-dio: off
> cluster.quorum-type: auto
> cluster.server-quorum-type: server
> storage.owner-uid: 36
> storage.owner-gid: 36
> features.shard: on
> features.shard-block-size: 512MB
> performance.low-prio-threads: 32
> cluster.data-self-heal-algorithm: full
> cluster.locking-scheme: granular
> cluster.shd-wait-qlength: 1
> cluster.shd-max-threads: 6
> network.ping-timeout: 30
> user.cifs: off
> nfs.disable: on
> performance.strict-o-direct: on
>
> Volume Name: engine
> Type: Distributed-Replicate
> Volume ID: 25455f13-75ba-4bc6-926a-d06ee7c5859a
> Status: Started
> Number of Bricks: 2 x (2 + 1) = 6
> Transport-type: tcp
> Bricks:
> Brick1: vmhost01-chi.empoweredbenefits.com:/gluster/brick1/engine
> Brick2: vmhost02-chi.empoweredbenefits.com:/gluster/brick1/engine
> Brick3: vmhost03-chi.empoweredbenefits.com:/gluster/brick1/engine
> (arbiter)
> Brick4: vmhost04-chi:/mnt/engine
> Brick5: vmhost05-chi:/mnt/engine
> Brick6: vmhost06-chi:/mnt/engine (arbiter)
> Options Reconfigured:
> performance.readdir-ahead: on
> performance.quick-read: off
> performance.read-ahead: off
> performance.io-cache: off
> performance.stat-prefetch: off
> cluster.eager-lock: enable
> network.remote-dio: off
> cluster.quorum-type: auto
> cluster.server-quorum-type: server
> storage.owner-uid: 36
> storage.owner-gid: 36
> features.shard: on
> features.shard-block-size: 512MB
> performance.low-prio-threads: 32
> cluster.data-self-heal-algorithm: full
> cluster.locking-scheme: granular
> cluster.shd-wait-qlength: 1
> cluster.shd-max-threads: 6
> network.ping-timeout: 30
> user.cifs: off
> nfs.disable: on
> performance.strict-o-direct: on
>
> Volume Name: export
> Type: Replicate
> Volume ID: a4c3a49a-fa83-4a62-9523-989c8e016c35
> Status: Started
> Number of Bricks: 1 x (2 + 1) = 3
> Transport-type: tcp
> Bricks:
> Brick1: vmhost01-chi.empoweredbenefits.com:/gluster/brick3/export
> Brick2: vmhost02-chi.empoweredbenefits.com:/gluster/brick3/export
> Brick3: vmhost03-chi.empoweredbenefits.com:/gluster/brick3/export
> (arbiter)
> Options Reconfigured:
> performance.readdir-ahead: on
> performance.quick-read: off
> performance.read-ahead: off
> performance.io-cache: off
> performance.stat-prefetch: off
> cluster.eager-lock: enable
> network.remote-dio: off
> cluster.quorum-type: auto
> cluster.server-quorum-type: server
> storage.owner-uid: 36
> storage.owner-gid: 36
> features.shard: on
> features.shard-block-size: 512MB
> performance.low-prio-threads: 32
> cluster.data-self-heal-algorithm: full
> cluster.locking-scheme: granular
> cluster.shd-wait-qlength: 1
> cluster.shd-max-threads: 6
> network.ping-timeout: 30
> user.cifs: off
> nfs.disable: on
> performance.strict-o-direct: on
>
> Our issue is that we ran out of space on our gluster-engine bricks which
> caused our Hosted Engine vm to crash. We added additional bricks from new
> VM Hosts (see vmhost05 to vmhost06 above) but we still are unable to
> restart our Hosted Engine due to the first three space being depleted. My
> understanding is that I need to extend the bricks that are 100% full on our
> engine partition. Is it the best practice to stop the glusterd service or
> can I use "gloster volume stop engine" to only stop the volume I need to
> extend? Also, if I need to stop glusterd will my VMs hosted on my ovirt
> cluster be affected by mount points export and data being off line?
>

Adding the 3 bricks to engine does not redistribute the data. You need to
run rebalance on gluster volume engine for this. There's a bug currently
that rebalance causes corruption when performed with ongoing IO on the
volume.
I think the best way for you to do this, is put hosted-engine to global
maintenance, stop the hosted-engine and rebalance the engine gluster volume.

What was the original size of the engine gluster volume? (Curious to
understand why you ran out of space)

The VMs running on data gluster volume should not be affected by this.



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

Re: [ovirt-users] install ovirt-engine

2017-05-10 Thread Roy Golan
On Thu, May 4, 2017 at 1:41 AM Brahim Rifahi 
wrote:

> same problem :/
>
>
I can't help much without logs, outputs



> 2017-05-03 11:10 GMT+01:00 Roy Golan :
>
>>
>> http://www.ovirt.org/documentation/quickstart/quickstart-guide/#prerequisites
>>
>> On Wed, May 3, 2017 at 1:01 PM Brahim Rifahi 
>> wrote:
>>
>>> sudo yum install -y ovirt-engine
>>> You do not want to work
>>> ___
>>> 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] do we need some documentation mainteiners?

2017-05-10 Thread Juan Pablo
this was not the intention of the thread. so please stop throwing bananas
each other.

Lets focus on the subject here:do we need some documentation mainteiners?
yes/no

regards,
JP


2017-05-10 5:27 GMT-03:00 Fabrice Bacchella :

> I'm might be saying things in a harsh way, but there is a real big problem
> with public documentation at ovirt, especially the latest python sdk.
>
> I'm coding a python wrapper around the sdk4 and fighting a lot with
> documentation.
>
> First I tried to google:
> ovirt python sdk4
> ovirt python sdk 4
> ovirt rest api 4
>
> I was finally given http://ovirt.github.io/ovirt-engine-sdk/master, but
> http://ovirt.github.io returns a 404, the sdk is hidden under
> http://ovirt.github.io/ovirt-engine-sdk/, a mini-site that is barely
> usable, as it very hard to navigate between page. For example, when you're
> at : http://ovirt.github.io/ovirt-engine-sdk/master/version.m.html, how
> do you go to the first page ?
>
> If I try to gogle the title of this page, I found http://www.ovirt.org/
> develop/release-management/features/infra/python-sdk/ as first result and
> it's even not in the first page of results .
>
> Or you can have a look at https://access.redhat.com/
> documentation/en-us/red_hat_virtualization/4.1/html-
> single/python_sdk_guide/, that talks only about v3 sdk, which is
> deprecated.
>
> The python sdk change log:
> http://www.ovirt.org/develop/sdk/python-sdk-changelog/
>
> At pypi, no links to the sdk documentation
> https://pypi.python.org/pypi/ovirt-engine-sdk-python
>
> I requested the events codes, I was given that:
> https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/
> common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java#L726
>
> Is there a formal list somewhere ?
>
> Le 10 mai 2017 à 08:21, Oved Ourfali  a écrit :
>
>
>
> On Tue, May 9, 2017 at 11:46 PM, Fabrice Bacchella  orange.fr> wrote:
>
>> I'm whining because ovirt is a wonderful product, peoples behind are
>> nice, but ho boy, what about the execution !
>>
>>
> I couldn't agree more with James here.
> It is good to whine, complain, and seek for improvements. We all want a
> better project!
> However, there are pleasant ways to express your thoughts and concerns.
> You seem to choose unpleasant ones, which are also unproductive and
> insulting to others.
> That can result in people not taking your thoughts and concerns in a
> serious way, as it is just unpleasant for them to read and reply to.
> I remember someone already sent you the community code of conduct [1]. I
> suggest you read that again before sharing your next post with us.
>
> Oved
>
> [1] https://www.ovirt.org/community/about/community-guidelines/
>
> And no I have done much more than empty complains as I have open my share
>> a bug report, written a blog entry about using ovirt+kerberos+SSO, written
>> a full fledged CLI and trying to finished the SDK. So I'm not just
>> complaining.
>>
>> Le 9 mai 2017 à 22:28, James Michels  a
>> écrit :
>>
>> Seriously, what's wrong with you? I've being reading your comments for
>> some time and the only things I see are whining, unproductive complaining
>> and disrespectful comments.
>>
>> Please, stop it. There are tons of ways to say something, and the way you
>> use is insulting for dozens of people developing this project. Most people
>> here are seeking help and/or trying to be useful aiding others in what they
>> can. If you don't like oVirt or you have that much complains maybe you
>> should start your project yourself and do things like you consider they
>> should be done.
>>
>> James
>>
>> 2017-05-09 15:59 GMT+01:00 Fabrice Bacchella > >:
>>
>>> The documentation is alway a good laugh at ovirt. Look for RHEL instead.
>>>
>>> Le 9 mai 2017 à 16:13, Juan Pablo  a écrit :
>>>
>>> Team, Is just me or the documentation pages are not being updated ? many
>>> are outdated.. how can we collaborate?
>>>
>>> whats up with http://www.ovirt.org/documentation/admin-guide/ ?
>>>
>>> regards,
>>> JP
>>> ___
>>> 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
>>
>>
>>
>> ___
>> 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
> 

Re: [ovirt-users] ansible and list of vms

2017-05-10 Thread Ondra Machacek
On Wed, May 10, 2017 at 12:38 PM, Nathanaël Blanchet 
wrote:

> Le 10/05/2017 à 10:29, Ondra Machacek a écrit :
>
> Not sure I understand. You can use Ansible module to list VMs, you
> can use ovirt_vms _facts[1] module.
>
> For example to get only stopped VMs, you can use following:
>
> - name: Get stopped VMs
>   ovirt_vms_facts:
> auth:
>   url: https://ovirt.example.com/ovirt-engine/api
>   username: admin@internal
>   password: password
>   ca_file: /etc/pki/ovirt-engine/ca.pem
> pattern: "status = down"
>
> I want a list of vms sorted by any possible attributes, i.e. sorted by
> datacenter or cluster, not only by status.
>
>- For example, ovirt_vms_facts doesn't allow to get the datacenter the
>vm belongs to , and the pattern filter doesn't return a list of vms as
>expected:
>
>
> - hosts: localhost
>   connection: local
>   tasks:
>   - name: Get stopped VMs
> ovirt_vms_facts:
>   auth:
> url: https://acore.v100.abes.fr/ovirt-engine/api
> username: admin@internal
> password: ovirt123
> insecure: true
> pattern: name=centos* and cluster=west
>   - debug:
>   var: ovirt_vms
>   - shell: echo "{{ ovirt_vms.name }}"
>


Ok, I understand, now.
You have few options here.
If you want for example only VMs from datacenter 'X', you can use following:

- hosts: localhost
  connection: local
  tasks:
  - name: Get VMs from datacenter X
ovirt_vms_facts:
  pattern: datacenter=X
  auth:
url: https://acore.v100.abes.fr/ovirt-engine/api
username: admin@internal
password: ovirt123
insecure: true
  - debug:
  msg: "{{ ovirt_vms | map(attribute='name') | list }}"


>
> How can I successfully display this list of vms like described here :
> name description returned type sample
> ovirt_vms List of dictionaries describing the VMs. VM attribues are
> mapped to dictionary keys, all VMs attributes can be found at following
> url: https://ovirt.example.com/ovirt-engine/api/model#types/vm. On
> success. list
>
>
>- About the python SDK:
>
> list_vms.py could be what I expect, but vm.datacenter_name doesn't exist
>

Yes, because the 'data_center' parameter isn't part of the VM type. Take a
look here[1],
you will find there all attributes the VM has. As you can see there is no
'datacenter', but
there is a 'cluster', but as said in documentation, it's just a reference
to the cluster. That
means that it contains the ID of the cluster and the 'href' to the cluster,
so you can get
the cluster object by following that reference using this code:

 vm_cluster = connection.follow_link(vm.cluster)
 print vm_cluster.name

 # Same for datacenter:
 vm_dc = connection.follow_link(vm_cluster.data_center)
 print vm_dc.name

What you need to understand is, what is the difference between the 'full'
object and the reference to the object. It's good to take a look at the XML
output of the API and learn to read the API specification documentation,
when working with oVirt Ansible and Python SDK.

[1] http://ovirt.github.io/ovirt-engine-api-model/master/#types/vm


>
>
> [1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html
>
> On Wed, May 10, 2017 at 10:13 AM, Nathanaël Blanchet 
> wrote:
>
>> Thanks, I knew this python script, but I believed it was possible to do
>> the same with an ansible module.
>>
>> That's mean we need several tools to do different tasks, it is not a very
>> convergent way to proceed... but it is feasable.
>>
>> Le 10/05/2017 à 07:56, Ondra Machacek a écrit :
>>
>>
>>
>> On Tue, May 9, 2017 at 6:52 PM, Nathanaël Blanchet 
>> wrote:
>>
>>> Hello,
>>>
>>> I didn't find anyway to easy list all my vms thanks to the ansible
>>> modules...
>>> I tried the ovirt4.py script which is able to list the whole facts, so
>>> vms list, when the number of them is small in a test datacenter, but in a
>>> production datacenter, I get an issue:
>>>
>>>   File "./ovirt4.py", line 262, in 
>>> main()
>>>   File "./ovirt4.py", line 254, in main
>>> vm_name=args.host,
>>>   File "./ovirt4.py", line 213, in get_data
>>> vms[name] = get_dict_of_struct(connection, vm)
>>>   File "./ovirt4.py", line 185, in get_dict_of_struct
>>> (device.name, [ip.address for ip in device.ips]) for device in
>>> devices
>>>   File "./ovirt4.py", line 185, in 
>>> (device.name, [ip.address for ip in device.ips]) for device in
>>> devices
>>> TypeError: 'NoneType' object is not iterable
>>>
>>
>> This error was fixed already, try to download latest ovirt4.py file.
>>
>> The other way is to use fatcs[1] module.
>>
>> [1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html
>>
>>
>>>
>>>
>>> What is the simpliest way to get this basic information with sdk4???
>>> (with sdk3 : ovirt-shell -E "list vms")
>>>
>>
>> Please take a look at the following example:
>>
>>  https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/
>> examples/list_vms.py

Re: [ovirt-users] unable to set group on volume

2017-05-10 Thread Joel Diaz
Thanks for the reply.

The file is empty. I created the file by issuing a "touch
/var/lib/glusterd/groups/virt"

The first time I attempted to set the group volume, the error was that the
file was missing. I read a bug report that advised to remove and reinstall
the gluster package in order to properly recreate the file. Since that did
not work, I created it manually.

Thank you,

Joel

On Wed, May 10, 2017 at 2:12 AM, knarra  wrote:

> On 05/10/2017 06:37 AM, Joel Diaz wrote:
>
> Hello ovirt users,
>
> First off all, thanks for your work. I've been using the software for a
> few months and the experience has been great.
>
> I'm having a hard time trying to set the group on a glusterfs volume
>
> PLAY [master] 
> **
>
> TASK [Sets options for volume] **
> ***
> failed: [192.168.170.141] (item={u'key': u'group', u'value': u'virt'}) =>
> {"failed": true, "item": {"key": "group", "value": "virt"}, "msg":
> "'/var/lib/glusterd/groups/virt' file format not valid.\n"}
>
> From this error it looks like the virt file format is not valid? Can you
> please paste the contents of this file?
>
> changed: [192.168.170.141] => (item={u'key': u'storage.owner-uid',
> u'value': u'36'})
> changed: [192.168.170.141] => (item={u'key': u'storage.owner-gid',
> u'value': u'36'})
> changed: [192.168.170.141] => (item={u'key': u'network.ping-timeout',
> u'value': u'30'})
> changed: [192.168.170.141] => (item={u'key': u'performance.strict-o-direct',
> u'value': u'on'})
> changed: [192.168.170.141] => (item={u'key': u'network.remote-dio',
> u'value': u'off'})
> changed: [192.168.170.141] => (item={u'key': u'cluster.granular-entry-heal',
> u'value': u'enable'})
> to retry, use: --limit @/tmp/tmpdTWQ8B/gluster-volume-set.retry
>
> PLAY RECAP 
> *
> 192.168.170.141: ok=0changed=0unreachable=0failed=1
>
> I've tried to remove remove glusterfs, wiping the glusterfs configurations
> and reinstalling the service.
>
> Any help would be appreciated.
>
> Thank you,
>
> Joel
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ansible and list of vms

2017-05-10 Thread Nathanaël Blanchet

Le 10/05/2017 à 10:29, Ondra Machacek a écrit :

Not sure I understand. You can use Ansible module to list VMs, you
can use ovirt_vms _facts[1] module.

For example to get only stopped VMs, you can use following:

- name: Get stopped VMs
  ovirt_vms_facts:
auth:
  url: https://ovirt.example.com/ovirt-engine/api
  username: admin@internal
  password: password
  ca_file: /etc/pki/ovirt-engine/ca.pem
pattern: "status = down"
I want a list of vms sorted by any possible attributes, i.e. sorted by 
datacenter or cluster, not only by status.


 * For example, ovirt_vms_facts doesn't allow to get the datacenter the
   vm belongs to , and the pattern filter doesn't return a list of vms
   as expected:


- hosts: localhost
  connection: local
  tasks:
  - name: Get stopped VMs
ovirt_vms_facts:
  auth:
url: https://acore.v100.abes.fr/ovirt-engine/api
username: admin@internal
password: ovirt123
insecure: true
pattern: name=centos* and cluster=west
  - debug:
  var: ovirt_vms
  - shell: echo "{{ ovirt_vms.name }}"

How can I successfully display this list of vms like described here :
namedescription returnedtypesample
ovirt_vms 	List of dictionaries describing the VMs. VM attribues are 
mapped to dictionary keys, all VMs attributes can be found at following 
url: https://ovirt.example.com/ovirt-engine/api/model#types/vm. 	On 
success. 	list 	



 * About the python SDK:

list_vms.py could be what I expect, but vm.datacenter_name doesn't exist


[1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html 



On Wed, May 10, 2017 at 10:13 AM, Nathanaël Blanchet > wrote:


Thanks, I knew this python script, but I believed it was possible
to do the same with an ansible module.

That's mean we need several tools to do different tasks, it is not
a very convergent way to proceed... but it is feasable.


Le 10/05/2017 à 07:56, Ondra Machacek a écrit :



On Tue, May 9, 2017 at 6:52 PM, Nathanaël Blanchet
> wrote:

Hello,

I didn't find anyway to easy list all my vms thanks to the
ansible modules...
I tried the ovirt4.py script which is able to list the whole
facts, so vms list, when the number of them is small in a
test datacenter, but in a production datacenter, I get an issue:

  File "./ovirt4.py", line 262, in 
main()
  File "./ovirt4.py", line 254, in main
vm_name=args.host,
  File "./ovirt4.py", line 213, in get_data
vms[name] = get_dict_of_struct(connection, vm)
  File "./ovirt4.py", line 185, in get_dict_of_struct
(device.name , [ip.address for ip in
device.ips]) for device in devices
  File "./ovirt4.py", line 185, in 
(device.name , [ip.address for ip in
device.ips]) for device in devices
TypeError: 'NoneType' object is not iterable


This error was fixed already, try to download latest ovirt4.py file.

The other way is to use fatcs[1] module.

[1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html




What is the simpliest way to get this basic information with
sdk4??? (with sdk3 : ovirt-shell -E "list vms")


Please take a look at the following example:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/list_vms.py






-- 
Nathanaël Blanchet


Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr 

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





-- 
Nathanaël Blanchet


Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr   





--
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr

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


Re: [ovirt-users] ansible and list of vms

2017-05-10 Thread Ondra Machacek
Not sure I understand. You can use Ansible module to list VMs, you
can use ovirt_vms _facts[1] module.

For example to get only stopped VMs, you can use following:

- name: Get stopped VMs
  ovirt_vms_facts:
auth:
  url: https://ovirt.example.com/ovirt-engine/api
  username: admin@internal
  password: password
  ca_file: /etc/pki/ovirt-engine/ca.pem
pattern: "status = down"

[1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html

On Wed, May 10, 2017 at 10:13 AM, Nathanaël Blanchet 
wrote:

> Thanks, I knew this python script, but I believed it was possible to do
> the same with an ansible module.
>
> That's mean we need several tools to do different tasks, it is not a very
> convergent way to proceed... but it is feasable.
>
> Le 10/05/2017 à 07:56, Ondra Machacek a écrit :
>
>
>
> On Tue, May 9, 2017 at 6:52 PM, Nathanaël Blanchet 
> wrote:
>
>> Hello,
>>
>> I didn't find anyway to easy list all my vms thanks to the ansible
>> modules...
>> I tried the ovirt4.py script which is able to list the whole facts, so
>> vms list, when the number of them is small in a test datacenter, but in a
>> production datacenter, I get an issue:
>>
>>   File "./ovirt4.py", line 262, in 
>> main()
>>   File "./ovirt4.py", line 254, in main
>> vm_name=args.host,
>>   File "./ovirt4.py", line 213, in get_data
>> vms[name] = get_dict_of_struct(connection, vm)
>>   File "./ovirt4.py", line 185, in get_dict_of_struct
>> (device.name, [ip.address for ip in device.ips]) for device in
>> devices
>>   File "./ovirt4.py", line 185, in 
>> (device.name, [ip.address for ip in device.ips]) for device in
>> devices
>> TypeError: 'NoneType' object is not iterable
>>
>
> This error was fixed already, try to download latest ovirt4.py file.
>
> The other way is to use fatcs[1] module.
>
> [1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html
>
>
>>
>>
>> What is the simpliest way to get this basic information with sdk4???
>> (with sdk3 : ovirt-shell -E "list vms")
>>
>
> Please take a look at the following example:
>
>  https://github.com/oVirt/ovirt-engine-sdk/blob/master/
> sdk/examples/list_vms.py
>
>
>>
>>
>>
>> --
>> Nathanaël Blanchet
>>
>> Supervision réseau
>> Pôle Infrastrutures Informatiques
>> 227 avenue Professeur-Jean-Louis-Viala
>> 34193 MONTPELLIER CEDEX 5
>> Tél. 33 (0)4 67 54 84 55
>> Fax  33 (0)4 67 54 84 14
>> blanc...@abes.fr
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> Pôle Infrastrutures Informatiques
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5 
> Tél. 33 (0)4 67 54 84 55
> Fax  33 (0)4 67 54 84 14blanc...@abes.fr
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] do we need some documentation mainteiners?

2017-05-10 Thread Fabrice Bacchella
I'm might be saying things in a harsh way, but there is a real big problem with 
public documentation at ovirt, especially the latest python sdk.

I'm coding a python wrapper around the sdk4 and fighting a lot with 
documentation. 

First I tried to google:
ovirt python sdk4
ovirt python sdk 4
ovirt rest api 4

I was finally given http://ovirt.github.io/ovirt-engine-sdk/master, but 
http://ovirt.github.io returns a 404, the sdk is hidden under 
http://ovirt.github.io/ovirt-engine-sdk/, a mini-site that is barely usable, as 
it very hard to navigate between page. For example, when you're at : 
http://ovirt.github.io/ovirt-engine-sdk/master/version.m.html, how do you go to 
the first page ?

If I try to gogle the title of this page, I found 
http://www.ovirt.org/develop/release-management/features/infra/python-sdk/ as 
first result and it's even not in the first page of results .

Or you can have a look at 
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html-single/python_sdk_guide/,
 that talks only about v3 sdk, which is deprecated.

The python sdk change log:
http://www.ovirt.org/develop/sdk/python-sdk-changelog/

At pypi, no links to the sdk documentation
https://pypi.python.org/pypi/ovirt-engine-sdk-python

I requested the events codes, I was given that:
https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java#L726

Is there a formal list somewhere ?

> Le 10 mai 2017 à 08:21, Oved Ourfali  a écrit :
> 
> 
> 
> On Tue, May 9, 2017 at 11:46 PM, Fabrice Bacchella 
> > wrote:
> I'm whining because ovirt is a wonderful product, peoples behind are nice, 
> but ho boy, what about the execution !
> 
> 
> I couldn't agree more with James here.
> It is good to whine, complain, and seek for improvements. We all want a 
> better project!
> However, there are pleasant ways to express your thoughts and concerns. You 
> seem to choose unpleasant ones, which are also unproductive and insulting to 
> others.
> That can result in people not taking your thoughts and concerns in a serious 
> way, as it is just unpleasant for them to read and reply to.
> I remember someone already sent you the community code of conduct [1]. I 
> suggest you read that again before sharing your next post with us.
> 
> Oved
>  
> [1] https://www.ovirt.org/community/about/community-guidelines/ 
> 
> 
> And no I have done much more than empty complains as I have open my share a 
> bug report, written a blog entry about using ovirt+kerberos+SSO, written a 
> full fledged CLI and trying to finished the SDK. So I'm not just complaining.
> 
>> Le 9 mai 2017 à 22:28, James Michels > > a écrit :
>> 
>> Seriously, what's wrong with you? I've being reading your comments for some 
>> time and the only things I see are whining, unproductive complaining and 
>> disrespectful comments.
>> 
>> Please, stop it. There are tons of ways to say something, and the way you 
>> use is insulting for dozens of people developing this project. Most people 
>> here are seeking help and/or trying to be useful aiding others in what they 
>> can. If you don't like oVirt or you have that much complains maybe you 
>> should start your project yourself and do things like you consider they 
>> should be done.
>> 
>> James
>> 
>> 2017-05-09 15:59 GMT+01:00 Fabrice Bacchella > >:
>> The documentation is alway a good laugh at ovirt. Look for RHEL instead.
>> 
>>> Le 9 mai 2017 à 16:13, Juan Pablo >> > a écrit :
>>> 
>>> Team, Is just me or the documentation pages are not being updated ? many 
>>> are outdated.. how can we collaborate? 
>>> 
>>> whats up with http://www.ovirt.org/documentation/admin-guide/ 
>>>  ?
>>> 
>>> regards,
>>> JP
>>> ___
>>> 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 
>> 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users 
> 

Re: [ovirt-users] ansible and list of vms

2017-05-10 Thread Nathanaël Blanchet
Thanks, I knew this python script, but I believed it was possible to do 
the same with an ansible module.


That's mean we need several tools to do different tasks, it is not a 
very convergent way to proceed... but it is feasable.



Le 10/05/2017 à 07:56, Ondra Machacek a écrit :



On Tue, May 9, 2017 at 6:52 PM, Nathanaël Blanchet > wrote:


Hello,

I didn't find anyway to easy list all my vms thanks to the ansible
modules...
I tried the ovirt4.py script which is able to list the whole
facts, so vms list, when the number of them is small in a test
datacenter, but in a production datacenter, I get an issue:

  File "./ovirt4.py", line 262, in 
main()
  File "./ovirt4.py", line 254, in main
vm_name=args.host,
  File "./ovirt4.py", line 213, in get_data
vms[name] = get_dict_of_struct(connection, vm)
  File "./ovirt4.py", line 185, in get_dict_of_struct
(device.name , [ip.address for ip in
device.ips]) for device in devices
  File "./ovirt4.py", line 185, in 
(device.name , [ip.address for ip in
device.ips]) for device in devices
TypeError: 'NoneType' object is not iterable


This error was fixed already, try to download latest ovirt4.py file.

The other way is to use fatcs[1] module.

[1] http://docs.ansible.com/ansible/ovirt_vms_facts_module.html



What is the simpliest way to get this basic information with
sdk4??? (with sdk3 : ovirt-shell -E "list vms")


Please take a look at the following example:

https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/list_vms.py




-- 
Nathanaël Blanchet


Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr 

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





--
Nathanaël Blanchet

Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr

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


Re: [ovirt-users] unable to set group on volume

2017-05-10 Thread knarra

On 05/10/2017 06:37 AM, Joel Diaz wrote:

Hello ovirt users,

First off all, thanks for your work. I've been using the software for 
a few months and the experience has been great.


I'm having a hard time trying to set the group on a glusterfs volume

PLAY [master] 
**


TASK [Sets options for volume] 
*
failed: [192.168.170.141] (item={u'key': u'group', u'value': u'virt'}) 
=> {"failed": true, "item": {"key": "group", "value": "virt"}, "msg": 
"'/var/lib/glusterd/groups/virt' file format not valid.\n"}
From this error it looks like the virt file format is not valid? Can 
you please paste the contents of this file?
changed: [192.168.170.141] => (item={u'key': u'storage.owner-uid', 
u'value': u'36'})
changed: [192.168.170.141] => (item={u'key': u'storage.owner-gid', 
u'value': u'36'})
changed: [192.168.170.141] => (item={u'key': u'network.ping-timeout', 
u'value': u'30'})
changed: [192.168.170.141] => (item={u'key': 
u'performance.strict-o-direct', u'value': u'on'})
changed: [192.168.170.141] => (item={u'key': u'network.remote-dio', 
u'value': u'off'})
changed: [192.168.170.141] => (item={u'key': 
u'cluster.granular-entry-heal', u'value': u'enable'})

to retry, use: --limit @/tmp/tmpdTWQ8B/gluster-volume-set.retry

PLAY RECAP 
*

192.168.170.141: ok=0changed=0  unreachable=0failed=1

I've tried to remove remove glusterfs, wiping the glusterfs 
configurations and reinstalling the service.


Any help would be appreciated.

Thank you,

Joel


___
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