Hi All,

Now I'm able to run vif command successfully after inserting the kernel
module. I just created virtual interface using vif --create and vif --add
command.

I'm able to see vhost0 interface and I just assigned IP to vhost0 interface

Then I ran the contrail-vrouter-agent binary in background  and Im not able
to ping from both the side.

But If I kill the contrail-vrouter-agent binary, I'm able to ping from both
the sides.

Below is my contrail-vrouter-agent log
###############################################################
 [Thread 4014994528, Pid 7254]: VnswInterfaceListenerBase Event ADD_ROUTE
Interface vhost0 Addr 19
2.168.0.0 prefixlen 24 Gateway 0.0.0.0 Flags 0 Protocol 2
[Thread 4127192160, Pid 7254]: SANDESH: Send FAILED: 387035093 Agent
[SYS_INFO]: AgentRouteLog: A
dded route 192.168.0.1/32 in VRF
default-domain:default-project:ip-fabric:__default__ Local
controller/src/vnsw/agent/oper/agent_route.cc 389
###############################################################

vif --list
##############################################################
Vrouter Interface Table

Flags: P=Policy, X=Cross Connect, S=Service Chain, Mr=Receive Mirror
       Mt=Transmit Mirror, Tc=Transmit Checksum Offload, L3=Layer 3,
L2=Layer 2
       D=DHCP, Vp=Vhost Physical, Pr=Promiscuous, Vnt=Native Vlan Tagged
       Mnp=No MAC Proxy, Dpdk=DPDK PMD Interface, Rfl=Receive Filtering
Offload, Mon=Interface is Monitored
       Uuf=Unknown Unicast Flood, Vof=VLAN insert/strip offload

vif0/0      OS: fm1-mac1 (Speed 100, Duplex 1)
            Type:Physical HWaddr:00:01:02:03:04:05 IPaddr:0
            Vrf:0 Flags:L3L2Vp MTU:1514 Ref:3
            RX packets:390  bytes:37905 errors:0
            TX packets:95  bytes:19258 errors:0

vif0/1      OS: vhost0
            Type:Host HWaddr:00:01:02:03:04:05 IPaddr:c0a80069
            Vrf:0 Flags:L3L2 MTU:1514 Ref:3
            RX packets:96  bytes:19888 errors:0
            TX packets:372  bytes:35979 errors:0

vif0/2      OS: pkt0
            Type:Agent HWaddr:00:00:5e:00:01:00 IPaddr:0
            Vrf:65535 Flags:L3 MTU:1514 Ref:2
            RX packets:1  bytes:70 errors:0
            TX packets:18  bytes:1857 errors:0

vif0/4350   OS: pkt3
            Type:Stats HWaddr:00:00:00:00:00:00 IPaddr:0
            Vrf:65535 Flags:L3L2 MTU:9136 Ref:1
            RX packets:0  bytes:0 errors:0
            TX packets:0  bytes:0 errors:0

vif0/4351   OS: pkt1
            Type:Stats HWaddr:00:00:00:00:00:00 IPaddr:0
            Vrf:65535 Flags:L3L2 MTU:9136 Ref:1
            RX packets:0  bytes:0 errors:0
            TX packets:0  bytes:0 errors:0
###############################################################

What Could be the reason and  solution ?? Kindly help me in this..


Thanks,
--Vignesh



On Tue, Sep 15, 2015 at 9:46 AM, Vigneshwaran R <[email protected]>
wrote:

> Hi Pedro, Rajagopalan and Sanju,
>
> Once I inserted the kernel module, I'm able to run vif commands
> succesfully. Thanks for all your timely help. :)
>
> Thanks,
> --Vignesh
>
> On Tue, Sep 15, 2015 at 12:35 AM, Sanju Abraham <[email protected]>
> wrote:
>
>> Vignesh,
>>
>> Can you please check if you inserted the vrouter kernel module that you
>> have successfully built.
>>
>> Follow the steps below:
>> 1-> copy the build vrouter.ko from
>> ~top-vrouter-build-dir/vrouter/vrouter.ko to /lib/modules/`uname
>> –r`/updates/dkms (create updates/dkms if missing).
>> 2-> depmod from /lib/modules/`uname –r`
>> 3-> modprobe vrouter
>>
>> Verify is vrouter kernel module is loaded.
>>
>> >> lsmod |grep vrouter
>>
>> Use vif once above step is successful
>>
>> Thanks
>> Sanju
>>
>> From: Rajagopalan Sivaramakrishnan <[email protected]>
>> Date: Monday, September 14, 2015 at 11:31 AM
>> To: Vigneshwaran R <[email protected]>, Pedro Marques <
>> [email protected]>
>>
>> Cc: "[email protected]" <[email protected]>
>> Subject: Re: [opencontrail-dev] Error in Contrail-vRouter-Agent Binary
>>
>> Hi Vignesh,
>>    Did you step through the “vif” code to see what error you are hitting?
>>
>> Raja
>>
>> From: Vigneshwaran R <[email protected]>
>> Date: Monday, September 14, 2015 at 7:33 AM
>> To: Rajagopalan Sivaramakrishnan <[email protected]>, Pedro Marques <
>> [email protected]>
>> Cc: "[email protected]" <[email protected]>
>> Subject: Re: [opencontrail-dev] Error in Contrail-vRouter-Agent Binary
>>
>> Hi Rajagopalan/Pedro,
>>
>> We compiled vif binary for powerpc platform and tried to create vhost0
>> interface using vif --create <i/f> <mac add> command, then when I execute
>> vif --list command it is giving the below error,
>>
>> *vif --list*
>> Error registering NetLink client: Success (0)
>>
>> How to resolve this error for creating vhost0 interface on my target
>> board which is powerpc.
>>
>> On Sat, Sep 12, 2015 at 11:33 AM, Vigneshwaran R <
>> [email protected]> wrote:
>>
>>> Okay Raja, Thanks
>>>
>>> On Fri, Sep 11, 2015 at 11:07 PM, Rajagopalan Sivaramakrishnan <
>>> [email protected]> wrote:
>>>
>>>> Hi Vignesh,
>>>>     The vhost0 interface is created from startup scripts using the
>>>> “vif” utility. Please take a look at the "vif —create” and "vif —add”
>>>> options.
>>>>
>>>> Raja
>>>>
>>>> From: Vigneshwaran R <[email protected]>
>>>> Date: Thursday, September 10, 2015 at 7:49 AM
>>>> To: "[email protected]" <[email protected]>
>>>> Subject: [opencontrail-dev] Error in Contrail-vRouter-Agent Binary
>>>>
>>>> Hi All,
>>>>
>>>> We have ported contrail-vrouter-agent binary to powerpc. I'm trying to
>>>> run contrail-vrouter-binary in powerpc board to make board act as compute
>>>> node for launching VM.
>>>>
>>>> I inserted the dataplane component (kernel loadable module), and when
>>>> running userspace component (contrail-vrouter-binary) it is giving issue..
>>>>
>>>> *contrail-vrouter-agent *
>>>>
>>>> log4cplus:ERROR No appenders could be found for logger (SANDESH).
>>>> log4cplus:ERROR Please initialize the log4cplus system properly.
>>>> Error in config file </etc/contrail/contrail-vrouter-agent.conf>. Error
>>>> parsing vmware_mode from <>
>>>> Config file </etc/contrail/contrail-vrouter-agent.conf> parsing
>>>> completed.
>>>>
>>>> *vim contrail-vrouter-agent.log*
>>>>
>>>> 2015-09-10 Thu 23:15:47:962.834 UTC  t4240rdb [Thread 4154224640, Pid
>>>> 30515]: Error reading interface <vhost0>. Error number 19 : No such device
>>>>
>>>> I Just cross compiled cross compiled both vrouter.ko and
>>>> contrail-vrouter-agent to powerpc and trying to run.. What should I do to
>>>> create this vhost0 interface in compute node ?? so that I can make use of
>>>> this board as an compute node ??
>>>>
>>>> Kindly help me in this ...
>>>>
>>>>
>>>> Thanks,
>>>> --Vignesh
>>>>
>>>
>>>
>>
>
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to