Giter VIP home page Giter VIP logo

contrail-vrouter's Introduction

contrail-vrouter's People

Contributors

abgzlnv avatar anandhk-juniper avatar anandrao79 avatar anirban-c avatar anish56 avatar ashoksr avatar divakardhar avatar esnagendra avatar hajimohamed avatar haripk avatar jablonskim avatar kirankn80 avatar krdln avatar krharsh avatar majkijin avatar manishsing avatar msahu-jnpr avatar naveen-n avatar numansiddique avatar prabix76 avatar ravi-bk avatar sangarshan avatar semihalf-berestovskyy-andriy avatar semihalf-chomjak-richard avatar semihalf-zmuda-wojciech avatar srajag avatar vmahuli avatar yashikabadaya avatar yi-y-yang avatar yipengwa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contrail-vrouter's Issues

"repo init -u" fails

Hello,
I am following the instructions in:
https://github.com/Juniper/contrail-vrouter/blob/master/README.md

In the section:
"building vrouter.ko for a specific OS"
It says:
...
Initialize the repository $ repo init -u [email protected]:Juniper/contrail-vnc -m vrouter-manifest.xml
...

So I tried on two machines, which are not running any firewall or behind a firewall, both running fedora 22, the following command:

repo init -u [email protected]:Juniper/contrail-vnc -m vrouter-manifest.xml

And it fails with:
Getting repo ...
...
...
info: Ignoring branch 'master'; using tagged release 'v1.7.3.1'

Getting manifest ...
form [email protected]:Juniper/contrail-vnc

Permission denied (publickey).
Permission denied (publickey).
fatal: could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: cannot obtain manifest [email protected]:/Juniper/contrail-vnc

Any ideas what can be the reason ?;
I want to add 2 things:
I got the "repo" that I am using by:
git clone https://android.googlesource.com/tools/repo
Please let me know if using "repo" from this URL is not correct
Kevin

GRE over IPv4 traffic from VM to Contrail is not destributed

When VMs exchange tunneled like GRE over IPv4 traffic between each other traffic is not getting distributed among contrail cores which cause overloads the conrail core and leads to packet drops.

Following patch fix that:
branch R3.2 version cd1162a


diff --git a/dpdk/vr_dpdk_ethdev.c b/dpdk/vr_dpdk_ethdev.c
index c11fc4d..437e0f5 100644
--- a/dpdk/vr_dpdk_ethdev.c
+++ b/dpdk/vr_dpdk_ethdev.c
@@ -769,6 +769,20 @@ dpdk_mbuf_rss_hash(struct rte_mbuf *mbuf, struct vr_ip *ipv4_hdr,
     case VR_IP_PROTO_UDP:
         hash = rte_hash_crc_4byte(*l4_ptr, hash);
         break;
+    case VR_IP_PROTO_GRE:
+        if (likely(l4_ptr != NULL))
+        {
+            struct vr_gre_key* gre_hdr = (struct vr_gre_key *)l4_ptr;
+
+            if (likely(gre_hdr->gre_comm_hdr.gre_flags & VR_GRE_FLAG_KEY))  {
+                hash = rte_hash_crc_4byte(gre_hdr->gre_key , hash);
+                RTE_LOG(DEBUG, VROUTER, "%s: GRE key %d, RSS hash: 0x%x (emulated)\n",
+                    __func__, gre_hdr->gre_key, hash);
+            } else
+                RTE_LOG(DEBUG, VROUTER, "%s: GRE without key, RSS hash: 0x%x (emulated)\n",
+                    __func__, hash);
+        }
+        break;
     }

     mbuf->ol_flags |= PKT_RX_RSS_HASH;
@@ -873,7 +887,7 @@ dpdk_mbuf_parse_and_hash_packets(struct rte_mbuf *mbuf)
                 mbuf->ol_flags &= ~PKT_RX_RSS_HASH;
                 /* Go to parsing. */
             } else {
-                return 0; /* Looks like GRE, but no MPLS. */
+                return dpdk_mbuf_rss_hash(mbuf, ipv4_hdr, NULL); /* Looks like GRE, but no MPLS. */
             }
         } else if (ipv4_hdr->ip_proto == VR_IP_PROTO_UDP) {
             /* At this point the packet may be:
diff --git a/include/vr_packet.h b/include/vr_packet.h
index c9e542f..0257297 100644
--- a/include/vr_packet.h
+++ b/include/vr_packet.h
@@ -857,6 +857,12 @@ struct vr_gre {
     unsigned short gre_proto;
 } __attribute__((packed));

+struct vr_gre_key {
+    struct vr_gre gre_comm_hdr;
+    unsigned int gre_key;
+} __attribute__((packed));
+
+
 struct vr_pcap {
     /* timestamp seconds */
     unsigned int pcap_ts_sec;

Compile error with linux kernel 4.1.4

I tried to build vrouter on openSUSE Tumbleweed and got the following error:

tom@basilikum:~/tmp/contrail-vrouter$ repo forall -vc "git reset --hard"
HEAD is now at a34f049 Add valgrind option to scons --optimization=<options>
HEAD is now at 90e2637 A few minor changes need to generate 'clean' coverage report for
HEAD is now at aaa0a45 DPDK: change packet scheduling for non-RSS interfaces (RX side)
tom@basilikum:~/tmp/contrail-vrouter$ scons vrouter
scons: Reading SConscript files ...

scons: warning: Ignoring missing SConscript 'controller/SConscript'
File "/home/tom/tmp/contrail-vrouter/SConstruct", line 16, in <module>

scons: warning: Ignoring missing SConscript 'build/noarch/nova_contrail_vif/SConscript'
File "/home/tom/tmp/contrail-vrouter/SConstruct", line 19, in <module>

scons: warning: Ignoring missing SConscript 'build/noarch/neutron_plugin/SConscript'
File "/home/tom/tmp/contrail-vrouter/SConstruct", line 26, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: `vrouter/utils' is up to date.
scons: `vrouter/uvrouter' is up to date.
cd /home/tom/tmp/contrail-vrouter/vrouter/ && make SANDESH_HEADER_PATH=/home/tom/tmp/contrail-vrouter/build/debug/vrouter SANDESH_SRC_ROOT=../build/kbuild/ SANDESH_EXTRA_HEADER_PATH=/home/tom/tmp/contrail-vrouter/tools
make -C /lib/modules/4.1.4-1-desktop/build M=/home/tom/tmp/contrail-vrouter/vrouter modules
make[1]: Entering directory '/usr/src/linux-4.1.4-1-obj/x86_64/desktop'
  CC [M]  /home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.o
/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.c: In function ‘linux_if_notifier’:
/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.c:2261:21: error: invalid operands to binary != (have ‘possible_net_t {aka struct <anonymous>}’ and ‘struct net *’)
     if (dev->nd_net != &init_net) {
                     ^
/usr/src/linux-4.1.4-1/scripts/Makefile.build:274: recipe for target '/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.o' failed
make[4]: *** [/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.o] Error 1
/usr/src/linux-4.1.4-1/Makefile:1409: recipe for target '_module_/home/tom/tmp/contrail-vrouter/vrouter' failed
make[3]: *** [_module_/home/tom/tmp/contrail-vrouter/vrouter] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.1.4-1-obj/x86_64/desktop'
Makefile:86: recipe for target 'default' failed
make: *** [default] Error 2
scons: *** [vrouter/vrouter.ko] Error 2
scons: building terminated because of errors.

build error

Hello everybody, i build contrail-vrouter and has the follow questions, Does anyone know why? thanks very much
(OS: centos 7, install in virtual machine, kernel: 3.10.0-957.10.1.el7.x86_64
gcc version: 4.8.5
scons version(too high? SConstruct need change?):
script: v3.0.5.a56bbd8c09fb219ab8a9673330ffcd55279219d0, 2019-03-26 23:16:31, by bdeegan on kufra
engine: v3.0.5.a56bbd8c09fb219ab8a9673330ffcd55279219d0, 2019-03-26 23:16:31, by bdeegan on kufra
engine path: ['/usr/lib/scons/SCons']
python version:3.5(default python is 2.7, the result is the same...) Have A OSError, but I don't know why???
)

[root@MiWiFi-R3A-srv vr]# scons vrouter
scons: Reading SConscript files ...
OSError: [Errno 17] File exists:
File "/home/wlm/vr/SConstruct", line 20:
SConscript(dirs=['src/contrail-common', 'controller', 'vrouter'])
File "/usr/lib/scons/SCons/Script/SConscript.py", line 668:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/wlm/vr/controller/SConscript", line 17:
SConscript(dirs=['lib', 'src'])
File "/usr/lib/scons/SCons/Script/SConscript.py", line 668:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/wlm/vr/controller/lib/SConscript", line 46:
SConscript(dirs = dir, variant_dir = '#/build/third_party/' + dir)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 668:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/wlm/vr/build/third_party/openvswitch/SConscript", line 34:
Symlink([Dir('#/build/include/openvswitch/include')], [Dir(vpath + '/include')])
File "/home/wlm/vr/build/third_party/openvswitch/SConscript", line 32:
os.symlink(source[0].abspath, target[0].abspath)

contrail-vrouter-agent inactive in release rhel-queens-1912-32

Hi ALL,

Problem Statement:- contrail-vrouter-agent container is restarting and not comping up on DRPK + SRIOV compute node.

===================
[root@auh-akb02-nec-nfvi2-rk03-dell-comp02 heat-admin]# contrail-status
Pod Service Original Name Original Version State Id Status
vrouter agent contrail-vrouter-agent rhel-queens-1912-32 restarting 55a280fde125 Restarting (134) 46 minutes ago

vrouter agent-dpdk contrail-vrouter-agent-dpdk rhel-queens-1912-32 running f1d489d62796 Up About an hour

vrouter nodemgr contrail-nodemgr rhel-queens-1912-32 running 5c34f2bd4748 Up About an hour

vrouter DPDK module is PRESENT
== Contrail vrouter ==
nodemgr: active
agent: inactive

Environment:-

Red Hat OpenStack Platform 13.0.9
RHEL7.7-Linux Kernel Version 3.10.0-1062.9.1
Contrail Networking Release 1912

Attaching docker container logs for agent.Please help
Docker_logs_for_contrail_vrouter_agent.txt

Cannot build vrouter.ko module

Hello everyone,

I am trying to install vrouter.ko module as follows:

[root@dut6210 contrail-vrouter-master]# repo init -u [email protected]:Juniper/contrail-vnc -m vrouter-manifest.xml
[root@dut6210 contrail-vrouter-master]# repo sync
[root@dut6210 contrail-vrouter-master]# scons vrouter

scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 834, in _main
[root@dut6210 contrail-vrouter-master]#

Can anyone please help me this.

Thanks

bandwidth decrease using dpdk module vrouter

We are using Opencontrail vrouter R3.2 branch and build the dpdk vrouter rpm.
however, we compared the performance between kernel-vrouter and dpdk-vrouter, found that, kernel-vrouter has 6.XG bandwidth, but the dpdk-vrouter only have 4.XG bandwidth. But dpdk-vrouter's PPS is better than kernel-vrouter, which is same as your mentioned in some contrail vrouter documents.


  1. test path is
    vm1--->vrouter in host1--->host1 NIC ---> host2 NIC ---> vrouter in host2 --->vm2
  2. physical bandwidth of NIC is 10G
  3. host1 and host2 is numa framework.
  4. we set hugepages to 1G, and kvm use mem-path to use hugepages

could you pls tell me whether the performance is influenced when we use memory in different numa node, and when NIC and CPU cores pinned to dpdk-vrouter is in different numa node?
could you pls give me some advices what may affect this performance? how to improve dpdk-vrouter performance?

any suggestions and advices will be appreciated!

vrouter build R3.0.1

Hi all,

I am trying to build vrouter R3.0.1.
I cloned branch R3.0 and build it but when I am runing contrail-vrouter-dpdk --version It show version 3.0.4.0 .
root@contraildev:/var/soft# build/profile/vrouter/dpdk/contrail-vrouter-dpdk --version
2016-10-27 14:14:13,962 VROUTER: vRouter/DPDK version: {"build-info": [{"build-time": "2016-10-27 14:13:07.397832", "build-hostname": "contraildev", "build-user": "root", "build-version": "3.0.4.0"}]}

Any clue?

Nir.

Possible bug in dpdk_virtio_from_vm_rx

Hi,

Looking at the function 'dpdk_virtio_from_vm_rx' there is an obvious bug that may cause the code to look for completed packages up to 'max_pkts' ahead of the 'avail_pkts' index.
Obviously this seem to work [in most cases], but it is still a bug.

I do not really know how to contribute this information, so I opened up this "issue".

I assume that the comment
" /* Unsigned subtraction gives the right result even with wrap around. */"
is from a time when the ring size was fixed at 256 and the type used for 'avail_pkts' was a 'char'.

Regards,
/Per
(Excuse the indentation, I guess this is not the proper place for code..)

static int
dpdk_virtio_from_vm_rx(void *port, struct rte_mbuf **pkts, uint32_t max_pkts)
{
struct dpdk_virtio_reader *p = (struct dpdk_virtio_reader *)port;
vr_dpdk_virtioq_t *vq = p->rx_virtioq;

/* Unsigned subtraction gives the right result even with wrap around. */
avail_pkts = vq_hard_avail_idx - vq->vdv_last_used_idx;
avail_pkts = RTE_MIN(avail_pkts, max_pkts);
if (unlikely(avail_pkts == 0)) {
DPDK_UDEBUG(VROUTER, &vq->vdv_hash, "%s: queue %p has no packets\n",
__func__, vq);
return 0;
}

For unsigned arithmetic to work with wrap around, the wrap around has to happen at the size of the unsigned variable.
That is not the case here.

When dealing with smaller numbers you need to "simulate" a shorter unsigned int by AND-ing away the unwanted bits.

So here a line:
avail_pkts = avail_pkts & (vq->vdv_size - 1);

is missing.

This small code example illustrates the problem:
(In the example, I have assumed that 'max_pkts' is the ring size.
This is not the case in the original code, but it is not important for
illustrating the problem.)

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>#define RTE_MIN(a,b) __extension__ ({ \
typeof (a) _a = (a); \
typeof (b) _b = (b); \
_a < _b ? _a : _b; \
})

main(int argc, char** argv)
{
uint16_t vq_hard_avail_idx = (argc > 1) ? atoi(argv[1]) : 0;
uint16_t vdv_last_used_idx = (argc > 2) ? atoi(argv[2]) : 0;
uint16_t max_pkts = (argc > 3) ? atoi(argv[3]) : 0;
void* fix = getenv("FIX");

uint16_t avail_pkts = vq_hard_avail_idx - vdv_last_used_idx;

if (fix) {
avail_pkts = avail_pkts & (max_pkts-1);
}

printf("%d - %d = %d\n", vq_hard_avail_idx, vdv_last_used_idx, avail_pkts);
printf("RTE_MIN(%d,%d) = ",avail_pkts,max_pkts);
avail_pkts = RTE_MIN(avail_pkts, max_pkts); printf("%d\n", avail_pkts);
}

# ./test 5 255 256
5 - 255 = 65286
RTE_MIN(65286,256) = 256 <==== INCORRECT
#
# FIX=1 ./x 5 255 256
5 - 255 = 6
RTE_MIN(6,256) = 6 <==== CORRECT

Porting vrouter.ko to powerPC platform

I am porting vrouter-agent to powerpc platform.While compiling the kernel module i am getting following warnings. While inserting the kernel module it throws the same error.

WARNING: "__sync_fetch_and_add_8" undefined
WARNING: "__sync_sub_and_fetch_8" undefined

Can anyone please comment on this

vRouer w/DPDK and Mellanox NIC

Hi All,

I am trying to setup vRouter w/DPDK and ConnectX-3-Pro.
Is there any documentation how to?

The problem is that I cannot bring vif to recognize the DPPK enabled interface.
The current state is that install script identifies correctly and interface is binded to the DPDK.

root@Setup-H-C0:/opt/contrail/bin# ./dpdk_nic_bind.py -s

Network devices using DPDK-compatible driver

0000:05:00.0 'MT27520 Family [ConnectX-3 Pro]' drv=igb_uio unused=

Network devices using kernel driver

0000:03:00.0 'I350 Gigabit Network Connection' if=em0 drv=igb unused=igb_uio Active
0000:03:00.3 'I350 Gigabit Network Connection' if=eth1 drv=igb unused=igb_uio

Other network devices

Since OFED + PMD drivers are taking over it is not in control of the OS any more and does not show up in ifconfig.

in - /etc/contrail/contrail-vrouter-agent.conf

DPDK or legacy work mode

platform=dpdk

Physical address of PCI used by dpdk

physical_interface_address=0000:05:00.0

MAC address of device used by dpdk

physical_interface_mac=7c:fe:90:b1:ea:50

in - /etc/contrail/agent_param

LOG=/var/log/contrail.log
CONFIG=/etc/contrail/contrail-vrouter-agent.conf
prog=/usr/bin/contrail-vrouter-agent
kmod=vrouter
pname=contrail-vrouter-agent
LIBDIR=/usr/lib64
DEVICE=vhost0
dev=p785p1
vgw_subnet_ip=VGW_SUBNET_IP
vgw_intf=VGW_INTF_LIST
LOGFILE=--log-file=/var/log/contrail/vrouter.log

Help with understanding IF Drops and Fragment issues

Hi all,

Need help with guide how to troubleshoot IF Drops and Fragment issues.
I am running with Opencontrail 3.0.2 w/DPDK. When running a load in L2 inside a single node (all VMs are located on the same compute node) I can notice that once I pass the 18 Gbps traffic I can see IF Drops and Fragment errors and connection to VM get staggering.

I use isolcpu=0-3 on the first NUMA 0 for vrouter-dpdk and hugepages 1G in grub. The strange thing is that i do see the first 4 cores in 100%, almost constantly, but in the process lines I see 10 to 11 routers-dpdk process, but only 4 are in 100 and the rest are 0. x only, is it normal? Also, those processes that are 0.x are not running on core 0-3, is it normal, even if the vrouter-dpdk.ini taskset is set to -c 0,1,2,3?

What are the steps to identify from where the issues source from?

Nir.

repo init fails, manifest.xml not found

I am unable to download the repo using repo.

Unlike the other issues raised about repo init, my issue is not ssh authentication. ssh [email protected] works for me.

I'm a bit unfamiliar with repo, I mostly use normal git.
The README is not very clear. I'm not sure whether I'm supposed to git clone before repo init .... Either way it fails.

Method 1

repo init -u [email protected]:Juniper/contrail-vnc -m vrouter-manifest.xml

Result:

fatal: manifest 'vrouter-manifest.xml' not available
fatal: manifest vrouter-manifest.xml not found

Method 2

git clone https://github.com/Juniper/contrail-vrouter.git
cd contrail-vrouter
repo init -u [email protected]:Juniper/contrail-vnc -m vrouter-manifest.xml

Same error message

How can I download the code?

Once I find out, I'll create a pull request for the README. It's currently underwhelming.

vrouter dpdk mode support simple gateway now?

I used R3.0 branch and dpdk_2_1 branch to setup contrail environment successfully. When vrouter worked in DPDK mode, If I ENABLE simple gateway, The contrail-vrouter-dpdk process will crash in function dpdk_vhost_if_add() when add vgw vif in the vrouter. Backtrace is as follows.
The root casue is that pointer vif->vif_bridge is null.
I want to know that is this just a bug or contrail do not want to support simple gateway in the dpdk version.
#0 0x0000000000767595 in dpdk_vhost_if_add ()
#1 0x0000000000767d99 in dpdk_if_add ()
#2 0x00000000007a89f5 in vhost_drv_add ()
#3 0x00000000007aa651 in vif_drv_add ()
#4 0x00000000007aace9 in vr_interface_add ()
#5 0x00000000007abdbc in vr_interface_req_process ()
#6 0x00000000007dded0 in sandesh_decode_one ()
#7 0x00000000007ddf5f in sandesh_decode ()
#8 0x00000000007be657 in sandesh_proto_decode ()
#9 0x00000000007affa9 in vr_message_request ()
#10 0x0000000000778df4 in dpdk_netlink_receive ()
#11 0x000000000077e87a in usock_read_done ()
#12 0x000000000077f6aa in vr_usocket_read ()
#13 0x000000000077fe7f in vr_usocket_io ()
#14 0x0000000000778917 in dpdk_lcore_netlink_loop ()
#15 0x0000000000778baf in vr_dpdk_lcore_launch ()
#16 0x000000000045d9c2 in eal_thread_loop ()
#17 0x00002ad521cdcdf5 in ?? ()
#18 0x0000000000000000 in ?? ()

Kernel based vRouter support live migration, while DPDK based vRouter doesn't support live migration

Hi expert,
Kernel based vRouter support live migration, while DPDK based vRouter doesn't support live migration.
I'm using Redhat OSP10+Contrail 4.1.1
while use DPDK vRouter, the VM's live migration operation always get failure result.

The failure log is displayed on destionation host's message:
Jan 11 03:53:05 overcloud-contraildpdk-1 libvirtd: 2019-01-11 03:53:05.691+0000: 59541: warning : qemuDomainObjBeginJobInternal:4709 : Cannot start job (query, none) for domain instance-00000004; current job is (none, migration in) owned by (0 , 0 remoteDispatchDomainMigratePrepare3Params) for (0s, 89s)
Jan 11 03:53:05 overcloud-contraildpdk-1 libvirtd: 2019-01-11 03:53:05.691+0000: 59541: error : qemuDomainObjBeginJobInternal:4721 : Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainMigratePrepare3Params)

below is qemu debug information
Thread 8 (Thread 0x7f0d50ab2700 (LWP 84881)):
#0 0x00007f0d79177bfd in recvmsg () from /lib64/libpthread.so.0
#1 0x000055c1399cf18c in qio_channel_socket_readv ()
#2 0x000055c1399c05e2 in tcp_chr_recv ()
#3 0x000055c1399c1da1 in tcp_chr_sync_read ()
#4 0x000055c1399bc761 in qemu_chr_fe_read_all ()
#5 0x000055c13976a15b in vhost_user_read.isra.6 ()
#6 0x000055c13976a776 in vhost_user_set_log_base ()
#7 0x000055c139766eed in vhost_log_global_start ()
#8 0x000055c13971726e in memory_global_dirty_log_start ()
#9 0x000055c13971de76 in ram_save_setup ()
#10 0x000055c1398e4f95 in qemu_savevm_state_setup ()
#11 0x000055c1398e0d8f in migration_thread ()
#12 0x00007f0d79170dd5 in start_thread () from /lib64/libpthread.so.0
#13 0x00007f0d78e9ab3d in clone () from /lib64/libc.so.6

Redhat guy said "qemu call recvmsg in qio_channel_socket_readv and keep waiting for vrouter's response, but vrouter doesn't give any response"

So please help to identify this issue, thank you very much!

Trouble with installation

Hello, I have problem with build vrouter

I started from:

$: repo init -u [email protected]:Juniper/contrail-vnc -m vrouter-manifest.xml
$: repo sync
//And build:
$ scons vrouter

But this return me followed error:

File "/..../SConstruct", line 16, in <module>
IOError: [Errno 2] No such file or directory: '/..../controller/src/base/version.info':

So the issue is that I didn't have in file contrail-controller?
I downloaded it and put as a folder into vrouter dir (with changed name controller), so my project tree looks as followed:

/vrouter/.
/vrouter/build
/vrouter/config.log
/vrouter/controller [externally downloaded as a ZIP and unpacked here]
/vrouter/SConstruct
/vrouter/tools
/vrouter/vrouter

Then when I trying to build

$ scons vrouter

It give me next error:

NameError: name 'sys' is not defined:
  File "/.../vrouter/SConstruct", line 16:
    SConscript(dirs=['controller', 'vrouter', 'tools/sandesh'])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 609:
    return method(*args, **kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/hjacker/git/vrouter/controller/SConscript", line 5:
    SConscript(dirs=['lib', 'src'])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 609:
    return method(*args, **kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/hjacker/git/vrouter/controller/lib/SConscript", line 43:
    SConscript(dirs = dir, variant_dir = '#/build/third_party/' + dir)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 609:
    return method(*args, **kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/.../vrouter/build/third_party/rapidjson/SConscript", line 19:
    sys.exit(1)

So it looked like rapidjson/SConscript didn't import sys
I added to rapidjson/SConscript

import sys

and finally I got:

scons: Reading SConscript files ...
/.../vrouter/third_party/rapidjson not present

I think that I messed out with this, can You help me with this installation?
I had Ubuntu with default Python 2.7.6
repo version v1.12.20
and SCons by Steven Knight et al.:
script: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep
engine: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep
engine path: ['/usr/lib/scons/SCons']

Compilation for xenserver 6.5

HI i am trying to compile the vrouter.ko for xenserver 6.5. I have downloaded the kernel sources iso from the xenserver website and used the
scons --kernel-dir=~/3.10.0+2-x86_64/ --system-header-path=~/3.10.0+2-x86_64/ vrouter
command to compile it
when i try to load it the following error shows in demise
vrouter: Unknown symbol __fentry__ (err 0)

I tried multiple versions all give the same error. Any idea if this is a bug or am i doing something wrong?

vRouter can not set the tunnel type to MPLSoverUDP

Hi expert,
I have set the tunnel_type field in contrail-vrouter-agent.conf with MPLSoUDP, and I also set the SDNGW with UDP tunnel. The packets that SDN-GW sent to vRouter has already changed to MPLSoUDP, but the packets sent from vRouter to SDN-GW was still MPLSoGRE. So is there anything I got missed?
Any help would be appreciated!
BTW: vRouter is V3.2.x, SDN-GW is MX240.

BR.
Haifeng.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.