<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 5:43 AM, lifuqiong <span dir="ltr"><<a href="mailto:lifuqiong@cncloudsec.com" target="_blank">lifuqiong@cncloudsec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Petr:<br>
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?<br>
<span class=""><br></span></blockquote><div>Use read only: virsh -r list<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Thank you<br>
Mark<br>
<br>
-----邮件原件-----<br>
发件人: Petr Horacek [mailto:<a href="mailto:phoracek@redhat.com">phoracek@redhat.com</a>]<br>
</span>发送时间: 2016年8月3日 17:22<br>
<div class="HOEnZb"><div class="h5">收件人: lifuqiong<br>
抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; devel<br>
主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you<br>
<br>
Hello,<br>
<br>
don't forget you still need latest patches which are not part of<br>
ovirt-release40 nor ovirt-release-master.<br>
<br>
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-<wbr>packages/vdsm/network/api.py.<br>
<br>
2016-08-03 9:58 GMT+02:00 lifuqiong <<a href="mailto:lifuqiong@cncloudsec.com">lifuqiong@cncloudsec.com</a>>:<br>
> Hi petr,<br>
> I followed your instruction last mail, re-install an Centos 7.2 1503(ip:192.168.0.117), and executing 'yum install <a href="http://plain.resources.ovirt.org/pub/ovirt-4.0-pre/rpm/el7/noarch/ovirt-release40-pre.rpm" rel="noreferrer" target="_blank">http://plain.resources.ovirt.<wbr>org/pub/ovirt-4.0-pre/rpm/el7/<wbr>noarch/ovirt-release40-pre.rpm</a><wbr>'<br>
> On the new system.<br>
><br>
> Creating an cluster using ovs-based network, and install<br>
> vdsm(192.168.0.117); deploy log shows that meeting an error as<br>
> follows: But I cann't find out the code which implements the function<br>
> of setupNetworks,<br>
><br>
> 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?<br>
><br>
> jsonrpc.Executor/4::ERROR::<wbr>2016-08-02<br>
> 22:35:03,321::__init__::549::<wbr>jsonrpc.JsonRpcServer::(_<wbr>handle_request) Internal server error Traceback (most recent call last):<br>
> File "/usr/lib/python2.7/site-<wbr>packages/yajsonrpc/__init__.<wbr>py", line 544, in _handle_request<br>
> res = method(**params)<br>
> File "/usr/lib/python2.7/site-<wbr>packages/vdsm/rpc/Bridge.py", line 195, in _dynamicMethod<br>
> result = fn(*methodArgs)<br>
> File "/usr/share/vdsm/API.py", line 1465, in setupNetworks<br>
> supervdsm.getProxy().<wbr>setupNetworks(networks, bondings, options)<br>
> File "/usr/lib/python2.7/site-<wbr>packages/vdsm/supervdsm.py", line 53, in __call__<br>
> return callMethod()<br>
> File "/usr/lib/python2.7/site-<wbr>packages/vdsm/supervdsm.py", line 51, in <lambda><br>
> **kwargs)<br>
> File "<string>", line 2, in setupNetworks<br>
> File "/usr/lib64/python2.7/<wbr>multiprocessing/managers.py", line 773, in _callmethod<br>
> raise convert_to_error(kind, result)<br>
> IPRoute2Error: ['RTNETLINK answers: File exists']<br>
><br>
><br>
> Hope get your help asp.<br>
> Thank you<br>
> Mark<br>
><br>
><br>
> -----邮件原件-----<br>
> 发件人: Petr Horacek [mailto:<a href="mailto:phoracek@redhat.com">phoracek@redhat.com</a>]<br>
> 发送时间: 2016年8月3日 1:50<br>
> 收件人: lifuqiong<br>
> 抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; devel<br>
> 主题: Re: 答复: [ovirt-users] [ovirt-devel] How to add ovs-based VM in<br>
> version 4.0.2? Thank you<br>
><br>
> If everything goes well, it will be in master this week. I don't know when it will be part of 4.0.<br>
><br>
> I installed master VDSM patched with<br>
> <a href="https://gerrit.ovirt.org/#/q/topic:ovs_acquire" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/q/<wbr>topic:ovs_acquire</a> 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.<br>
><br>
> We'd like to go that way, but nothing specific yet.<br>
><br>
> [1] <a href="http://www.ovirt.org/develop/developer-guide/vdsm/developers/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/<wbr>developer-guide/vdsm/<wbr>developers/</a><br>
><br>
> 2016-08-02 14:15 GMT+02:00 lifuqiong <<a href="mailto:lifuqiong@cncloudsec.com">lifuqiong@cncloudsec.com</a>>:<br>
>> Hi Petr,<br>
>> Thank you<br>
>> When the patch will merge to master? And when will the vdsm will release a version with this patch?<br>
>> Btw, do you have a plan to support ovs with dpdk or vhost-user port? If so, what's the pipeline?<br>
>><br>
>> Thank you<br>
>><br>
>> -----邮件原件-----<br>
>> 发件人: Petr Horacek [mailto:<a href="mailto:phoracek@redhat.com">phoracek@redhat.com</a>]<br>
>> 发送时间: 2016年8月2日 19:53<br>
>> 收件人: lifuqiong<br>
>> 抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; devel<br>
>> 主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in<br>
>> version 4.0.2? Thank you<br>
>><br>
>> 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]).<br>
>><br>
>> 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.<br>
>><br>
>> [1] <a href="https://gerrit.ovirt.org/#/c/60404/29" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/<wbr>60404/29</a><br>
>><br>
>> 2016-08-02 13:30 GMT+02:00 lifuqiong <<a href="mailto:lifuqiong@cncloudsec.com">lifuqiong@cncloudsec.com</a>>:<br>
>>> Hi Petr,<br>
>>> Thank you for your advice. But what does "Clean hosts" mean,<br>
>>> 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?<br>
>>><br>
>>> Hope to get your help as sonn as possible.<br>
>>> Thank you.<br>
>>> Mark<br>
>>><br>
>>> -----邮件原件-----<br>
>>> 发件人: Petr Horacek [mailto:<a href="mailto:phoracek@redhat.com">phoracek@redhat.com</a>]<br>
>>> 发送时间: 2016年8月2日 18:29<br>
>>> 收件人: lifuqiong<br>
>>> 抄送: Meni Yakove; Dan Kenigsberg; Michael Burman; users<br>
>>> 主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in<br>
>>> version 4.0.2? Thank you<br>
>>><br>
>>> 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.<br>
>>><br>
>>> Regards,<br>
>>> Petr<br>
>>><br>
>>> 2016-08-02 10:01 GMT+02:00 Michael Burman <<a href="mailto:mburman@redhat.com">mburman@redhat.com</a>>:<br>
>>>> Hi ,<br>
>>>><br>
>>>> Did you synced network/s after you moved the host to the ovs type cluster?<br>
>>>> It seems like you didn't..)<br>
>>>> Go to 'Hosts' main tab' and choose the host, go to 'Network<br>
>>>> Interfaces' sub tab and press the 'Sync All Networks' , now the<br>
>>>> networks should be synced to host as ovs switch type.<br>
>>>> Run the vm and check the xml.<br>
>>>> It should look something like this:<br>
>>>><br>
>>>> <source bridge='vdsmbr_nRL3asDq'/><br>
>>>> <virtualport type='openvswitch'><br>
>>>><br>
>>>> thanks<br>
>>>><br>
>>>><br>
>>>> On Tue, Aug 2, 2016 at 9:37 AM, Meni Yakove <<a href="mailto:myakove@redhat.com">myakove@redhat.com</a>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Tue, Aug 2, 2016 at 7:12 AM, lifuqiong<br>
>>>>> <<a href="mailto:lifuqiong@cncloudsec.com">lifuqiong@cncloudsec.com</a>><br>
>>>>> wrote:<br>
>>>>>><br>
>>>>>> I create a cluster which already enabled ovs network as you<br>
>>>>>> mentioned , but when I create vm in this cluster, I can only<br>
>>>>>> using ovirtmgmt/ovirtmgmt vNIC profile, which is still a Linux bridge.<br>
>>>>>><br>
>>>>>> I found no way to add a OVS vNIC profile, I have to chose<br>
>>>>>> ovirtmgmt/ovirtmgmt vNIC to setup a VM. After VM is started, the<br>
>>>>>> vm is still using Linux bridge to communicate with outside, not the ovs.<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> Need I to create a ovs bridge or vport and bind it to physical<br>
>>>>>> NIC in vdsm manually?<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> Hope your reply as soon as possible.<br>
>>>>>><br>
>>>>>> Thank you<br>
>>>>>><br>
>>>>>> Mark<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> 发件人: <a href="mailto:users-bounces@ovirt.org">users-bounces@ovirt.org</a> [mailto:<a href="mailto:users-bounces@ovirt.org">users-bounces@ovirt.<wbr>org</a>] 代表<br>
>>>>>> Meni Yakove<br>
>>>>>> 发送时间: 2016年8月1日 16:42<br>
>>>>>> 收件人: Dan Kenigsberg<br>
>>>>>> 主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in<br>
>>>>>> version 4.0.2? Thank you<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg<br>
>>>>>> <<a href="mailto:danken@redhat.com">danken@redhat.com</a>><br>
>>>>>> wrote:<br>
>>>>>><br>
>>>>>> On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:<br>
>>>>>> > Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in<br>
>>>>>> > this version?<br>
>>>>>> > Is there any instruction? Thank you<br>
>>>>>><br>
>>>>>> Please note and note well: OVS is not production-grade yet. It is<br>
>>>>>> only a preliminary tech preview, under active development.<br>
>>>>>><br>
>>>>>> However, we'd be very happy to get your help in testing it (and<br>
>>>>>> possibly fixing it, too).<br>
>>>>>><br>
>>>>>> When defining a new cluster, you should see a check box, letting<br>
>>>>>> you select OVS for that cluster.<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> To be precise, this is not a check box. In the Edit Cluster<br>
>>>>>> dialog, look at the "switch<br>
>>>>>><br>
>>>>>> type" option, and change "LEGACY" to "OVS".<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> After being checked, each VM network that is defined in your<br>
>>>>>> cluster would be implemented with OVS instead of Linux bridge.<br>
>>>>>><br>
>>>>>> As aluded before, there are plenty of known definciencies (e.g.,<br>
>>>>>> no persistence of ip config on VM network, no live migration, not<br>
>>>>>> all bond modes, etc etc). But do not hesitate to raise other<br>
>>>>>> issues with the devel mailing list.<br>
>>>>>><br>
>>>>>> Happy testing!<br>
>>>>>><br>
>>>>>> Dan.<br>
>>>>>> ______________________________<wbr>_________________<br>
>>>>>> Devel mailing list<br>
>>>>>> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
>>>>>> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
>>>>>><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Michael Burman<br>
>>>> RedHat Israel, RHEV-M QE Network Team<br>
>>>><br>
>>>> Mobile: 054-5355725<br>
>>>> IRC: mburman<br>
>>><br>
>><br>
><br>
<br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a></div></div></blockquote></div><br></div></div>