码迷,mamicode.com
首页 > Web开发 > 详细

“Object "netns" is unknown, try "ip help".\n'”报错

时间:2014-08-05 11:35:39      阅读:1996      评论:0      收藏:0      [点我收藏+]

标签:openstack常见问题

tail -f/var/log/neutron/dhcp-agent.log

bubuko.com,布布扣

By default, CentOS 6.4 does not support network namespaces. If one wants totest the new virtualization platforms (Docker, OpenStack, & co…) on aCentOS server, all features won’t be available.
For OpenStack for example, Neutron won’t work as expected, since it actuallyneeds network namespace to create networks,

Fortunately, RedHat – through RDO – provides a kernel that get this feature backported.

So, before updating the kernel, if one runs :

1

#>  ip netns list

s/he will be presented with the following error message : Object “netns”is unknown, try “ip help”.

The following steps needs to be realized to install the new kernel andenable the network namespace feature

1

2

3

#>  yum install -y http://rdo.fedorapeople.org/rdo-release.rpm

#>  yum install kernel iproute

#>  reboot

And that’s it. Really.

Now one can run

1

2

#>  ip netns add spredzy

#>  ip netns list

spredzy should get displayed.

If everything is working one should have the following kernel and iproutepackages installed :

1

2

3

kernel-2.6.32-358.123.2.openstack.el6.x86_64

kernel-firmware-2.6.32-358.123.2.openstack.el6.noarch

iproute-2.6.32-130.el6ost.netns.2.x86_64


本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1535786

“Object "netns" is unknown, try "ip help".\n'”报错,布布扣,bubuko.com

“Object "netns" is unknown, try "ip help".\n'”报错

标签:openstack常见问题

原文地址:http://zhanguo1110.blog.51cto.com/5750817/1535786

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!