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

2017-04-10 Thread Giorgio Biacchi

Hi,
I'm taking over Giulio because he's not at work now. I'm starting to understand 
what's happening because we have not that users (and many others) in the users 
tab in the admin portal.


We have heavily modified the paradigm of ovirt, VM are bound to thin clients and 
not to users, this because we want to reproduce a lab/classroom environment and 
we don't use the user portal. We wrote an alternative administration portal 
where we define classrooms, thin clients and associations between clients and VMs.


Windows VMs are joined to a AD domain and linux VMs are joined to IPA, home dirs 
are remotely mounted upon user login.


So there's no need to have all that users (over 31000) in the admin portal 
because they have no permission on any VM, they can login from any client to the 
VM bound to that client.


In the admin portal, if I go to a VM with a logged in user in the "Guest info" 
tab I can see which user is logged in because, I think, the guest agents are 
aware of the logged in username, but there's no "user object" in the engine when 
I try to get that information via API.


Thanks for your time and patience..

Regards,
Giorgio

On 04/10/2017 01:18 PM, Juan Hernández wrote:

On 04/10/2017 11:10 AM, Giulio Casella wrote:

On 07/04/2017 16:00, Juan Hernández wrote:

I have been trying to reproduce this and I wasn't able. In theory the
404 error that you get should only happen if the virtual machine doesn't
exist, but that isn't the case.

Can you check the server.log file and share the complete stack traces
that should appear after the "HTTP 404 Not Found" message?



No problem, find attached a snippet of server.log.

Bye,
Giulio



Thanks, that helps. What the engine isn't finding is the user, not the
virtual machine. Can you provide more information about that user? I
mean, take the virtual machine and find via the GUI which user is using
it. Then go to https://.../ovirt-engine/api/users and find that user.
Share the definition of that user that you get there, if possible.


On 03/31/2017 10:25 AM, Giulio Casella wrote:

On 30/03/2017 20:05, Juan Hernández wrote:

On 03/30/2017 01:01 PM, Giulio Casella wrote:

Hi,
I'm trying to obtain a list of users connected to a VM, using
python SDK
v4.
Here's what I'm doing:

vm = vms_service.list(search="name=vmname")[0]
vm_service = vms_service.vm_service(vm.id)
sessions = vm_service.sessions_service().list()

But "sessions" is None.

Same result using:

s = connection.follow_link(vm.sessions)

"s" is None.

I tried also using curl, and if I connect to:

https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions

I get a beautiful 404.

Also using v3 of python SDK I obtain the same behaviour.

So I suspect that retrieving user sessions via API is not implemented,
is it? If not, what I'm doing wrong?

I'm using RHV 4.0.6.3-0.1.el7ev

Thanks in advance,
Giulio



Giulio, you should never get a 404 error from that URL, unless the
virtual doesn't exist or isn't visible for you. What user name are you
to create the SDK connection? An administrator or a regular user?



I tried with a regular domain user (with superuser role assigned) and
admin@internal, with same result.


Also, please check the /var/log/ovirt-engine/server.log and
/var/log/ovirt-engine/engine.log when you send that request. Do you see
there something relevant?


server.log reports:

2017-03-31 10:03:11,346 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n]
(default task-33) RESTEASY002010: Failed to execute:
javax.ws.rs.WebApplicationException: HTTP 404 Not Found

(no surprise here, same message obtained by curl).

engine.log is full of:

ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default
task-7) [] Cannot authenticate using authentication Headers:
invalid_grant: The provided authorization grant for the auth code has
expired

(indipendently of my request)

It's quite strange I can perform almost every other operation (e.g.
getting other VM parameters, running methods, etc.)




Finally, please run your script with the 'debug=True' option in the
connection, and with a log file, like here:


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



Then share that log file so that we can check what the server is
returning exactly. Make sure to remove your password from that log file
before sharing it.


Find attached produced log (passwords purged).

BTW: VM is a Fedora 24, with guest agents correctly installed (I can see
user sessions in admin portal and in postgresql DB).

Thanks,
Giulio



___
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



--
gb

PGP Key: http://pgp.mit.edu/
Primary key fingerprint: C510 0765 943E EBED A4F2 69D3 16CC DC90 B9CB 0F34
___
Users mailing list
Users@ovirt.org

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

2017-04-10 Thread Juan Hernández
On 04/10/2017 05:38 PM, Giorgio Biacchi wrote:
> Hi,
> I'm taking over Giulio because he's not at work now. I'm starting to
> understand what's happening because we have not that users (and many
> others) in the users tab in the admin portal.
> 
> We have heavily modified the paradigm of ovirt, VM are bound to thin
> clients and not to users, this because we want to reproduce a
> lab/classroom environment and we don't use the user portal. We wrote an
> alternative administration portal where we define classrooms, thin
> clients and associations between clients and VMs.
> 
> Windows VMs are joined to a AD domain and linux VMs are joined to IPA,
> home dirs are remotely mounted upon user login.
> 
> So there's no need to have all that users (over 31000) in the admin
> portal because they have no permission on any VM, they can login from
> any client to the VM bound to that client.
> 
> In the admin portal, if I go to a VM with a logged in user in the "Guest
> info" tab I can see which user is logged in because, I think, the guest
> agents are aware of the logged in username, but there's no "user object"
> in the engine when I try to get that information via API.
> 
> Thanks for your time and patience..
> 
> Regards,
> Giorgio
> 

OK, that makes sense. I think this is a bug in the server then. If the
users are not oVirt users we should just not report them, or maybe
report just the user name and domain, if available. But returning 404
and failing in that case isn't correct, in my opinion. I have opened the
following bug to track this issue:

  Don't fail with 404 if session user doesn't exist in the database
  https://bugzilla.redhat.com/1440861

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

 Can you check the server.log file and share the complete stack traces
 that should appear after the "HTTP 404 Not Found" message?

>>>
>>> No problem, find attached a snippet of server.log.
>>>
>>> Bye,
>>> Giulio
>>>
>>
>> Thanks, that helps. What the engine isn't finding is the user, not the
>> virtual machine. Can you provide more information about that user? I
>> mean, take the virtual machine and find via the GUI which user is using
>> it. Then go to https://.../ovirt-engine/api/users and find that user.
>> Share the definition of that user that you get there, if possible.
>>
 On 03/31/2017 10:25 AM, Giulio Casella wrote:
> On 30/03/2017 20:05, Juan Hernández wrote:
>> On 03/30/2017 01:01 PM, Giulio Casella wrote:
>>> Hi,
>>> I'm trying to obtain a list of users connected to a VM, using
>>> python SDK
>>> v4.
>>> Here's what I'm doing:
>>>
>>> vm = vms_service.list(search="name=vmname")[0]
>>> vm_service = vms_service.vm_service(vm.id)
>>> sessions = vm_service.sessions_service().list()
>>>
>>> But "sessions" is None.
>>>
>>> Same result using:
>>>
>>> s = connection.follow_link(vm.sessions)
>>>
>>> "s" is None.
>>>
>>> I tried also using curl, and if I connect to:
>>>
>>> https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions
>>>
>>> I get a beautiful 404.
>>>
>>> Also using v3 of python SDK I obtain the same behaviour.
>>>
>>> So I suspect that retrieving user sessions via API is not
>>> implemented,
>>> is it? If not, what I'm doing wrong?
>>>
>>> I'm using RHV 4.0.6.3-0.1.el7ev
>>>
>>> Thanks in advance,
>>> Giulio
>>>
>>
>> Giulio, you should never get a 404 error from that URL, unless the
>> virtual doesn't exist or isn't visible for you. What user name are
>> you
>> to create the SDK connection? An administrator or a regular user?
>>
>
> I tried with a regular domain user (with superuser role assigned) and
> admin@internal, with same result.
>
>> Also, please check the /var/log/ovirt-engine/server.log and
>> /var/log/ovirt-engine/engine.log when you send that request. Do
>> you see
>> there something relevant?
>
> server.log reports:
>
> 2017-03-31 10:03:11,346 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n]
> (default task-33) RESTEASY002010: Failed to execute:
> javax.ws.rs.WebApplicationException: HTTP 404 Not Found
>
> (no surprise here, same message obtained by curl).
>
> engine.log is full of:
>
> ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter]
> (default
> task-7) [] Cannot authenticate using authentication Headers:
> invalid_grant: The provided authorization grant for the auth code has
> expired
>
> (indipendently of my request)
>
> It's quite strange I can perform almost every other operation (e.g.

Re: [ovirt-users] More 4.1 Networking Questions

2017-04-10 Thread Jeff Bailey

On 4/10/2017 6:59 AM, Charles Tassell wrote:

Ah, spoke to soon.  30 seconds later the network went down with IPv6 
disabled.  So it does appear to be a host forwarding problem, not a VM 
problem.  I have an oVirt 4.0 cluster on the same network that doesn't 
have these issues, so it must be a configuration issue somewhere.  
Here is a dump of my ip config on the host:



The same L2 network?  Using the same range of MAC addresses?


[07:57:26]root@ovirt730-01 ~ # ip addr show
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: em1:  mtu 1500 qdisc mq master 
vmNet state UP qlen 1000

link/ether 18:66:da:eb:8f:c0 brd ff:ff:ff:ff:ff:ff
3: em2:  mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 18:66:da:eb:8f:c1 brd ff:ff:ff:ff:ff:ff
4: em3:  mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 18:66:da:eb:8f:c2 brd ff:ff:ff:ff:ff:ff
5: em4:  mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 18:66:da:eb:8f:c3 brd ff:ff:ff:ff:ff:ff
6: p5p1:  mtu 1500 qdisc mq master 
ovirtmgmt state UP qlen 1000

link/ether f4:e9:d4:a9:7a:f0 brd ff:ff:ff:ff:ff:ff
7: p5p2:  mtu 1500 qdisc noop state DOWN qlen 1000
link/ether f4:e9:d4:a9:7a:f2 brd ff:ff:ff:ff:ff:ff
8: vmNet:  mtu 1500 qdisc noqueue 
state UP qlen 1000

link/ether 18:66:da:eb:8f:c0 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.180/24 brd 192.168.1.255 scope global vmNet
   valid_lft forever preferred_lft forever
10: ovirtmgmt:  mtu 1500 qdisc 
noqueue state UP qlen 1000

link/ether f4:e9:d4:a9:7a:f0 brd ff:ff:ff:ff:ff:ff
inet 192.168.130.180/24 brd 192.168.130.255 scope global ovirtmgmt
   valid_lft forever preferred_lft forever
11: ;vdsmdummy;:  mtu 1500 qdisc noop state DOWN 
qlen 1000

link/ether fa:f3:48:35:76:8d brd ff:ff:ff:ff:ff:ff
14: vnet0:  mtu 1500 qdisc pfifo_fast 
master ovirtmgmt state UNKNOWN qlen 1000

link/ether fe:16:3e:3f:fb:ec brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe3f:fbec/64 scope link
   valid_lft forever preferred_lft forever
15: vnet1:  mtu 1500 qdisc pfifo_fast 
master vmNet state UNKNOWN qlen 1000

link/ether fe:1a:4a:16:01:51 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc1a:4aff:fe16:151/64 scope link
   valid_lft forever preferred_lft forever
16: vnet2:  mtu 1500 qdisc pfifo_fast 
master vmNet state UNKNOWN qlen 1000

link/ether fe:1a:4a:16:01:52 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc1a:4aff:fe16:152/64 scope link
   valid_lft forever preferred_lft forever

[07:57:50]root@ovirt730-01 ~ # ip route show
default via 192.168.1.254 dev vmNet
192.168.1.0/24 dev vmNet  proto kernel  scope link  src 192.168.1.180
169.254.0.0/16 dev vmNet  scope link  metric 1008
169.254.0.0/16 dev ovirtmgmt  scope link  metric 1010
192.168.130.0/24 dev ovirtmgmt  proto kernel  scope link  src 
192.168.130.180


[07:57:53]root@ovirt730-01 ~ # ip rule show
0:from all lookup local
32760:from all to 192.168.130.0/24 iif ovirtmgmt lookup 3232268980
32761:from 192.168.130.0/24 lookup 3232268980
32762:from all to 192.168.1.0/24 iif vmNet lookup 2308294836
32763:from 192.168.1.0/24 lookup 2308294836
32766:from all lookup main
32767:from all lookup default
[07:57:58]root@ovirt730-01 ~ #


On 2017-04-10 07:54 AM, Charles Tassell wrote:


Hi Everyone,

  Just an update, I installed a new Ubuntu guest VM and it was doing 
the same thing regarding the network going down, then I disabled IPv6 
and it's been fine for the past 10-15 minutes.  So the issue seems to 
be IPv6 related, and I don't need IPv6 so I can just turn it off.  
The eth1 NIC disappearing is still worrisome though.



On 2017-04-10 07:13 AM, Charles Tassell wrote:

Hi Everyone,

  Thanks for the help, answers below.

On 2017-04-10 05:27 AM, Sandro Bonazzola wrote:

Adding Simone and Martin, replying inline.

On Mon, Apr 10, 2017 at 10:16 AM, Ondrej Svoboda 
> wrote:


Hello Charles,

First, can you give us more information regarding the
duplicated IPv6 addresses? Since you are going to reinstall the
hosted engine, could you make sure that NetworkManager is
disabled before adding the second vNIC (and perhaps even
disable IPv6 and reboot as well, so we have a solid base and
see what makes the difference)?

I disabled NetworkManager on the hosts (systemctl disable 
NetworkManager ; service NetworkManager stop) before doing the oVirt 
setup and rebooted to make 

Re: [ovirt-users] EMC Unity 300

2017-04-10 Thread Rogério Ceni Coelho
Hi !

I will use Unity 400 with oVirt in next week with FC SAN.

Em Seg, 10 de abr de 2017 09:27, Colin Coe  escreveu:

> Hi all
>
> We are contemplating moving away from our current iSCSI SAN to Dell/EMC
>  Unity 300.
>
> I've seen one thread where the 300F is problematic and no resolution is
> posted.
>
> Is anyone else using tis with RHEV/oVirt?  Any war stories?
>
> Thanks
>
> CC
> ___
> 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] More 4.1 Networking Questions

2017-04-10 Thread Charles Tassell

Hi Everyone,

  Okay, I'm again having problems with getting basic networking setup 
with oVirt 4.1  Here is my situation.  I have two servers I want to use 
to create an oVirt cluster, with two different networks.  My "public" 
network is a 1G link on device em1 connected to my Internet feed, and my 
"storage" network is a 10G link connected on device p5p1 to my file 
server.  Since I need to connect to my storage network in order to do 
the install, I selected p5p1 has the ovirtmgmt interface when installing 
the hosted engine.  That worked fine, I got everything installed, so I 
used some ssh-proxy magic to connect to the web console and completed 
the install (setup a Storage domain and create a new network vmNet for 
VM networking and added em1 to it.)


  The problem was that when I added a second network device to the 
HostedEngine VM (so that I can connect to it from my public network) it 
would intermittently go down.  I did some digging and found some IPV6 
errors in the dmesg (IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!) so I disabled IPv6 on 
both eth0 and eth1 in the HostedEngine and rebooted it.  The problem is 
that when I restarted the VM, the eth1 device was missing.


  So, my question is: Can I add a second NIC to the HostedEngine VM and 
make it stick, or will it be deleted whenever the engine VM is 
restarted?  Is there a better way to do what I'm trying to do, ie, 
should I setup ovirtmgmt on the public em1 interface, and then create 
the "storage" network after the fact for connecting to the datastores 
and such.  Is that even possible, or required?  I was thinking that it 
would be better for migrations and other management functions to happen 
on the faster 10G network, but if the HostedEngine doesn't need to be 
able to connect to the storage network maybe it's not worth the effort?


  Eventually I want to setup LACP on the storage network, but I had to 
wipe the servers and reinstall from scratch the last time I tried to set 
that up.  I was thinking that it was because I setup the bonding before 
installing oVirt, so I didn't do that this time.


  Here are my /etc/sysconfig/network-scripts/ifcfg-* files in case I 
did something wrong there (I'm more familiar with Debian/Ubuntu network 
setup than CentOS)


ifcfg-eth0: (ovirtmgmt aka storage)

BROADCAST=192.168.130.255
NETMASK=255.255.255.0
BOOTPROTO=static
DEVICE=eth0
IPADDR=192.168.130.179
ONBOOT=yes
DOMAIN=public.net
ZONE=public
IPV6INIT=no


ifcfg-eth1: (vmNet aka Internet)

BROADCAST=192.168.1.255
NETMASK=255.255.255.0
BOOTPROTO=static
DEVICE=eth1
IPADDR=192.168.1.179
GATEWAY=192.168.1.254
ONBOOT=yes
DNS1=192.168.1.1
DNS2=192.168.1.2
DOMAIN=public.net
ZONE=public
IPV6INIT=no

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


Re: [ovirt-users] engine upgrade 4.1.0 => 4.1.1, no more engine console available

2017-04-10 Thread Rafał Wojciechowski

hi,

I have similiar issue(I also started my mailthread) after upgrade 4.0 to 4.1

Version 4.1.1.8-1.el7.centos (before it was some 4.1.0.x or similiar - 
update not fixed it)


to run VM I have to set in Console tab Headless mode - without it I got 
libvirtd segfault(logs attached in my mailthread).


So I am able to run VMs only without Console - do you also have to set 
headless before run VM?


I noticed that libvirt-daemon was also upgraded to 2.0 version during 
ovirt upgrade - I dont think that 4.1 was not testes due to such 
libvirtd upgrade... but maybe?


Regards,
Rafal Wojciechowski

W dniu 10.04.2017 o 08:24, Arsène Gschwind pisze:


Hi,

After updating to oVirt 4.1.1 Async release i can confirm that the 
problem still persists.


Rgds,
Arsène


On 03/25/2017 12:25 PM, Arsène Gschwind wrote:


Hi,

After updating to 4.1.1 i'm observing the same behavior, HE without 
any console.
Even when trying to edit the HE VMs it doesn't change anything, 
Graphics stays to NONE.


Thanks for any Help.

Regards,
Arsène

On 03/24/2017 03:11 PM, Nelson Lameiras wrote:

Hello,

When upgrading my test setup from 4.0 to 4.1, my engine vm lost it's 
console (from SPICE to None in GUI)


My test setup :
2 manually built hosts using centos 7.3, ovirt 4.1
1 manually built hosted engine centos 7.3, oVirt 4.1.0.4-el7, 
accessible with SPICE console via GUI


I updated ovirt-engine from 4.1.0 to 4.1.1 by doing on engine :
- yum update
- engine-setup
- reboot engine

When accessing 4.1.1 GUI, Graphics is set to "None" on "Virtual 
Machines" page, with "console button" greyed out (all other VMs have 
the same Graphics set to the same value as before)
I tried to edit engine VM settings, and console options are same as 
before (SPLICE, QXL).


I'm hopping this is not a new feature, since if we loose network on 
engine, console is the only way to debug...


Is this a bug?

ps. I was able to reproduce this bug 2 times

cordialement, regards,



Nelson LAMEIRAS
Ingénieur Systèmes et Réseaux/ Systems and Networks engineer
Tel: +33 5 32 09 09 70
nelson.lamei...@lyra-network.com 

www.lyra-network.com  | www.payzen.eu 










Lyra Network, 109 rue de l'innovation, 31670 Labège, FRANCE




___
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



___
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] More 4.1 Networking Questions

2017-04-10 Thread Sandro Bonazzola
Adding Simone and Martin, replying inline.

On Mon, Apr 10, 2017 at 10:16 AM, Ondrej Svoboda 
wrote:

> Hello Charles,
>
> First, can you give us more information regarding the duplicated IPv6
> addresses? Since you are going to reinstall the hosted engine, could you
> make sure that NetworkManager is disabled before adding the second vNIC
> (and perhaps even disable IPv6 and reboot as well, so we have a solid base
> and see what makes the difference)?
>
> What kind of documentation did you follow to install the hosted engine?
> Was it this page? https://www.ovirt.org/documentation/how-to/hosted-
> engine/ If so, could you file a bug against VDSM networking and attach
> /var/log/vdsm/vdsm.log and supervdsm.log, and make sure they include the
> time period from adding the second vNIC to rebooting?
>
> Second, even the vNIC going missing after reboot looks like a bug to me.
> Even though eth1 does not exist in the VM, can you see it defined for the
> VM in the engine web GUI?
>

If the HE vm configuration wasn't flushed to the OVF_STORE yet, it make
sense it disappeared on restart.



>
> The steps you took to install the hosted engine with regards to networking
> look good to me, but I believe Sandro (CC'ed) would be able to give more
> advice.
>
> Sandro, since we want to configure bonding, would you recommend to install
> the engine physically first, move it to a VM, according to the following
> method, and only then reconfigure networking? https://www.ovirt.org/
> documentation/self-hosted/chap-Migrating_from_Bare_
> Metal_to_an_EL-Based_Self-Hosted_Environment/
>


I don't see why a diret HE deployment couldn't be done. Simone, Martin can
you help here?


>
>
> Thank you,
> Ondra
>
> On Mon, Apr 10, 2017 at 8:51 AM, Charles Tassell 
> wrote:
>
>> Hi Everyone,
>>
>>   Okay, I'm again having problems with getting basic networking setup
>> with oVirt 4.1  Here is my situation.  I have two servers I want to use to
>> create an oVirt cluster, with two different networks.  My "public" network
>> is a 1G link on device em1 connected to my Internet feed, and my "storage"
>> network is a 10G link connected on device p5p1 to my file server.  Since I
>> need to connect to my storage network in order to do the install, I
>> selected p5p1 has the ovirtmgmt interface when installing the hosted
>> engine.  That worked fine, I got everything installed, so I used some
>> ssh-proxy magic to connect to the web console and completed the install
>> (setup a Storage domain and create a new network vmNet for VM networking
>> and added em1 to it.)
>>
>>   The problem was that when I added a second network device to the
>> HostedEngine VM (so that I can connect to it from my public network) it
>> would intermittently go down.  I did some digging and found some IPV6
>> errors in the dmesg (IPv6: eth1: IPv6 duplicate address
>> 2001:410:e000:902:21a:4aff:fe16:151 detected!) so I disabled IPv6 on
>> both eth0 and eth1 in the HostedEngine and rebooted it.  The problem is
>> that when I restarted the VM, the eth1 device was missing.
>>
>>   So, my question is: Can I add a second NIC to the HostedEngine VM and
>> make it stick, or will it be deleted whenever the engine VM is restarted?
>
>
When you change something in the HE Vm using the web ui, it has to be saved
also on the OVF_STORE to make it permanent for further reboot.
Martin can you please elaborate here?




> Is there a better way to do what I'm trying to do, ie, should I setup
>> ovirtmgmt on the public em1 interface, and then create the "storage"
>> network after the fact for connecting to the datastores and such.  Is that
>> even possible, or required?  I was thinking that it would be better for
>> migrations and other management functions to happen on the faster 10G
>> network, but if the HostedEngine doesn't need to be able to connect to the
>> storage network maybe it's not worth the effort?
>>
>>   Eventually I want to setup LACP on the storage network, but I had to
>> wipe the servers and reinstall from scratch the last time I tried to set
>> that up.  I was thinking that it was because I setup the bonding before
>> installing oVirt, so I didn't do that this time.
>>
>>   Here are my /etc/sysconfig/network-scripts/ifcfg-* files in case I did
>> something wrong there (I'm more familiar with Debian/Ubuntu network setup
>> than CentOS)
>>
>> ifcfg-eth0: (ovirtmgmt aka storage)
>> 
>> BROADCAST=192.168.130.255
>> NETMASK=255.255.255.0
>> BOOTPROTO=static
>> DEVICE=eth0
>> IPADDR=192.168.130.179
>> ONBOOT=yes
>> DOMAIN=public.net
>> ZONE=public
>> IPV6INIT=no
>>
>>
>> ifcfg-eth1: (vmNet aka Internet)
>> 
>> BROADCAST=192.168.1.255
>> NETMASK=255.255.255.0
>> BOOTPROTO=static
>> DEVICE=eth1
>> IPADDR=192.168.1.179
>> GATEWAY=192.168.1.254
>> ONBOOT=yes
>> DNS1=192.168.1.1
>> DNS2=192.168.1.2
>> DOMAIN=public.net
>> ZONE=public
>> IPV6INIT=no
>>
>> ___
>> 

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

2017-04-10 Thread Giulio Casella

On 07/04/2017 16:00, Juan Hernández wrote:

I have been trying to reproduce this and I wasn't able. In theory the
404 error that you get should only happen if the virtual machine doesn't
exist, but that isn't the case.

Can you check the server.log file and share the complete stack traces
that should appear after the "HTTP 404 Not Found" message?



No problem, find attached a snippet of server.log.

Bye,
Giulio


On 03/31/2017 10:25 AM, Giulio Casella wrote:

On 30/03/2017 20:05, Juan Hernández wrote:

On 03/30/2017 01:01 PM, Giulio Casella wrote:

Hi,
I'm trying to obtain a list of users connected to a VM, using python SDK
v4.
Here's what I'm doing:

vm = vms_service.list(search="name=vmname")[0]
vm_service = vms_service.vm_service(vm.id)
sessions = vm_service.sessions_service().list()

But "sessions" is None.

Same result using:

s = connection.follow_link(vm.sessions)

"s" is None.

I tried also using curl, and if I connect to:

https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions

I get a beautiful 404.

Also using v3 of python SDK I obtain the same behaviour.

So I suspect that retrieving user sessions via API is not implemented,
is it? If not, what I'm doing wrong?

I'm using RHV 4.0.6.3-0.1.el7ev

Thanks in advance,
Giulio



Giulio, you should never get a 404 error from that URL, unless the
virtual doesn't exist or isn't visible for you. What user name are you
to create the SDK connection? An administrator or a regular user?



I tried with a regular domain user (with superuser role assigned) and
admin@internal, with same result.


Also, please check the /var/log/ovirt-engine/server.log and
/var/log/ovirt-engine/engine.log when you send that request. Do you see
there something relevant?


server.log reports:

2017-03-31 10:03:11,346 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n]
(default task-33) RESTEASY002010: Failed to execute:
javax.ws.rs.WebApplicationException: HTTP 404 Not Found

(no surprise here, same message obtained by curl).

engine.log is full of:

ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default
task-7) [] Cannot authenticate using authentication Headers:
invalid_grant: The provided authorization grant for the auth code has
expired

(indipendently of my request)

It's quite strange I can perform almost every other operation (e.g.
getting other VM parameters, running methods, etc.)




Finally, please run your script with the 'debug=True' option in the
connection, and with a log file, like here:


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


Then share that log file so that we can check what the server is
returning exactly. Make sure to remove your password from that log file
before sharing it.


Find attached produced log (passwords purged).

BTW: VM is a Fedora 24, with guest agents correctly installed (I can see
user sessions in admin portal and in postgresql DB).

Thanks,
Giulio



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





2017-04-10 10:51:48,353 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default 
task-30) RESTEASY002010: Failed to execute: 
javax.ws.rs.WebApplicationException: HTTP 404 Not Found
at 
org.ovirt.engine.api.restapi.resource.BaseBackendResource.handleError(BaseBackendResource.java:226)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.BackendResource.getEntity(BackendResource.java:118)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.BackendResource.getEntity(BackendResource.java:98)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.AbstractBackendSubResource.performGet(AbstractBackendSubResource.java:34)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.aaa.BackendUserResource.getUserByNameAndDomain(BackendUserResource.java:77)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.BackendVmSessionsResource.setSessionUser(BackendVmSessionsResource.java:87)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.BackendVmSessionsResource.addLinksIncludingUser(BackendVmSessionsResource.java:59)
 [restapi-jaxrs.jar:]
at 
org.ovirt.engine.api.restapi.resource.BackendVmSessionsResource.list(BackendVmSessionsResource.java:42)
 [restapi-jaxrs.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[rt.jar:1.8.0_121]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
[rt.jar:1.8.0_121]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [rt.jar:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_121]
at 
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139) 
[resteasy-jaxrs.jar:3.0.19.Final-redhat-1]
at 

Re: [ovirt-users] More 4.1 Networking Questions

2017-04-10 Thread Charles Tassell

Hi Everyone,

  Thanks for the help, answers below.

On 2017-04-10 05:27 AM, Sandro Bonazzola wrote:

Adding Simone and Martin, replying inline.

On Mon, Apr 10, 2017 at 10:16 AM, Ondrej Svoboda > wrote:


Hello Charles,

First, can you give us more information regarding the duplicated
IPv6 addresses? Since you are going to reinstall the hosted
engine, could you make sure that NetworkManager is disabled before
adding the second vNIC (and perhaps even disable IPv6 and reboot
as well, so we have a solid base and see what makes the difference)?

I disabled NetworkManager on the hosts (systemctl disable NetworkManager 
; service NetworkManager stop) before doing the oVirt setup and rebooted 
to make sure that it didn't come back up.  Or are you referring to on 
the hosted engine VM?  I just removed and re-added the eth1 NIC in the 
hosted engine, and this is what showed up in dmesg:
[Mon Apr 10 06:46:43 2017] pci :00:08.0: [1af4:1000] type 00 class 
0x02

[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x10: [io 0x-0x001f]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x14: [mem 
0x-0x0fff]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x20: [mem 
0x-0x3fff 64bit pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x30: [mem 
0x-0x0003 pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 6: assigned [mem 
0xc000-0xc003 pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 4: assigned [mem 
0xc004-0xc0043fff 64bit pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 1: assigned [mem 
0xc0044000-0xc0044fff]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 0: assigned [io 
0x1000-0x101f]
[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: enabling device 
( -> 0003)

[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: irq 35 for MSI/MSI-X
[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: irq 36 for MSI/MSI-X
[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: irq 37 for MSI/MSI-X
[Mon Apr 10 06:46:43 2017] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not 
ready
[Mon Apr 10 06:46:43 2017] IPv6: eth1: IPv6 duplicate address 
fe80::21a:4aff:fe16:151 detected!


Then when the network dropped I started getting these:

[Mon Apr 10 06:48:00 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!
[Mon Apr 10 06:48:00 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!
[Mon Apr 10 06:49:51 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!
[Mon Apr 10 06:51:40 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!


The network on eth1 would go down for a few seconds then come back up, 
but networking stays solid on eth0.  I disabled NetworkManager on the HE 
VM as well to see if that makes a difference.  I also disabled IPv6 with 
sysctl to see if that helps.  I'll install a Ubuntu VM on the cluster 
later today and see if it has a similar issue.





What kind of documentation did you follow to install the hosted
engine? Was it this page?
https://www.ovirt.org/documentation/how-to/hosted-engine/
 If so,
could you file a bug against VDSM networking and attach
/var/log/vdsm/vdsm.log and supervdsm.log, and make sure they
include the time period from adding the second vNIC to rebooting?

Second, even the vNIC going missing after reboot looks like a bug
to me. Even though eth1 does not exist in the VM, can you see it
defined for the VM in the engine web GUI?


If the HE vm configuration wasn't flushed to the OVF_STORE yet, it 
make sense it disappeared on restart.


The docs I used were 
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/self-hosted_engine_guide/chap-deploying_self-hosted_engine#Deploying_Self-Hosted_Engine_on_RHEL 
which someone on the list pointed me to last week as being more 
up-to-date than what was on the website (the docs on the website don't 
seem to mention that you need to put the HE on it's own datastore and 
look to be more geared towards bare-metal engine rather than the VM self 
hosted option.)


When I went back into the GUI and looked at the hosted engine config the 
second NIC was listed there, but it wasn't showing up in lspci on the 
VM.  I removed the NIC in the GUI and re-added it, and the device 
appeared again on the VM.  What is the proper way to "save" the state of 
the VM so that the OVF_STORE gets updated?  When I do anything on the HE 
VM that I want to test I just type "reboot", but that powers down the 
VM.  I then login to my host and run "hosted-engine --vm-start" which 
restarts it, but of course the last time I did that it restarted without 
the second NIC.




The steps you took to install the hosted engine with regards to
networking look good to me, but I 

Re: [ovirt-users] engine upgrade 4.1.0 => 4.1.1, no more engine console available

2017-04-10 Thread Martin Sivak
Hi,

we are working on that, we can only ask for patience now, Jenny was trying
to find out what happened and how to fix it all week.

Best regards

--
Martin Sivak
SLA / oVirt

On Mon, Apr 10, 2017 at 9:38 AM, Rafał Wojciechowski <
i...@rafalwojciechowski.pl> wrote:

> hi,
>
> I have similiar issue(I also started my mailthread) after upgrade 4.0 to
> 4.1
>
> Version 4.1.1.8-1.el7.centos (before it was some 4.1.0.x or similiar -
> update not fixed it)
> to run VM I have to set in Console tab Headless mode - without it I got
> libvirtd segfault(logs attached in my mailthread).
>
> So I am able to run VMs only without Console - do you also have to set
> headless before run VM?
>
> I noticed that libvirt-daemon was also upgraded to 2.0 version during
> ovirt upgrade - I dont think that 4.1 was not testes due to such libvirtd
> upgrade... but maybe?
>
> Regards,
> Rafal Wojciechowski
>
> W dniu 10.04.2017 o 08:24, Arsène Gschwind pisze:
>
> Hi,
>
> After updating to oVirt 4.1.1 Async release i can confirm that the problem
> still persists.
>
> Rgds,
> Arsène
>
> On 03/25/2017 12:25 PM, Arsène Gschwind wrote:
>
> Hi,
> After updating to 4.1.1 i'm observing the same behavior, HE without any
> console.
> Even when trying to edit the HE VMs it doesn't change anything, Graphics
> stays to NONE.
>
> Thanks for any Help.
>
> Regards,
> Arsène
>
> On 03/24/2017 03:11 PM, Nelson Lameiras wrote:
>
> Hello,
>
> When upgrading my test setup from 4.0 to 4.1, my engine vm lost it's
> console (from SPICE to None in GUI)
>
> My test setup :
> 2 manually built hosts using centos 7.3, ovirt 4.1
> 1 manually built hosted engine centos 7.3, oVirt 4.1.0.4-el7, accessible
> with SPICE console via GUI
>
> I updated ovirt-engine from 4.1.0 to 4.1.1 by doing on engine :
> - yum update
> - engine-setup
> - reboot engine
>
> When accessing 4.1.1 GUI, Graphics is set to "None" on "Virtual Machines"
> page, with "console button" greyed out (all other VMs have the same
> Graphics set to the same value as before)
> I tried to edit engine VM settings, and console options are same as before
> (SPLICE, QXL).
>
> I'm hopping this is not a new feature, since if we loose network on
> engine, console is the only way to debug...
>
> Is this a bug?
>
> ps. I was able to reproduce this bug 2 times
>
> cordialement, regards,
>
> 
> Nelson LAMEIRAS
> Ingénieur Systèmes et Réseaux / Systems and Networks engineer
> Tel: +33 5 32 09 09 70
> nelson.lamei...@lyra-network.com
> www.lyra-network.com | www.payzen.eu 
> 
> 
> 
> 
> --
> Lyra Network, 109 rue de l'innovation, 31670 Labège, FRANCE
>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://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 <+41%2079%20449%2025%2063>  |  http://its.unibas.ch
> ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11
> <+41%2061%20267%2014%2011>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://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 <+41%2079%20449%2025%2063>  |  http://its.unibas.ch
> ITS-ServiceDesk: support-...@unibas.ch | +41 61 267 14 11
> <+41%2061%20267%2014%2011>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://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] Upgrade hypervisor to 4.1.1.1

2017-04-10 Thread Sandro Bonazzola
Can you please provide a full sos report from that host?

On Sun, Apr 9, 2017 at 8:38 PM, Sandro Bonazzola 
wrote:

> Adding node team.
>
> Il 09/Apr/2017 15:43, "eric stam"  ha scritto:
>
> Yesterday I executed an upgrade on my hypervisor to version 4.1.1.1
> After the upgrade, it is impossible to start a virtual machine on it.
> The messages I found: Failed to connect socket to
> '/var/run/libvirt/virtlogd-sock': Connection refused
>
> [root@vm-1 log]# hosted-engine --vm-status | grep -i engine
>
> Engine status  : {"reason": "bad vm status",
> "health": "bad", "vm": "down", "detail": "down"}
>
> state=EngineUnexpectedlyDown
>
> The redhead version: CentOS Linux release 7.3.1611 (Core)
>
> Is this a known problem?
>
> Regards, Eric
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>


-- 

SANDRO BONAZZOLA

ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R

Red Hat EMEA 

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


Re: [ovirt-users] More 4.1 Networking Questions

2017-04-10 Thread Ondrej Svoboda
Hello Charles,

First, can you give us more information regarding the duplicated IPv6
addresses? Since you are going to reinstall the hosted engine, could you
make sure that NetworkManager is disabled before adding the second vNIC
(and perhaps even disable IPv6 and reboot as well, so we have a solid base
and see what makes the difference)?

What kind of documentation did you follow to install the hosted engine? Was
it this page? https://www.ovirt.org/documentation/how-to/hosted-engine/ If
so, could you file a bug against VDSM networking and attach
/var/log/vdsm/vdsm.log and supervdsm.log, and make sure they include the
time period from adding the second vNIC to rebooting?

Second, even the vNIC going missing after reboot looks like a bug to me.
Even though eth1 does not exist in the VM, can you see it defined for the
VM in the engine web GUI?

The steps you took to install the hosted engine with regards to networking
look good to me, but I believe Sandro (CC'ed) would be able to give more
advice.

Sandro, since we want to configure bonding, would you recommend to install
the engine physically first, move it to a VM, according to the following
method, and only then reconfigure networking?
https://www.ovirt.org/documentation/self-hosted/chap-Migrating_from_Bare_Metal_to_an_EL-Based_Self-Hosted_Environment/

Thank you,
Ondra

On Mon, Apr 10, 2017 at 8:51 AM, Charles Tassell  wrote:

> Hi Everyone,
>
>   Okay, I'm again having problems with getting basic networking setup with
> oVirt 4.1  Here is my situation.  I have two servers I want to use to
> create an oVirt cluster, with two different networks.  My "public" network
> is a 1G link on device em1 connected to my Internet feed, and my "storage"
> network is a 10G link connected on device p5p1 to my file server.  Since I
> need to connect to my storage network in order to do the install, I
> selected p5p1 has the ovirtmgmt interface when installing the hosted
> engine.  That worked fine, I got everything installed, so I used some
> ssh-proxy magic to connect to the web console and completed the install
> (setup a Storage domain and create a new network vmNet for VM networking
> and added em1 to it.)
>
>   The problem was that when I added a second network device to the
> HostedEngine VM (so that I can connect to it from my public network) it
> would intermittently go down.  I did some digging and found some IPV6
> errors in the dmesg (IPv6: eth1: IPv6 duplicate address
> 2001:410:e000:902:21a:4aff:fe16:151 detected!) so I disabled IPv6 on both
> eth0 and eth1 in the HostedEngine and rebooted it.  The problem is that
> when I restarted the VM, the eth1 device was missing.
>
>   So, my question is: Can I add a second NIC to the HostedEngine VM and
> make it stick, or will it be deleted whenever the engine VM is restarted?
> Is there a better way to do what I'm trying to do, ie, should I setup
> ovirtmgmt on the public em1 interface, and then create the "storage"
> network after the fact for connecting to the datastores and such.  Is that
> even possible, or required?  I was thinking that it would be better for
> migrations and other management functions to happen on the faster 10G
> network, but if the HostedEngine doesn't need to be able to connect to the
> storage network maybe it's not worth the effort?
>
>   Eventually I want to setup LACP on the storage network, but I had to
> wipe the servers and reinstall from scratch the last time I tried to set
> that up.  I was thinking that it was because I setup the bonding before
> installing oVirt, so I didn't do that this time.
>
>   Here are my /etc/sysconfig/network-scripts/ifcfg-* files in case I did
> something wrong there (I'm more familiar with Debian/Ubuntu network setup
> than CentOS)
>
> ifcfg-eth0: (ovirtmgmt aka storage)
> 
> BROADCAST=192.168.130.255
> NETMASK=255.255.255.0
> BOOTPROTO=static
> DEVICE=eth0
> IPADDR=192.168.130.179
> ONBOOT=yes
> DOMAIN=public.net
> ZONE=public
> IPV6INIT=no
>
>
> ifcfg-eth1: (vmNet aka Internet)
> 
> BROADCAST=192.168.1.255
> NETMASK=255.255.255.0
> BOOTPROTO=static
> DEVICE=eth1
> IPADDR=192.168.1.179
> GATEWAY=192.168.1.254
> ONBOOT=yes
> DNS1=192.168.1.1
> DNS2=192.168.1.2
> DOMAIN=public.net
> ZONE=public
> IPV6INIT=no
>
> ___
> 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 4.0 Python SDK] Host fail to move in Maintenance State

2017-04-10 Thread Juan Hernández
On 04/07/2017 12:06 PM, TranceWorldLogic . wrote:
> Hi,
> 
> I was trying to deactivate host via python SDK but found that host is
> not moving in Maintenance State.
> 
> In this scenario, I found that I have one additional network added in
> cluster but not setup on Host.
> Hence it retrying in background for network sync.
> Because of this I suspect host is fail to move in maintenance state.
> 
> Can someone help me how to force via python API to deactivate host ?
> Or
> Can I stop background sync of host ?
> 
> Thanks,
> ~Rohit
> 

As far as I know there is no way to "force" moving the host to
maintenance, at least not with the API. I'd suggest that you check the
logs (/var/log/ovirt-engine/engine.log and
/var/log/ovirt-engine/server.log) and see if there is some relevant
message when you try that. If so, share those messages.

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


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

2017-04-10 Thread Juan Hernández
On 04/10/2017 11:10 AM, Giulio Casella wrote:
> On 07/04/2017 16:00, Juan Hernández wrote:
>> I have been trying to reproduce this and I wasn't able. In theory the
>> 404 error that you get should only happen if the virtual machine doesn't
>> exist, but that isn't the case.
>>
>> Can you check the server.log file and share the complete stack traces
>> that should appear after the "HTTP 404 Not Found" message?
>>
> 
> No problem, find attached a snippet of server.log.
> 
> Bye,
> Giulio
> 

Thanks, that helps. What the engine isn't finding is the user, not the
virtual machine. Can you provide more information about that user? I
mean, take the virtual machine and find via the GUI which user is using
it. Then go to https://.../ovirt-engine/api/users and find that user.
Share the definition of that user that you get there, if possible.

>> On 03/31/2017 10:25 AM, Giulio Casella wrote:
>>> On 30/03/2017 20:05, Juan Hernández wrote:
 On 03/30/2017 01:01 PM, Giulio Casella wrote:
> Hi,
> I'm trying to obtain a list of users connected to a VM, using
> python SDK
> v4.
> Here's what I'm doing:
>
> vm = vms_service.list(search="name=vmname")[0]
> vm_service = vms_service.vm_service(vm.id)
> sessions = vm_service.sessions_service().list()
>
> But "sessions" is None.
>
> Same result using:
>
> s = connection.follow_link(vm.sessions)
>
> "s" is None.
>
> I tried also using curl, and if I connect to:
>
> https://my.ovirt.host/ovirt-engine/api/v4/vms//sessions
>
> I get a beautiful 404.
>
> Also using v3 of python SDK I obtain the same behaviour.
>
> So I suspect that retrieving user sessions via API is not implemented,
> is it? If not, what I'm doing wrong?
>
> I'm using RHV 4.0.6.3-0.1.el7ev
>
> Thanks in advance,
> Giulio
>

 Giulio, you should never get a 404 error from that URL, unless the
 virtual doesn't exist or isn't visible for you. What user name are you
 to create the SDK connection? An administrator or a regular user?

>>>
>>> I tried with a regular domain user (with superuser role assigned) and
>>> admin@internal, with same result.
>>>
 Also, please check the /var/log/ovirt-engine/server.log and
 /var/log/ovirt-engine/engine.log when you send that request. Do you see
 there something relevant?
>>>
>>> server.log reports:
>>>
>>> 2017-03-31 10:03:11,346 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n]
>>> (default task-33) RESTEASY002010: Failed to execute:
>>> javax.ws.rs.WebApplicationException: HTTP 404 Not Found
>>>
>>> (no surprise here, same message obtained by curl).
>>>
>>> engine.log is full of:
>>>
>>> ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default
>>> task-7) [] Cannot authenticate using authentication Headers:
>>> invalid_grant: The provided authorization grant for the auth code has
>>> expired
>>>
>>> (indipendently of my request)
>>>
>>> It's quite strange I can perform almost every other operation (e.g.
>>> getting other VM parameters, running methods, etc.)
>>>
>>>

 Finally, please run your script with the 'debug=True' option in the
 connection, and with a log file, like here:


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



 Then share that log file so that we can check what the server is
 returning exactly. Make sure to remove your password from that log file
 before sharing it.

>>> Find attached produced log (passwords purged).
>>>
>>> BTW: VM is a Fedora 24, with guest agents correctly installed (I can see
>>> user sessions in admin portal and in postgresql DB).
>>>
>>> Thanks,
>>> Giulio
>>>
>>>
>>>
>>> ___
>>> 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] Error in starting vdsm in host

2017-04-10 Thread Sandro Bonazzola
On Sat, Apr 8, 2017 at 3:15 AM, shubham dubey  wrote:

> did I need to install it on the ovirt-engine machine?
>

I would suggest to read our Installation Guide at
http://www.ovirt.org/documentation/install-guide/Installation_Guide/
I think it will help you getting a proper setup in place starting from a
clean minimal system.
Once the system is up, I would suggest to read also our Administration
Guide at
https://www.ovirt.org/documentation/admin-guide/administration-guide/




> Recently I have created the first host for my new ovirt setup.But when I
> try to do initialize the host
> it was getting failed.So, I think I need to first configure the vdsm in
> the host.
>
> I tried "vdsm-tool configure" it is giving me this error.
> [root@localhost ~]# vdsm-tool configure
>
> Checking configuration status...
> lvm is configured for vdsm
> libvirt is already configured for vdsm
> FAILED: conflicting vdsm and libvirt-qemu tls configuration.
> vdsm.conf with ssl=False requires the following changes:
> libvirtd.conf: listen_tcp=1, auth_tcp="none", listen_tls=0
>  qemu.conf: spice_tls=0.
> Error:  Configuration of libvirt is invalid
>
> I have changed those values in libvirtd.conf but still getting this same
> error.
>
>
> On Sat, Apr 8, 2017 at 12:19 AM, Sandro Bonazzola 
> wrote:
>
>>
>>
>> Il 07/Apr/2017 19:53, "shubham dubey"  ha scritto:
>>
>> Hello,
>> I am trying to install and configure vdsm in a newly created centos
>> 7.3.The packages that I have installed is vdsm, vdsm-cli and libvirtd.
>>
>>
>> May I ask why are you trying to run vdsm by hand on the host?
>>
>>
>>
>> Now when I am trying to start the vdsm service I am getting this error.
>>
>> [root@localhost ~]# systemctl start vdsmd
>>
>>
>>
>>
>> Please set a hostname on the host. Localhost won't work very well.
>>
>> Did you configure vdsm before trying to start it?
>> Something like "vdsm-tool configure".
>>
>>
>> Job for vdsmd.service failed because the control process exited with
>> error code. See "systemctl status vdsmd.service" and "journalctl -xe" for
>> details.
>>
>> [root@localhost ~]# journalctl -xe
>> -- The result is failed.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Dependency failed for
>> MOM instance configured for VDSM purposes.
>> -- Subject: Unit mom-vdsm.service has failed
>> -- Defined-By: systemd
>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>> --
>> -- Unit mom-vdsm.service has failed.
>> --
>> -- The result is dependency.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Job
>> mom-vdsm.service/start failed with result 'dependency'.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Unit vdsmd.service
>> entered failed state.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: vdsmd.service failed.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Cannot add dependency
>> job for unit lvm2-lvmetad.socket, ignoring: Invalid re
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: vdsmd.service holdoff
>> time over, scheduling restart.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Cannot add dependency
>> job for unit lvm2-lvmetad.socket, ignoring: Unit is ma
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: start request repeated
>> too quickly for vdsmd.service
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Failed to start Virtual
>> Desktop Server Manager.
>> -- Subject: Unit vdsmd.service has failed
>> -- Defined-By: systemd
>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>> --
>> -- Unit vdsmd.service has failed.
>> --
>> -- The result is failed.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Dependency failed for
>> MOM instance configured for VDSM purposes.
>> -- Subject: Unit mom-vdsm.service has failed
>> -- Defined-By: systemd
>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>> --
>> -- Unit mom-vdsm.service has failed.
>> --
>> -- The result is dependency.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Job
>> mom-vdsm.service/start failed with result 'dependency'.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: Unit vdsmd.service
>> entered failed state.
>> Apr 07 23:06:47 localhost.localdomain systemd[1]: vdsmd.service failed.
>>
>> the momd service output is
>>
>> [root@localhost ~]# systemctl status momd
>> ● momd.service - Memory Overcommitment Manager Daemon
>>Loaded: loaded (/usr/lib/systemd/system/momd.service; static; vendor
>> preset: disabled)
>>Active: inactive (dead) since Fri 2017-04-07 23:15:32 IST; 3s ago
>>   Process: 13031 ExecStart=/usr/sbin/momd -c /etc/momd.conf -d --pid-file
>> /var/run/momd.pid (code=exited, status=0/SUCCESS)
>>  Main PID: 13034 (code=exited, status=0/SUCCESS)
>>
>> Apr 07 23:15:32 localhost.localdomain systemd[1]: Starting Memory
>> Overcommitment Manager Daemon...
>> Apr 07 23:15:32 localhost.localdomain systemd[1]: PID file
>> /var/run/momd.pid not readable (yet?) after 

Re: [ovirt-users] More 4.1 Networking Questions

2017-04-10 Thread Charles Tassell

Hi Everyone,

  Just an update, I installed a new Ubuntu guest VM and it was doing 
the same thing regarding the network going down, then I disabled IPv6 
and it's been fine for the past 10-15 minutes.  So the issue seems to be 
IPv6 related, and I don't need IPv6 so I can just turn it off.  The eth1 
NIC disappearing is still worrisome though.



On 2017-04-10 07:13 AM, Charles Tassell wrote:

Hi Everyone,

  Thanks for the help, answers below.

On 2017-04-10 05:27 AM, Sandro Bonazzola wrote:

Adding Simone and Martin, replying inline.

On Mon, Apr 10, 2017 at 10:16 AM, Ondrej Svoboda > wrote:


Hello Charles,

First, can you give us more information regarding the duplicated
IPv6 addresses? Since you are going to reinstall the hosted
engine, could you make sure that NetworkManager is disabled
before adding the second vNIC (and perhaps even disable IPv6 and
reboot as well, so we have a solid base and see what makes the
difference)?

I disabled NetworkManager on the hosts (systemctl disable 
NetworkManager ; service NetworkManager stop) before doing the oVirt 
setup and rebooted to make sure that it didn't come back up.  Or are 
you referring to on the hosted engine VM?  I just removed and re-added 
the eth1 NIC in the hosted engine, and this is what showed up in dmesg:
[Mon Apr 10 06:46:43 2017] pci :00:08.0: [1af4:1000] type 00 class 
0x02

[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x10: [io 0x-0x001f]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x14: [mem 
0x-0x0fff]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x20: [mem 
0x-0x3fff 64bit pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: reg 0x30: [mem 
0x-0x0003 pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 6: assigned [mem 
0xc000-0xc003 pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 4: assigned [mem 
0xc004-0xc0043fff 64bit pref]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 1: assigned [mem 
0xc0044000-0xc0044fff]
[Mon Apr 10 06:46:43 2017] pci :00:08.0: BAR 0: assigned [io 
0x1000-0x101f]
[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: enabling device 
( -> 0003)

[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: irq 35 for MSI/MSI-X
[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: irq 36 for MSI/MSI-X
[Mon Apr 10 06:46:43 2017] virtio-pci :00:08.0: irq 37 for MSI/MSI-X
[Mon Apr 10 06:46:43 2017] IPv6: ADDRCONF(NETDEV_UP): eth1: link is 
not ready
[Mon Apr 10 06:46:43 2017] IPv6: eth1: IPv6 duplicate address 
fe80::21a:4aff:fe16:151 detected!


Then when the network dropped I started getting these:

[Mon Apr 10 06:48:00 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!
[Mon Apr 10 06:48:00 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!
[Mon Apr 10 06:49:51 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!
[Mon Apr 10 06:51:40 2017] IPv6: eth1: IPv6 duplicate address 
2001:410:e000:902:21a:4aff:fe16:151 detected!


The network on eth1 would go down for a few seconds then come back up, 
but networking stays solid on eth0.  I disabled NetworkManager on the 
HE VM as well to see if that makes a difference.  I also disabled IPv6 
with sysctl to see if that helps.  I'll install a Ubuntu VM on the 
cluster later today and see if it has a similar issue.





What kind of documentation did you follow to install the hosted
engine? Was it this page?
https://www.ovirt.org/documentation/how-to/hosted-engine/
 If
so, could you file a bug against VDSM networking and attach
/var/log/vdsm/vdsm.log and supervdsm.log, and make sure they
include the time period from adding the second vNIC to rebooting?

Second, even the vNIC going missing after reboot looks like a bug
to me. Even though eth1 does not exist in the VM, can you see it
defined for the VM in the engine web GUI?


If the HE vm configuration wasn't flushed to the OVF_STORE yet, it 
make sense it disappeared on restart.


The docs I used were 
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/self-hosted_engine_guide/chap-deploying_self-hosted_engine#Deploying_Self-Hosted_Engine_on_RHEL 
which someone on the list pointed me to last week as being more 
up-to-date than what was on the website (the docs on the website don't 
seem to mention that you need to put the HE on it's own datastore and 
look to be more geared towards bare-metal engine rather than the VM 
self hosted option.)


When I went back into the GUI and looked at the hosted engine config 
the second NIC was listed there, but it wasn't showing up in lspci on 
the VM.  I removed the NIC in the GUI and re-added it, and the device 
appeared again on the VM.  What is the proper way to "save" the state 
of the VM so that 

Re: [ovirt-users] Upgrade hypervisor to 4.1.1.1

2017-04-10 Thread Misak Khachatryan
Is it node setup? Today i tried to upgrade my one node cluster, after that
VM's fail to start, it turns out that selinux prevents virtlogd to start.

ausearch -c 'virtlogd' --raw | audit2allow -M my-virtlogd
semodule -i my-virtlogd.pp
/sbin/restorecon -v /etc/libvirt/virtlogd.conf

fixed things for me, YMMV.


Best regards,
Misak Khachatryan

On Mon, Apr 10, 2017 at 2:03 PM, Sandro Bonazzola 
wrote:

> Can you please provide a full sos report from that host?
>
> On Sun, Apr 9, 2017 at 8:38 PM, Sandro Bonazzola 
> wrote:
>
>> Adding node team.
>>
>> Il 09/Apr/2017 15:43, "eric stam"  ha scritto:
>>
>> Yesterday I executed an upgrade on my hypervisor to version 4.1.1.1
>> After the upgrade, it is impossible to start a virtual machine on it.
>> The messages I found: Failed to connect socket to
>> '/var/run/libvirt/virtlogd-sock': Connection refused
>>
>> [root@vm-1 log]# hosted-engine --vm-status | grep -i engine
>>
>> Engine status  : {"reason": "bad vm status",
>> "health": "bad", "vm": "down", "detail": "down"}
>>
>> state=EngineUnexpectedlyDown
>>
>> The redhead version: CentOS Linux release 7.3.1611 (Core)
>>
>> Is this a known problem?
>>
>> Regards, Eric
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
> ___
> 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] iSCSI storage domain and multipath when adding node

2017-04-10 Thread Ondrej Svoboda
Gianluca,

I can see that the workaround you describe here (to complete multipath
configuration in CLI) fixes an inconsistency in observed iSCSI sessions. I
think it is a shortcoming in oVirt that you had to resort to manual
configuration. Could you file a bug about this? Ideally, following the bug
template presented to you by Bugzilla, i.e. "Expected: two iSCSI sessions",
"Got: one the first node ... one the second node".

Edy, Martin, do you think you could help out here?

Thanks,
Ondra

On Fri, Apr 7, 2017 at 5:21 PM, Gianluca Cecchi 
wrote:

> Hello,
> my configuration is what described here:
> http://lists.ovirt.org/pipermail/users/2017-March/080992.html
>
> So I'm using iSCSI multipath and not bonding
> can anyone reproduce?
>
>
> Initial situation is only one node configured and active with some VMS
>
> I go and configure a second node; it tries to activate but networks are
> not all already mapped and so gies to non operational.
> I setup all networks and activate the node
>
> It happens that:
> - on the first node where I currently have 2 iSCSI connections and
> 2multipath lines (with p1p1.100 and p1p2) it is instantiated a new iSCSI
> SID using interface "default" and in multipath -l output I see now 3 lines
>
> - on the newly added node I only see 1 iSCSI SID using interface default
>
> My way to solve the situation was to go inside iscsi multipath section
> do nothing but save the same config
>
> brutally on first node
> iscsiadm -m session -u
> --> all iscsi sessions are closed
> after a while I see again the original 2 connections recovered, with
> correct interface names used
>
> - on second node
> iscsiadm -m session -u
> --> the only session is cloed
> nothing happens
> if I set to maintenance the node and then activate the node
> --> the 2 correct iscsi sessions are activated...
>
> Thanks
> Gianluca
>
>
> ___
> 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] iSCSI storage domain and multipath when adding node

2017-04-10 Thread Gianluca Cecchi
On Mon, Apr 10, 2017 at 2:12 PM, Ondrej Svoboda  wrote:

> Gianluca,
>
> I can see that the workaround you describe here (to complete multipath
> configuration in CLI) fixes an inconsistency in observed iSCSI sessions. I
> think it is a shortcoming in oVirt that you had to resort to manual
> configuration. Could you file a bug about this? Ideally, following the bug
> template presented to you by Bugzilla, i.e. "Expected: two iSCSI sessions",
> "Got: one the first node ... one the second node".
>
> Edy, Martin, do you think you could help out here?
>
> Thanks,
> Ondra
>

Ok, this evening I'm going to open a bugzilla for that.
Please keep in mind that on the already configured node (where before node
addition there were two connections in place with multipath), actually the
node addition generates a third connection, added to the existing two,
using "default" as iSCSI interface (clearly seen if I run "iscsiadm -m
session -P1") 

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


Re: [ovirt-users] iSCSI storage domain and multipath when adding node

2017-04-10 Thread Ondrej Svoboda
Yes, this is what struck me about your situation. Will you be able to find
relevant logs regarding multipath configuration, in which we would see when
(or even why) the third connection was created on the first node, and only
one connection on the second?

On Mon, Apr 10, 2017 at 2:17 PM, Gianluca Cecchi 
wrote:

> On Mon, Apr 10, 2017 at 2:12 PM, Ondrej Svoboda 
> wrote:
>
>> Gianluca,
>>
>> I can see that the workaround you describe here (to complete multipath
>> configuration in CLI) fixes an inconsistency in observed iSCSI sessions. I
>> think it is a shortcoming in oVirt that you had to resort to manual
>> configuration. Could you file a bug about this? Ideally, following the bug
>> template presented to you by Bugzilla, i.e. "Expected: two iSCSI sessions",
>> "Got: one the first node ... one the second node".
>>
>> Edy, Martin, do you think you could help out here?
>>
>> Thanks,
>> Ondra
>>
>
> Ok, this evening I'm going to open a bugzilla for that.
> Please keep in mind that on the already configured node (where before node
> addition there were two connections in place with multipath), actually the
> node addition generates a third connection, added to the existing two,
> using "default" as iSCSI interface (clearly seen if I run "iscsiadm -m
> session -P1") 
>
> Gianluca
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] EMC Unity 300

2017-04-10 Thread Colin Coe
Hi all

We are contemplating moving away from our current iSCSI SAN to Dell/EMC
 Unity 300.

I've seen one thread where the 300F is problematic and no resolution is
posted.

Is anyone else using tis with RHEV/oVirt?  Any war stories?

Thanks

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


Re: [ovirt-users] Upgrade hypervisor to 4.1.1.1

2017-04-10 Thread Yuval Turgeman
restorecon on virtlogd.conf would be enough

On Apr 10, 2017 2:51 PM, "Misak Khachatryan"  wrote:

> Is it node setup? Today i tried to upgrade my one node cluster, after that
> VM's fail to start, it turns out that selinux prevents virtlogd to start.
>
> ausearch -c 'virtlogd' --raw | audit2allow -M my-virtlogd
> semodule -i my-virtlogd.pp
> /sbin/restorecon -v /etc/libvirt/virtlogd.conf
>
> fixed things for me, YMMV.
>
>
> Best regards,
> Misak Khachatryan
>
> On Mon, Apr 10, 2017 at 2:03 PM, Sandro Bonazzola 
> wrote:
>
>> Can you please provide a full sos report from that host?
>>
>> On Sun, Apr 9, 2017 at 8:38 PM, Sandro Bonazzola 
>> wrote:
>>
>>> Adding node team.
>>>
>>> Il 09/Apr/2017 15:43, "eric stam"  ha scritto:
>>>
>>> Yesterday I executed an upgrade on my hypervisor to version 4.1.1.1
>>> After the upgrade, it is impossible to start a virtual machine on it.
>>> The messages I found: Failed to connect socket to
>>> '/var/run/libvirt/virtlogd-sock': Connection refused
>>>
>>> [root@vm-1 log]# hosted-engine --vm-status | grep -i engine
>>>
>>> Engine status  : {"reason": "bad vm status",
>>> "health": "bad", "vm": "down", "detail": "down"}
>>>
>>> state=EngineUnexpectedlyDown
>>>
>>> The redhead version: CentOS Linux release 7.3.1611 (Core)
>>>
>>> Is this a known problem?
>>>
>>> Regards, Eric
>>>
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>>
>>
>>
>> --
>>
>> SANDRO BONAZZOLA
>>
>> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>>
>> Red Hat EMEA 
>> 
>> TRIED. TESTED. TRUSTED. 
>>
>> ___
>> 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] Installation of ovirtNode3.6 on VMware workstation is failing

2017-04-10 Thread martin chamambo
Hello Sandro

RHCVA should be on 3.6 but the concepts around ovirt and rhev are the
same..i also tried ovirt-node-3.6 on workstation and it did not work
(issue around Partitions)I am using ovirt node 4.1 and engine 4.1
because i first need to understand the basics.Once you understand ovirt
,you van get that rhve 3.6 60 day trial

On Mon, Apr 10, 2017 at 3:36 PM, Sandro Bonazzola 
wrote:

>
>
> On Sun, Mar 26, 2017 at 9:28 PM, martin chamambo 
> wrote:
>
>> ovirt-node-ng-installer-ovirt-3.6-2016052403 this is the version of the
>> installer that i am using , can anyone confirm then which version of Ovirt
>> (Both Node and Engine) are equivalent to which RHEV equivalentsi am
>> studying for RHCVA and thought ovirtNode 3.6 and 4.0 would work
>>
>
> I think RHCVA is still on 3.5 but haven't checked it recently.
>
>
>
>>
>> On Sun, Mar 26, 2017 at 9:06 PM, Sandro Bonazzola 
>> wrote:
>>
>>>
>>>
>>> Il 24/Mar/2017 09:32, "martin chamambo"  ha
>>> scritto:
>>>
>>> Good day
>>>
>>> I am using ovirtEngine 4.0 and ovirtnode 4.0  on the same engine i
>>> also need to test ovirtNode 3.6 since its  supported.
>>>
>>>
>>> Please note 3.6 and 4.0 have both reached end of life and current
>>> supported version is 4.1.
>>>
>>> Also in 3.6 oVirt Node NG was in tech preview. Are you using a "legacy"
>>> oVirt Node iso?
>>>
>>>
>>>
>>>
>>> Initially i struggled with installing ovirt engine 4.0 until i selected
>>> LVM thin provisioning
>>>
>>> the  same trick is not working with ovirtNode3.6 any type of
>>> partition  ,standard partition ,LVM ,LVM thin provisioning is not working
>>>
>>> is there anyone who experienced the same issue
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>>
>>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Upgrade hypervisor to 4.1.1.1

2017-04-10 Thread Sandro Bonazzola
On Mon, Apr 10, 2017 at 2:11 PM, eric stam  wrote:

> We are on the good way.
> I first put SELinux in permissive mode, and now it is possible to start
> virtual machine's.
>
>
> I will test the "restorecon" next.
>


the strange thing here is that the sosreport Eric provided showed no
selinux denials in ausearch -m avc output.
If it's selinux, it's tracked here:
https://bugzilla.redhat.com/show_bug.cgi?id=1434816




>
> Regards,
> Eric
>
> 2017-04-10 14:00 GMT+02:00 Yuval Turgeman :
>
>> restorecon on virtlogd.conf would be enough
>>
>> On Apr 10, 2017 2:51 PM, "Misak Khachatryan"  wrote:
>>
>>> Is it node setup? Today i tried to upgrade my one node cluster, after
>>> that VM's fail to start, it turns out that selinux prevents virtlogd to
>>> start.
>>>
>>> ausearch -c 'virtlogd' --raw | audit2allow -M my-virtlogd
>>> semodule -i my-virtlogd.pp
>>> /sbin/restorecon -v /etc/libvirt/virtlogd.conf
>>>
>>> fixed things for me, YMMV.
>>>
>>>
>>> Best regards,
>>> Misak Khachatryan
>>>
>>> On Mon, Apr 10, 2017 at 2:03 PM, Sandro Bonazzola 
>>> wrote:
>>>
 Can you please provide a full sos report from that host?

 On Sun, Apr 9, 2017 at 8:38 PM, Sandro Bonazzola 
 wrote:

> Adding node team.
>
> Il 09/Apr/2017 15:43, "eric stam"  ha scritto:
>
> Yesterday I executed an upgrade on my hypervisor to version 4.1.1.1
> After the upgrade, it is impossible to start a virtual machine on it.
> The messages I found: Failed to connect socket to
> '/var/run/libvirt/virtlogd-sock': Connection refused
>
> [root@vm-1 log]# hosted-engine --vm-status | grep -i engine
>
> Engine status  : {"reason": "bad vm status",
> "health": "bad", "vm": "down", "detail": "down"}
>
> state=EngineUnexpectedlyDown
>
> The redhead version: CentOS Linux release 7.3.1611 (Core)
>
> Is this a known problem?
>
> Regards, Eric
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>


 --

 SANDRO BONAZZOLA

 ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R

 Red Hat EMEA 
 
 TRIED. TESTED. TRUSTED. 

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


>>>
>
>
> --
> Gr. Eric Stam
> *Mob*.: 06-50278119
>



-- 

SANDRO BONAZZOLA

ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R

Red Hat EMEA 

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


Re: [ovirt-users] Installation of ovirtNode3.6 on VMware workstation is failing

2017-04-10 Thread Sandro Bonazzola
On Sun, Mar 26, 2017 at 9:28 PM, martin chamambo 
wrote:

> ovirt-node-ng-installer-ovirt-3.6-2016052403 this is the version of the
> installer that i am using , can anyone confirm then which version of Ovirt
> (Both Node and Engine) are equivalent to which RHEV equivalentsi am
> studying for RHCVA and thought ovirtNode 3.6 and 4.0 would work
>

I think RHCVA is still on 3.5 but haven't checked it recently.



>
> On Sun, Mar 26, 2017 at 9:06 PM, Sandro Bonazzola 
> wrote:
>
>>
>>
>> Il 24/Mar/2017 09:32, "martin chamambo"  ha scritto:
>>
>> Good day
>>
>> I am using ovirtEngine 4.0 and ovirtnode 4.0  on the same engine i
>> also need to test ovirtNode 3.6 since its  supported.
>>
>>
>> Please note 3.6 and 4.0 have both reached end of life and current
>> supported version is 4.1.
>>
>> Also in 3.6 oVirt Node NG was in tech preview. Are you using a "legacy"
>> oVirt Node iso?
>>
>>
>>
>>
>> Initially i struggled with installing ovirt engine 4.0 until i selected
>> LVM thin provisioning
>>
>> the  same trick is not working with ovirtNode3.6 any type of
>> partition  ,standard partition ,LVM ,LVM thin provisioning is not working
>>
>> is there anyone who experienced the same issue
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>


-- 

SANDRO BONAZZOLA

ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R

Red Hat EMEA 

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


Re: [ovirt-users] Upgrade hypervisor to 4.1.1.1

2017-04-10 Thread Ryan Barry
Hey Eric -

It's possible that there are some silent denials in some policy. Can you
please try "semodule -DB" to see if anything pops up?

I'll also try to reproduce this...

On Mon, Apr 10, 2017 at 5:11 AM, eric stam  wrote:

> We are on the good way.
> I first put SELinux in permissive mode, and now it is possible to start
> virtual machine's.
>
>
> I will test the "restorecon" next.
>
> Regards,
> Eric
>
> 2017-04-10 14:00 GMT+02:00 Yuval Turgeman :
>
>> restorecon on virtlogd.conf would be enough
>>
>> On Apr 10, 2017 2:51 PM, "Misak Khachatryan"  wrote:
>>
>>> Is it node setup? Today i tried to upgrade my one node cluster, after
>>> that VM's fail to start, it turns out that selinux prevents virtlogd to
>>> start.
>>>
>>> ausearch -c 'virtlogd' --raw | audit2allow -M my-virtlogd
>>> semodule -i my-virtlogd.pp
>>> /sbin/restorecon -v /etc/libvirt/virtlogd.conf
>>>
>>> fixed things for me, YMMV.
>>>
>>>
>>> Best regards,
>>> Misak Khachatryan
>>>
>>> On Mon, Apr 10, 2017 at 2:03 PM, Sandro Bonazzola 
>>> wrote:
>>>
 Can you please provide a full sos report from that host?

 On Sun, Apr 9, 2017 at 8:38 PM, Sandro Bonazzola 
 wrote:

> Adding node team.
>
> Il 09/Apr/2017 15:43, "eric stam"  ha scritto:
>
> Yesterday I executed an upgrade on my hypervisor to version 4.1.1.1
> After the upgrade, it is impossible to start a virtual machine on it.
> The messages I found: Failed to connect socket to
> '/var/run/libvirt/virtlogd-sock': Connection refused
>
> [root@vm-1 log]# hosted-engine --vm-status | grep -i engine
>
> Engine status  : {"reason": "bad vm status",
> "health": "bad", "vm": "down", "detail": "down"}
>
> state=EngineUnexpectedlyDown
>
> The redhead version: CentOS Linux release 7.3.1611 (Core)
>
> Is this a known problem?
>
> Regards, Eric
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>


 --

 SANDRO BONAZZOLA

 ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R

 Red Hat EMEA 
 
 TRIED. TESTED. TRUSTED. 

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


>>>
>
>
> --
> Gr. Eric Stam
> *Mob*.: 06-50278119
>



-- 

RYAN BARRY

SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHEV HYPERVISOR

Red Hat NA 

rba...@redhat.comM: +1-651-815-9306 IM: rbarry

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


Re: [ovirt-users] Desktop virtualization and thin clients

2017-04-10 Thread René Koch
Hi Giulio,

On Tue, 2017-04-04 at 12:59 +0200, Giulio Casella wrote:
> Hi,
> I'm evaluating some thin client to connect to ovirt VMs, used as
> desktop 
> workstations.
> I really don't care about native client support, I distribute via PXE
> a 
> custom linux OS launching remote viewer.
> I'd like to have good multimedia performance, at a reasonable price.

For best multimedia performance a resonable graphics card and cpu in
your thin client is needed and up-to-date remote viewer version.

> 
> Googling a little, I focused on a couple of vendor: https://www.igel.
> com 
> and https://www.10zig.com/.
> 
> Anyone has already tested those vendor products? which model? which
> is 
> the (approx.) price?
> Obviously any hint on other vendors are welcome.

I used thin clients from IGEL in many setups. If you want good
multimedia performance (watching full HD videos in your vm) you need
the UD5. IGEL is a good solution when it comes to managing thin clients
as they have a great management server for it. The downside is that
IGEL thin clients aren't really cheap and remote viewer comes in a
quite old version.

One of my customers uses Intel NUC devices with Fedora on it (PXE boot)
and has a much better performance as with IGEL UD5, but to be fair he
compared it with the 5 year old UD5 model. This is mainly because of
the newer processors in Intel NUC and new virt-viewer of Fedora.

Hope this helps.


Regards,
René


> 
> The scenario is composed of about 1500 VMs, running on ovirt (RHV to
> say 
> the truth), distributed over 3 datacenters, currently accessed using
> old 
> (5-7 years) PC, that I'm planning to renew.
> 
> TIA,
> Giulio
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

smime.p7s
Description: S/MIME cryptographic signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users