Ask Your Question
0

Which service create network namespace?

asked 2016-07-13 05:37:31 -0500

kramer gravatar image

Hi

I am trying to create a provider network and a tenant network, then connect them with a router. The env is mitaka on centos7.

I have done this several times before and it was ok. But this time after input all the commands. I find there is no namespace. There should be at leas 3 network namespace. One for router the other two for dhcp.

So which service is responding for creating those network namespace? I checked l3 agent log, ovs-agent log did find anything related.

Command as below

. /opt/keystone/admin.openrc 
neutron net-create --shared --provider:physical_network provider   --provider:network_type flat provider
neutron subnet-create --name provider   --allocation-pool start=192.168.148.38,end=192.168.148.40   --dns-nameserver 64.104.123.245 --gateway 192.168.148.1   provider 192.168.148.0/24

. /opt/keystone/demo.openrc 
neutron net-create selfservice
neutron subnet-create --name selfservice   --dns-nameserver 192.168.123.245 --gateway 10.0.100.1   selfservice 10.0.100.0/24

. /opt/keystone/admin.openrc 
neutron net-update provider --router:external
. /opt/keystone/demo.openrc 
neutron router-create router
neutron router-interface-add router selfservice
neutron router-gateway-set router provider
edit retag flag offensive close merge delete

Comments

According to link text setting ovs_use_veth = True will result in no namespace. Check that it is False.

barry.davis gravatar imagebarry.davis ( 2016-07-13 12:11:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-13 20:52:13 -0500

kramer gravatar image

updated 2016-07-13 20:52:31 -0500

I found out the reason.

This is because I changed the code neutron/common/event_utils.py

change

eventlet.monkey_patch(os=False, thread=False)

to

eventlet.monkey_patch()

I did this before because I want to do remote debug on windows (The openstack run on CentOS, My debug env on Windows)

But this is causing problems

network namespace not created
l3 agent and dhcp agent can not report status to neutron-server. So in log you can see neutron server thought this two agent not up
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-13 05:37:31 -0500

Seen: 185 times

Last updated: Jul 13 '16