DINKIN / coreemu

Automatically exported from code.google.com/p/coreemu
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

detect and warn about bad kernels #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Suggest a configuration check to test uname -r against known bad kernels and 
warn the user that they are on a potentially troublesome kernel, such as:

 On this platform you can run core as a normal user.
 Warning:  configure detected that you are running the 2.6.34 kernel, which is known to have issues; consult this URL for details.

Related to this, the NamespaceKernels wiki page doesn't seem to be well linked 
from the FAQ, troubleshooting, or other wiki pages; suggest to link from the 
"Linux" and "Namespaces" pages.

Original issue reported on code.google.com by tomh....@gmail.com on 14 Apr 2011 at 10:46

GoogleCodeExporter commented 8 years ago
See new report from Duc Nguyen on NamespaceKernels wiki page.

This error should be handled gracefully -- nsfork() fails, due to lack of 
kernel support?

Here is his reported error log:
STATE 2: CORE_EVENT_CONFIGURATION_STATE at Wed May 11 09:58:52 2011
location configured: (0.00,0.00,0.00) = (47.57917,-122.13232,2.00000) 
scale=275.00
location configured: UTM(565249.28792,5269892.80917,2.00000)
default services for type router set to ['zebra', 'OSPFv2', 'OSPFv3', 'vtysh', 
'IPForward']
vnoded[27399]: 09:58:52.954250 vnoded[vnode_server.c:296]: nsfork() failed: 
Invalid argument
vnoded[27399]: 09:58:52.954456 main[vnoded_main.c:207]: vnoded() failed
Thread-2: exception while handling msg:
CoreNodeMessage <msgtype = CORE_API_NODE_MSG, flags = 0x11 <CORE_API_ADD_FLAG | 
CORE_API_STR_FLAG>>
  CORE_TLV_NODE_XPOS: 190
  CORE_TLV_NODE_NUMBER: 1
  CORE_TLV_NODE_TYPE: 0
  CORE_TLV_NODE_NAME: n1
  CORE_TLV_NODE_YPOS: 243
  CORE_TLV_NODE_MODEL: router
Traceback (most recent call last):
  File "/usr/sbin/cored.py", line 301, in handlemsg
    reply = msghandler(msg)
  File "/usr/sbin/cored.py", line 378, in handlenodemsg
    start = start)
  File "/usr/lib/python2.6/dist-packages/core/session.py", line 208, in addobj
    obj = cls(self, *clsargs, **clskwds)
  File "/usr/lib/python2.6/dist-packages/core/netns/vnode.py", line 508, in __init__
    self.startup()
  File "/usr/lib/python2.6/dist-packages/core/netns/vnode.py", line 532, in startup
    super(LxcNode, self).startup()
  File "/usr/lib/python2.6/dist-packages/core/netns/vnode.py", line 195, in startup
    self.pid = int(tmp.stdout.read())
ValueError: invalid literal for int() with base 10: ''

Original comment by ahrenh...@gmail.com on 11 May 2011 at 4:57