[ovirt-devel] 答复: [ovirt-users] How to add ovs-based VM in version 4.0.2? Thank you

Edward Haas ehaas at redhat.com
Wed Aug 10 09:19:58 UTC 2016


On Wed, Aug 10, 2016 at 5:43 AM, lifuqiong <lifuqiong at cncloudsec.com> wrote:

> Hi Petr:
>         I found that when I type virsh commands like 'virsh list' in vdsm,
> the system will force me to input username and password, Could I cancel
> this authentication step when I type 'virsh list',  If so , how can I do
> this?
>
> Use read only: virsh -r list


> Thank you
> Mark
>
> -----邮件原件-----
> 发件人: Petr Horacek [mailto:phoracek at redhat.com]
> 发送时间: 2016年8月3日 17:22
> 收件人: 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
>
> Hello,
>
> don't forget you still need latest patches which are not part of
> ovirt-release40 nor ovirt-release-master.
>
> Network setup is handled by supervdsmd.service, logs are located in
> /var/log/vdsm/supervdsm.log. Network API entrypoint is in
> /usr/lib/python2.7/site-packages/vdsm/network/api.py.
>
> 2016-08-03 9:58 GMT+02:00 lifuqiong <lifuqiong at cncloudsec.com>:
> > 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-release40-pre.rpm'
> >  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 at 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 at 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 at 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 at 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 at 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 at 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 at redhat.com>
> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Tue, Aug 2, 2016 at 7:12 AM, lifuqiong
> >>>>> <lifuqiong at 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 at ovirt.org [mailto:users-bounces at 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 at 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 at ovirt.org
> >>>>>> http://lists.ovirt.org/mailman/listinfo/devel
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Michael Burman
> >>>> RedHat Israel, RHEV-M QE Network Team
> >>>>
> >>>> Mobile: 054-5355725
> >>>> IRC: mburman
> >>>
> >>
> >
>
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20160810/88925e24/attachment-0001.html>


More information about the Devel mailing list