天天看点

(OK) CORE - 不能正常初始化 - Fedora23 - /var/log/core-daemon.log - /root/.core/configs/m-MPE-manet.imn

在CORE中,执行 /root/.core/configs/m-MPE-manet.imn

但是,不能正常初始化。

查看日志文件  /var/log/core-daemon.log ,内容如下,有RTNETLINK错误。

解决办法,参考 http://blog.csdn.net/zahuopuboss/article/details/8678570

------------------------------------------------------------------------

如果有报错

RTNETLINK answers: No such file or directory

参考:

http://serverfault.com/questions/395450/is-traffic-control-tc-broken-in-fedora-17

http://unix.stackexchange.com/questions/40010/is-traffic-control-tc-broken-in-fedora-17

需要安装kernel-modules-extra

使用uname -r查看内核版本

使用命令 yum install kernel-modules-extra-`uname -r`进行安装

------------------------------------------------------------------------

gedit /var/log/core-daemon.log

------------------------------------------------------------------------

SESSION message flags=0x0 sessions=0

request to modify to session 38316

SESSION 38316 STATE 2: CONFIGURATION at Wed Apr 27 16:38:54 2016

location configured: (0.00,0.00,0.00) = (47.57917,-122.13232,2.00000) scale=150.00

location configured: UTM(565249.28792,5269892.80917,2.00000)

default services for type mdr set to ['zebra', 'OSPFv3MDR', 'vtysh', 'IPForward']

enter linkconfig() ...

  File "/usr/lib64/python2.7/threading.py", line 777, in __bootstrap

    self.__bootstrap_inner()

  File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner

    self.run()

  File "/usr/lib64/python2.7/threading.py", line 757, in run

    self.__target(*self.__args, **self.__kwargs)

  File "/usr/local/sbin/core-daemon", line 264, in handlerthread

    self.handlemsg(msg)

  File "/usr/local/sbin/core-daemon", line 288, in handlemsg

    replies = msghandler(msg)

  File "/usr/local/sbin/core-daemon", line 672, in handlelinkmsg

    duplicate = duplicate, jitter = jitter)

  File "/usr/lib/python2.7/site-packages/core/netns/vnet.py", line 352, in linkconfig

    traceback.print_stack()

enter linkconfig() ...

  File "/usr/lib64/python2.7/threading.py", line 777, in __bootstrap

    self.__bootstrap_inner()

  File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner

    self.run()

  File "/usr/lib64/python2.7/threading.py", line 757, in run

    self.__target(*self.__args, **self.__kwargs)

  File "/usr/local/sbin/core-daemon", line 264, in handlerthread

    self.handlemsg(msg)

  File "/usr/local/sbin/core-daemon", line 288, in handlemsg

    replies = msghandler(msg)

  File "/usr/local/sbin/core-daemon", line 672, in handlelinkmsg

    duplicate = duplicate, jitter = jitter)

  File "/usr/lib/python2.7/site-packages/core/netns/vnet.py", line 352, in linkconfig

    traceback.print_stack()

enter linkconfig() ...

  File "/usr/lib64/python2.7/threading.py", line 777, in __bootstrap

    self.__bootstrap_inner()

  File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner

    self.run()

  File "/usr/lib64/python2.7/threading.py", line 757, in run

    self.__target(*self.__args, **self.__kwargs)

  File "/usr/local/sbin/core-daemon", line 264, in handlerthread

    self.handlemsg(msg)

  File "/usr/local/sbin/core-daemon", line 288, in handlemsg

    replies = msghandler(msg)

  File "/usr/local/sbin/core-daemon", line 672, in handlelinkmsg

    duplicate = duplicate, jitter = jitter)

  File "/usr/lib/python2.7/site-packages/core/netns/vnet.py", line 352, in linkconfig

    traceback.print_stack()

SESSION 38316 STATE 3: INSTANTIATION at Wed Apr 27 16:38:54 2016

enter linkconfig() ...

  File "/usr/lib64/python2.7/threading.py", line 777, in __bootstrap

    self.__bootstrap_inner()

  File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner

    self.run()

  File "/usr/lib64/python2.7/threading.py", line 757, in run

    self.__target(*self.__args, **self.__kwargs)

  File "/usr/local/sbin/core-daemon", line 264, in handlerthread

    self.handlemsg(msg)

  File "/usr/local/sbin/core-daemon", line 288, in handlemsg

    replies = msghandler(msg)

  File "/usr/local/sbin/core-daemon", line 1110, in handleeventmsg

    self.session.instantiate(handler=self)

  File "/usr/lib/python2.7/site-packages/core/session.py", line 626, in instantiate

    self.mobility.startup()

  File "/usr/lib/python2.7/site-packages/core/mobility.py", line 65, in startup

    n.setmodel(cls, model[1])

  File "/usr/lib/python2.7/site-packages/core/netns/nodes.py", line 283, in setmodel

    self.model.setlinkparams()

  File "/usr/lib/python2.7/site-packages/core/mobility.py", line 351, in setlinkparams

    jitter=self.jitter)

  File "/usr/lib/python2.7/site-packages/core/netns/vnet.py", line 352, in linkconfig

    traceback.print_stack()

RTNETLINK answers: No such file or directory

Thread-13: exception while handling msg:

CoreEventMessage <msgtype = CORE_API_EVENT_MSG, flags = 0x0 <>>

  CORE_TLV_EVENT_TYPE: 3

Traceback (most recent call last):

  File "/usr/local/sbin/core-daemon", line 288, in handlemsg

    replies = msghandler(msg)

  File "/usr/local/sbin/core-daemon", line 1110, in handleeventmsg

    self.session.instantiate(handler=self)

  File "/usr/lib/python2.7/site-packages/core/session.py", line 626, in instantiate

    self.mobility.startup()

  File "/usr/lib/python2.7/site-packages/core/mobility.py", line 65, in startup

    n.setmodel(cls, model[1])

  File "/usr/lib/python2.7/site-packages/core/netns/nodes.py", line 283, in setmodel

    self.model.setlinkparams()

  File "/usr/lib/python2.7/site-packages/core/mobility.py", line 351, in setlinkparams

    jitter=self.jitter)

  File "/usr/lib/python2.7/site-packages/core/netns/vnet.py", line 425, in linkconfig

    check_call(tc + parent + ["handle", "10:"] + netem)

  File "/usr/lib/python2.7/site-packages/core/misc/utils.py", line 78, in check_call

    return subprocess.check_call(*args, **kwds)

  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

CalledProcessError: Command '['/usr/sbin/tc', 'qdisc', 'replace', 'dev', 'veth3.0.39', 'parent', '1:1', 'handle', '10:', 'netem', 'delay', '20000.0us']' returned non-zero exit status 2

继续阅读