Hi petr,
I followed your instruction last mail, re-install an Centos 7.2 1503(ip:192.168.0.117),
and executing 'yum install
http://plain.resources.ovirt.org/pub/ovirt-4.0-pre/rpm/el7/noarch/ovirt-r...
On the new system.
Creating an cluster using ovs-based network, and install vdsm(192.168.0.117); deploy log
shows that meeting an error as follows: But I cann't find out the code which
implements the function of setupNetworks,
Just find the setupNetwork() function was defined in API.py, what does this function do
actually, where is the code ? and how to fix this error?
jsonrpc.Executor/4::ERROR::2016-08-02
22:35:03,321::__init__::549::jsonrpc.JsonRpcServer::(_handle_request) Internal server
error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/yajsonrpc/__init__.py", line 544, in
_handle_request
res = method(**params)
File "/usr/lib/python2.7/site-packages/vdsm/rpc/Bridge.py", line 195, in
_dynamicMethod
result = fn(*methodArgs)
File "/usr/share/vdsm/API.py", line 1465, in setupNetworks
supervdsm.getProxy().setupNetworks(networks, bondings, options)
File "/usr/lib/python2.7/site-packages/vdsm/supervdsm.py", line 53, in
__call__
return callMethod()
File "/usr/lib/python2.7/site-packages/vdsm/supervdsm.py", line 51, in
<lambda>
**kwargs)
File "<string>", line 2, in setupNetworks
File "/usr/lib64/python2.7/multiprocessing/managers.py", line 773, in
_callmethod
raise convert_to_error(kind, result)
IPRoute2Error: ['RTNETLINK answers: File exists']
Hope get your help asp.
Thank you
Mark
-----邮件原件-----
发件人: Petr Horacek [mailto:phoracek@redhat.com]
发送时间: 2016年8月3日 1:50
收件人: lifuqiong
抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; devel
主题: Re: 答复: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank
you
If everything goes well, it will be in master this week. I don't know when it will be
part of 4.0.
I installed master VDSM patched with
https://gerrit.ovirt.org/#/q/topic:ovs_acquire on my host (Fedora 23 with disabled
NetworkManager) and it worked OK. You can try to build it on your own [1]. If you hit any
problem, feel free to ask.
We'd like to go that way, but nothing specific yet.
[1]
http://www.ovirt.org/develop/developer-guide/vdsm/developers/
2016-08-02 14:15 GMT+02:00 lifuqiong <lifuqiong(a)cncloudsec.com>:
Hi Petr,
Thank you
When the patch will merge to master? And when will the vdsm will release a
version with this patch?
Btw, do you have a plan to support ovs with dpdk or vhost-user port? If so,
what's the pipeline?
Thank you
-----邮件原件-----
发件人: Petr Horacek [mailto:phoracek@redhat.com]
发送时间: 2016年8月2日 19:53
收件人: lifuqiong
抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; devel
主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version
4.0.2? Thank you
Clean == host that has just NICs, like right after system installation (no networks
created by VDSM, bridges, bonds, vlans). Anyway, VDSM OVS is not able to acquire external
NICs yet (the patch is under review and will be merged to master soon [1]).
I would recommend you to wait for VDSM with mentioned patch merged. If you cannot wait,
you can try to setup ovirtmgmt network manually via console (turn down NIC, setup OVS
network on top of it). Not sure if this would help you.
[1]
https://gerrit.ovirt.org/#/c/60404/29
2016-08-02 13:30 GMT+02:00 lifuqiong <lifuqiong(a)cncloudsec.com>:
> Hi Petr,
> Thank you for your advice. But what does "Clean hosts" mean,
> as I know now, When you add a clean Host to ovirt engine, the vdsm or ovirt node will
create a Network named ovirtmgmt, which is an Linux bridge network, How do I clean the
network? Just delete the linux bridge and reset the linux bridge binding's physical
Nic?
>
> Hope to get your help as sonn as possible.
> Thank you.
> Mark
>
> -----邮件原件-----
> 发件人: Petr Horacek [mailto:phoracek@redhat.com]
> 发送时间: 2016年8月2日 18:29
> 收件人: lifuqiong
> 抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; users
> 主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in
> version 4.0.2? Thank you
>
> If the host was a part of legacy cluster you must do manual cleanup of all networks.
Currently VDSM cannot change Linux bridges into OVS ones (this will be implemented soon).
Make sure that you are adding clean hosts (with NIC interface/s only) to OVS cluster.
>
> Regards,
> Petr
>
> 2016-08-02 10:01 GMT+02:00 Michael Burman <mburman(a)redhat.com>:
>> Hi ,
>>
>> Did you synced network/s after you moved the host to the ovs type cluster?
>> It seems like you didn't..)
>> Go to 'Hosts' main tab' and choose the host, go to 'Network
>> Interfaces' sub tab and press the 'Sync All Networks' , now the
>> networks should be synced to host as ovs switch type.
>> Run the vm and check the xml.
>> It should look something like this:
>>
>> <source bridge='vdsmbr_nRL3asDq'/>
>> <virtualport type='openvswitch'>
>>
>> thanks
>>
>>
>> On Tue, Aug 2, 2016 at 9:37 AM, Meni Yakove <myakove(a)redhat.com> wrote:
>>>
>>>
>>>
>>> On Tue, Aug 2, 2016 at 7:12 AM, lifuqiong
>>> <lifuqiong(a)cncloudsec.com>
>>> wrote:
>>>>
>>>> I create a cluster which already enabled ovs network as you
>>>> mentioned , but when I create vm in this cluster, I can only
>>>> using ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux bridge.
>>>>
>>>> I found no way to add a OVS vNIC profile, I have to chose
>>>> ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the
>>>> vm is still using Linux bridge to communicate with outside, not the ovs.
>>>>
>>>>
>>>>
>>>> Need I to create a ovs bridge or vport and bind it to physical NIC
>>>> in vdsm manually?
>>>>
>>>>
>>>>
>>>> Hope your reply as soon as possible.
>>>>
>>>> Thank you
>>>>
>>>> Mark
>>>>
>>>>
>>>>
>>>> 发件人: users-bounces(a)ovirt.org [mailto:users-bounces@ovirt.org] 代表
>>>> Meni Yakove
>>>> 发送时间: 2016年8月1日 16:42
>>>> 收件人: Dan Kenigsberg
>>>> 主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in
>>>> version 4.0.2? Thank you
>>>>
>>>>
>>>>
>>>> On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg
>>>> <danken(a)redhat.com>
>>>> wrote:
>>>>
>>>> On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
>>>> > Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in
>>>> > this version?
>>>> > Is there any instruction? Thank you
>>>>
>>>> Please note and note well: OVS is not production-grade yet. It is
>>>> only a preliminary tech preview, under active development.
>>>>
>>>> However, we'd be very happy to get your help in testing it (and
>>>> possibly fixing it, too).
>>>>
>>>> When defining a new cluster, you should see a check box, letting
>>>> you select OVS for that cluster.
>>>>
>>>>
>>>>
>>>> To be precise, this is not a check box. In the Edit Cluster
>>>> dialog, look at the "switch
>>>>
>>>> type" option, and change "LEGACY" to "OVS".
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> After being checked, each VM network that is defined in your
>>>> cluster would be implemented with OVS instead of Linux bridge.
>>>>
>>>> As aluded before, there are plenty of known definciencies (e.g.,
>>>> no persistence of ip config on VM network, no live migration, not
>>>> all bond modes, etc etc). But do not hesitate to raise other
>>>> issues with the devel mailing list.
>>>>
>>>> Happy testing!
>>>>
>>>> Dan.
>>>> _______________________________________________
>>>> Devel mailing list
>>>> Devel(a)ovirt.org
>>>>
http://lists.ovirt.org/mailman/listinfo/devel
>>>>
>>>>
>>>
>>>
>>
>>
>>
>> --
>> Michael Burman
>> RedHat Israel, RHEV-M QE Network Team
>>
>> Mobile: 054-5355725
>> IRC: mburman
>