{"id":570,"date":"2013-06-29T23:27:12","date_gmt":"2013-06-29T17:57:12","guid":{"rendered":"http:\/\/atuljha.com\/blog\/?p=570"},"modified":"2013-06-29T23:27:12","modified_gmt":"2013-06-29T17:57:12","slug":"linux-namespaces-centos-openstack","status":"publish","type":"post","link":"https:\/\/atuljha.com\/blog\/2013\/06\/29\/linux-namespaces-centos-openstack\/","title":{"rendered":"Linux Namespaces, CentOS &#038; OpenStack"},"content":{"rendered":"<p>Few weeks back me &amp; my friend wanted to try out OpenStack on CentOS. We followed all steps but after 3 days of debugging we were still not able to figure out the issue. I am total newbie with the networking part of OpenStack, trying to catch up with it.<\/p>\n<p>After hitting head around\u00a0forums, <a href=\"https:\/\/bugs.launchpad.net\/neutron\/+bug\/1034161\" target=\"_blank\">launchpad<\/a> &amp; taking help from google we realized it was &#8220;Linux Namespaces&#8221; which was missing from the CentOS kernel version we were using. It was this configuration inside &#8220;<a href=\"https:\/\/github.com\/openstack\/quantum\/blob\/master\/etc\/l3_agent.ini\" target=\"_blank\">l3_agent.ini<\/a>&#8221;<\/p>\n<p>and enabling <code># use_namespaces = True<\/code> was our culprit.<\/p>\n<p>Making it &#8220;False&#8221; and restarting the service made everything work as we desired, which was to run an instance along with associating an IP to the machine &amp; making it reachable.<\/p>\n<p>Further down the line i was having conversation with<a href=\"https:\/\/twitter.com\/lhochstein\" target=\"_blank\"> Lorin<\/a> on IRC &amp;\u00a0explained what is Namespaces is &amp; how important it is for SDN\/Virtual Networking. I was lucky to go through <a href=\"https:\/\/eos.aristanetworks.com\/2011\/06\/linux-namespaces-at-arista\/\" target=\"_blank\">this<\/a> and <a href=\"http:\/\/blog.dotcloud.com\/under-the-hood-linux-kernels-on-dotcloud-part\" target=\"_blank\">this<\/a> link\u00a0\u00a0to understand this magical piece added inside Linux Kernel.<\/p>\n<p>In newbies term Net Namespaces is like LXC for networking, an independent &amp; isolated network virtualNIC. Which means every instance started will have its own VirtualNIC\u00a0associated\u00a0with the greatness of Net Namespaces. Also\u00a0each\u00a0<tt>net<\/tt>\u00a0namespace has its own routing table, but also its own iptables chains and rules.<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/docs.google.com\/drawings\/d\/1Jz3IZbTMze30eBGF8K7CqVvN62rrfhNVSMGbPCTf_9Y\/pub?w=480&amp;h=360\" \/><br \/>\nHope it helps!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Few weeks back me &amp; my friend wanted to try out OpenStack on CentOS. We followed all steps but after 3 days of debugging we were still not able to figure out the issue. I am total newbie with the networking part of OpenStack, trying to catch up with it. After hitting head around\u00a0forums, launchpad &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/atuljha.com\/blog\/2013\/06\/29\/linux-namespaces-centos-openstack\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux Namespaces, CentOS &#038; OpenStack&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,4,62],"tags":[],"_links":{"self":[{"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/posts\/570"}],"collection":[{"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/comments?post=570"}],"version-history":[{"count":2,"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/posts\/570\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/media?parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/categories?post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atuljha.com\/blog\/wp-json\/wp\/v2\/tags?post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}