Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Yaniv Dary
Did you install the host side VIF driver?

Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109

Tel : +972 (9) 7692306
8272306
Email: yd...@redhat.com
IRC : ydary


On Wed, Dec 28, 2016 at 1:39 AM, Sverker Abrahamsson <
sver...@abrahamsson.com> wrote:

> Hi
> For long time I've been looking for proper support in ovirt for Open
> vSwitch so I'm happy that it is moving in the right direction. However,
> there seems to still be a dependency on a ovirtmgmt bridge and I'm unable
> to move that to the OVN provider.
>
> The hosting center where I rent hw instances has a bit special network
> setup, so I have one physical network port with a /32 netmask and
> point-to-point config to router. The physical port I connect to a ovs
> bridge which has the public ip. Since ovirt always messes up the network
> config when I've tried to let it have access to the network config for the
> physical port, I've set eht0 and ovsbridge0 as hidden in vdsm.conf.
>
> I then create a bridge for use with ovirt, with a private address. With
> the OVN provider I am now able to import these into the engine and it looks
> good. When creating a VM I can select that it will have a vNic on my OVS
> bridge.
>
> However, I can't start the VM as an exception is thrown in the log:
>
> 2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
> (default task-5) [3c882d53] Error during ValidateFailure.:
> java.lang.NullPointerException
> at org.ovirt.engine.core.bll.scheduling.policyunits.
> NetworkPolicyUnit.validateRequiredNetworksAvaila
> ble(NetworkPolicyUnit.java:140) [bll.jar:]
> at org.ovirt.engine.core.bll.scheduling.policyunits.
> NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69) [bll.jar:]
> at org.ovirt.engine.core.bll.scheduling.SchedulingManager.
> runInternalFilters(SchedulingManager.java:597) [bll.jar:]
> at org.ovirt.engine.core.bll.scheduling.SchedulingManager.
> runFilters(SchedulingManager.java:564) [bll.jar:]
> at org.ovirt.engine.core.bll.scheduling.SchedulingManager.
> canSchedule(SchedulingManager.java:494) [bll.jar:]
> at org.ovirt.engine.core.bll.validator.RunVmValidator.
> canRunVm(RunVmValidator.java:133) [bll.jar:]
> at 
> org.ovirt.engine.core.bll.RunVmCommand.validate(RunVmCommand.java:940)
> [bll.jar:]
> at 
> org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886)
> [bll.jar:]
> at 
> org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:366)
> [bll.jar:]
> at org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRu
> nner.canRunActions(PrevalidatingMultipleActionsRunner.java:113) [bll.jar:]
> at org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRu
> nner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99) [bll.jar:]
> at org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRu
> nner.execute(PrevalidatingMultipleActionsRunner.java:76) [bll.jar:]
> at 
> org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:613)
> [bll.jar:]
> at 
> org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:583)
> [bll.jar:]
>
> Looking at that section of code where the exception is thrown, I see that
> it iterates over host networks to find required networks, which I assume is
> ovirtmgmt. In the host network setup dialog I don't see any networks at all
> but it lists ovirtmgmt as required. It also list the OVN networks but these
> can't be statically assigned as they are added dynamically when needed,
> which is fine.
>
> I believe that I either need to remove ovirtmgmt network or configure that
> it is provided by the OVN provider, but neither is possible. Preferably it
> shouldn't be hardcoded which network is management and mandatory but be
> possible to configure.
>
> /Sverker
> Den 2016-12-27 kl. 17:10, skrev Marcin Mirecki:
>
> The following is a new meeting request:
>
> Subject: OVN Deep Dive for oVirt 4.1
> Organizer: "Marcin Mirecki"  
>
> Time: Wednesday, January 11, 2017, 4:00:00 PM - 5:00:00 PM GMT +01:00 
> Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
>
> Invitees: users@ovirt.org
>
>
> *~*~*~*~*~*~*~*~*~*
>
> OVN (Open Virtual Networking) is a new network virtualization project that
> brings virtual networking to Open vSwitch.
> OVN is now availble to use as a tech preview in oVirt. It is made available
> using the oVirt external network providers API, which allows using external
> network management software inside environments managed by oVirt.
> The integration with OVN will allow users to take advantage of native OVS
> support for software defined networks.
>
> The advantages of using OVN:
> - ability to use large number of networks with no need for multiple host NICs
>   or VLAN use
> - ability to set up new network without any changes to the physical 
> infrastructure
> - easier to maintain due to centralized management
> - good traffic 

Re: [ovirt-users] How to setup OVS using python SDK ?

2016-12-28 Thread Yaniv Dary
You should not use the OVS hook or native implementation.
We don't feel this feature is ready and we stopped its development recently.
You should look at the OVN implementation, there is a deep dive planned for
this soon, please look it up.

Feature Page:
https://www.ovirt.org//develop/release-management/features/ovirt-ovn-provider/
Blog Post:
https://www.ovirt.org/blog/2016/11/ovirt-provider-ovn/



Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109

Tel : +972 (9) 7692306
8272306
Email: yd...@redhat.com
IRC : ydary


On Mon, Dec 26, 2016 at 5:15 PM, TranceWorldLogic . <
tranceworldlo...@gmail.com> wrote:

> Hi,
>
> I found a way to update property in setup network as shown below
>
> # Get the reference to the hosts service:
> hosts_service = connection.system_service().hosts_service()
> myhost = hosts_service.list(search='name=myhost')[0]
>
> myhost_service = hosts_service.host_service(myhost.id)
> mynet_attached_services = myhost_service.network_attachments_service()
>
> for mynet_attachment in mynet_attached_services.list():
> if mynet_attachment.network.name == "mynet":
> print "Found : %s"%(mynet_attachment.network.name)
> 
> mynet_attached_services.attachment_service(mynet_attachment.id).update(
> attachment=types.NetworkAttachment( properties=[types.Property("ovs","1")]
> ) )
> else:
> print "Not Found : %s"%(mynet_attachment.network.name)
>
> Please find below ovs output.
> # ovs-vsctl show
> Bridge "vdsmbr_tJ9jxY5o"
> Port "em2"
> Interface "em2"
> Port "vdsmbr_tJ9jxY5o"
> Interface "vdsmbr_tJ9jxY5o"
> type: internal
> Port mynet
> Interface mynet
> type: internal
> ovs_version: "2.4.0"
>
>
> But ovirt is showing me "out-of-sync" message.
>
> *Can someone explain me why it shown as out-of-sync ?*
> *How ovirt determine sync on logical network ?*
>
>
> Thanks,
> ~Rohit
>
>
>
> On Mon, Dec 26, 2016 at 7:04 PM, TranceWorldLogic . <
> tranceworldlo...@gmail.com> wrote:
>
>> Hi,
>>
>> Thanks for providing script it is working fine.
>>
>> But it not complete, would you help me to complete step 2 ?
>>
>> https://www.ovirt.org/networking/ovs/
>> Setup network
>>
>> In the oVirt UI open the 'Setup Host Networks' dialog. Proceed to editing
>> a desired logical network's properties. Among them you will find 'ovs', set
>> it to 'true' or '1' to mark is as a OVS Network.
>>
>>
>> And have one doubt.
>>
>> Why we have to set ovs property two time ?
>>
>>
>> Thanks,
>> ~Rohit
>>
>>
>> On Tue, Dec 20, 2016 at 7:44 PM, Juan Hernández 
>> wrote:
>>
>>> On 12/20/2016 02:19 PM, TranceWorldLogic . wrote:
>>> > Hi,
>>> >
>>> > I am trying to setup OVS network using ovirt and found guide as shown
>>> below:
>>> > https://www.ovirt.org/networking/ovs/
>>> >
>>> > Then, I tried to explore "vNic Profile" in sdk but not found any ovs
>>> > profile in types.py.
>>> > Can anyone help me how to setup ovs using python sdk ?
>>> > I am using ovirtsdk4 (4.0 version).
>>> >
>>>
>>> Should be something like this:
>>>
>>> ---8<---
>>> #!/usr/bin/env python
>>> # -*- coding: utf-8 -*-
>>>
>>> #
>>> # Copyright (c) 2016 Red Hat, Inc.
>>> #
>>> # Licensed under the Apache License, Version 2.0 (the "License");
>>> # you may not use this file except in compliance with the License.
>>> # You may obtain a copy of the License at
>>> #
>>> #   http://www.apache.org/licenses/LICENSE-2.0
>>> #
>>> # Unless required by applicable law or agreed to in writing, software
>>> # distributed under the License is distributed on an "AS IS" BASIS,
>>> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>> implied.
>>> # See the License for the specific language governing permissions and
>>> # limitations under the License.
>>> #
>>>
>>> import logging
>>>
>>> import ovirtsdk4 as sdk
>>> import ovirtsdk4.types as types
>>>
>>> logging.basicConfig(level=logging.DEBUG, filename='example.log')
>>>
>>> # This example will connect to the server and create a logical network
>>> # that using Open vSwitch. Note that in order for this to work the
>>> # engine has to be configured to use Open vSwitch, as described here:
>>> #
>>> #   https://www.ovirt.org/networking/ovs
>>> #
>>> # Specifcally you need to run the following commands in the machine
>>> # where the engine is running:
>>> #
>>> #   engine-config -s CustomDeviceProperties="{type=
>>> interface;prop={ovs=.*}}"
>>> #   engine-config -s
>>> 'UserDefinedNetworkCustomProperties=ovs=.*;ovs_aa_sid=.*'
>>> #   systemctl restart ovirt-engine
>>>
>>> # Create the connection to the server:
>>> connection = sdk.Connection(
>>> url='https://engine41.example.com/ovirt-engine/api',
>>> username='admin@internal',
>>> password='redhat123',
>>> ca_file='ca.pem',
>>> debug=True,
>>> log=logging.getLogger(),
>>> )
>>>
>>> # Get the reference to the root of the tree of services

Re: [ovirt-users] problem to start vm after disk resizing

2016-12-28 Thread Fred Rolland
Hi,

What version are you using?

The LV should not have been changed,
Were there any steps done directly on the storage not via the engine ?

Please perform a getDeviceList and check the output on each of the hosts
and see that the device that has been increased is reported with the right
size on all of the hosts.

Thanks,

Fred


2016-12-27 11:24 GMT+02:00 vasily.lamykin :

> Hello,
>
> I resize Lun. I click “+” in domain manage. After this I want start my vm
> and get error:
>
> Unable to get volume size for domain d0466995-2cfc-4a24-aaf9-85740b8b707d
> volume a5c0f0c6-565b-497a-add1-4a1630327384.
>
> In lvs I see that name of lv has been changed. But ovirt didn’t change
> name.
>
> How can I prevent this problem in future, and how can I recover my vm?
>
>
>
> Vdsm.log – log from node where I tried to start vm.
>
> Engine.log – log from engine grep’ed  by vm name.
>
>
>
> P.S. I have double error when lun has been resized and plus button clicked:
>
> “Not all the hosts are seeing the same LUN size.” What I must do to
> prevent trouble in this case?
>
>
>
> *Василий Ламыкин*
>
> Старший инженер по эксплуатации сервисных платформ
>
> Эксплуатация сети
>
> Столичный филиал ПАО «МегаФон»
>
> +7 (926) 500-3308 <+7%20926%20500-33-08>
>
> [image: МегаФон лого+знак РУС B2C]
>
>
>
> --
>
> Информация в этом сообщении предназначена исключительно для конкретных
> лиц, которым она адресована. В сообщении может содержаться конфиденциальная
> информация, которая не может быть раскрыта или использована кем-либо, кроме
> адресатов. Если вы не адресат этого сообщения, то использование,
> переадресация, копирование или распространение содержания сообщения или его
> части незаконно и запрещено. Если Вы получили это сообщение ошибочно,
> пожалуйста, незамедлительно сообщите отправителю об этом и удалите со всем
> содержимым само сообщение и любые возможные его копии и приложения.
>
> The information contained in this communication is intended solely for the
> use of the individual or entity to whom it is addressed and others
> authorized to receive it. It may contain confidential or legally privileged
> information. The contents may not be disclosed or used by anyone other than
> the addressee. If you are not the intended recipient(s), any use,
> disclosure, copying, distribution or any action taken or omitted to be
> taken in reliance on it is prohibited and may be unlawful. If you have
> received this communication in error please notify us immediately by
> responding to this email and then delete the e-mail and all attachments and
> any copies thereof.
>
> (c)20mf50
>
> ___
> 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] [HEADS UP] CentOS 7.3 is rolling out, need qemu-kvm-ev 2.6

2016-12-28 Thread Gianluca Cecchi
On Tue, Dec 27, 2016 at 5:58 PM, Christophe TREFOIS <
christophe.tref...@uni.lu> wrote:

> Hi,
>
>
>
> The package starts with q, yet you pasted only ovirt and vdsm from yum
> update.
>
>
>
> Can you paste complete output of yum update?
>
>
>
> Also, the qemu package should be there when you go to 7.3
>
>
>
> http://mirror.centos.org/centos-7/7.3.1611/virt/x86_64/kvm-common/
>
>
>

As I wrote, no qemu package proposed. Because oVirt provided qemu is
greater in version in respect with 7.3
In fact, as I already wrote, I have now
qemu-kvm-common-ev-2.3.0-31.el7.16.1.x86_64
qemu-img-ev-2.3.0-31.el7.16.1.x86_64
qemu-kvm-ev-2.3.0-31.el7.16.1.x86_64
qemu-kvm-tools-ev-2.3.0-31.el7.16.1.x86_64

Your link doesn't map with any repo I have or oVirt configures... so my
system cannot catch its packages

Regarding CentOS 7.3
I find qemu-kvm-1.5.3-126.el7.x86_64.rpm here:
http://mirror.centos.org/centos/7/os/x86_64/Packages/
and it should be the version delivered with CentOS 7.3 (dated 20/11)
No qemu packages in
http://mirror.centos.org/centos/7/updates/x86_64/Packages/
So it means no updates for it.

My current repositories:
[root@ractor ~]# ls -1 /etc/yum.repos.d/
CentOS-Base.repo
CentOS-CR.repo
CentOS-Debuginfo.repo
CentOS-fasttrack.repo
CentOS-Media.repo
CentOS-Sources.repo
CentOS-Vault.repo
ovirt-3.6-dependencies.repo
ovirt-3.6.repo
ovirt-4.0-dependencies.repo
ovirt-4.0.repo
[root@ractor ~]#


[root@ractor ~]# grep kvm /etc/yum.repos.d/*repo
[root@ractor ~]#

[root@ractor ~]# egrep "enabled|\[" /etc/yum.repos.d/*repo
/etc/yum.repos.d/CentOS-Base.repo:[base]
/etc/yum.repos.d/CentOS-Base.repo:[updates]
/etc/yum.repos.d/CentOS-Base.repo:[extras]
/etc/yum.repos.d/CentOS-Base.repo:[centosplus]
/etc/yum.repos.d/CentOS-Base.repo:enabled=0
/etc/yum.repos.d/CentOS-CR.repo:[cr]
/etc/yum.repos.d/CentOS-CR.repo:enabled=0
/etc/yum.repos.d/CentOS-Debuginfo.repo:[base-debuginfo]
/etc/yum.repos.d/CentOS-Debuginfo.repo:enabled=0
/etc/yum.repos.d/CentOS-fasttrack.repo:[fasttrack]
/etc/yum.repos.d/CentOS-fasttrack.repo:enabled=0
/etc/yum.repos.d/CentOS-Media.repo:#  yum --enablerepo=c7-media [command]
/etc/yum.repos.d/CentOS-Media.repo:#  yum --disablerepo=\*
--enablerepo=c7-media [command]
/etc/yum.repos.d/CentOS-Media.repo:[c7-media]
/etc/yum.repos.d/CentOS-Media.repo:enabled=0
/etc/yum.repos.d/CentOS-Sources.repo:[base-source]
/etc/yum.repos.d/CentOS-Sources.repo:enabled=0
/etc/yum.repos.d/CentOS-Sources.repo:[updates-source]
/etc/yum.repos.d/CentOS-Sources.repo:enabled=0
/etc/yum.repos.d/CentOS-Sources.repo:[extras-source]
/etc/yum.repos.d/CentOS-Sources.repo:enabled=0
/etc/yum.repos.d/CentOS-Sources.repo:[centosplus-source]
/etc/yum.repos.d/CentOS-Sources.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.0.1406-base]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.0.1406-updates]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.0.1406-extras]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.0.1406-centosplus]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.0.1406-fasttrack]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.1.1503-base]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.1.1503-updates]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.1.1503-extras]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.1.1503-centosplus]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/CentOS-Vault.repo:[C7.1.1503-fasttrack]
/etc/yum.repos.d/CentOS-Vault.repo:enabled=0
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:[ovirt-3.6-epel]
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:[ovirt-3.6-centos-gluster37]
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:[ovirt-3.6-patternfly1-noarch-epel]
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:[virtio-win-stable]
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:[centos-ovirt36]
/etc/yum.repos.d/ovirt-3.6-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-3.6.repo:[ovirt-3.6]
/etc/yum.repos.d/ovirt-3.6.repo:enabled=1
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:[ovirt-4.0-epel]
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:[ovirt-4.0-centos-gluster37]
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:[ovirt-4.0-patternfly1-noarch-epel]
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:[virtio-win-stable]
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:enabled=1
/etc/yum.repos.d/ovirt-4.0-dependencies.repo:[centos-ovirt40-release]
/etc/yum.repos.d/ovirt-4.0

[ovirt-users] hosted_storage locked

2016-12-28 Thread Gary Pedretty
Just setup a new hosted-engine Data Center.  With 3 hosts and gluster based 
storage domains.  Used the latest installers.  Everything went well, until I 
got the engine deployed and each host setup and went to the web interface for 
the first time.

After adding the master storage domain, the hosted_storage added itself like 
usual, but remained locked.   Everything is working just fine with the 
exception of no listing of the engine as a VM under that tab or the icon on the 
current host.   The Volumes tab does not show anything on the hosted_storage, 
but all the other volumes including the master data and a second data all show 
normal status for bricks.  Error log is not reporting anything unusual either.  
All the gluster volumes including the engine (hosted_storage) show good status 
via command line in the hosts.

Going to let it run for a day or so before I add any VMs.

Any ideas?

Gary


Gary Pedrettyg...@ravnalaska.net 

Systems Manager  www.flyravn.com 

Ravn Alaska   /\907-450-7251
5245 Airport Industrial Road /  \/\ 907-450-7238 fax
Fairbanks, Alaska  99709/\  /\ \ Second greatest commandment
Serving All of Alaska  /  \/  /\  \ \/\   “Love your neighbor as
Really loving the record green up date! Summmer!!   yourself” Matt 22:39













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


Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson

Hi Yaniv
I have installed ovirt-provider-ovn-1.0-1.fc24.noarch.rpm and 
ovirt-provider-ovn-driver-1.0-1.fc24.noarch.rpm

/Sverker

Den 2016-12-28 kl. 09:24, skrev Yaniv Dary:

Did you install the host side VIF driver?

Yaniv Dary Technical Product Manager Red Hat Israel Ltd. 34 Jerusalem 
Road Building A, 4th floor Ra'anana, Israel 4350109 Tel : +972 (9) 
7692306 8272306 Email: yd...@redhat.com  IRC 
: ydary


On Wed, Dec 28, 2016 at 1:39 AM, Sverker Abrahamsson 
mailto:sver...@abrahamsson.com>> wrote:


Hi
For long time I've been looking for proper support in ovirt for
Open vSwitch so I'm happy that it is moving in the right
direction. However, there seems to still be a dependency on a
ovirtmgmt bridge and I'm unable to move that to the OVN provider.

The hosting center where I rent hw instances has a bit special
network setup, so I have one physical network port with a /32
netmask and point-to-point config to router. The physical port I
connect to a ovs bridge which has the public ip. Since ovirt
always messes up the network config when I've tried to let it have
access to the network config for the physical port, I've set eht0
and ovsbridge0 as hidden in vdsm.conf.

I then create a bridge for use with ovirt, with a private address.
With the OVN provider I am now able to import these into the
engine and it looks good. When creating a VM I can select that it
will have a vNic on my OVS bridge.

However, I can't start the VM as an exception is thrown in the log:

2016-12-28 00:13:33,350 ERROR
[org.ovirt.engine.core.bll.RunVmCommand] (default task-5)
[3c882d53] Error during ValidateFailure.:
java.lang.NullPointerException
at

org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.validateRequiredNetworksAvailable(NetworkPolicyUnit.java:140)
[bll.jar:]
at

org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69)
[bll.jar:]
at

org.ovirt.engine.core.bll.scheduling.SchedulingManager.runInternalFilters(SchedulingManager.java:597)
[bll.jar:]
at

org.ovirt.engine.core.bll.scheduling.SchedulingManager.runFilters(SchedulingManager.java:564)
[bll.jar:]
at

org.ovirt.engine.core.bll.scheduling.SchedulingManager.canSchedule(SchedulingManager.java:494)
[bll.jar:]
at

org.ovirt.engine.core.bll.validator.RunVmValidator.canRunVm(RunVmValidator.java:133)
[bll.jar:]
at
org.ovirt.engine.core.bll.RunVmCommand.validate(RunVmCommand.java:940)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:366)
[bll.jar:]
at

org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
[bll.jar:]
at

org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
[bll.jar:]
at

org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(PrevalidatingMultipleActionsRunner.java:76)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:613)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:583)
[bll.jar:]

Looking at that section of code where the exception is thrown, I
see that it iterates over host networks to find required networks,
which I assume is ovirtmgmt. In the host network setup dialog I
don't see any networks at all but it lists ovirtmgmt as required.
It also list the OVN networks but these can't be statically
assigned as they are added dynamically when needed, which is fine.

I believe that I either need to remove ovirtmgmt network or
configure that it is provided by the OVN provider, but neither is
possible. Preferably it shouldn't be hardcoded which network is
management and mandatory but be possible to configure.

/Sverker

Den 2016-12-27 kl. 17:10, skrev Marcin Mirecki:

The following is a new meeting request:

Subject: OVN Deep Dive for oVirt 4.1
Organizer: "Marcin Mirecki"   


Time: Wednesday, January 11, 2017, 4:00:00 PM - 5:00:00 PM GMT +01:00 
Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
  
Invitees:users@ovirt.org   



*~*~*~*~*~*~*~*~*~*

OVN (Open Virtual Networking) is a new network virtualization project that
brings virtual networking to Open vSwitch.
OVN is now availble to use as a tech preview in oVirt. It is made available
using the oVirt external network providers API, which allows using external
network management software ins

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Marcin Mirecki
Hi Sverker,

The management network is mandatory on each host. It's used by the
engine to communicate with the host.
Looking at your description and the exception it looks like it is missing. 
The error is caused by not having any network for the host 
(network list retrieved in InterfaceDaoImpl.getHostNetworksByCluster - which
gets all the networks on nics for a host from vds_interface table in the DB).

Could you maybe create a virtual nic connected to ovsbridge0 (as I understand 
you
have no physical nic available) and use this for the management network?

> I then create a bridge for use with ovirt, with a private address.
I'm not quite sure I understand. Is this yet another bridge connected to 
ovsbridge0?
You could also attach the vnic for the management network here if need be.

Please keep in mind that OVN has no use in setting up the management network.
The OVN provider can only handle external networks, which can not be used for a
management network.

Marcin


- Original Message -
> From: "Sverker Abrahamsson" 
> To: users@ovirt.org
> Sent: Wednesday, December 28, 2016 12:39:59 AM
> Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network
> 
> 
> 
> Hi
> For long time I've been looking for proper support in ovirt for Open vSwitch
> so I'm happy that it is moving in the right direction. However, there seems
> to still be a dependency on a ovirtmgmt bridge and I'm unable to move that
> to the OVN provider.
> 
> The hosting center where I rent hw instances has a bit special network setup,
> so I have one physical network port with a /32 netmask and point-to-point
> config to router. The physical port I connect to a ovs bridge which has the
> public ip. Since ovirt always messes up the network config when I've tried
> to let it have access to the network config for the physical port, I've set
> eht0 and ovsbridge0 as hidden in vdsm.conf.
> 
> 
> I then create a bridge for use with ovirt, with a private address. With the
> OVN provider I am now able to import these into the engine and it looks
> good. When creating a VM I can select that it will have a vNic on my OVS
> bridge.
> 
> However, I can't start the VM as an exception is thrown in the log:
> 
> 2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
> (default task-5) [3c882d53] Error during ValidateFailure.:
> java.lang.NullPointerException
> at
> org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.validateRequiredNetworksAvailable(NetworkPolicyUnit.java:140)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.scheduling.SchedulingManager.runInternalFilters(SchedulingManager.java:597)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.scheduling.SchedulingManager.runFilters(SchedulingManager.java:564)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.scheduling.SchedulingManager.canSchedule(SchedulingManager.java:494)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.validator.RunVmValidator.canRunVm(RunVmValidator.java:133)
> [bll.jar:]
> at org.ovirt.engine.core.bll.RunVmCommand.validate(RunVmCommand.java:940)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886)
> [bll.jar:]
> at org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:366)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
> [bll.jar:]
> at
> org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(PrevalidatingMultipleActionsRunner.java:76)
> [bll.jar:]
> at org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:613)
> [bll.jar:]
> at org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:583)
> [bll.jar:]
> 
> 
> Looking at that section of code where the exception is thrown, I see that it
> iterates over host networks to find required networks, which I assume is
> ovirtmgmt. In the host network setup dialog I don't see any networks at all
> but it lists ovirtmgmt as required. It also list the OVN networks but these
> can't be statically assigned as they are added dynamically when needed,
> which is fine.
> 
> I believe that I either need to remove ovirtmgmt network or configure that it
> is provided by the OVN provider, but neither is possible. Preferably it
> shouldn't be hardcoded which network is management and mandatory but be
> possible to configure.
> 
> /Sverker
> Den 2016-12-27 kl. 17:10, skrev Marcin Mirecki:
> 
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hosted_storage locked

2016-12-28 Thread Evgenia Tokar
Hi!

Can you attach the engine log from the hosted engine vm?

Thanks,
Jenny


On Wed, Dec 28, 2016 at 10:56 AM, Gary Pedretty  wrote:

> Just setup a new hosted-engine Data Center.  With 3 hosts and gluster
> based storage domains.  Used the latest installers.  Everything went well,
> until I got the engine deployed and each host setup and went to the web
> interface for the first time.
>
> After adding the master storage domain, the hosted_storage added itself
> like usual, but remained locked.   Everything is working just fine with the
> exception of no listing of the engine as a VM under that tab or the icon on
> the current host.   The Volumes tab does not show anything on the
> hosted_storage, but all the other volumes including the master data and a
> second data all show normal status for bricks.  Error log is not reporting
> anything unusual either.  All the gluster volumes including the engine
> (hosted_storage) show good status via command line in the hosts.
>
> Going to let it run for a day or so before I add any VMs.
>
> Any ideas?
>
> Gary
>
> 
> Gary Pedrettyg...@ravnalaska.net
> 
> Systems Manager  www.flyravn.com
> Ravn Alaska   /\907-450-7251
> <(907)%20450-7251>
> 5245 Airport Industrial Road /  \/\ 907-450-7238
> <(907)%20450-7238> fax
> Fairbanks, Alaska  99709/\  /\ \ Second greatest commandment
> Serving All of Alaska  /  \/  /\  \ \/\   “Love your neighbor as
> Really loving the record green up date! Summmer!!   yourself” Matt 22:39
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> 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] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson

Hi Marcin
Yes, that is my issue. I don't want to let ovirt/vdsm see eth0 nor 
ovsbridge0 since as soon as it sees them it messes up the network config 
so that the host will be unreachable.


I have an internal OVS bridge called ovirtbridge which has a port with 
IP address, but in the host network settings that port is not visible. 
It doesn't help to name it ovirtmgmt.


The engine is able to communicate with the host on the ip it has been 
given, it's just that it believes that it HAS to have a ovirtmgmt 
network which can't be on OVN.


/Sverker


Den 2016-12-28 kl. 10:45, skrev Marcin Mirecki:

Hi Sverker,

The management network is mandatory on each host. It's used by the
engine to communicate with the host.
Looking at your description and the exception it looks like it is missing.
The error is caused by not having any network for the host
(network list retrieved in InterfaceDaoImpl.getHostNetworksByCluster - which
gets all the networks on nics for a host from vds_interface table in the DB).

Could you maybe create a virtual nic connected to ovsbridge0 (as I understand 
you
have no physical nic available) and use this for the management network?


I then create a bridge for use with ovirt, with a private address.

I'm not quite sure I understand. Is this yet another bridge connected to 
ovsbridge0?
You could also attach the vnic for the management network here if need be.

Please keep in mind that OVN has no use in setting up the management network.
The OVN provider can only handle external networks, which can not be used for a
management network.

Marcin


- Original Message -

From: "Sverker Abrahamsson" 
To: users@ovirt.org
Sent: Wednesday, December 28, 2016 12:39:59 AM
Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network



Hi
For long time I've been looking for proper support in ovirt for Open vSwitch
so I'm happy that it is moving in the right direction. However, there seems
to still be a dependency on a ovirtmgmt bridge and I'm unable to move that
to the OVN provider.

The hosting center where I rent hw instances has a bit special network setup,
so I have one physical network port with a /32 netmask and point-to-point
config to router. The physical port I connect to a ovs bridge which has the
public ip. Since ovirt always messes up the network config when I've tried
to let it have access to the network config for the physical port, I've set
eht0 and ovsbridge0 as hidden in vdsm.conf.


I then create a bridge for use with ovirt, with a private address. With the
OVN provider I am now able to import these into the engine and it looks
good. When creating a VM I can select that it will have a vNic on my OVS
bridge.

However, I can't start the VM as an exception is thrown in the log:

2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
(default task-5) [3c882d53] Error during ValidateFailure.:
java.lang.NullPointerException
at
org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.validateRequiredNetworksAvailable(NetworkPolicyUnit.java:140)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.SchedulingManager.runInternalFilters(SchedulingManager.java:597)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.SchedulingManager.runFilters(SchedulingManager.java:564)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.SchedulingManager.canSchedule(SchedulingManager.java:494)
[bll.jar:]
at
org.ovirt.engine.core.bll.validator.RunVmValidator.canRunVm(RunVmValidator.java:133)
[bll.jar:]
at org.ovirt.engine.core.bll.RunVmCommand.validate(RunVmCommand.java:940)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886)
[bll.jar:]
at org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:366)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.execute(PrevalidatingMultipleActionsRunner.java:76)
[bll.jar:]
at org.ovirt.engine.core.bll.Backend.runMultipleActionsImpl(Backend.java:613)
[bll.jar:]
at org.ovirt.engine.core.bll.Backend.runMultipleActions(Backend.java:583)
[bll.jar:]


Looking at that section of code where the exception is thrown, I see that it
iterates over host networks to find required networks, which I assume is
ovirtmgmt. In the host network setup dialog I don't see any networks at all
but it lists ovirtmgmt as required. It also list the OVN networks but these
can't be statically assigned as they are added dynamically when needed,
which is fine.

I believe that I either need to remove ovirtmgmt network or configure that it
is provided by the OVN provider, but neither is possible. Preferably it
sho

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Marcin Mirecki
> I have an internal OVS bridge called ovirtbridge which has a port with
> IP address, but in the host network settings that port is not visible.

I just verified and unfortunately the virtual ports are not visible in engine 
to assign a network to :(
I'm afraid that the engine is not ready for such a scenario (even if it works).
Please give me some time to look for a solution.

- Original Message -
> From: "Sverker Abrahamsson" 
> To: "Marcin Mirecki" 
> Cc: "Ovirt Users" 
> Sent: Wednesday, December 28, 2016 11:48:24 AM
> Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network
> 
> Hi Marcin
> Yes, that is my issue. I don't want to let ovirt/vdsm see eth0 nor
> ovsbridge0 since as soon as it sees them it messes up the network config
> so that the host will be unreachable.
> 
> I have an internal OVS bridge called ovirtbridge which has a port with
> IP address, but in the host network settings that port is not visible.
> It doesn't help to name it ovirtmgmt.
> 
> The engine is able to communicate with the host on the ip it has been
> given, it's just that it believes that it HAS to have a ovirtmgmt
> network which can't be on OVN.
> 
> /Sverker
> 
> 
> Den 2016-12-28 kl. 10:45, skrev Marcin Mirecki:
> > Hi Sverker,
> >
> > The management network is mandatory on each host. It's used by the
> > engine to communicate with the host.
> > Looking at your description and the exception it looks like it is missing.
> > The error is caused by not having any network for the host
> > (network list retrieved in InterfaceDaoImpl.getHostNetworksByCluster -
> > which
> > gets all the networks on nics for a host from vds_interface table in the
> > DB).
> >
> > Could you maybe create a virtual nic connected to ovsbridge0 (as I
> > understand you
> > have no physical nic available) and use this for the management network?
> >
> >> I then create a bridge for use with ovirt, with a private address.
> > I'm not quite sure I understand. Is this yet another bridge connected to
> > ovsbridge0?
> > You could also attach the vnic for the management network here if need be.
> >
> > Please keep in mind that OVN has no use in setting up the management
> > network.
> > The OVN provider can only handle external networks, which can not be used
> > for a
> > management network.
> >
> > Marcin
> >
> >
> > - Original Message -
> >> From: "Sverker Abrahamsson" 
> >> To: users@ovirt.org
> >> Sent: Wednesday, December 28, 2016 12:39:59 AM
> >> Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network
> >>
> >>
> >>
> >> Hi
> >> For long time I've been looking for proper support in ovirt for Open
> >> vSwitch
> >> so I'm happy that it is moving in the right direction. However, there
> >> seems
> >> to still be a dependency on a ovirtmgmt bridge and I'm unable to move that
> >> to the OVN provider.
> >>
> >> The hosting center where I rent hw instances has a bit special network
> >> setup,
> >> so I have one physical network port with a /32 netmask and point-to-point
> >> config to router. The physical port I connect to a ovs bridge which has
> >> the
> >> public ip. Since ovirt always messes up the network config when I've tried
> >> to let it have access to the network config for the physical port, I've
> >> set
> >> eht0 and ovsbridge0 as hidden in vdsm.conf.
> >>
> >>
> >> I then create a bridge for use with ovirt, with a private address. With
> >> the
> >> OVN provider I am now able to import these into the engine and it looks
> >> good. When creating a VM I can select that it will have a vNic on my OVS
> >> bridge.
> >>
> >> However, I can't start the VM as an exception is thrown in the log:
> >>
> >> 2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
> >> (default task-5) [3c882d53] Error during ValidateFailure.:
> >> java.lang.NullPointerException
> >> at
> >> org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.validateRequiredNetworksAvailable(NetworkPolicyUnit.java:140)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.scheduling.SchedulingManager.runInternalFilters(SchedulingManager.java:597)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.scheduling.SchedulingManager.runFilters(SchedulingManager.java:564)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.scheduling.SchedulingManager.canSchedule(SchedulingManager.java:494)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.validator.RunVmValidator.canRunVm(RunVmValidator.java:133)
> >> [bll.jar:]
> >> at org.ovirt.engine.core.bll.RunVmCommand.validate(RunVmCommand.java:940)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:366)
> >> [bll.jar:]
> >> at
> >> org.ovirt.engine.core.bll.PrevalidatingMult

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Marcin Mirecki
Sverker,

Can you try adding a vnic named veth_* or dummy_*,
(or alternatively add the name of the vnic to 
vdsm.config fake_nics), and setup the management
network using this vnic?
I suppose adding the vnic you use for connecting
to the engine to fake_nics should make it visible
to the engine, and you should be able to use it for
the setup.

Marcin



- Original Message -
> From: "Marcin Mirecki" 
> To: "Sverker Abrahamsson" 
> Cc: "Ovirt Users" 
> Sent: Wednesday, December 28, 2016 12:06:26 PM
> Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network
> 
> > I have an internal OVS bridge called ovirtbridge which has a port with
> > IP address, but in the host network settings that port is not visible.
> 
> I just verified and unfortunately the virtual ports are not visible in engine
> to assign a network to :(
> I'm afraid that the engine is not ready for such a scenario (even if it
> works).
> Please give me some time to look for a solution.
> 
> - Original Message -
> > From: "Sverker Abrahamsson" 
> > To: "Marcin Mirecki" 
> > Cc: "Ovirt Users" 
> > Sent: Wednesday, December 28, 2016 11:48:24 AM
> > Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt
> > network
> > 
> > Hi Marcin
> > Yes, that is my issue. I don't want to let ovirt/vdsm see eth0 nor
> > ovsbridge0 since as soon as it sees them it messes up the network config
> > so that the host will be unreachable.
> > 
> > I have an internal OVS bridge called ovirtbridge which has a port with
> > IP address, but in the host network settings that port is not visible.
> > It doesn't help to name it ovirtmgmt.
> > 
> > The engine is able to communicate with the host on the ip it has been
> > given, it's just that it believes that it HAS to have a ovirtmgmt
> > network which can't be on OVN.
> > 
> > /Sverker
> > 
> > 
> > Den 2016-12-28 kl. 10:45, skrev Marcin Mirecki:
> > > Hi Sverker,
> > >
> > > The management network is mandatory on each host. It's used by the
> > > engine to communicate with the host.
> > > Looking at your description and the exception it looks like it is
> > > missing.
> > > The error is caused by not having any network for the host
> > > (network list retrieved in InterfaceDaoImpl.getHostNetworksByCluster -
> > > which
> > > gets all the networks on nics for a host from vds_interface table in the
> > > DB).
> > >
> > > Could you maybe create a virtual nic connected to ovsbridge0 (as I
> > > understand you
> > > have no physical nic available) and use this for the management network?
> > >
> > >> I then create a bridge for use with ovirt, with a private address.
> > > I'm not quite sure I understand. Is this yet another bridge connected to
> > > ovsbridge0?
> > > You could also attach the vnic for the management network here if need
> > > be.
> > >
> > > Please keep in mind that OVN has no use in setting up the management
> > > network.
> > > The OVN provider can only handle external networks, which can not be used
> > > for a
> > > management network.
> > >
> > > Marcin
> > >
> > >
> > > - Original Message -
> > >> From: "Sverker Abrahamsson" 
> > >> To: users@ovirt.org
> > >> Sent: Wednesday, December 28, 2016 12:39:59 AM
> > >> Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt
> > >> network
> > >>
> > >>
> > >>
> > >> Hi
> > >> For long time I've been looking for proper support in ovirt for Open
> > >> vSwitch
> > >> so I'm happy that it is moving in the right direction. However, there
> > >> seems
> > >> to still be a dependency on a ovirtmgmt bridge and I'm unable to move
> > >> that
> > >> to the OVN provider.
> > >>
> > >> The hosting center where I rent hw instances has a bit special network
> > >> setup,
> > >> so I have one physical network port with a /32 netmask and
> > >> point-to-point
> > >> config to router. The physical port I connect to a ovs bridge which has
> > >> the
> > >> public ip. Since ovirt always messes up the network config when I've
> > >> tried
> > >> to let it have access to the network config for the physical port, I've
> > >> set
> > >> eht0 and ovsbridge0 as hidden in vdsm.conf.
> > >>
> > >>
> > >> I then create a bridge for use with ovirt, with a private address. With
> > >> the
> > >> OVN provider I am now able to import these into the engine and it looks
> > >> good. When creating a VM I can select that it will have a vNic on my OVS
> > >> bridge.
> > >>
> > >> However, I can't start the VM as an exception is thrown in the log:
> > >>
> > >> 2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
> > >> (default task-5) [3c882d53] Error during ValidateFailure.:
> > >> java.lang.NullPointerException
> > >> at
> > >> org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.validateRequiredNetworksAvailable(NetworkPolicyUnit.java:140)
> > >> [bll.jar:]
> > >> at
> > >> org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69)
> > >> [bll.jar:]
> > 

Re: [ovirt-users] [ANN] oVirt 4.1.0 Second Beta Release is now available for testing

2016-12-28 Thread Nathanaël Blanchet

Hello,

On my 4.1 Second Beta test platform, I meet this issue on the three 
hosts : VDSM gaua3 command failed: 'exceptions.AttributeError'>:'NoneType' object has no attribute 
'statistics'">



Le 21/12/2016 à 16:12, Sandro Bonazzola a écrit :

The oVirt Project is pleased to announce the availability of the Second
Beta Release of oVirt 4.1.0 for testing, as of December 21st, 2016

This is pre-release software. Please take a look at our community page[1]
to know how to ask questions and interact with developers and users.
All issues or bugs should be reported via oVirt Bugzilla[2].
This pre-release should not to be used in production.

This release is available now for:
* Fedora 24 (tech preview)
* Red Hat Enterprise Linux 7.3 or later
* CentOS Linux (or similar) 7.3 or later

This release supports Hypervisor Hosts running:
* Red Hat Enterprise Linux 7.3 or later
* CentOS Linux (or similar) 7.3 or later
* Fedora 24 (tech preview)

See the release notes draft [3] for installation / upgrade 
instructions and

a list of new features and bugs fixed.

Notes:
- oVirt Live iso is already available
- oVirt Node NG iso will be available soon
- Hosted Engine appliance will be available soon
- above delay is due to jenkins issues building node and appliance, 
should be fixed by tomorrow.


An initial release management page including planned schedule is also
available[4]


Additional Resources:
* Read more about the oVirt 4.1.0 beta release highlights: 
http://www.ovirt.org/release/4.1.0/

* Get more oVirt Project updates on Twitter: https://twitter.com/ovirt
* Check out the latest project news on the oVirt blog: 
http://www.ovirt.org/blog/


[1] https://www.ovirt.org/community/
[2] https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt
[3] http://www.ovirt.org/release/4.1.0/
[4] 
http://www.ovirt.org/develop/release-management/releases/4.1/release-management/



--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com 


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


--
Nathanaël Blanchet

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

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


Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson
I have tried various variants to create an interface with the dummy 
driver, currently I have an interface dummy0 which is assigned to a 
legacy bridge ovirtmgmt but ovirt-engine doesn't see those neither.

/Sverker


Den 2016-12-28 kl. 12:06, skrev Marcin Mirecki:

I have an internal OVS bridge called ovirtbridge which has a port with
IP address, but in the host network settings that port is not visible.

I just verified and unfortunately the virtual ports are not visible in engine 
to assign a network to :(
I'm afraid that the engine is not ready for such a scenario (even if it works).
Please give me some time to look for a solution.

- Original Message -

From: "Sverker Abrahamsson" 
To: "Marcin Mirecki" 
Cc: "Ovirt Users" 
Sent: Wednesday, December 28, 2016 11:48:24 AM
Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

Hi Marcin
Yes, that is my issue. I don't want to let ovirt/vdsm see eth0 nor
ovsbridge0 since as soon as it sees them it messes up the network config
so that the host will be unreachable.

I have an internal OVS bridge called ovirtbridge which has a port with
IP address, but in the host network settings that port is not visible.
It doesn't help to name it ovirtmgmt.

The engine is able to communicate with the host on the ip it has been
given, it's just that it believes that it HAS to have a ovirtmgmt
network which can't be on OVN.

/Sverker


Den 2016-12-28 kl. 10:45, skrev Marcin Mirecki:

Hi Sverker,

The management network is mandatory on each host. It's used by the
engine to communicate with the host.
Looking at your description and the exception it looks like it is missing.
The error is caused by not having any network for the host
(network list retrieved in InterfaceDaoImpl.getHostNetworksByCluster -
which
gets all the networks on nics for a host from vds_interface table in the
DB).

Could you maybe create a virtual nic connected to ovsbridge0 (as I
understand you
have no physical nic available) and use this for the management network?


I then create a bridge for use with ovirt, with a private address.

I'm not quite sure I understand. Is this yet another bridge connected to
ovsbridge0?
You could also attach the vnic for the management network here if need be.

Please keep in mind that OVN has no use in setting up the management
network.
The OVN provider can only handle external networks, which can not be used
for a
management network.

Marcin


- Original Message -

From: "Sverker Abrahamsson" 
To: users@ovirt.org
Sent: Wednesday, December 28, 2016 12:39:59 AM
Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network



Hi
For long time I've been looking for proper support in ovirt for Open
vSwitch
so I'm happy that it is moving in the right direction. However, there
seems
to still be a dependency on a ovirtmgmt bridge and I'm unable to move that
to the OVN provider.

The hosting center where I rent hw instances has a bit special network
setup,
so I have one physical network port with a /32 netmask and point-to-point
config to router. The physical port I connect to a ovs bridge which has
the
public ip. Since ovirt always messes up the network config when I've tried
to let it have access to the network config for the physical port, I've
set
eht0 and ovsbridge0 as hidden in vdsm.conf.


I then create a bridge for use with ovirt, with a private address. With
the
OVN provider I am now able to import these into the engine and it looks
good. When creating a VM I can select that it will have a vNic on my OVS
bridge.

However, I can't start the VM as an exception is thrown in the log:

2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
(default task-5) [3c882d53] Error during ValidateFailure.:
java.lang.NullPointerException
at
org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.validateRequiredNetworksAvailable(NetworkPolicyUnit.java:140)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.policyunits.NetworkPolicyUnit.filter(NetworkPolicyUnit.java:69)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.SchedulingManager.runInternalFilters(SchedulingManager.java:597)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.SchedulingManager.runFilters(SchedulingManager.java:564)
[bll.jar:]
at
org.ovirt.engine.core.bll.scheduling.SchedulingManager.canSchedule(SchedulingManager.java:494)
[bll.jar:]
at
org.ovirt.engine.core.bll.validator.RunVmValidator.canRunVm(RunVmValidator.java:133)
[bll.jar:]
at org.ovirt.engine.core.bll.RunVmCommand.validate(RunVmCommand.java:940)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:886)
[bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:366)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.canRunActions(PrevalidatingMultipleActionsRunner.java:113)
[bll.jar:]
at
org.ovirt.engine.core.bll.PrevalidatingMultipleActionsRunner.invokeCommands(PrevalidatingMultipleActionsRunner.java:99

Re: [ovirt-users] [ANN] oVirt 4.1.0 Second Beta Release is now available for testing

2016-12-28 Thread Yaniv Bronheim
On Wed, Dec 28, 2016 at 3:43 PM, Nathanaël Blanchet 
wrote:

> Hello,
>
> On my 4.1 Second Beta test platform, I meet this issue on the three hosts
> : VDSM gaua3 command failed:  'exceptions.AttributeError'>:'NoneType'
> object has no attribute 'statistics'">
>

Hi Nathanael, Thank you for the report

please send also the following logs for deeper investigation
/var/log/vdsm.log
/var/log/supervdsm.log
/var/log/messages or joursnalctl -xn output

Also, please specify a bit the platform you are running on and when this
issue occurs

Greetings,
Yaniv Bronhaim.



>
> Le 21/12/2016 à 16:12, Sandro Bonazzola a écrit :
>
> The oVirt Project is pleased to announce the availability of the Second
> Beta Release of oVirt 4.1.0 for testing, as of December 21st, 2016
>
> This is pre-release software. Please take a look at our community page[1]
> to know how to ask questions and interact with developers and users.
> All issues or bugs should be reported via oVirt Bugzilla[2].
> This pre-release should not to be used in production.
>
> This release is available now for:
> * Fedora 24 (tech preview)
> * Red Hat Enterprise Linux 7.3 or later
> * CentOS Linux (or similar) 7.3 or later
>
> This release supports Hypervisor Hosts running:
> * Red Hat Enterprise Linux 7.3 or later
> * CentOS Linux (or similar) 7.3 or later
> * Fedora 24 (tech preview)
>
> See the release notes draft [3] for installation / upgrade instructions and
> a list of new features and bugs fixed.
>
> Notes:
> - oVirt Live iso is already available
> - oVirt Node NG iso will be available soon
> - Hosted Engine appliance will be available soon
> - above delay is due to jenkins issues building node and appliance, should
> be fixed by tomorrow.
>
> An initial release management page including planned schedule is also
> available[4]
>
>
> Additional Resources:
> * Read more about the oVirt 4.1.0 beta release highlights:
> http://www.ovirt.org/release/4.1.0/
> * Get more oVirt Project updates on Twitter: 
> https://twitter.com/ovirt
> * Check out the latest project news on the oVirt blog:
> http://www.ovirt.org/blog/
>
> [1] https://www.ovirt.org/community/
> [2] https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt
> [3] http://www.ovirt.org/release/4.1.0/
> [4] http://www.ovirt.org/develop/release-management/releases/4.
> 1/release-management/
>
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> Pôle Infrastrutures Informatiques
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5 
> Tél. 33 (0)4 67 54 84 55
> Fax  33 (0)4 67 54 84 14blanc...@abes.fr
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


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


Re: [ovirt-users] I wrote an oVirt thing

2016-12-28 Thread Nathanaël Blanchet

Hi,

I understand that ovirt-shell is deprecated, but I need it for the moment.

I've just done a pip install upgrade ovirt-engine-sdk-python on my 
ubuntu laptop and now ovirt-shell is totally broken, saying : 
ImportError: No module named ovirtsdk.xml.


Can I go back to the previous SDK? How can I fix it?

Thanks.


Le 29/11/2016 à 17:19, Juan Hernández a écrit :

On 11/29/2016 04:51 PM, Juan Hernández wrote:

On 11/29/2016 03:19 PM, Sandro Bonazzola wrote:


On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali mailto:oourf...@redhat.com>> wrote:

 BTW, the ovirt-shell is something we deprecated.

Can you please point me to the deprecation bug for it?
I can't see it
here: https://bugzilla.redhat.com/buglist.cgi?quicksearch=ovirt-shell

  


 It is working on top of the v3 api, which we plan to remove in 4.2.

Haven't seen a deprecation bug for this as well
in 
https://bugzilla.redhat.com/buglist.cgi?quicksearch=classification%3Aovirt%20v3%20api

If we want people to know about it we need to publish it somehow and for
the way we build release notes we need deprecation bugs for it to be
published.
  

There were no such bugs. I have just created them:

   Deprecate version 3 of the API
   https://bugzilla.redhat.com/1399724


This ^ bug had an important typo in the description that Martin Sivak
pointed out. I have closed it and replaced with this one, which is
hopefully more correct:

   Deprecate version 3 of the API
   https://bugzilla.redhat.com/1399750


   Deprecate version 3 of the Python SDK
   https://bugzilla.redhat.com/1399714

   Deprecate version 3 of the Java SDK
   https://bugzilla.redhat.com/1399717

   Deprecate the ovirt-shell tool
   https://bugzilla.redhat.com/1399709


 So better not use it.

 Alternatives are to use the SDKs according to your preference (we
 have Java, python and Ruby SDKs) or the ansible modules mentioned
 above by Moran (instead of writing scripts you can write playbooks
 to do various operations ).

 Regards,
 Oved


 On Nov 28, 2016 13:02, "Nathanaël Blanchet" mailto:blanc...@abes.fr>> wrote:



 Le 26/11/2016 à 22:40, Chris Cowley a écrit :

 A few reasons really. I fancied playing around with Click, so I made
 this as I was also digging around the oVirt API. My workstation at work
 is running Ubuntu, and I do not believe that ovirt-shell is packaged 
for it.

 sudo apt-get install -y python-pip
 sudo pip install kitchen
 sudo pip install ply
 sudo pip install ovirt-shell

 Also, choice is good.

 Finally: because I didn't think of it.

 On 26/11/16 22:24, Derek Atkins wrote:

 Hi Chris,

 Just a quick question, but, why not just use ovirt-shell?
 Or make this a wrapper around ovirt-shell?

 -derek

 On Sat, November 26, 2016 4:10 pm, Chris Cowley wrote:

 Hi all

 I started hacking together something last night to use as a CLI to
 manage my oVirt clusters.

 https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage
 

 Currently it can create/delete a VM, list the VMS, and I started a
 function to show the details, but all that does for now is return the 
ID.

 The plan is for it to evolve with my own needs, but I am open to
 ideas/PRs from the community.

 Disclaimer #1: I am a SysAdmin, not a developer. If you a proper
 developer, what you see may cause you physical pain.

 Disclaimer #2: My Gogs repo is behind my ADSL in rural France, be
 patient and I withold the right to not respect any sort of SLA :-)


 --
 Regards

 Chris Cowley
 http://about.me/chriscowley

 ___
 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
 


 ___
 Users mailing list
 Users@ovirt.org 

Re: [ovirt-users] I wrote an oVirt thing

2016-12-28 Thread Juan Hernández
On 12/28/2016 06:47 PM, Nathanaël Blanchet wrote:
> Hi,
> 
> I understand that ovirt-shell is deprecated, but I need it for the moment.
> 
> I've just done a pip install upgrade ovirt-engine-sdk-python on my
> ubuntu laptop and now ovirt-shell is totally broken, saying :
> ImportError: No module named ovirtsdk.xml.
> 
> Can I go back to the previous SDK? How can I fix it?
> 
> Thanks.
> 

The CLI depends completely on version 3 of the SDK, and it won't work
with version 4. You need to explicitly install version 3 of the SDK:

  pip install ovirt-engine-sdk-python==3.6.9.2

> 
> Le 29/11/2016 à 17:19, Juan Hernández a écrit :
>> On 11/29/2016 04:51 PM, Juan Hernández wrote:
>>> On 11/29/2016 03:19 PM, Sandro Bonazzola wrote:

 On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali >>> > wrote:

  BTW, the ovirt-shell is something we deprecated.

 Can you please point me to the deprecation bug for it?
 I can't see it
 here: https://bugzilla.redhat.com/buglist.cgi?quicksearch=ovirt-shell

  
  It is working on top of the v3 api, which we plan to remove in
 4.2.

 Haven't seen a deprecation bug for this as well
 in
 https://bugzilla.redhat.com/buglist.cgi?quicksearch=classification%3Aovirt%20v3%20api


 If we want people to know about it we need to publish it somehow and
 for
 the way we build release notes we need deprecation bugs for it to be
 published.
   
>>> There were no such bugs. I have just created them:
>>>
>>>Deprecate version 3 of the API
>>>https://bugzilla.redhat.com/1399724
>>>
>> This ^ bug had an important typo in the description that Martin Sivak
>> pointed out. I have closed it and replaced with this one, which is
>> hopefully more correct:
>>
>>Deprecate version 3 of the API
>>https://bugzilla.redhat.com/1399750
>>
>>>Deprecate version 3 of the Python SDK
>>>https://bugzilla.redhat.com/1399714
>>>
>>>Deprecate version 3 of the Java SDK
>>>https://bugzilla.redhat.com/1399717
>>>
>>>Deprecate the ovirt-shell tool
>>>https://bugzilla.redhat.com/1399709
>>>
  So better not use it.

  Alternatives are to use the SDKs according to your preference (we
  have Java, python and Ruby SDKs) or the ansible modules mentioned
  above by Moran (instead of writing scripts you can write playbooks
  to do various operations ).

  Regards,
  Oved


  On Nov 28, 2016 13:02, "Nathanaël Blanchet" >>>  > wrote:



  Le 26/11/2016 à 22:40, Chris Cowley a écrit :
>  A few reasons really. I fancied playing around with Click,
> so I made
>  this as I was also digging around the oVirt API. My
> workstation at work
>  is running Ubuntu, and I do not believe that ovirt-shell
> is packaged for it.
  sudo apt-get install -y python-pip
  sudo pip install kitchen
  sudo pip install ply
  sudo pip install ovirt-shell
>  Also, choice is good.
>
>  Finally: because I didn't think of it.
>
>  On 26/11/16 22:24, Derek Atkins wrote:
>>  Hi Chris,
>>
>>  Just a quick question, but, why not just use ovirt-shell?
>>  Or make this a wrapper around ovirt-shell?
>>
>>  -derek
>>
>>  On Sat, November 26, 2016 4:10 pm, Chris Cowley wrote:
>>>  Hi all
>>>
>>>  I started hacking together something last night to use
>>> as a CLI to
>>>  manage my oVirt clusters.
>>>
>>>  https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage
>>>  
>>>
>>>  Currently it can create/delete a VM, list the VMS, and I
>>> started a
>>>  function to show the details, but all that does for now
>>> is return the ID.
>>>
>>>  The plan is for it to evolve with my own needs, but I am
>>> open to
>>>  ideas/PRs from the community.
>>>
>>>  Disclaimer #1: I am a SysAdmin, not a developer. If you
>>> a proper
>>>  developer, what you see may cause you physical pain.
>>>
>>>  Disclaimer #2: My Gogs repo is behind my ADSL in rural
>>> France, be
>>>  patient and I withold the right to not respect any sort
>>> of SLA :-)
>>>
>>>
>>>  --
>>>  Regards
>>>
>>>  Chris Cowley
>>>  http://about.me/chriscowley
>>>
>>>  ___
>>>  Users mailing list
>>>  Users@ovirt.org 
>>>  http://lists.ovirt.org/mailman/listinfo/users
>>>  

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson

Hi
I first tried to set device name to dummy_0, but then ifup did not 
succeed in creating the device unless I first did 'ip link add dummy_0 
type dummy' but then it would not suceed to establish the if on reboot.


Setting fake_nics = dummy0 would not work neither, but this works:

fake_nics = dummy*

The engine is now able to find the if and assign bridge ovirtmgmt to it.

However, I then run into the next issue when starting a VM:

2016-12-28 22:28:23,897 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(ForkJoinPool-1-worker-2) [] Correlation ID: null, Call Stack: null, 
Custom Event ID: -1, Message: VM CentOS7 is down with error. Exit 
message: Cannot get interface MTU on 'br-int': No such device.


This VM has a nic on ovirtbridge, which comes from the OVN provider.

/Sverker

Den 2016-12-28 kl. 14:38, skrev Marcin Mirecki:

Sverker,

Can you try adding a vnic named veth_* or dummy_*,
(or alternatively add the name of the vnic to
vdsm.config fake_nics), and setup the management
network using this vnic?
I suppose adding the vnic you use for connecting
to the engine to fake_nics should make it visible
to the engine, and you should be able to use it for
the setup.

Marcin



- Original Message -

From: "Marcin Mirecki" 
To: "Sverker Abrahamsson" 
Cc: "Ovirt Users" 
Sent: Wednesday, December 28, 2016 12:06:26 PM
Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network


I have an internal OVS bridge called ovirtbridge which has a port with
IP address, but in the host network settings that port is not visible.

I just verified and unfortunately the virtual ports are not visible in engine
to assign a network to :(
I'm afraid that the engine is not ready for such a scenario (even if it
works).
Please give me some time to look for a solution.

- Original Message -

From: "Sverker Abrahamsson" 
To: "Marcin Mirecki" 
Cc: "Ovirt Users" 
Sent: Wednesday, December 28, 2016 11:48:24 AM
Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt
network

Hi Marcin
Yes, that is my issue. I don't want to let ovirt/vdsm see eth0 nor
ovsbridge0 since as soon as it sees them it messes up the network config
so that the host will be unreachable.

I have an internal OVS bridge called ovirtbridge which has a port with
IP address, but in the host network settings that port is not visible.
It doesn't help to name it ovirtmgmt.

The engine is able to communicate with the host on the ip it has been
given, it's just that it believes that it HAS to have a ovirtmgmt
network which can't be on OVN.

/Sverker


Den 2016-12-28 kl. 10:45, skrev Marcin Mirecki:

Hi Sverker,

The management network is mandatory on each host. It's used by the
engine to communicate with the host.
Looking at your description and the exception it looks like it is
missing.
The error is caused by not having any network for the host
(network list retrieved in InterfaceDaoImpl.getHostNetworksByCluster -
which
gets all the networks on nics for a host from vds_interface table in the
DB).

Could you maybe create a virtual nic connected to ovsbridge0 (as I
understand you
have no physical nic available) and use this for the management network?


I then create a bridge for use with ovirt, with a private address.

I'm not quite sure I understand. Is this yet another bridge connected to
ovsbridge0?
You could also attach the vnic for the management network here if need
be.

Please keep in mind that OVN has no use in setting up the management
network.
The OVN provider can only handle external networks, which can not be used
for a
management network.

Marcin


- Original Message -

From: "Sverker Abrahamsson" 
To: users@ovirt.org
Sent: Wednesday, December 28, 2016 12:39:59 AM
Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt
network



Hi
For long time I've been looking for proper support in ovirt for Open
vSwitch
so I'm happy that it is moving in the right direction. However, there
seems
to still be a dependency on a ovirtmgmt bridge and I'm unable to move
that
to the OVN provider.

The hosting center where I rent hw instances has a bit special network
setup,
so I have one physical network port with a /32 netmask and
point-to-point
config to router. The physical port I connect to a ovs bridge which has
the
public ip. Since ovirt always messes up the network config when I've
tried
to let it have access to the network config for the physical port, I've
set
eht0 and ovsbridge0 as hidden in vdsm.conf.


I then create a bridge for use with ovirt, with a private address. With
the
OVN provider I am now able to import these into the engine and it looks
good. When creating a VM I can select that it will have a vNic on my OVS
bridge.

However, I can't start the VM as an exception is thrown in the log:

2016-12-28 00:13:33,350 ERROR [org.ovirt.engine.core.bll.RunVmCommand]
(default task-5) [3c882d53] Error during ValidateFailure.:
java.lang.NullPointerException
at
org.ovirt.engine.

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson

In addition I had to add an alias to modprobe:

[root@h2 modprobe.d]# cat dummy.conf
alias dummy0 dummy


Den 2016-12-28 kl. 23:03, skrev Sverker Abrahamsson:

Hi
I first tried to set device name to dummy_0, but then ifup did not 
succeed in creating the device unless I first did 'ip link add dummy_0 
type dummy' but then it would not suceed to establish the if on reboot.


Setting fake_nics = dummy0 would not work neither, but this works:

fake_nics = dummy*

The engine is now able to find the if and assign bridge ovirtmgmt to it.

However, I then run into the next issue when starting a VM:

2016-12-28 22:28:23,897 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(ForkJoinPool-1-worker-2) [] Correlation ID: null, Call Stack: null, 
Custom Event ID: -1, Message: VM CentOS7 is down with error. Exit 
message: Cannot get interface MTU on 'br-int': No such device.


This VM has a nic on ovirtbridge, which comes from the OVN provider.

/Sverker

Den 2016-12-28 kl. 14:38, skrev Marcin Mirecki:

Sverker,

Can you try adding a vnic named veth_* or dummy_*,
(or alternatively add the name of the vnic to
vdsm.config fake_nics), and setup the management
network using this vnic?
I suppose adding the vnic you use for connecting
to the engine to fake_nics should make it visible
to the engine, and you should be able to use it for
the setup.

Marcin



- Original Message -

From: "Marcin Mirecki" 
To: "Sverker Abrahamsson" 
Cc: "Ovirt Users" 
Sent: Wednesday, December 28, 2016 12:06:26 PM
Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory 
ovirtmgmt network



I have an internal OVS bridge called ovirtbridge which has a port with
IP address, but in the host network settings that port is not visible.
I just verified and unfortunately the virtual ports are not visible 
in engine

to assign a network to :(
I'm afraid that the engine is not ready for such a scenario (even if it
works).
Please give me some time to look for a solution.

- Original Message -

From: "Sverker Abrahamsson" 
To: "Marcin Mirecki" 
Cc: "Ovirt Users" 
Sent: Wednesday, December 28, 2016 11:48:24 AM
Subject: Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt
network

Hi Marcin
Yes, that is my issue. I don't want to let ovirt/vdsm see eth0 nor
ovsbridge0 since as soon as it sees them it messes up the network 
config

so that the host will be unreachable.

I have an internal OVS bridge called ovirtbridge which has a port with
IP address, but in the host network settings that port is not visible.
It doesn't help to name it ovirtmgmt.

The engine is able to communicate with the host on the ip it has been
given, it's just that it believes that it HAS to have a ovirtmgmt
network which can't be on OVN.

/Sverker


Den 2016-12-28 kl. 10:45, skrev Marcin Mirecki:

Hi Sverker,

The management network is mandatory on each host. It's used by the
engine to communicate with the host.
Looking at your description and the exception it looks like it is
missing.
The error is caused by not having any network for the host
(network list retrieved in 
InterfaceDaoImpl.getHostNetworksByCluster -

which
gets all the networks on nics for a host from vds_interface table 
in the

DB).

Could you maybe create a virtual nic connected to ovsbridge0 (as I
understand you
have no physical nic available) and use this for the management 
network?



I then create a bridge for use with ovirt, with a private address.
I'm not quite sure I understand. Is this yet another bridge 
connected to

ovsbridge0?
You could also attach the vnic for the management network here if 
need

be.

Please keep in mind that OVN has no use in setting up the management
network.
The OVN provider can only handle external networks, which can not 
be used

for a
management network.

Marcin


- Original Message -

From: "Sverker Abrahamsson" 
To: users@ovirt.org
Sent: Wednesday, December 28, 2016 12:39:59 AM
Subject: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt
network



Hi
For long time I've been looking for proper support in ovirt for Open
vSwitch
so I'm happy that it is moving in the right direction. However, 
there

seems
to still be a dependency on a ovirtmgmt bridge and I'm unable to 
move

that
to the OVN provider.

The hosting center where I rent hw instances has a bit special 
network

setup,
so I have one physical network port with a /32 netmask and
point-to-point
config to router. The physical port I connect to a ovs bridge 
which has

the
public ip. Since ovirt always messes up the network config when I've
tried
to let it have access to the network config for the physical 
port, I've

set
eht0 and ovsbridge0 as hidden in vdsm.conf.


I then create a bridge for use with ovirt, with a private 
address. With

the
OVN provider I am now able to import these into the engine and it 
looks
good. When creating a VM I can select that it will have a vNic on 
my OVS

bridge.

However, I can't start the VM as an exception is thrown in 

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson

Googling on the message about br-int suggested adding that bridge to ovs:

ovs-vsctl add-br br-int

Then the VM is able to boot, but it fails to get network connectivity. 
Output in /var/log/messages:


Dec 28 23:31:35 h2 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl 
--timeout=5 -- --if-exists del-port vnet0 -- add-port br-int vnet0 -- 
set Interface vnet0 "external-ids:attached-mac=\"00:1a:4a:16:01:51\"" -- 
set Interface vnet0 
"external-ids:iface-id=\"e8853aac-8a75-41b0-8010-e630017dcdd8\"" -- set 
Interface vnet0 
"external-ids:vm-id=\"b9440d60-ef5a-4e2b-83cf-081df7c09e6f\"" -- set 
Interface vnet0 external-ids:iface-status=active

Dec 28 23:31:35 h2 kernel: device vnet0 entered promiscuous mode
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -D PREROUTING -i vnet0 -j 
libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -D POSTROUTING -o vnet0 -j 
libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -L libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -L libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-arp-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-arp-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev 
--physdev-is-bridged --physdev-out vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev --physdev-out vnet0 
-g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-in -m physdev --physdev-in vnet0 
-g FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-host-in -m physdev --physdev-in 
vnet0 -g HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -F FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -X FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -F FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -X FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -F HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -X HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -E FP-vnet0 FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -E FJ-vnet0 FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -E HJ-vnet0 HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-out -m physdev 
--physdev-is-bridged --physdev-out vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-out -m physdev --physdev-out 
vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-in -m physdev --physdev-in vnet0 
-g FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-host-in -m physdev --physdev-in 
vnet0 -g HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -F FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -X FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -F FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -X FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -F HI-vnet0' failed:
Dec 28 23

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Sverker Abrahamsson
From 
/usr/libexec/vdsm/hooks/before_device_create/ovirt_provider_ovn_hook 
(installed by ovirt-provider-ovn-driver rpm):


BRIDGE_NAME = 'br-int'


Den 2016-12-28 kl. 23:56, skrev Sverker Abrahamsson:

Googling on the message about br-int suggested adding that bridge to ovs:

ovs-vsctl add-br br-int

Then the VM is able to boot, but it fails to get network connectivity. 
Output in /var/log/messages:


Dec 28 23:31:35 h2 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl 
--timeout=5 -- --if-exists del-port vnet0 -- add-port br-int vnet0 -- 
set Interface vnet0 "external-ids:attached-mac=\"00:1a:4a:16:01:51\"" 
-- set Interface vnet0 
"external-ids:iface-id=\"e8853aac-8a75-41b0-8010-e630017dcdd8\"" -- 
set Interface vnet0 
"external-ids:vm-id=\"b9440d60-ef5a-4e2b-83cf-081df7c09e6f\"" -- set 
Interface vnet0 external-ids:iface-status=active

Dec 28 23:31:35 h2 kernel: device vnet0 entered promiscuous mode
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -D PREROUTING -i vnet0 -j 
libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -D POSTROUTING -o vnet0 -j 
libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -L libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -L libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X libvirt-J-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X libvirt-P-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-arp-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-arp-mac' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev 
--physdev-is-bridged --physdev-out vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev --physdev-out 
vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-in -m physdev --physdev-in vnet0 
-g FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -D libvirt-host-in -m physdev --physdev-in 
vnet0 -g HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -F FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -X FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -F FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -X FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -F HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -X HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -E FP-vnet0 FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -E FJ-vnet0 FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/iptables -w2 -w -E HJ-vnet0 HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-out -m physdev 
--physdev-is-bridged --physdev-out vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-out -m physdev --physdev-out 
vnet0 -g FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-in -m physdev --physdev-in 
vnet0 -g FI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -D libvirt-host-in -m physdev --physdev-in 
vnet0 -g HI-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -F FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -X FO-vnet0' failed:
Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED: 
'/usr/sbin/ip6tables -w2 -w -F FI-vnet0' failed:
Dec 28 23:31:35 h

[ovirt-users] New oVirt user

2016-12-28 Thread Jim Kusznir
Hello:

I've been involved in virtualization from its very early days, and been
running linux virtualization solutions off and on for a decade.
Previously, I was always frustrated with the long feature list offered by
many linux virtualization systems but with no reasonable way to manage
that.  It seemed that I had to spend an inordinate amount of time doing
everything by hand.  Thus, when I found oVirt, I was ecstatic!
Unfortunately, at that time I changed employment (or rather left employment
and became self-employed), and didn't have any reason to build my own virt
cluster..until now!

So I'm back with oVirt, and actually deploying a small 3-node cluster.  I
intend to run on it:
VoIP Server
Web Server
Business backend server
UniFi management server
Monitoring server (zabbix)

Not a heavy load, and 3 servers is probably overkill, but I need this to
work, and it sounds like 3 is the magic entry level for all the
cluster/failover stuff to work.  For now, my intent is to use a single SSD
on each node with gluster for the storage backend.  I figure if all the
failover stuff actually working, if I loose a node due to disk failure, its
not the end of the world.  I can rebuild it, reconnect gluster, and restart
everything.  As this is for a startup business, funds are thin at the
moment, so I'm trying to cut a couple corners that don't affect overall
reliability.  If this side of the business grows more, I would likely
invest in some dedicated servers.

So far, I've based my efforts around this guide on oVirt's website:
http://www.ovirt.org/blog/2016/08/up-and-running-with-ovirt-4-0-and-gluster-storage/

My cluster is currently functioning, but not entirely correctly.  Some of
it is gut feel, some of it is specific test cases (more to follow).  First,
some areas that lacked clarity and the choices I made in them:

Early on, Jason talks about using a dedicated gluster network for the
gluster storage sync'ing.  I liked that idea, and as I had 4 nics on each
machine, I thought dedicating one or two to gluster would be fine.  So, on
my clean, bare machines, I setup another network with private NiCs and put
it on a standalone switch.  I added hostnames with a designator (-g on the
end) for the IPs for all three nodes into /etc/hosts on all three nodes so
now each node can resolve itself and the other nodes on the -g name (and
private IP) as well as their main host name and "more public" (but not
public) IP.

Then, for gdeploy, I put the hostnames in as the -g hostnames, as I didn't
see anywhere to tell gluster to use the private network.  I think this is a
place I went wrong, but didn't realize it until the end

I set up the gdeploy script (it took a few times, and a few OS rebuilds to
get it just right...), and ran it, and it was successful!  When complete, I
had a working gluster cluster and the right software installed on each node!

I set up the engine on node1, and that worked, and I was able to log in to
the web gui.  I mistakenly skipped the web gui enable gluster service
before doing the engine vm reboot to complete the engine setup process, but
I did go back in after the reboot and do that.  After doing that, I was
notified in the gui that there were additional nodes, did I want to add
them.  Initially, I skipped that and went back to the command line as Jason
suggests.  Unfortunately, it could not find any other nodes through his
method, and it didn't work.  Combine that with the warnings that I should
not be using the command line method, and it would be removed in the next
release, I went back to the gui and attempted to add the nodes that way.

Here's where things appeared to go wrong...It showed me two additional
nodes, but ONLY by their -g (private gluster) hostname.  And the ssh
fingerprints were not populated, so it would not let me proceed.  After
messing with this for a bit, I realized that the engine cannot get to the
nodes via the gluster interface (and as far as I knew, it shouldn't).
Working late at night, I let myself "hack it up" a bit, and on the engine
VM, I added /etc/hosts entries for the -g hostnames pointing to the main
IPs.  It then populated the ssh host keys and let me add them in.  Ok, so
things appear to be working..kinda.  I noticed at this point that ALL
aspects of the gui became VERY slow.  Clicking in and typing in any field
felt like I was on ssh over a satellite link.  Everything felt a bit worse
than the early days of vSpherePainfully slow.  but it was still
working, so I pressed on.

I configured gluster storage.  Eventually I was successful, but initially
it would only let me add a "Data" storage domain, the drop-down menu did
NOT contain iso, export, or anything else...  Somehow, on its own, after
leaving and re-entering that tab a few times, iso and export materialized
on their own in the menu, so I was able to finish that setup.

Ok, all looks good.  I wanted to try out his little tip on adding a VM,
too.  I saw "ovirt-imiage-repository" in the "external provid

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread TranceWorldLogic .
Hi All,

I am also facing same issue (unable to change ovirtmgmt to OVS type).

On git repository, I saw some commit in which added support to switch
network type in host. but there is red cross across those changes.
Would I get to know will this issue get solve in 4.1 release ?

I tried modifying ifcfg-ovirtmgmt and ifcfg-eth0 file to support OVS and
then rebooted m/c.
When m/c got bootup I found that configuration made in ifcfg got
overwritten by vdsm.
Is their any workaround ?

Thanks,
~Rohit


On Thu, Dec 29, 2016 at 5:17 AM, Sverker Abrahamsson <
sver...@abrahamsson.com> wrote:

> From /usr/libexec/vdsm/hooks/before_device_create/ovirt_provider_ovn_hook
> (installed by ovirt-provider-ovn-driver rpm):
>
> BRIDGE_NAME = 'br-int'
>
>
>
> Den 2016-12-28 kl. 23:56, skrev Sverker Abrahamsson:
>
>> Googling on the message about br-int suggested adding that bridge to ovs:
>>
>> ovs-vsctl add-br br-int
>>
>> Then the VM is able to boot, but it fails to get network connectivity.
>> Output in /var/log/messages:
>>
>> Dec 28 23:31:35 h2 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl
>> --timeout=5 -- --if-exists del-port vnet0 -- add-port br-int vnet0 -- set
>> Interface vnet0 "external-ids:attached-mac=\"00:1a:4a:16:01:51\"" -- set
>> Interface vnet0 "external-ids:iface-id=\"e8853
>> aac-8a75-41b0-8010-e630017dcdd8\"" -- set Interface vnet0
>> "external-ids:vm-id=\"b9440d60-ef5a-4e2b-83cf-081df7c09e6f\"" -- set
>> Interface vnet0 external-ids:iface-status=active
>> Dec 28 23:31:35 h2 kernel: device vnet0 entered promiscuous mode
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -D PREROUTING -i vnet0 -j
>> libvirt-J-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -D POSTROUTING -o vnet0 -j
>> libvirt-P-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -L libvirt-J-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -L libvirt-P-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -F libvirt-J-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -X libvirt-J-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -F libvirt-P-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -X libvirt-P-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-mac' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-mac' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-arp-mac' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-arp-mac' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev --physdev-is-bridged
>> --physdev-out vnet0 -g FO-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev --physdev-out vnet0 -g
>> FO-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -D libvirt-in -m physdev --physdev-in vnet0 -g
>> FI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -D libvirt-host-in -m physdev --physdev-in vnet0
>> -g HI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -F FO-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -X FO-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -F FI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -X FI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -F HI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -X HI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -E FP-vnet0 FO-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -E FJ-vnet0 FI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/iptables -w2 -w -E HJ-vnet0 HI-vnet0' failed:
>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>> '/usr/sbin/ip6tables -w2 -w -D libvirt-out -m physdev --physdev-is-bridged
>> --physdev-out vnet0 -g FO-vnet0' failed:
>> Dec 28 

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2016-12-28 Thread Edward Haas
Guys,

In oVirt, when a host is added to the cluster it must have a NIC/Bond for
management.
Currently, it does not support anything else, unless one uses hooks to fake
things (but I do not recommend it, it will just make things complex and may
collide with other options).
I am not sure if such a feature was already suggested, please check BZ and
if there is no RFE for it, you are welcome to file one.

The OVN part is not related to the management and NIC issue, it assumes the
host is deployed as expected and that Engine can manage it.
It is there to allow OVN to manage VM networks.

Regarding the last message about OVS: Please note that OVN as an external
provider uses OVS, but it is not related to the host networks migrating to
OVS based (From the Linux bridge).
oVirt networking distinguish between host networks and VM networks, the
work on OVS for host networks has started on 4.0 and unfortunately is not
yet finished.
I suggest opening a separate thread about OVS for host networks if more
information is needed (there are some existing threads about it).

Thanks,
Edy.



On Thu, Dec 29, 2016 at 8:46 AM, TranceWorldLogic . <
tranceworldlo...@gmail.com> wrote:

> Hi All,
>
> I am also facing same issue (unable to change ovirtmgmt to OVS type).
>
> On git repository, I saw some commit in which added support to switch
> network type in host. but there is red cross across those changes.
> Would I get to know will this issue get solve in 4.1 release ?
>
> I tried modifying ifcfg-ovirtmgmt and ifcfg-eth0 file to support OVS and
> then rebooted m/c.
> When m/c got bootup I found that configuration made in ifcfg got
> overwritten by vdsm.
> Is their any workaround ?
>
> Thanks,
> ~Rohit
>
>
> On Thu, Dec 29, 2016 at 5:17 AM, Sverker Abrahamsson <
> sver...@abrahamsson.com> wrote:
>
>> From /usr/libexec/vdsm/hooks/before_device_create/ovirt_provider_ovn_hook
>> (installed by ovirt-provider-ovn-driver rpm):
>>
>> BRIDGE_NAME = 'br-int'
>>
>>
>>
>> Den 2016-12-28 kl. 23:56, skrev Sverker Abrahamsson:
>>
>>> Googling on the message about br-int suggested adding that bridge to ovs:
>>>
>>> ovs-vsctl add-br br-int
>>>
>>> Then the VM is able to boot, but it fails to get network connectivity.
>>> Output in /var/log/messages:
>>>
>>> Dec 28 23:31:35 h2 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl
>>> --timeout=5 -- --if-exists del-port vnet0 -- add-port br-int vnet0 -- set
>>> Interface vnet0 "external-ids:attached-mac=\"00:1a:4a:16:01:51\"" --
>>> set Interface vnet0 "external-ids:iface-id=\"e8853
>>> aac-8a75-41b0-8010-e630017dcdd8\"" -- set Interface vnet0
>>> "external-ids:vm-id=\"b9440d60-ef5a-4e2b-83cf-081df7c09e6f\"" -- set
>>> Interface vnet0 external-ids:iface-status=active
>>> Dec 28 23:31:35 h2 kernel: device vnet0 entered promiscuous mode
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -D PREROUTING -i vnet0 -j
>>> libvirt-J-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -D POSTROUTING -o vnet0 -j
>>> libvirt-P-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -L libvirt-J-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -L libvirt-P-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -F libvirt-J-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -X libvirt-J-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -F libvirt-P-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -X libvirt-P-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-mac' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-mac' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -F J-vnet0-arp-mac' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/ebtables --concurrent -t nat -X J-vnet0-arp-mac' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev --physdev-is-bridged
>>> --physdev-out vnet0 -g FO-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/iptables -w2 -w -D libvirt-out -m physdev --physdev-out vnet0 -g
>>> FO-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/iptables -w2 -w -D libvirt-in -m physdev --physdev-in vnet0 -g
>>> FI-vnet0' failed:
>>> Dec 28 23:31:35 h2 firewalld: WARNING: COMMAND_FAILED:
>>> '/usr/sbin/iptables -w