Re: [ovirt-users] assigned Host was not available

2017-03-10 Thread Bill James
We have tried re-kickstarting the server, and removing it from ovirt and 
reinstalling it.

Ovirt still thinks its not available to run VMs.
I even tried calling it by a different name, still no luck.
Starting a VM using "run-once" will deploy to the host just fine.


WHY?
I thought when host is in status UP its available.

How do I find out why ovirt thinks its not available for VMs even though 
it marked it as up?




On 3/7/17 11:45 AM, Bill James wrote:

I have a hardware node that I recently upgraded from 3.6.4 to 4.1.0.4-1.
It is having issues that certain VMs I cannot deploy to it because 
ovirt says host is not available.

However that host is status up and has 14 running VMs on it.

How do I tell why ovirt thinks the host is not available?

Attached is output from "vdsClient -s ovirt4.test.j2noc.com getVdsStats"


vdsm-4.19.4-1.el7.centos.x86_64
ovirt-engine-4.1.0.4-1.el7.centos.noarch


engine.log:
2017-03-07 11:06:49,269-08 WARN 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(ForkJo
inPool-1-worker-0) [] EVENT_ID: USER_RUN_VM_ON_NON_DEFAULT_VDS(152), 
Correlation ID: 81490f5b-3029-44d4-b223-df
6bb506efb3, Job ID: 76900dc9-ed9a-4fda-a17a-31825aa515c9, Call Stack: 
null, Custom Event ID: -1, Message: Guest
 billj4 started on Host ovirt7.test.j2noc.com. (Default Host parameter 
was ignored - assigned Host was not available).







vdsClient.out.gz
Description: GNU Zip compressed data
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] general storage exception ... not using lvmetad

2017-03-10 Thread Nir Soffer
On Fri, Mar 10, 2017 at 6:24 PM, Gianluca Cecchi
 wrote:
> Hello,
> on my 4.1 environment sometimes I get this kind of message, typically when I
> create a snapshot.
> Please note that the snapshot is correctly created: I get the event between
> the snapshot creation initiated and completed events
>
>
> VDSM ovmsrv05 command TeardownImageVDS failed: Cannot deactivate Logical
> Volume: ('General Storage Exception: ("5 [] [\'  WARNING: Not using lvmetad
> because config setting use_lvmetad=0.\', \'  WARNING: To avoid corruption,
> rescan devices to make changes visible (pvscan --cache).\', \'  Logical
> volume
> 922b5269-ab56-4c4d-838f-49d33427e2ab/79350ec5-eea5-458b-a3ee-ba394d2cda27 in
> use.\', \'  Logical volume
> 922b5269-ab56-4c4d-838f-49d33427e2ab/3590f38b-1e3b-4170-a901-801ee5d21d59 in
> use.\']\\n922b5269-ab56-4c4d-838f-49d33427e2ab/[\'3590f38b-1e3b-4170-a901-801ee5d21d59\',
> \'79350ec5-eea5-458b-a3ee-ba394d2cda27\']",)',)
>
> What is the exact meaning and how can I crosscheck to solve the possible
> anomaly...?
> What about lvmetad reference inside the message? Is it an option that in
> oVirt can be configured or not at all for now?

Can you share the output of:

lvs -o vg_name,lv_name,size,attr,devices
vgs -o vg_name,pv_name

After you get this error.

lvmetad is not compatible with ovirt shared storage, this is why you get these
warnings.

It is disabled in latest 4.1.

If you don't want to wait for the release, you can disable it now:

systemctl mask lvm2-lvmetad.service lvm2-lvmetad.socket
systemctl disable lvm2-lvmetad.service lvm2-lvmetad.socket
systemctl stop lvm2-lvmetad.service lvm2-lvmetad.socket

Edit /etc/lvm/lvm.conf and set:

use_lvmetad = 0

Please report if you still get errors about  "Logical volume xxx/yyy in use"
after disabling lvmetad. If you do, please file a bug.

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


Re: [ovirt-users] iscsi data domain when engine is down

2017-03-10 Thread Juan Pablo
Hi, what kind of setup you have? hosted engine just runs on nfs or gluster
afaik.

regards,

2017-03-10 15:22 GMT-03:00 Devin A. Bougie :

> We have an ovirt 4.1 cluster with an iSCSI data domain.  If I shut down
> the entire cluster and just boot the hosts, none of the hosts login to
> their iSCSI sessions until the engine comes up.  Without logging into the
> sessions, sanlock doesn't obtain any leases and obviously none of the VMs
> start.
>
> I'm sure there's something I'm missing, as it looks like it should be
> possible to run a hosted engine on a cluster using an iSCSI data domain.
>
> Any pointers or suggestions would be greatly appreciated.
>
> Many thanks,
> Devin
> ___
> 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] iscsi data domain when engine is down

2017-03-10 Thread Devin A. Bougie
We have an ovirt 4.1 cluster with an iSCSI data domain.  If I shut down the 
entire cluster and just boot the hosts, none of the hosts login to their iSCSI 
sessions until the engine comes up.  Without logging into the sessions, sanlock 
doesn't obtain any leases and obviously none of the VMs start.

I'm sure there's something I'm missing, as it looks like it should be possible 
to run a hosted engine on a cluster using an iSCSI data domain.

Any pointers or suggestions would be greatly appreciated.

Many thanks,
Devin
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] general storage exception ... not using lvmetad

2017-03-10 Thread Gianluca Cecchi
Hello,
on my 4.1 environment sometimes I get this kind of message, typically when
I create a snapshot.
Please note that the snapshot is correctly created: I get the event between
the snapshot creation initiated and completed events


VDSM ovmsrv05 command TeardownImageVDS failed: Cannot deactivate Logical
Volume: ('General Storage Exception: ("5 [] [\'  WARNING: Not using lvmetad
because config setting use_lvmetad=0.\', \'  WARNING: To avoid corruption,
rescan devices to make changes visible (pvscan --cache).\', \'  Logical
volume
922b5269-ab56-4c4d-838f-49d33427e2ab/79350ec5-eea5-458b-a3ee-ba394d2cda27
in use.\', \'  Logical volume
922b5269-ab56-4c4d-838f-49d33427e2ab/3590f38b-1e3b-4170-a901-801ee5d21d59
in
use.\']\\n922b5269-ab56-4c4d-838f-49d33427e2ab/[\'3590f38b-1e3b-4170-a901-801ee5d21d59\',
\'79350ec5-eea5-458b-a3ee-ba394d2cda27\']",)',)

What is the exact meaning and how can I crosscheck to solve the possible
anomaly...?
What about lvmetad reference inside the message? Is it an option that in
oVirt can be configured or not at all for now?

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


Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Luca 'remix_tj' Lorenzetto
On Fri, Mar 10, 2017 at 2:41 PM, Marcin Mirecki  wrote:
> Luca,
>
> Can you please send me the vdsm log of plugging a vnic to an external
> network?
> The relevant log file is: /var/log/vdsm/vdsm.log

You mean when i power on a VM that is using that external network?


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

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

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


Re: [ovirt-users] Users Digest, Vol 66, Issue 86

2017-03-10 Thread algotech

It looks  that  any memory eager running and swap fails  afterwards
will write here who's response of this



On 03/10/2017 01:56 PM, users-requ...@ovirt.org wrote:

Send Users mailing list submissions to
users@ovirt.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ovirt.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
users-requ...@ovirt.org

You can reach the person managing the list at
users-ow...@ovirt.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Users digest..."


Today's Topics:

1.  Error on Node upgrade 2 (FERNANDO FREDIANI)
2. Re:  oVirt VM backup and restore (Gianluca Cecchi)
3. Re:  VDSM hang (Nir Soffer)


--

Message: 1
Date: Fri, 10 Mar 2017 09:37:00 -0300
From: FERNANDO FREDIANI 
To: "users@ovirt.org" 
Subject: [ovirt-users] Error on Node upgrade 2
Message-ID: <3a306136-25aa-4533-4267-f1b8be58f...@upx.com>
Content-Type: text/plain; charset=utf-8; format=flowed

I am not sure if another email I sent went through but has anyone got
problems when upgrading a running oVirt-node-ng from 4.1.0 to 4.1.1.

Is the only solution a complete reinstall of the node ?

Thanks

Fernando



--

Message: 2
Date: Fri, 10 Mar 2017 13:52:35 +0100
From: Gianluca Cecchi 
To: Juan Hern?ndez 
Cc: "users@ovirt.org" 
Subject: Re: [ovirt-users] oVirt VM backup and restore
Message-ID:

[ovirt-users] migrate to hosted engine

2017-03-10 Thread Devin A. Bougie
Hi, All.  We have an ovirt 4.1 cluster setup using multiple paths to a single 
iSCSI LUN for the data storage domain.  I would now like to migrate to a hosted 
engine.

I setup the new engine VM, shutdown and backed-up the old VM, and restored to 
the new VM using engine-backup.  After updating DNS to change our engine's FQDN 
to point to the hosted engine, everything seems to work properly.  However, 
when rebooting the entire cluster, the engine VM doesn't come up automatically.

Is there anything that now needs to be done to tell the cluster that it's now 
using a hosted engine?  

I started with a  standard engine setup, as I didn't see a way to specify 
multiple paths to a single iSCSI LUN when using "hosted-engine --deploy."

Any tips would be greatly appreciated.

Many thanks,
Devin
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Marcin Mirecki
Luca,

Can you please send me the vdsm log of plugging a vnic to an external
network?
The relevant log file is: /var/log/vdsm/vdsm.log



On Fri, Mar 10, 2017 at 12:11 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

>
>
> Il 10 mar 2017 11:48 AM, "Marcin Mirecki"  ha
> scritto:
>
> Hello Luca
>
> >Name: openstack-networks
> >Type: OpenStack Networking
> >Description:
> >Provider URL: http://openstack.example.com:9696
>
> I assume Networking Plugin: Open vSwitch
>
>
> Yes, i confirm.
>
>
>
> Do you have any security groups defined for the vnic profile on your
> external network?
> Looking at the output you provided is seems you do.The qpb bridge and the
> qvb/qvo veth pair are created when the security groups are present.
> Can you try without the security groups? This would connect your vm vnic
> right into the ovs integration bridge (br-int).
>
>
> No i haven't defined any security policy, explicitly. I'm using a network
> defined through horizon without any special option.
>
>
> >This are the output of the commands you asked from a node where a vm
> >that is attached to a neutron network is running:
> Yes, this is what I needed.
>
> >[root@ovirt002 ~]# ovs-vsctl show
> >ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection
> >failed (No such file or directory)
>
> This is quite worrying. Is ovs on the host working properly?
> Can you please check: service openvswitch status
> If not active: service openvswitch start
>
>
> Who should enable it, a cluster confoguration or whatl else? I'm using
> ovirt-node-ng, i suppose that openvswitch is already installed (didn't
> check).
>
>
>
>
> >> Have you tried connecting any nics manually and checking connectivity
> >> between them?
> >What do you mean?
>
> Add 2 ports in openstack directly
> Add 2 nics on vm's, specifying the libvirt xml for the interfaces:
>
> 
>   
>   
>   
> 
>   
> 
>
>
>
> Where i find the xml file?
>
>
> If the openstack neutron plugin works correctly, the ports should be
> connected to the osn network.
>
>
>
>
>
>
> On Thu, Mar 9, 2017 at 4:26 PM, Luca 'remix_tj' Lorenzetto <
> lorenzetto.l...@gmail.com> wrote:
>
>> On Thu, Mar 9, 2017 at 2:24 PM, Marcin Mirecki 
>> wrote:
>> > Hello Luca,
>>
>> Hello Marcin,
>>
>> > The osn provider basically only connects the vnics to the osn networks,
>> > items like dhcp must be handled on the osn networks itself.
>>
>> Yes, i know. The network is defined by neutron, which has it's own dhcp
>> server.
>>
>> > Have you tried connecting any nics manually and checking connectivity
>> > between them?
>>
>> What do you mean?
>>
>> > No connectivity with static IP's could hint at some configuration
>> problems.
>> > Are osn/ovs set up correctly? Firewall blocking traffic?
>>
>> there is no firewall between openstack controllers and ovirt
>> engine/hosts. My doubt is about configuration, i've configured in this
>> way:
>>
>> Name: openstack-networks
>> Type: OpenStack Networking
>> Description:
>> Provider URL: http://openstack.example.com:9696
>>
>> Flagged read-only and requires authentication
>>
>> Set the authentication and tested, reports everything ok.
>>
>> Nothing else has been configured. I didn't found any documentation
>> that clarified if is enough.
>>
>> After powering on i see on openstack this:
>>
>> [stack@opstrio1101 ~]$ openstack port list | grep 00:1a:4a:16:01:51
>> <-- this is mac address of oVirt VM
>> | 86c46fed-dddf-4776-a765-27d4e52e861c | nic1
>> | 00:1a:4a:16:01:51 | ip_address='172.25.7.4',
>> subnet_id='280a98ad-0fd5-4961-a307-d1bfea8355cd' |
>>
>>
>>
>> > Can you please send us a more detailed descirption of your env (ip addr,
>> > brctl show, ovs-vsctl show)?
>>
>> This are the output of the commands you asked from a node where a vm
>> that is attached to a neutron network is running:
>>
>> [root@ovirt002 ~]# ip addr
>> 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: enp2s0f0:  mtu 1500 qdisc mq
>> master bond0 state UP qlen 1000
>> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
>> 3: enp2s0f1:  mtu 1500 qdisc mq
>> master bond0 state UP qlen 1000
>> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
>> 4: enp2s0f2:  mtu 1500 qdisc mq
>> master bond1 state UP qlen 1000
>> link/ether 00:21:5a:9b:b7:97 brd ff:ff:ff:ff:ff:ff
>> 5: enp2s0f3:  mtu 1500 qdisc mq
>> master bond1 state UP qlen 1000
>> link/ether 00:21:5a:9b:b7:97 brd ff:ff:ff:ff:ff:ff
>> 6: enp2s0f4:  mtu 1500 qdisc mq
>> state DOWN qlen 1000
>> 

[ovirt-users] PHX outage report 10.03.2017

2017-03-10 Thread Evgheni Dereveanchin
Hi everyone,

Tonight we experienced a hardware fault on one of our PHX storage servers.
The faulty server was used to provide storage for multiple production VMs.
Since automatic failover did not happen they became unavailable.
The outage lasted between 09.03.2017 20:36 UTC and 10.03.2017 09:15 UTC

Unavailable services included all of oVirt's CI infrastructure, mailing
lists
and package repositories. Services in other datecenters such as
gerrit.ovirt.org and www.ovirt.org were not affected.

We brought storage back up and this allowed for VMs to be restarted.
If you see tests that failed or didn't run during this period please
re-trigger them.
If there are still persisting issues please report them to the tracker
ticket
that has a more detailed root cause analysis:
https://ovirt-jira.atlassian.net/browse/OVIRT-1244

Sorry for the inconvenience caused. We are working on improving reliability
of the environment to avoid similar incidents from happening in the future.

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


Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Marcin Mirecki
>[root@fltiovirt002 ~]# ovs-vsctl show
>53bfa8a8-80c5-4372-abb1-633c29eb1e60
>   ovs_version: "2.6.90

This show that ovs is up. It's however missing the integration bridge
(br-int).
The integration bridge is the bridge to which the vm vnics should be
connected.
Try:
   ovs-vsctl add-br br-int
this should create the bridge.




On Fri, Mar 10, 2017 at 2:09 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

> On Fri, Mar 10, 2017 at 12:11 PM, Luca 'remix_tj' Lorenzetto
>  wrote:
> >
> >>[root@ovirt002 ~]# ovs-vsctl show
> >>ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection
> >>failed (No such file or directory)
> >
> > This is quite worrying. Is ovs on the host working properly?
> > Can you please check: service openvswitch status
> > If not active: service openvswitch start
> >
> >
>
> Hello,
>
> i started ovs on the node where vm is running, but now i see only this:
>
> [root@fltiovirt002 ~]# ovs-vsctl show
> 53bfa8a8-80c5-4372-abb1-633c29eb1e60
> ovs_version: "2.6.90
>
> even restarting the vm on the same host changes nothing. I see instead
> q* interfaces appearing and disappearing from ip a s command output.
>
>
>
> --
> "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
> calcoli che potrebbero essere affidati a chiunque se si usassero delle
> macchine"
> Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
>
> "Internet è la più grande biblioteca del mondo.
> Ma il problema è che i libri sono tutti sparsi sul pavimento"
> John Allen Paulos, Matematico (1945-vivente)
>
> Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <
> lorenzetto.l...@gmail.com>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Marcin Mirecki
> No i haven't defined any security policy, explicitly. I'm using a network
defined through horizon without any special option.

This is strange, as the basic flow should only connect the vnic to the ovs
integration bridge.
Please give me some time to look at the code.

> Where i find the xml file?
This is in the libvirt vm definition. It can be edited using the "virsh"
tools: virsh edit 

You could also attempt to check this by attaching some an interface (like a
veth pair) directly to the ovs bridge and setting the ovs interfaceid
parameter to mark is as osn port. Let me know if this is clear, if not I
will try to decribe the procedure in more detail.




On Fri, Mar 10, 2017 at 12:11 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

>
>
> Il 10 mar 2017 11:48 AM, "Marcin Mirecki"  ha
> scritto:
>
> Hello Luca
>
> >Name: openstack-networks
> >Type: OpenStack Networking
> >Description:
> >Provider URL: http://openstack.example.com:9696
>
> I assume Networking Plugin: Open vSwitch
>
>
> Yes, i confirm.
>
>
>
> Do you have any security groups defined for the vnic profile on your
> external network?
> Looking at the output you provided is seems you do.The qpb bridge and the
> qvb/qvo veth pair are created when the security groups are present.
> Can you try without the security groups? This would connect your vm vnic
> right into the ovs integration bridge (br-int).
>
>
> No i haven't defined any security policy, explicitly. I'm using a network
> defined through horizon without any special option.
>
>
> >This are the output of the commands you asked from a node where a vm
> >that is attached to a neutron network is running:
> Yes, this is what I needed.
>
> >[root@ovirt002 ~]# ovs-vsctl show
> >ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection
> >failed (No such file or directory)
>
> This is quite worrying. Is ovs on the host working properly?
> Can you please check: service openvswitch status
> If not active: service openvswitch start
>
>
> Who should enable it, a cluster confoguration or whatl else? I'm using
> ovirt-node-ng, i suppose that openvswitch is already installed (didn't
> check).
>
>
>
>
> >> Have you tried connecting any nics manually and checking connectivity
> >> between them?
> >What do you mean?
>
> Add 2 ports in openstack directly
> Add 2 nics on vm's, specifying the libvirt xml for the interfaces:
>
> 
>   
>   
>   
> 
>   
> 
>
>
>
> Where i find the xml file?
>
>
> If the openstack neutron plugin works correctly, the ports should be
> connected to the osn network.
>
>
>
>
>
>
> On Thu, Mar 9, 2017 at 4:26 PM, Luca 'remix_tj' Lorenzetto <
> lorenzetto.l...@gmail.com> wrote:
>
>> On Thu, Mar 9, 2017 at 2:24 PM, Marcin Mirecki 
>> wrote:
>> > Hello Luca,
>>
>> Hello Marcin,
>>
>> > The osn provider basically only connects the vnics to the osn networks,
>> > items like dhcp must be handled on the osn networks itself.
>>
>> Yes, i know. The network is defined by neutron, which has it's own dhcp
>> server.
>>
>> > Have you tried connecting any nics manually and checking connectivity
>> > between them?
>>
>> What do you mean?
>>
>> > No connectivity with static IP's could hint at some configuration
>> problems.
>> > Are osn/ovs set up correctly? Firewall blocking traffic?
>>
>> there is no firewall between openstack controllers and ovirt
>> engine/hosts. My doubt is about configuration, i've configured in this
>> way:
>>
>> Name: openstack-networks
>> Type: OpenStack Networking
>> Description:
>> Provider URL: http://openstack.example.com:9696
>>
>> Flagged read-only and requires authentication
>>
>> Set the authentication and tested, reports everything ok.
>>
>> Nothing else has been configured. I didn't found any documentation
>> that clarified if is enough.
>>
>> After powering on i see on openstack this:
>>
>> [stack@opstrio1101 ~]$ openstack port list | grep 00:1a:4a:16:01:51
>> <-- this is mac address of oVirt VM
>> | 86c46fed-dddf-4776-a765-27d4e52e861c | nic1
>> | 00:1a:4a:16:01:51 | ip_address='172.25.7.4',
>> subnet_id='280a98ad-0fd5-4961-a307-d1bfea8355cd' |
>>
>>
>>
>> > Can you please send us a more detailed descirption of your env (ip addr,
>> > brctl show, ovs-vsctl show)?
>>
>> This are the output of the commands you asked from a node where a vm
>> that is attached to a neutron network is running:
>>
>> [root@ovirt002 ~]# ip addr
>> 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: enp2s0f0:  mtu 1500 qdisc mq
>> master bond0 state UP qlen 1000
>> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
>> 3: enp2s0f1:  mtu 1500 qdisc mq

Re: [ovirt-users] VDSM hang

2017-03-10 Thread p...@email.cz

freez / freezing
IO operations are paused from any reasons
available posibilities are
1) net - any tcp framework collapse
2) gluster interconnect due gluster daemon - process hang ??
3) VSD - pause managed services
4) XFS - RW issues
5) swap overfulled - any processes are killed - but why swap is full if 
max 30% of mem (196 GB )  is used by VMs ? ( unmanaged process forking )


regs


On 03/10/2017 01:56 PM, Nir Soffer wrote:

On Fri, Mar 10, 2017 at 1:07 PM, p...@email.cz  wrote:

Hello everybody,

for production usage i'm testing  ovirt with gluster.
All components seems to be running fine but whenever I'm testing huge
workload, then node freez. Not the main OS, but VDSM mgmt and attached
services, VMs eg.

What do you mean by freez?


mgmt
oVirt - 4.1.0.4
centos 7.3-1611


nodes ( installed from ovirt image
"ovirt-node-ng-installer-ovirt-4.1-2017030804.iso"  )

OS Version: == RHEL - 7 - 3.1611.el7.centos
OS Description:== oVirt Node 4.1.0
Kernel Version:== 3.10.0 - 514.10.2.el7.x86_64
KVM Version:== 2.6.0 - 28.el7_3.3.1
LIBVIRT Version:== libvirt-2.0.0-10.el7_3.5
VDSM Version:== vdsm-4.19.4-1.el7.centos
SPICE Version:== 0.12.4 - 20.el7_3
GlusterFS Version:== glusterfs-3.8.9-1.el7  ( LVM thinprovisioning in
replica 2 - created from ovirt GUI )

concurently running
- huge import from export domain( net workload )
- sequential write to VMs local disk ( gluster replica sequential workload )
- VMs database huge select  (  random IOps )
- huge old snapshot delete  ( random IOps )

In this configuration / workload  is  runnig one hour eg, with no exceptions
, with 70-80% disk load, but in some point VDSM freez  all jobs for a
timeout and VM's are in "uknown" status .
The whole system revitalize then automaticaly in cca 20min time frame (
except the import and snapshot deleting(rollback) )

engine.log  - focus 10:39:07 time  ( Failed in 'HSMGetAllTasksStatusesVDS'
method )


n child command id: 'a8a3a4d5-cf7d-4423-8243-022911232508'
type:'RemoveSnapshotSingleDiskLive' to complete
2017-03-10 10:39:01,727+01 INFO
[org.ovirt.engine.core.bll.snapshots.RemoveSnapshotSingleDiskLiveCommandCallback]
(DefaultQuartzScheduler2) [759c8e1f] Command 'RemoveSnapshotSingleDiskLive'
(id: 'a8a3a4d5-cf7d-4423-8243-022911232508') waiting on child command id:
'33df2c1e-6ce3-44fd-a39b-d111883b4c4e' type:'DestroyImage' to complete
2017-03-10 10:39:03,929+01 INFO
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] START,
GlusterServersListVDSCommand(HostName = 2kvm1,
VdsIdVDSCommandParametersBase:{runAsync='true',
hostId='86876b79-71d8-4ae1-883b-ba010cd270e7'}), log id: 446d0cd3
2017-03-10 10:39:04,343+01 INFO
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] FINISH,
GlusterServersListVDSCommand, return: [172.16.5.163/24:CONNECTED,
16.0.0.164:CONNECTED], log id: 446d0cd3
2017-03-10 10:39:04,353+01 INFO
[org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand]
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] START,
GlusterVolumesListVDSCommand(HostName = 2kvm1,
GlusterVolumesListVDSParameters:{runAsync='true',
hostId='86876b79-71d8-4ae1-883b-ba010cd270e7'}), log id: 69ea1fda
2017-03-10 10:39:05,128+01 INFO
[org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand]
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] FINISH,
GlusterVolumesListVDSCommand, return:
{8ded4083-2f31-489e-a60d-a315a5eb9b22=org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity@7765e4ad},
log id: 69ea1fda
2017-03-10 10:39:07,163+01 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand]
(DefaultQuartzScheduler2) [759c8e1f] Failed in 'HSMGetAllTasksStatusesVDS'
method
2017-03-10 10:39:07,178+01 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler2) [759c8e1f] EVENT_ID:
VDS_BROKER_COMMAND_FAILURE(10,802), Correlation ID: null, Call Stack: null,
Custom Event ID: -1, Message: VDSM 2kvm2 command HSMGetAllTasksStatusesVDS
failed: Connection timed out
2017-03-10 10:39:07,182+01 INFO
[org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler2)
[759c8e1f] BaseAsyncTask::onTaskEndSuccess: Task
'f594bf69-619b-4d1b-8f6d-a9826997e478' (Parent Command 'ImportVm',
Parameters Type
'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') ended
successfully.
2017-03-10 10:39:07,182+01 INFO
[org.ovirt.engine.core.bll.CommandMultiAsyncTasks] (DefaultQuartzScheduler2)
[759c8e1f] Task with DB Task ID 'a05c7c07-9b98-4ab2-ac7b-9e70a75ba7b7' and
VDSM Task ID '7c60369f-70a3-4a6a-80c9-4753ac9ed372' is in state Polling. End
action for command 8deb3fe3-4a83-4605-816c-ffdc63fd9ac1 will proceed when
all the entity's tasks are completed.
2017-03-10 10:39:07,182+01 INFO
[org.ovirt.engine.core.bll.tasks.SPMAsyncTask] 

Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Luca 'remix_tj' Lorenzetto
On Fri, Mar 10, 2017 at 12:11 PM, Luca 'remix_tj' Lorenzetto
 wrote:
>
>>[root@ovirt002 ~]# ovs-vsctl show
>>ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection
>>failed (No such file or directory)
>
> This is quite worrying. Is ovs on the host working properly?
> Can you please check: service openvswitch status
> If not active: service openvswitch start
>
>

Hello,

i started ovs on the node where vm is running, but now i see only this:

[root@fltiovirt002 ~]# ovs-vsctl show
53bfa8a8-80c5-4372-abb1-633c29eb1e60
ovs_version: "2.6.90

even restarting the vm on the same host changes nothing. I see instead
q* interfaces appearing and disappearing from ip a s command output.



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

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

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


Re: [ovirt-users] VDSM hang

2017-03-10 Thread Nir Soffer
On Fri, Mar 10, 2017 at 1:07 PM, p...@email.cz  wrote:
> Hello everybody,
>
> for production usage i'm testing  ovirt with gluster.
> All components seems to be running fine but whenever I'm testing huge
> workload, then node freez. Not the main OS, but VDSM mgmt and attached
> services, VMs eg.

What do you mean by freez?

>
> mgmt
> oVirt - 4.1.0.4
> centos 7.3-1611
>
>
> nodes ( installed from ovirt image
> "ovirt-node-ng-installer-ovirt-4.1-2017030804.iso"  )
>
> OS Version: == RHEL - 7 - 3.1611.el7.centos
> OS Description:== oVirt Node 4.1.0
> Kernel Version:== 3.10.0 - 514.10.2.el7.x86_64
> KVM Version:== 2.6.0 - 28.el7_3.3.1
> LIBVIRT Version:== libvirt-2.0.0-10.el7_3.5
> VDSM Version:== vdsm-4.19.4-1.el7.centos
> SPICE Version:== 0.12.4 - 20.el7_3
> GlusterFS Version:== glusterfs-3.8.9-1.el7  ( LVM thinprovisioning in
> replica 2 - created from ovirt GUI )
>
> concurently running
> - huge import from export domain( net workload )
> - sequential write to VMs local disk ( gluster replica sequential workload )
> - VMs database huge select  (  random IOps )
> - huge old snapshot delete  ( random IOps )
>
> In this configuration / workload  is  runnig one hour eg, with no exceptions
> , with 70-80% disk load, but in some point VDSM freez  all jobs for a
> timeout and VM's are in "uknown" status .
> The whole system revitalize then automaticaly in cca 20min time frame (
> except the import and snapshot deleting(rollback) )
>
> engine.log  - focus 10:39:07 time  ( Failed in 'HSMGetAllTasksStatusesVDS'
> method )
> 
>
> n child command id: 'a8a3a4d5-cf7d-4423-8243-022911232508'
> type:'RemoveSnapshotSingleDiskLive' to complete
> 2017-03-10 10:39:01,727+01 INFO
> [org.ovirt.engine.core.bll.snapshots.RemoveSnapshotSingleDiskLiveCommandCallback]
> (DefaultQuartzScheduler2) [759c8e1f] Command 'RemoveSnapshotSingleDiskLive'
> (id: 'a8a3a4d5-cf7d-4423-8243-022911232508') waiting on child command id:
> '33df2c1e-6ce3-44fd-a39b-d111883b4c4e' type:'DestroyImage' to complete
> 2017-03-10 10:39:03,929+01 INFO
> [org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
> (DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] START,
> GlusterServersListVDSCommand(HostName = 2kvm1,
> VdsIdVDSCommandParametersBase:{runAsync='true',
> hostId='86876b79-71d8-4ae1-883b-ba010cd270e7'}), log id: 446d0cd3
> 2017-03-10 10:39:04,343+01 INFO
> [org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand]
> (DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] FINISH,
> GlusterServersListVDSCommand, return: [172.16.5.163/24:CONNECTED,
> 16.0.0.164:CONNECTED], log id: 446d0cd3
> 2017-03-10 10:39:04,353+01 INFO
> [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand]
> (DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] START,
> GlusterVolumesListVDSCommand(HostName = 2kvm1,
> GlusterVolumesListVDSParameters:{runAsync='true',
> hostId='86876b79-71d8-4ae1-883b-ba010cd270e7'}), log id: 69ea1fda
> 2017-03-10 10:39:05,128+01 INFO
> [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand]
> (DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] FINISH,
> GlusterVolumesListVDSCommand, return:
> {8ded4083-2f31-489e-a60d-a315a5eb9b22=org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity@7765e4ad},
> log id: 69ea1fda
> 2017-03-10 10:39:07,163+01 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand]
> (DefaultQuartzScheduler2) [759c8e1f] Failed in 'HSMGetAllTasksStatusesVDS'
> method
> 2017-03-10 10:39:07,178+01 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (DefaultQuartzScheduler2) [759c8e1f] EVENT_ID:
> VDS_BROKER_COMMAND_FAILURE(10,802), Correlation ID: null, Call Stack: null,
> Custom Event ID: -1, Message: VDSM 2kvm2 command HSMGetAllTasksStatusesVDS
> failed: Connection timed out
> 2017-03-10 10:39:07,182+01 INFO
> [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler2)
> [759c8e1f] BaseAsyncTask::onTaskEndSuccess: Task
> 'f594bf69-619b-4d1b-8f6d-a9826997e478' (Parent Command 'ImportVm',
> Parameters Type
> 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') ended
> successfully.
> 2017-03-10 10:39:07,182+01 INFO
> [org.ovirt.engine.core.bll.CommandMultiAsyncTasks] (DefaultQuartzScheduler2)
> [759c8e1f] Task with DB Task ID 'a05c7c07-9b98-4ab2-ac7b-9e70a75ba7b7' and
> VDSM Task ID '7c60369f-70a3-4a6a-80c9-4753ac9ed372' is in state Polling. End
> action for command 8deb3fe3-4a83-4605-816c-ffdc63fd9ac1 will proceed when
> all the entity's tasks are completed.
> 2017-03-10 10:39:07,182+01 INFO
> [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler2)
> [759c8e1f] SPMAsyncTask::PollTask: Polling task
> 'f351e8f6-6dd7-49aa-bf54-650d84fc6352' (Parent Command 'DestroyImage',
> Parameters Type
> 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') returned
> status 'finished', result 

Re: [ovirt-users] oVirt VM backup and restore

2017-03-10 Thread Gianluca Cecchi
On Thu, Mar 9, 2017 at 11:23 AM, Juan Hernández  wrote:

>
> > Very good point Gialuca, you are right, the 'persist_memorystate'
> flag
> > is 'true' by default, and that makes the pause longer. Would you be
> so
> > kind to add it to the 'vm_backup.py' example that is part of version
> 4
> > of the SDK?
> >
> >
> > https://github.com/oVirt/ovirt-engine-sdk/blob/master/
> sdk/examples/vm_backup.py#L143-L151
> >  sdk/examples/vm_backup.py#L143-L151>
> >
> > (Note that that Gibhub is just a mirror, the change needs to be
> submited
> > using gerrit.ovirt.org ).
> >
> >
> >
> > I already verified (on a 4.1 infra) that changing vm_backup.py
> > downloaded yesterday from master this way (apart connection paramters):
> >
> > $ diff vm_backup.py vm_backup.py.orig
> >  150d149
> > < persist_memorystate=False,
> >
> > I get the backup result and snapshot is correctly without memory saved
> > (and no pause at VM side)
> >
>
> [snip]

>
> I see that you already have a gerrit.ovirt.org, so it shouldn't be
> difficult. The initial setup should be like this:
>
>   $ git config --global user.name youruser
>   $ git config --global user.email your@email
>   $ git clone ssh://youru...@gerrit.ovirt.org:29418/ovirt-engine-sdk
>   $ gitdir=$(git rev-parse --git-dir); scp -p -P 29418
> youru...@gerrit.ovirt.org:hooks/commit-msg ${gitdir}/hooks/
>
> Then, to submit the patch:
>
>   $ cd ovirt-engine-sdk
>   $ Edit the vm_backup.py file, and make your changes.
>   $ git commit -a -s
>   $ git push origin HEAD:refs/for/master
>
>
Ok. I found the time to try and apparently it worked as expected.
The master (you? jenkins CI? ;-) should see my change...
Just learnt (a little...) another thing

sys admins often try to put an eye inside devs field but the reverse seldom
happens ;-)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Error on Node upgrade 2

2017-03-10 Thread FERNANDO FREDIANI
I am not sure if another email I sent went through but has anyone got 
problems when upgrading a running oVirt-node-ng from 4.1.0 to 4.1.1.


Is the only solution a complete reinstall of the node ?

Thanks

Fernando

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


Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Luca 'remix_tj' Lorenzetto
Il 10 mar 2017 11:48 AM, "Marcin Mirecki"  ha scritto:

Hello Luca

>Name: openstack-networks
>Type: OpenStack Networking
>Description:
>Provider URL: http://openstack.example.com:9696

I assume Networking Plugin: Open vSwitch


Yes, i confirm.



Do you have any security groups defined for the vnic profile on your
external network?
Looking at the output you provided is seems you do.The qpb bridge and the
qvb/qvo veth pair are created when the security groups are present.
Can you try without the security groups? This would connect your vm vnic
right into the ovs integration bridge (br-int).


No i haven't defined any security policy, explicitly. I'm using a network
defined through horizon without any special option.


>This are the output of the commands you asked from a node where a vm
>that is attached to a neutron network is running:
Yes, this is what I needed.

>[root@ovirt002 ~]# ovs-vsctl show
>ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection
>failed (No such file or directory)

This is quite worrying. Is ovs on the host working properly?
Can you please check: service openvswitch status
If not active: service openvswitch start


Who should enable it, a cluster confoguration or whatl else? I'm using
ovirt-node-ng, i suppose that openvswitch is already installed (didn't
check).




>> Have you tried connecting any nics manually and checking connectivity
>> between them?
>What do you mean?

Add 2 ports in openstack directly
Add 2 nics on vm's, specifying the libvirt xml for the interfaces:


  
  
  

  




Where i find the xml file?


If the openstack neutron plugin works correctly, the ports should be
connected to the osn network.






On Thu, Mar 9, 2017 at 4:26 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

> On Thu, Mar 9, 2017 at 2:24 PM, Marcin Mirecki 
> wrote:
> > Hello Luca,
>
> Hello Marcin,
>
> > The osn provider basically only connects the vnics to the osn networks,
> > items like dhcp must be handled on the osn networks itself.
>
> Yes, i know. The network is defined by neutron, which has it's own dhcp
> server.
>
> > Have you tried connecting any nics manually and checking connectivity
> > between them?
>
> What do you mean?
>
> > No connectivity with static IP's could hint at some configuration
> problems.
> > Are osn/ovs set up correctly? Firewall blocking traffic?
>
> there is no firewall between openstack controllers and ovirt
> engine/hosts. My doubt is about configuration, i've configured in this
> way:
>
> Name: openstack-networks
> Type: OpenStack Networking
> Description:
> Provider URL: http://openstack.example.com:9696
>
> Flagged read-only and requires authentication
>
> Set the authentication and tested, reports everything ok.
>
> Nothing else has been configured. I didn't found any documentation
> that clarified if is enough.
>
> After powering on i see on openstack this:
>
> [stack@opstrio1101 ~]$ openstack port list | grep 00:1a:4a:16:01:51
> <-- this is mac address of oVirt VM
> | 86c46fed-dddf-4776-a765-27d4e52e861c | nic1
> | 00:1a:4a:16:01:51 | ip_address='172.25.7.4',
> subnet_id='280a98ad-0fd5-4961-a307-d1bfea8355cd' |
>
>
>
> > Can you please send us a more detailed descirption of your env (ip addr,
> > brctl show, ovs-vsctl show)?
>
> This are the output of the commands you asked from a node where a vm
> that is attached to a neutron network is running:
>
> [root@ovirt002 ~]# ip addr
> 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: enp2s0f0:  mtu 1500 qdisc mq
> master bond0 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
> 3: enp2s0f1:  mtu 1500 qdisc mq
> master bond0 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
> 4: enp2s0f2:  mtu 1500 qdisc mq
> master bond1 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:97 brd ff:ff:ff:ff:ff:ff
> 5: enp2s0f3:  mtu 1500 qdisc mq
> master bond1 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:97 brd ff:ff:ff:ff:ff:ff
> 6: enp2s0f4:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether 00:21:5a:9b:b7:9b brd ff:ff:ff:ff:ff:ff
> 7: enp2s0f5:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether 00:21:5a:9b:b7:9d brd ff:ff:ff:ff:ff:ff
> 8: enp2s0f6:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether b4:b5:2f:55:bc:eb brd ff:ff:ff:ff:ff:ff
> 9: enp2s0f7:  mtu 1500 qdisc mq
> state DOWN qlen 1000

[ovirt-users] VDSM hang

2017-03-10 Thread p...@email.cz

Hello everybody,

for production usage i'm testing  ovirt with gluster.
All components seems to be running fine but whenever I'm testing huge 
workload, then node freez. Not the main OS, but VDSM mgmt and attached 
services, VMs eg.


*mgmt *
oVirt - 4.1.0.4
centos 7.3-1611


*nodes* ( installed from ovirt image 
/"ovirt-node-ng-installer-ovirt-4.1-2017030804.iso" )/


OS Version:== RHEL - 7 - 3.1611.el7.centos
OS Description:== oVirt Node 4.1.0
Kernel Version:== 3.10.0 - 514.10.2.el7.x86_64
KVM Version:== 2.6.0 - 28.el7_3.3.1
LIBVIRT Version:== libvirt-2.0.0-10.el7_3.5
VDSM Version:== vdsm-4.19.4-1.el7.centos
SPICE Version:== 0.12.4 - 20.el7_3
GlusterFS Version:== glusterfs-3.8.9-1.el7  ( LVM thinprovisioning in 
replica 2 - created from ovirt GUI )


concurently running
- huge import from export domain( net workload )
- sequential write to VMs local disk ( gluster replica sequential workload )
- VMs database huge select  (  random IOps )
- huge old snapshot delete  ( random IOps )

In this configuration / workload  is  runnig one hour eg, with no 
exceptions , with 70-80% disk load, but in some point VDSM freez all 
jobs for a timeout and VM's are in "uknown" status .
The whole system revitalize then automaticaly in cca 20min time frame ( 
except the import and snapshot deleting(rollback) )


engine.log  - focus 10:39:07 time  ( Failed in 
'HSMGetAllTasksStatusesVDS' method )



n child command id: 'a8a3a4d5-cf7d-4423-8243-022911232508' 
type:'RemoveSnapshotSingleDiskLive' to complete
2017-03-10 10:39:01,727+01 INFO 
[org.ovirt.engine.core.bll.snapshots.RemoveSnapshotSingleDiskLiveCommandCallback] 
(DefaultQuartzScheduler2) [759c8e1f] Command 
'RemoveSnapshotSingleDiskLive' (id: 
'a8a3a4d5-cf7d-4423-8243-022911232508') waiting on child command id: 
'33df2c1e-6ce3-44fd-a39b-d111883b4c4e' type:'DestroyImage' to complete
2017-03-10 10:39:03,929+01 INFO 
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] START, 
GlusterServersListVDSCommand(HostName = 2kvm1, 
VdsIdVDSCommandParametersBase:{runAsync='true', 
hostId='86876b79-71d8-4ae1-883b-ba010cd270e7'}), log id: 446d0cd3
2017-03-10 10:39:04,343+01 INFO 
[org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand] 
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] FINISH, 
GlusterServersListVDSCommand, return: [172.16.5.163/24:CONNECTED, 
16.0.0.164:CONNECTED], log id: 446d0cd3
2017-03-10 10:39:04,353+01 INFO 
[org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] 
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] START, 
GlusterVolumesListVDSCommand(HostName = 2kvm1, 
GlusterVolumesListVDSParameters:{runAsync='true', 
hostId='86876b79-71d8-4ae1-883b-ba010cd270e7'}), log id: 69ea1fda
2017-03-10 10:39:05,128+01 INFO 
[org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] 
(DefaultQuartzScheduler5) [fde51205-3e8b-4b84-a478-352dc444ccc4] FINISH, 
GlusterVolumesListVDSCommand, return: 
{8ded4083-2f31-489e-a60d-a315a5eb9b22=org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity@7765e4ad}, 
log id: 69ea1fda
2017-03-10 10:39:07,163+01 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand] 
(DefaultQuartzScheduler2) [759c8e1f] Failed in 
'HSMGetAllTasksStatusesVDS' method
2017-03-10 10:39:07,178+01 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler2) [759c8e1f] EVENT_ID: 
VDS_BROKER_COMMAND_FAILURE(10,802), Correlation ID: null, Call Stack: 
null, Custom Event ID: -1, Message: VDSM 2kvm2 command 
HSMGetAllTasksStatusesVDS failed: Connection timed out
2017-03-10 10:39:07,182+01 INFO 
[org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler2) 
[759c8e1f] BaseAsyncTask::onTaskEndSuccess: Task 
'f594bf69-619b-4d1b-8f6d-a9826997e478' (Parent Command 'ImportVm', 
Parameters Type 
'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') ended 
successfully.
2017-03-10 10:39:07,182+01 INFO 
[org.ovirt.engine.core.bll.CommandMultiAsyncTasks] 
(DefaultQuartzScheduler2) [759c8e1f] Task with DB Task ID 
'a05c7c07-9b98-4ab2-ac7b-9e70a75ba7b7' and VDSM Task ID 
'7c60369f-70a3-4a6a-80c9-4753ac9ed372' is in state Polling. End action 
for command 8deb3fe3-4a83-4605-816c-ffdc63fd9ac1 will proceed when all 
the entity's tasks are completed.
2017-03-10 10:39:07,182+01 INFO 
[org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler2) 
[759c8e1f] SPMAsyncTask::PollTask: Polling task 
'f351e8f6-6dd7-49aa-bf54-650d84fc6352' (Parent Command 'DestroyImage', 
Parameters Type 
'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') returned 
status 'finished', result 'cleanSuccess'.
2017-03-10 10:39:07,182+01 ERROR 
[org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler2) 
[759c8e1f] BaseAsyncTask::logEndTaskFailure: Task 
'f351e8f6-6dd7-49aa-bf54-650d84fc6352' (Parent 

Re: [ovirt-users] oVirt and Openstack Neutron: network not working

2017-03-10 Thread Marcin Mirecki
Hello Luca

>Name: openstack-networks
>Type: OpenStack Networking
>Description:
>Provider URL: http://openstack.example.com:9696

I assume Networking Plugin: Open vSwitch

Do you have any security groups defined for the vnic profile on your
external network?
Looking at the output you provided is seems you do.The qpb bridge and the
qvb/qvo veth pair are created when the security groups are present.
Can you try without the security groups? This would connect your vm vnic
right into the ovs integration bridge (br-int).

>This are the output of the commands you asked from a node where a vm
>that is attached to a neutron network is running:
Yes, this is what I needed.

>[root@ovirt002 ~]# ovs-vsctl show
>ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection
>failed (No such file or directory)

This is quite worrying. Is ovs on the host working properly?
Can you please check: service openvswitch status
If not active: service openvswitch start

>> Have you tried connecting any nics manually and checking connectivity
>> between them?
>What do you mean?

Add 2 ports in openstack directly
Add 2 nics on vm's, specifying the libvirt xml for the interfaces:


  
  
  

  


If the openstack neutron plugin works correctly, the ports should be
connected to the osn network.


On Thu, Mar 9, 2017 at 4:26 PM, Luca 'remix_tj' Lorenzetto <
lorenzetto.l...@gmail.com> wrote:

> On Thu, Mar 9, 2017 at 2:24 PM, Marcin Mirecki 
> wrote:
> > Hello Luca,
>
> Hello Marcin,
>
> > The osn provider basically only connects the vnics to the osn networks,
> > items like dhcp must be handled on the osn networks itself.
>
> Yes, i know. The network is defined by neutron, which has it's own dhcp
> server.
>
> > Have you tried connecting any nics manually and checking connectivity
> > between them?
>
> What do you mean?
>
> > No connectivity with static IP's could hint at some configuration
> problems.
> > Are osn/ovs set up correctly? Firewall blocking traffic?
>
> there is no firewall between openstack controllers and ovirt
> engine/hosts. My doubt is about configuration, i've configured in this
> way:
>
> Name: openstack-networks
> Type: OpenStack Networking
> Description:
> Provider URL: http://openstack.example.com:9696
>
> Flagged read-only and requires authentication
>
> Set the authentication and tested, reports everything ok.
>
> Nothing else has been configured. I didn't found any documentation
> that clarified if is enough.
>
> After powering on i see on openstack this:
>
> [stack@opstrio1101 ~]$ openstack port list | grep 00:1a:4a:16:01:51
> <-- this is mac address of oVirt VM
> | 86c46fed-dddf-4776-a765-27d4e52e861c | nic1
> | 00:1a:4a:16:01:51 | ip_address='172.25.7.4',
> subnet_id='280a98ad-0fd5-4961-a307-d1bfea8355cd' |
>
>
>
> > Can you please send us a more detailed descirption of your env (ip addr,
> > brctl show, ovs-vsctl show)?
>
> This are the output of the commands you asked from a node where a vm
> that is attached to a neutron network is running:
>
> [root@ovirt002 ~]# ip addr
> 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: enp2s0f0:  mtu 1500 qdisc mq
> master bond0 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
> 3: enp2s0f1:  mtu 1500 qdisc mq
> master bond0 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
> 4: enp2s0f2:  mtu 1500 qdisc mq
> master bond1 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:97 brd ff:ff:ff:ff:ff:ff
> 5: enp2s0f3:  mtu 1500 qdisc mq
> master bond1 state UP qlen 1000
> link/ether 00:21:5a:9b:b7:97 brd ff:ff:ff:ff:ff:ff
> 6: enp2s0f4:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether 00:21:5a:9b:b7:9b brd ff:ff:ff:ff:ff:ff
> 7: enp2s0f5:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether 00:21:5a:9b:b7:9d brd ff:ff:ff:ff:ff:ff
> 8: enp2s0f6:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether b4:b5:2f:55:bc:eb brd ff:ff:ff:ff:ff:ff
> 9: enp2s0f7:  mtu 1500 qdisc mq
> state DOWN qlen 1000
> link/ether b4:b5:2f:55:bc:ef brd ff:ff:ff:ff:ff:ff
> 10: bond0:  mtu 1500 qdisc
> noqueue master ovirtmgmt state UP qlen 1000
> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
> 11: ovirtmgmt:  mtu 1500 qdisc
> noqueue state UP qlen 1000
> link/ether 00:21:5a:9b:b7:93 brd ff:ff:ff:ff:ff:ff
> inet 10.5.40.192/22 brd 

Re: [ovirt-users] HE in bad stauts, will not start following storage issue - HELP

2017-03-10 Thread Martin Sivak
Hi Ian,

it is normal that VDSMs are competing for the lock, one should win
though. If that is not the case then the lockspace might be corrupted
or the sanlock daemons can't reach it.

I would recommend putting the cluster to global maintenance and
attempting a manual start using:

# hosted-engine --set-maintenance --mode=global
# hosted-engine --vm-start

You will need to check your storage connectivity and sanlock status on
all hosts if that does not work.

# sanlock client status

There are couple of locks I would expect to be there (ha_agent, spm),
but no lock for hosted engine disk should be visible.

Next steps depend on whether you have important VMs running on the
cluster and on the Gluster status (I can't help you there
unfortunately).

Best regards

--
Martin Sivak
SLA / oVirt


On Fri, Mar 10, 2017 at 7:37 AM, Ian Neilsen  wrote:
> I just noticed this in the vdsm.logs.  The agent looks like it is trying to
> start hosted engine on both machines??
>
> destroydestroydestroy
> Thread-7517::ERROR::2017-03-10
> 01:26:13,053::vm::773::virt.vm::(_startUnderlyingVm)
> vmId=`2419f9fe-4998-4b7a-9fe9-151571d20379`::The vm start process failed
> Traceback (most recent call last):
>   File "/usr/share/vdsm/virt/vm.py", line 714, in _startUnderlyingVm
> self._run()
>   File "/usr/share/vdsm/virt/vm.py", line 2026, in _run
> self._connection.createXML(domxml, flags),
>   File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line
> 123, in wrapper ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 917, in
> wrapper return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in
> createXML if ret is None:raise libvirtError('virDomainCreateXML() failed',
> conn=self)
>
> libvirtError: Failed to acquire lock: Permission denied
>
> INFO::2017-03-10 01:26:13,054::vm::1330::virt.vm::(setDownStatus)
> vmId=`2419f9fe-4998-4b7a-9fe9-151571d20379`::Changed state to Down: Failed
> to acquire lock: Permission denied (code=1)
> INFO::2017-03-10 01:26:13,054::guestagent::430::virt.vm::(stop)
> vmId=`2419f9fe-4998-4b7a-9fe9-151571d20379`::Stopping connection
>
> DEBUG::2017-03-10 01:26:13,054::vmchannels::238::vds::(unregister) Delete
> fileno 56 from listener.
> DEBUG::2017-03-10 01:26:13,055::vmchannels::66::vds::(_unregister_fd) Failed
> to unregister FD from epoll (ENOENT): 56
> DEBUG::2017-03-10 01:26:13,055::__init__::209::jsonrpc.Notification::(emit)
> Sending event {"params": {"2419f9fe-4998-4b7a-9fe9-151571d20379": {"status":
> "Down", "exitReason": 1, "exitMessage": "Failed to acquire lock: Permission
> denied", "exitCode": 1}, "notify_time": 4308740560}, "jsonrpc": "2.0",
> "method": "|virt|VM_status|2419f9fe-4998-4b7a-9fe9-151571d20379"}
> VM Channels Listener::DEBUG::2017-03-10
> 01:26:13,475::vmchannels::142::vds::(_do_del_channels) fileno 56 was removed
> from listener.
> DEBUG::2017-03-10 01:26:14,430::check::296::storage.check::(_start_process)
> START check
> u'/rhev/data-center/mnt/glusterSD/192.168.3.10:_data/a08822ec-3f5b-4dba-ac2d-5510f0b4b6a2/dom_md/metadata'
> cmd=['/usr/bin/taskset', '--cpu-list', '0-39', '/usr/bin/dd',
> u'if=/rhev/data-center/mnt/glusterSD/192.168.3.10:_data/a08822ec-3f5b-4dba-ac2d-5510f0b4b6a2/dom_md/metadata',
> 'of=/dev/null', 'bs=4096', 'count=1', 'iflag=direct'] delay=0.00
> DEBUG::2017-03-10 01:26:14,481::asyncevent::564::storage.asyncevent::(reap)
> Process  terminated (count=1)
> DEBUG::2017-03-10
> 01:26:14,481::check::327::storage.check::(_check_completed) FINISH check
> u'/rhev/data-center/mnt/glusterSD/192.168.3.10:_data/a08822ec-3f5b-4dba-ac2d-5510f0b4b6a2/dom_md/metadata'
> rc=0 err=bytearray(b'0+1 records in\n0+1 records out\n300 bytes (300 B)
> copied, 8.7603e-05 s, 3.4 MB/s\n') elapsed=0.06
>
>
> On 10 March 2017 at 10:40, Ian Neilsen  wrote:
>>
>> Hi All
>>
>> I had a storage issue with my gluster volumes running under ovirt hosted.
>> I now cannot start the hosted engine manager vm from "hosted-engine
>> --vm-start".
>> I've scoured the net to find a way, but can't seem to find anything
>> concrete.
>>
>> Running Centos7, ovirt 4.0 and gluster 3.8.9
>>
>> How do I recover the engine manager. Im at a loss!
>>
>> Engine Status = score between nodes was 0 for all, now node 1 is reading
>> 3400, but all others are 0
>>
>> {"reason": "bad vm status", "health": "bad", "vm": "down", "detail":
>> "down"}
>>
>>
>> Logs from agent.log
>> ==
>>
>> INFO::2017-03-09
>> 19:32:52,600::state_decorators::51::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(check)
>> Global maintenance detected
>> INFO::2017-03-09
>> 19:32:52,603::hosted_engine::612::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm)
>> Initializing VDSM
>> INFO::2017-03-09
>> 19:32:54,820::hosted_engine::639::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
>> Connecting the storage
>> 

[ovirt-users] HE in bad stauts, will not start following storage issue - HELP

2017-03-10 Thread Ian Neilsen
Hi All

I had a storage issue with my gluster volumes running under ovirt hosted.
I now cannot start the hosted engine manager vm from "hosted-engine
--vm-start".
I've scoured the net to find a way, but can't seem to find anything
concrete.

Running Centos7, ovirt 4.0 and gluster 3.8.9

How do I recover the engine manager. Im at a loss!

Engine Status = score between nodes was 0 for all, now node 1 is reading
3400, but all others are 0

{"reason": "bad vm status", "health": "bad", "vm": "down", "detail": "down"}


Logs from agent.log
==

INFO::2017-03-09
19:32:52,600::state_decorators::51::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(check)
Global maintenance detected
INFO::2017-03-09
19:32:52,603::hosted_engine::612::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm)
Initializing VDSM
INFO::2017-03-09
19:32:54,820::hosted_engine::639::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
Connecting the storage
INFO::2017-03-09
19:32:54,821::storage_server::219::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
Connecting storage server
INFO::2017-03-09
19:32:59,194::storage_server::226::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
Connecting storage server
INFO::2017-03-09
19:32:59,211::storage_server::233::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
Refreshing the storage domain
INFO::2017-03-09
19:32:59,328::hosted_engine::666::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
Preparing images
INFO::2017-03-09
19:32:59,328::image::126::ovirt_hosted_engine_ha.lib.image.Image::(prepare_images)
Preparing images
INFO::2017-03-09
19:33:01,748::hosted_engine::669::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
Reloading vm.conf from the shared storage domain
INFO::2017-03-09
19:33:01,748::config::206::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file)
Trying to get a fresher copy of vm configuration from the OVF_STORE
WARNING::2017-03-09
19:33:04,056::ovf_store::107::ovirt_hosted_engine_ha.lib.ovf.ovf_store.OVFStore::(scan)
Unable to find OVF_STORE
ERROR::2017-03-09
19:33:04,058::config::235::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config::(refresh_local_conf_file)
Unable to get vm.conf from OVF_STORE, falling back to initial vm.conf

ovirt-ha-agent logs


ovirt-ha-agent
ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable
to get vm.conf from OVF_STORE, falling back to initial vm.conf

vdsm
==

vdsm vds.dispatcher ERROR SSL error during reading data: unexpected eof

ovirt-ha-broker


ovirt-ha-broker cpu_load_no_engine.EngineHealth ERROR Failed to getVmStats:
'pid'

-- 
Ian Neilsen

Mobile: 0424 379 762
Linkedin: http://au.linkedin.com/in/ianneilsen
Twitter : ineilsen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Passing VLAN trunk to VM

2017-03-10 Thread Simon Vincent
I was wondering if open vswitch will get round this problem. Has anyone
tried it?

On 9 Mar 2017 7:41 pm, "Rogério Ceni Coelho" 
wrote:

> Hi,
>
> Ovirt user interface does not allow to input 4095 as a tag vlan number ...
> Only values between 0 and 4094.
>
> This is useful to me too. Maybe any other way ?
>
> Em qui, 9 de mar de 2017 às 16:15, FERNANDO FREDIANI <
> fernando.fredi...@upx.com> escreveu:
>
>> Have you tried use Vlan 4095 ? On VMware it used to be the way to pass
>> all Vlans from a vSwitch to a Vlan in a single port. And yes I have used it
>> also for pfSense.
>>
>> Fernando
>>
>> On 09/03/2017 16:09, Simon Vincent wrote:
>>
>> Is it possible to pass multiple VLANs to a VM (pfSense) using a single
>> virtual NIC? All my existing oVirt networks are setup as a single tagged
>> VLAN. I know this didn't used to be supported but wondered if this has
>> changed. My other option is to pass each VLAN as a separate NIC to the VM
>> however if I needed to add a new VLAN I would have to add a new interface
>> and reboot the VM as hot-add of NICs is not supported by pfSense.
>>
>>
>>
>>
>> ___
>> 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
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Passing VLAN trunk to VM

2017-03-10 Thread Ian Neilsen
Vote 1 for this. Interested also

On 10 March 2017 at 05:40, Rogério Ceni Coelho 
wrote:

> Hi,
>
> Ovirt user interface does not allow to input 4095 as a tag vlan number ...
> Only values between 0 and 4094.
>
> This is useful to me too. Maybe any other way ?
>
> Em qui, 9 de mar de 2017 às 16:15, FERNANDO FREDIANI <
> fernando.fredi...@upx.com> escreveu:
>
>> Have you tried use Vlan 4095 ? On VMware it used to be the way to pass
>> all Vlans from a vSwitch to a Vlan in a single port. And yes I have used it
>> also for pfSense.
>>
>> Fernando
>>
>> On 09/03/2017 16:09, Simon Vincent wrote:
>>
>> Is it possible to pass multiple VLANs to a VM (pfSense) using a single
>> virtual NIC? All my existing oVirt networks are setup as a single tagged
>> VLAN. I know this didn't used to be supported but wondered if this has
>> changed. My other option is to pass each VLAN as a separate NIC to the VM
>> however if I needed to add a new VLAN I would have to add a new interface
>> and reboot the VM as hot-add of NICs is not supported by pfSense.
>>
>>
>>
>>
>> ___
>> 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
>
>


-- 
Ian Neilsen

Mobile: 0424 379 762
Linkedin: http://au.linkedin.com/in/ianneilsen
Twitter : ineilsen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] HE in bad stauts, will not start following storage issue - HELP

2017-03-10 Thread Ian Neilsen
I just noticed this in the vdsm.logs.  The agent looks like it is trying to
start hosted engine on both machines??

destroydestroydestroy
Thread-7517::ERROR::2017-03-10
01:26:13,053::vm::773::virt.vm::(_startUnderlyingVm)
vmId=`2419f9fe-4998-4b7a-9fe9-151571d20379`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 714, in _startUnderlyingVm
self._run()
  File "/usr/share/vdsm/virt/vm.py", line 2026, in _run
self._connection.createXML(domxml, flags),
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line
123, in wrapper ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 917, in
wrapper return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3782, in
createXML if ret is None:raise libvirtError('virDomainCreateXML() failed',
conn=self)

libvirtError: Failed to acquire lock: Permission denied

INFO::2017-03-10 01:26:13,054::vm::1330::virt.vm::(setDownStatus)
vmId=`2419f9fe-4998-4b7a-9fe9-151571d20379`::Changed state to Down: Failed
to acquire lock: Permission denied (code=1)
INFO::2017-03-10 01:26:13,054::guestagent::430::virt.vm::(stop)
vmId=`2419f9fe-4998-4b7a-9fe9-151571d20379`::Stopping connection

DEBUG::2017-03-10 01:26:13,054::vmchannels::238::vds::(unregister) Delete
fileno 56 from listener.
DEBUG::2017-03-10 01:26:13,055::vmchannels::66::vds::(_unregister_fd)
Failed to unregister FD from epoll (ENOENT): 56
DEBUG::2017-03-10 01:26:13,055::__init__::209::jsonrpc.Notification::(emit)
Sending event {"params": {"2419f9fe-4998-4b7a-9fe9-151571d20379":
{"status": "Down", "exitReason": 1, "exitMessage": "Failed to acquire lock:
Permission denied", "exitCode": 1}, "notify_time": 4308740560}, "jsonrpc":
"2.0", "method": "|virt|VM_status|2419f9fe-4998-4b7a-9fe9-151571d20379"}
VM Channels Listener::DEBUG::2017-03-10
01:26:13,475::vmchannels::142::vds::(_do_del_channels) fileno 56 was
removed from listener.
DEBUG::2017-03-10 01:26:14,430::check::296::storage.check::(_start_process)
START check 
u'/rhev/data-center/mnt/glusterSD/192.168.3.10:_data/a08822ec-3f5b-4dba-ac2d-5510f0b4b6a2/dom_md/metadata'
cmd=['/usr/bin/taskset', '--cpu-list', '0-39', '/usr/bin/dd',
u'if=/rhev/data-center/mnt/glusterSD/192.168.3.10:_data/a08822ec-3f5b-4dba-ac2d-5510f0b4b6a2/dom_md/metadata',
'of=/dev/null', 'bs=4096', 'count=1', 'iflag=direct'] delay=0.00
DEBUG::2017-03-10 01:26:14,481::asyncevent::564::storage.asyncevent::(reap)
Process  terminated (count=1)
DEBUG::2017-03-10
01:26:14,481::check::327::storage.check::(_check_completed) FINISH check
u'/rhev/data-center/mnt/glusterSD/192.168.3.10:_data/a08822ec-3f5b-4dba-ac2d-5510f0b4b6a2/dom_md/metadata'
rc=0 err=bytearray(b'0+1 records in\n0+1 records out\n300 bytes (300 B)
copied, 8.7603e-05 s, 3.4 MB/s\n') elapsed=0.06


On 10 March 2017 at 10:40, Ian Neilsen  wrote:

> Hi All
>
> I had a storage issue with my gluster volumes running under ovirt hosted.
> I now cannot start the hosted engine manager vm from "hosted-engine
> --vm-start".
> I've scoured the net to find a way, but can't seem to find anything
> concrete.
>
> Running Centos7, ovirt 4.0 and gluster 3.8.9
>
> How do I recover the engine manager. Im at a loss!
>
> Engine Status = score between nodes was 0 for all, now node 1 is reading
> 3400, but all others are 0
>
> {"reason": "bad vm status", "health": "bad", "vm": "down", "detail":
> "down"}
>
>
> Logs from agent.log
> ==
>
> INFO::2017-03-09 19:32:52,600::state_decorators::51::ovirt_hosted_
> engine_ha.agent.hosted_engine.HostedEngine::(check) Global maintenance
> detected
> INFO::2017-03-09 19:32:52,603::hosted_engine::612::ovirt_hosted_engine_ha.
> agent.hosted_engine.HostedEngine::(_initialize_vdsm) Initializing VDSM
> INFO::2017-03-09 19:32:54,820::hosted_engine::639::ovirt_hosted_engine_ha.
> agent.hosted_engine.HostedEngine::(_initialize_storage_images) Connecting
> the storage
> INFO::2017-03-09 19:32:54,821::storage_server::
> 219::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
> Connecting storage server
> INFO::2017-03-09 19:32:59,194::storage_server::
> 226::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
> Connecting storage server
> INFO::2017-03-09 19:32:59,211::storage_server::
> 233::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
> Refreshing the storage domain
> INFO::2017-03-09 19:32:59,328::hosted_engine::666::ovirt_hosted_engine_ha.
> agent.hosted_engine.HostedEngine::(_initialize_storage_images) Preparing
> images
> INFO::2017-03-09 
> 19:32:59,328::image::126::ovirt_hosted_engine_ha.lib.image.Image::(prepare_images)
> Preparing images
> INFO::2017-03-09 19:33:01,748::hosted_engine::669::ovirt_hosted_engine_ha.
> agent.hosted_engine.HostedEngine::(_initialize_storage_images) Reloading
> vm.conf from the shared storage domain
> INFO::2017-03-09 

Re: [ovirt-users] Unable to add permissions for LDAP users

2017-03-10 Thread Ondra Machacek
On Thu, Mar 9, 2017 at 2:22 PM, Richard Neuboeck 
wrote:

> Hi,
>
> I seem to experience the same problem right now and am at a bit of a
> loss as to where to dig for some more troubleshooting information. I
> would highly appreciate some help.
>
> Here is what I have and what I did:
>
> ovirt-engine-4.1.0.4-1.el7.centos.noarch
> ovirt-engine-extension-aaa-ldap-1.3.0-1.el7.noarch
>
> I executed ovirt-engine-extension-aaa-ldap-setup. My LDAP provider
> is 389ds (FreeIPA).


So what's your provider 389ds or FreeIPA?

Note that both use differrent unique ID. IPA is using 'ipaUniqueID',
and 389ds is using 'nsuniqueid'. DId you tried both?


> I can successfully run a search and also login
> from the setup script.
>
> After running the setup I rebootet the Engine VM to make sure
> everything is restarted.
>
> In the web UI configuration for 'System Permissions' I'm able to
> find users from LDAP but when I try to 'Add' a selected user the UI
> shows me this error: 'User admin@internal-authz failed to grant
> permission for Role SuperUser on System to User/Group .'.
>
> In then engine.log the following lines are generated:
> 2017-03-09 14:02:49,308+01 INFO
> [org.ovirt.engine.core.bll.AddSystemPermissionCommand]
> (org.ovirt.thread.pool-6-thread-4)
> [1ebae5e0-e5f6-49ba-ac80-95266c582893] Running command:
> AddSystemPermissionCommand internal: false. Entities affected :  ID:
> aaa0----123456789aaa Type: SystemAction group
> MANIPULATE_PERMISSIONS with role type USER,  ID:
> aaa0----123456789aaa Type: SystemAction group
> ADD_USERS_AND_GROUPS_FROM_DIRECTORY with role type USER
> 2017-03-09 14:02:49,319+01 ERROR
> [org.ovirt.engine.core.bll.AddSystemPermissionCommand]
> (org.ovirt.thread.pool-6-thread-4)
> [1ebae5e0-e5f6-49ba-ac80-95266c582893] Transaction rolled-back for
> command 'org.ovirt.engine.core.bll.AddSystemPermissionCommand'.
> 2017-03-09 14:02:49,328+01 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (org.ovirt.thread.pool-6-thread-4)
> [1ebae5e0-e5f6-49ba-ac80-95266c582893] EVENT_ID:
> USER_ADD_SYSTEM_PERMISSION_FAILED(867), Correlation ID:
> 1ebae5e0-e5f6-49ba-ac80-95266c582893, Call Stack: null, Custom Event
> ID: -1, Message: User admin@internal-authz failed to grant
> permission for Role SuperUser on System to User/Group .
>
>
> So far I've re-run the ldap-setup routine. I made sure all newly
> generated files in /etc/ovirt-engine/[aaa|extensions.d] are owned by
> ovirt:ovirt (instead of root) and have 0600 as permission (instead
> of 0644). That didn't change anything.
>
> I've also found an older bug report but for oVirt 3.5
> https://bugzilla.redhat.com/show_bug.cgi?id=1121954
> That didn't reveal any new either.
>
> Any ideas what I could try next?
>
> Thanks!
> Cheers
> Richard
>
>
>
>
> On 10/06/2016 04:36 PM, Ondra Machacek wrote:
> > On 10/06/2016 01:47 PM, Michael Burch wrote:
> >> I'm using the latest ovirt on CentOS7 with the aaa-ldap extension.
> >> I can
> >> successfully authenticate as an LDAP user. I can also login as
> >> admin@internal and search for, find, and select LDAP users but I
> >> cannot
> >> add permissions for them. Each time I get the error "User
> >> admin@internal-authz failed to grant permission for Role UserRole on
> >> System to User/Group ."
> >
> > This error usually means bad unique attribute used.
> >
> >>
> >>
> >> I have no control over the LDAP server, which uses custom
> >> objectClasses
> >> and uses groupOfNames instead of PosixGroups. I assume I need to set
> >> sequence variables to accommodate our group configuration but I'm
> >> at a
> >> loss as to where to begin. the The config I have is as follows:
> >>
> >>
> >> include = 
> >>
> >> vars.server = labauth.lan.lab.org
> >>
> >> pool.authz.auth.type = none
> >> pool.default.serverset.type = single
> >> pool.default.serverset.single.server = ${global:vars.server}
> >> pool.default.ssl.startTLS = true
> >> pool.default.ssl.insecure = true
> >>
> >> pool.default.connection-options.connectTimeoutMillis = 1
> >> pool.default.connection-options.responseTimeoutMillis = 9
> >> sequence-init.init.100-my-basedn-init-vars = my-basedn-init-vars
> >> sequence.my-basedn-init-vars.010.description = set baseDN
> >> sequence.my-basedn-init-vars.010.type = var-set
> >> sequence.my-basedn-init-vars.010.var-set.variable = simple_baseDN
> >> sequence.my-basedn-init-vars.010.var-set.value = o=LANLAB
> >>
> >> sequence-init.init.101-my-objectclass-init-vars =
> >> my-objectclass-init-vars
> >> sequence.my-objectclass-init-vars.020.description = set objectClass
> >> sequence.my-objectclass-init-vars.020.type = var-set
> >> sequence.my-objectclass-init-vars.020.var-set.variable =
> >> simple_filterUserObject
> >> sequence.my-objectclass-init-vars.020.var-set.value =
> >> (objectClass=labPerson)(uid=*)
> >>
> >> search.default.search-request.derefPolicy = NEVER
> >>
> >> sequence-init.init.900-local-init-vars = local-init-vars
> 

Re: [ovirt-users] Unable to add permissions for LDAP users

2017-03-10 Thread Richard Neuboeck
On 03/10/2017 09:46 AM, Ondra Machacek wrote:

> So what's your provider 389ds or FreeIPA?
> 
> Note that both use differrent unique ID. IPA is using 'ipaUniqueID',
> and 389ds is using 'nsuniqueid'. DId you tried both?

Thanks for pointing that out! It works perfectly if I use IPA.
I didn't know they have different identifiers (though it might have
been obvious to me since there is a separate IPA option...). I clung
to the thought that FreeIPA uses 389ds internally.

Thanks a lot!
Richard

> 
> I can successfully run a search and also login
> from the setup script.
> 
> After running the setup I rebootet the Engine VM to make sure
> everything is restarted.
> 
> In the web UI configuration for 'System Permissions' I'm able to
> find users from LDAP but when I try to 'Add' a selected user the UI
> shows me this error: 'User admin@internal-authz failed to grant
> permission for Role SuperUser on System to User/Group .'.
> 
> In then engine.log the following lines are generated:
> 2017-03-09 14:02:49,308+01 INFO
> [org.ovirt.engine.core.bll.AddSystemPermissionCommand]
> (org.ovirt.thread.pool-6-thread-4)
> [1ebae5e0-e5f6-49ba-ac80-95266c582893] Running command:
> AddSystemPermissionCommand internal: false. Entities affected :  ID:
> aaa0----123456789aaa Type: SystemAction group
> MANIPULATE_PERMISSIONS with role type USER,  ID:
> aaa0----123456789aaa Type: SystemAction group
> ADD_USERS_AND_GROUPS_FROM_DIRECTORY with role type USER
> 2017-03-09 14:02:49,319+01 ERROR
> [org.ovirt.engine.core.bll.AddSystemPermissionCommand]
> (org.ovirt.thread.pool-6-thread-4)
> [1ebae5e0-e5f6-49ba-ac80-95266c582893] Transaction rolled-back for
> command 'org.ovirt.engine.core.bll.AddSystemPermissionCommand'.
> 2017-03-09 14:02:49,328+01 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (org.ovirt.thread.pool-6-thread-4)
> [1ebae5e0-e5f6-49ba-ac80-95266c582893] EVENT_ID:
> USER_ADD_SYSTEM_PERMISSION_FAILED(867), Correlation ID:
> 1ebae5e0-e5f6-49ba-ac80-95266c582893, Call Stack: null, Custom Event
> ID: -1, Message: User admin@internal-authz failed to grant
> permission for Role SuperUser on System to User/Group .
> 
> 
> So far I've re-run the ldap-setup routine. I made sure all newly
> generated files in /etc/ovirt-engine/[aaa|extensions.d] are owned by
> ovirt:ovirt (instead of root) and have 0600 as permission (instead
> of 0644). That didn't change anything.
> 
> I've also found an older bug report but for oVirt 3.5
> https://bugzilla.redhat.com/show_bug.cgi?id=1121954
> 
> That didn't reveal any new either.
> 
> Any ideas what I could try next?
> 
> Thanks!
> Cheers
> Richard
> 
> 
> 
> 
> On 10/06/2016 04:36 PM, Ondra Machacek wrote:
> > On 10/06/2016 01:47 PM, Michael Burch wrote:
> >> I'm using the latest ovirt on CentOS7 with the aaa-ldap
> extension.
> >> I can
> >> successfully authenticate as an LDAP user. I can also login as
> >> admin@internal and search for, find, and select LDAP users but I
> >> cannot
> >> add permissions for them. Each time I get the error "User
> >> admin@internal-authz failed to grant permission for Role
> UserRole on
> >> System to User/Group ."
> >
> > This error usually means bad unique attribute used.
> >
> >>
> >>
> >> I have no control over the LDAP server, which uses custom
> >> objectClasses
> >> and uses groupOfNames instead of PosixGroups. I assume I need
> to set
> >> sequence variables to accommodate our group configuration but I'm
> >> at a
> >> loss as to where to begin. the The config I have is as follows:
> >>
> >>
> >> include = 
> >>
> >> vars.server = labauth.lan.lab.org 
> >>
> >> pool.authz.auth.type = none
> >> pool.default.serverset.type = single
> >> pool.default.serverset.single.server = ${global:vars.server}
> >> pool.default.ssl.startTLS = true
> >> pool.default.ssl.insecure = true
> >>
> >> pool.default.connection-options.connectTimeoutMillis = 1
> >> pool.default.connection-options.responseTimeoutMillis = 9
> >> sequence-init.init.100-my-basedn-init-vars = my-basedn-init-vars
> >> sequence.my-basedn-init-vars.010.description = set baseDN
> >> sequence.my-basedn-init-vars.010.type = var-set
> >> sequence.my-basedn-init-vars.010.var-set.variable = simple_baseDN
> >> sequence.my-basedn-init-vars.010.var-set.value = o=LANLAB
> >>
> >> sequence-init.init.101-my-objectclass-init-vars =
> >> my-objectclass-init-vars
> >> sequence.my-objectclass-init-vars.020.description = set
> objectClass
> >> sequence.my-objectclass-init-vars.020.type = var-set
> >> 

Re: [ovirt-users] Passing VLAN trunk to VM

2017-03-10 Thread Nathanaël Blanchet

You can try to passthrough a dedicated nic for the pfsense vm.

Note if you need several (up to 64) vms with a trunk and if your (often 
10Gb )nic supports virtual function, you can use sr-iov so as to share 
your PV into 64 VFs.



Le 09/03/2017 à 20:40, Rogério Ceni Coelho a écrit :

Hi,

Ovirt user interface does not allow to input 4095 as a tag vlan number 
... Only values between 0 and 4094.


This is useful to me too. Maybe any other way ?

Em qui, 9 de mar de 2017 às 16:15, FERNANDO FREDIANI 
> escreveu:


Have you tried use Vlan 4095 ? On VMware it used to be the way to
pass all Vlans from a vSwitch to a Vlan in a single port. And yes
I have used it also for pfSense.

Fernando


On 09/03/2017 16:09, Simon Vincent wrote:

Is it possible to pass multiple VLANs to a VM (pfSense) using a
single virtual NIC? All my existing oVirt networks are setup as a
single tagged VLAN. I know this didn't used to be supported but
wondered if this has changed. My other option is to pass each
VLAN as a separate NIC to the VM however if I needed to add a new
VLAN I would have to add a new interface and reboot the VM as
hot-add of NICs is not supported by pfSense.




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


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



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


--
Nathanaël Blanchet

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

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