Re: [ovirt-users] testing REST API

2017-08-18 Thread Ondra Machacek
On Fri, Aug 18, 2017 at 11:38 PM, wodel youchi  wrote:
>
> Hi;
>
> I am reading the REST API Guide, it's the first time that I am testing this.
>
> I have hard time to use OAuth authentication to make queries.
>
> I can get the token with curl and with a firefox REST module
> curl --cacert ca.crt -X POST -H 'Content-Type: 
> application/x-www-form-urlencoded' -H 'Accept: application/json' -d 
> 'grant_type=password&scope=ovirt-appapi&username=admin%40internal&password=mypass'
>  https://engine101.example.com/ovirt-engine/sso/oauth/token HTTP/1.1

You have incorrect scope. You have ovirt-appapi , but it should be ovirt-app-api

>
>
> engine log :
> [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-1) [] 
> User admin@internal successfully logged in with scopes: ovirt-appapi
>
>
> But when I try to use it I get this error :
> curl --cacert ca.crt -X GET  -H 'application/xml' -H 'Authorization: Bearer 
> fT0knxah-wEOyi-VdhmozKv-hz-wohVm268BBJts-MYxNZ548K0UZCSmv5nY18Z6gPiFdl-VAySjqr_N4gPGAA'
>https://engine101.example.com/ovirt-engine/api/vms HTTP/1.1
>
> engine log:
> ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default 
> task-30) [] Cannot authenticate using authentication Headers: The required 
> scope ovirt-app-api is not granted.
>
> With basic authentication, it's working, so I don't know where is the problem.
>
> Regards.
>
> Garanti sans virus. www.avast.com
>
> ___
> 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] Recovering from a multi-node failure

2017-08-18 Thread Jim Kusznir
the heal info command shows perfect consistency between nodes; that's what
confused me.  At the moment, the physical partitions (lvm partitions) that
gluster is using are different sizes, but I expected to see the "least
common denominator" for the total size, and I expected to see it consistant
accross the cluster.

As this issue was from a couple weeks ago, I don't know what logs to give
you anymore.  Since the origional issue, the entire cluster has been
rebooted, with not all nodes down at the same time, but every node having
been rebooted.  Now things look a bit different:
[root@ovirt1 ~]# df -h
Filesystem Size  Used Avail Use% Mounted on
/dev/mapper/centos_ovirt-root   20G  5.1G   15G  26% /
devtmpfs16G 0   16G   0% /dev
tmpfs   16G 0   16G   0% /dev/shm
tmpfs   16G   34M   16G   1% /run
tmpfs   16G 0   16G   0% /sys/fs/cgroup
/dev/mapper/gluster-iso 25G  7.3G   18G  29% /gluster/brick4
/dev/sda1  497M  315M  183M  64% /boot
/dev/mapper/gluster-engine  25G   13G   13G  49% /gluster/brick1
/dev/mapper/gluster-data   136G  126G   11G  93% /gluster/brick2
192.168.8.11:/engine15G   10G  5.1G  67%
/rhev/data-center/mnt/glusterSD/192.168.8.11:_engine
192.168.8.11:/data 136G  126G   11G  93%
/rhev/data-center/mnt/glusterSD/192.168.8.11:_data
192.168.8.11:/iso   13G  7.3G  5.8G  56%
/rhev/data-center/mnt/glusterSD/192.168.8.11:_iso
tmpfs  3.2G 0  3.2G   0% /run/user/0

[root@ovirt2 ~]# df -h
Filesystem Size  Used Avail Use% Mounted on
/dev/mapper/centos_ovirt-root  8.0G  3.1G  5.0G  39% /
devtmpfs16G 0   16G   0% /dev
tmpfs   16G   16K   16G   1% /dev/shm
tmpfs   16G   90M   16G   1% /run
tmpfs   16G 0   16G   0% /sys/fs/cgroup
/dev/mapper/gluster-engine  15G   10G  5.1G  67% /gluster/brick1
/dev/sda1  497M  307M  191M  62% /boot
/dev/mapper/gluster-iso 13G  7.3G  5.8G  56% /gluster/brick4
/dev/mapper/gluster-data   174G  121G   54G  70% /gluster/brick2
192.168.8.11:/engine15G   10G  5.1G  67%
/rhev/data-center/mnt/glusterSD/192.168.8.11:_engine
192.168.8.11:/data 136G  126G   11G  93%
/rhev/data-center/mnt/glusterSD/192.168.8.11:_data
192.168.8.11:/iso   13G  7.3G  5.8G  56%
/rhev/data-center/mnt/glusterSD/192.168.8.11:_iso
tmpfs  3.2G 0  3.2G   0% /run/user/0


The thing that still bothers me is that for engine (brick1)  ovirt1's
physical disk space used is still higher than ovirt2's physical disk space
used, but the smaller number is reported on the gluster fs.  For data
(brick2), ovirt1 and ovirt2 physical usage are still different, but the
larger number is reported by glsuterfs.

the main question is still:
Is there cause for concern with the fact that physical usage for the bricks
are not consistent between the replicas that the heal info show completely
healed?  (again, I was so concerned that with ovirt2, I re-deleted
everything and let gluster re-heal the volume, and it came to the exact
same amount of (less) disk usage and claimed fully healed.

--Jim


On Wed, Aug 16, 2017 at 5:22 AM, Sahina Bose  wrote:

>
>
> On Sun, Aug 6, 2017 at 4:42 AM, Jim Kusznir  wrote:
>
>> Well, after a very stressful weekend, I think I have things largely
>> working.  Turns out that most of the above issues were caused by the linux
>> permissions of the exports for all three volumes (they had been reset to
>> 600; setting them to 774 or 770 fixed many of the issues).  Of course, I
>> didn't find that until a much more harrowing outage, and hours and hours of
>> work, including beginning to look at rebuilding my cluster
>>
>> So, now my cluster is operating again, and everything looks good EXCEPT
>> for one major Gluster issue/question that I haven't found any references or
>> info on.
>>
>> my host ovirt2, one of the replica gluster servers, is the one that lost
>> its storage and had to reinitialize it from the cluster.  the iso volume is
>> perfectly fine and complete, but the engine and data volumes are smaller on
>> disk on this node than on the other node (and this node before the crash).
>> On the engine store, the entire cluster reports the smaller utilization on
>> mounted gluster filesystems; on the data partition, it reports the larger
>> size (rest of cluster).  Here's some df statments to help clarify:
>>
>> (brick1 = engine; brick2=data, brick4=iso):
>> Filesystem Size  Used Avail Use% Mounted on
>> /dev/mapper/gluster-engine  25G   12G   14G  47% /gluster/brick1
>> /dev/mapper/gluster-data   136G  125G   12G  92% /gluster/brick2
>> /dev/mapper/gluster-iso 25G  7.3G   18G  29% /gluster/brick4
>> 192.168.8.11:/en

[ovirt-users] testing REST API

2017-08-18 Thread wodel youchi
Hi;

I am reading the REST API Guide, it's the first time that I am testing this.

I have hard time to use OAuth authentication to make queries.

I can get the token with curl and with a firefox REST module
*curl --cacert ca.crt -X POST -H 'Content-Type:
application/x-www-form-urlencoded' -H 'Accept: application/json' -d
'grant_type=password&scope=ovirt-appapi&username=admin%40internal&password=mypass'
https://engine101.example.com/ovirt-engine/sso/oauth/token
 HTTP/1.1*

engine log :
[org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-1) []
User admin@internal successfully logged in with scopes: ovirt-appapi


But when I try to use it I get this error :
*curl --cacert ca.crt -X GET  -H 'application/xml' -H 'Authorization:
Bearer
fT0knxah-wEOyi-VdhmozKv-hz-wohVm268BBJts-MYxNZ548K0UZCSmv5nY18Z6gPiFdl-VAySjqr_N4gPGAA'
https://engine101.example.com/ovirt-engine/api/vms
 HTTP/1.1*

engine log:
ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default
task-30) [] Cannot authenticate using authentication Headers: The required
scope ovirt-app-api is not granted.

With basic authentication, it's working, so I don't know where is the
problem.

Regards.


Garanti
sans virus. www.avast.com

<#m_8952078234548713351_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Data domain on engine host

2017-08-18 Thread Alexander Wels
On Friday, August 18, 2017 1:20:23 PM EDT Mitchell Smith wrote:
> Hi List,
> 
> I am in the process of deploying ovirt in a lab environment before
> implementing it in production.
> 
> My lab consists of three compute hosts and one engine host.
> 
> I am using the 4.2 nightly builds in this lab environment, mainly because I
> want to test the OVN functionality.
> 
> I wanted to add a NFS data domain on the engine host to store VM templates
> and ISO images, however when I go in to Storage -> Domains -> New and try
> and add a NFS domain, it only gives me the three compute hosts to create
> storage on, I’m guessing because the engine host doesn’t have VDSM
> installed.
> 
> Is there a way to do this, so I can make use of the considerable free space
> on the engine host, or do I have to add it as a compute host running VDSM,
> and if so how can I flag this host so no VMs get deployed on it, I only
> want to use the storage capacity.
> 
> Any feedback or suggestions would be very much appreciated.
> 
> Thanks in advance.
> 
> Mitch
> 

I think you are misunderstanding the architecture of oVirt a little bit so I 
will try to explain, and then I will address your particular issue. Basically 
the following happens:

1. The engine talks to the hosts (which are running VDSM). The engine itself 
doesn't actually know about or care about the storage at all, it just talks to 
the hosts. If storage operations need to happen it tells a special host, the 
SPM to do them. Only one host at a time is SPM.
2. The hosts talk to the storage through whatever mechanism is provided by the 
storage (FC, iSCSI, NFS, Gluster, etc). Management of the storage happens 
through the SPM host (this is to prevent simultanious operations that could 
corrupt the storage). This also means that under normal circumstances the 
available disk space on the hosts is not used (unless you are running some 
kind of hyper converged setup, which is a whole other story). Of course a lot 
of this is a little more nuanced than what I am saying, but in general the 
storage is considered separate from the hosts.

When you add a host to the engine you are simply saying this machine is 
available to RUN VMs and it should be able to communicate with the storage 
domains. Which leads to your question about why are you not seeing the storage 
available on the engine machine. In the NFS dialog you have to specify a HOST 
to use to connect to your storage (Not sure why, since I figured the SPM would 
be a good default, but you should ask the storage guys). Anyway I guess the 
host you pick will be the one that does the checks and mounts the NFS share 
and creates the storage domain on the NFS.

Now in your case you should create the NFS share on the engine machine, make 
sure it is visible to all your hosts, and pick one host from the list to 
connect to that share and configure the domain on it (You will have to specify 
the mount/etc). So at that point the machine with the engine, will be the 
engine machine AND the storage.

Now this is not a really good idea for production as when that machine goes 
down, you will have lost both your engine and your storage at the same time. 
Causing your VMs to pause, and you lost your ability to manage the environment 
because the engine is down.

> ___
> 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] Data domain on engine host

2017-08-18 Thread Mitchell Smith
Hi List,

I am in the process of deploying ovirt in a lab environment before implementing 
it in production.

My lab consists of three compute hosts and one engine host.

I am using the 4.2 nightly builds in this lab environment, mainly because I 
want to test the OVN functionality.

I wanted to add a NFS data domain on the engine host to store VM templates and 
ISO images, however when I go in to Storage -> Domains -> New and try and add a 
NFS domain, it only gives me the three compute hosts to create storage on, I’m 
guessing because the engine host doesn’t have VDSM installed.

Is there a way to do this, so I can make use of the considerable free space on 
the engine host, or do I have to add it as a compute host running VDSM, and if 
so how can I flag this host so no VMs get deployed on it, I only want to use 
the storage capacity.

Any feedback or suggestions would be very much appreciated.

Thanks in advance.

Mitch

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


Re: [ovirt-users] VM with attached host USB device failed to run

2017-08-18 Thread Roman Drovalev
Michal, Thank you very much!!! ))

Everything works according to your link.


18.08.2017 11:29, Michal Skrivanek пишет:
>> On 18 Aug 2017, at 08:23, Дровалев Роман  wrote:
>>
>> Hello, Please  help!
>>
>> Does anyone have a working USB forwarding in a virtual machine? If
>> "YES", how did you solve this problem?
> well, yes. 
> But unless you share a bit about what your problem is I doubt it’s of any 
> help…
> are you talking about passing through a host usb controller into a VM? Is 
> your host capable of proper hardware device isolation? If not, it may need 
> some workarounds. Going through [1] might help too, most of the constraints 
> are applicable to USB passthrough as well
>
> Thanks,
> michal
>
> [1] https://mpolednik.github.io/2017/03/19/hostdev-passthrough-pci/
>> If this problem is not solved, unfortunately, the ovirt will have to
>> completely abandon. ((
>>
>> oVirt Engine Version: 4.1.4.2-1.el7.centos
>>
>> Thanks.
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>

-- 
С уважением, Дровалев Роман
инженер ГБУЗ "МИАЦ",
Калужской области.
тел. 4842 705 004


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


Re: [ovirt-users] gluster­fs Error message constant­ly being reported

2017-08-18 Thread Vadim
Hi, Kasturi 

Thanks for replay, after restart of supervdsm no messages in log.



Птн 18 Авг 2017 10:37:53 +0300, Kasturi Narra  написал:
> Hi,
> 
>Can you please check if you have vdsm-gluster package installed on the 
> system ?
> 
> Thanks
> kasturi
> 
> On Wed, Aug 16, 2017 at 6:12 PM, Vadim  wrote:
> Hi, All
> 
> ovirt 4.1.4 fresh install
> Constantly seeing this message in the logs, how to fix this:
> 
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]' object 
> has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]' object 
> has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]' object 
> has no attribute 'glusterTasksList'
> VDSM kvm04 command GetGlusterVolumeAdvancedDetailsVDS failed: 
> 'AutoProxy[instance]' object has no attribute 'glusterVolumeStatvfs'
> VDSM kvm04 command GetGlusterVolumeAdvancedDetailsVDS failed: 
> 'AutoProxy[instance]' object has no attribute 'glusterVolumeStatvfs'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]' object 
> has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]' object 
> has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]' object 
> has no attribute 'glusterTasksList'
> 
> --
> Thanks,
> Vadim
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

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


Re: [ovirt-users] VM Portal looking for translators

2017-08-18 Thread Marek Libra
Hi Nicolás,

if you send me your Zanata's username, I can add you manually as translator
of VM Portal.

Thanks,
Marek


On Wed, Aug 16, 2017 at 8:40 PM, Nicolás  wrote:

> Hi,
>
> Why do I see a red lock on the translation page claiming "This
> project-version is readonly. It cannot be edited"? Do I have to be granted
> access specifically on the language site to translate?
>
> (Not sure if related: Requested access to some language groups like
> described in [3], but it's still pending).
>
> Thanks.
>
> Nicolás
>
> El 14/08/17 a las 19:37, Jakub Niedermertl escribió:
>
> Hi all,
>
> new VM Portal project [1] - a replacement of oVirt userportal -  is
> looking for community translators. If you know any of
>
> * Chinese (Simplified)
> * French
> * German
> * Italian
> * Japanese
> * Korean
> * Portuguese
> * Russian
> * Spanish
>
> and want to join translation effort, please
>
> * sign up to Zanata translation environment [2]
> * request an access to language group of your choice [3]
> * and join us at [4]
>
> Thank you
>
> Regards
> Jakub
>
> [1]: https://github.com/oVirt/ovirt-web-ui
> [2]: https://translate.zanata.org
> [3]: https://translate.zanata.org/language/list
> [4]: https://translate.zanata.org/iteration/view/ovirt-web-ui/1.
> 2.0/languages
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 

Marek Libra

senior software engineer

Red Hat Czech


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


Re: [ovirt-users] VM with attached host USB device failed to run

2017-08-18 Thread Michal Skrivanek

> On 18 Aug 2017, at 08:23, Дровалев Роман  wrote:
> 
> Hello, Please  help!
> 
> Does anyone have a working USB forwarding in a virtual machine? If
> "YES", how did you solve this problem?

well, yes. 
But unless you share a bit about what your problem is I doubt it’s of any help…
are you talking about passing through a host usb controller into a VM? Is your 
host capable of proper hardware device isolation? If not, it may need some 
workarounds. Going through [1] might help too, most of the constraints are 
applicable to USB passthrough as well

Thanks,
michal

[1] https://mpolednik.github.io/2017/03/19/hostdev-passthrough-pci/
> 
> If this problem is not solved, unfortunately, the ovirt will have to
> completely abandon. ((
> 
> oVirt Engine Version: 4.1.4.2-1.el7.centos
> 
> 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] glusterfs Error message constantly being reported

2017-08-18 Thread Kasturi Narra
Hi,

   Can you please check if you have vdsm-gluster package installed on the
system ?

Thanks
kasturi

On Wed, Aug 16, 2017 at 6:12 PM, Vadim  wrote:

> Hi, All
>
> ovirt 4.1.4 fresh install
> Constantly seeing this message in the logs, how to fix this:
>
>
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]'
> object has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]'
> object has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]'
> object has no attribute 'glusterTasksList'
> VDSM kvm04 command GetGlusterVolumeAdvancedDetailsVDS failed:
> 'AutoProxy[instance]' object has no attribute 'glusterVolumeStatvfs'
> VDSM kvm04 command GetGlusterVolumeAdvancedDetailsVDS failed:
> 'AutoProxy[instance]' object has no attribute 'glusterVolumeStatvfs'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]'
> object has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]'
> object has no attribute 'glusterTasksList'
> VDSM kvm04 command GlusterTasksListVDS failed: 'AutoProxy[instance]'
> object has no attribute 'glusterTasksList'
>
> --
> Thanks,
> Vadim
> ___
> 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